diff --git a/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java b/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java deleted file mode 100644 index d32cae5f..00000000 --- a/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java +++ /dev/null @@ -1,2088 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.networksecurity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Network Security API provides resources to configure authentication and
- * authorization policies. Refer to per API resource documentation for more
- * information.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networksecurity/v1/network_security.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class NetworkSecurityGrpc { - - private NetworkSecurityGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networksecurity.v1.NetworkSecurity"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest, - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - getListAuthorizationPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAuthorizationPolicies", - requestType = com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.class, - responseType = com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest, - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - getListAuthorizationPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest, - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - getListAuthorizationPoliciesMethod; - if ((getListAuthorizationPoliciesMethod = - NetworkSecurityGrpc.getListAuthorizationPoliciesMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getListAuthorizationPoliciesMethod = - NetworkSecurityGrpc.getListAuthorizationPoliciesMethod) - == null) { - NetworkSecurityGrpc.getListAuthorizationPoliciesMethod = - getListAuthorizationPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListAuthorizationPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("ListAuthorizationPolicies")) - .build(); - } - } - } - return getListAuthorizationPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest, - com.google.cloud.networksecurity.v1.AuthorizationPolicy> - getGetAuthorizationPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAuthorizationPolicy", - requestType = com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.class, - responseType = com.google.cloud.networksecurity.v1.AuthorizationPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest, - com.google.cloud.networksecurity.v1.AuthorizationPolicy> - getGetAuthorizationPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest, - com.google.cloud.networksecurity.v1.AuthorizationPolicy> - getGetAuthorizationPolicyMethod; - if ((getGetAuthorizationPolicyMethod = NetworkSecurityGrpc.getGetAuthorizationPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getGetAuthorizationPolicyMethod = NetworkSecurityGrpc.getGetAuthorizationPolicyMethod) - == null) { - NetworkSecurityGrpc.getGetAuthorizationPolicyMethod = - getGetAuthorizationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAuthorizationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.AuthorizationPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("GetAuthorizationPolicy")) - .build(); - } - } - } - return getGetAuthorizationPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getCreateAuthorizationPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAuthorizationPolicy", - requestType = com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getCreateAuthorizationPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getCreateAuthorizationPolicyMethod; - if ((getCreateAuthorizationPolicyMethod = - NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getCreateAuthorizationPolicyMethod = - NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod) - == null) { - NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod = - getCreateAuthorizationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateAuthorizationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("CreateAuthorizationPolicy")) - .build(); - } - } - } - return getCreateAuthorizationPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAuthorizationPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAuthorizationPolicy", - requestType = com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAuthorizationPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAuthorizationPolicyMethod; - if ((getUpdateAuthorizationPolicyMethod = - NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getUpdateAuthorizationPolicyMethod = - NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod) - == null) { - NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod = - getUpdateAuthorizationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateAuthorizationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("UpdateAuthorizationPolicy")) - .build(); - } - } - } - return getUpdateAuthorizationPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAuthorizationPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAuthorizationPolicy", - requestType = com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAuthorizationPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAuthorizationPolicyMethod; - if ((getDeleteAuthorizationPolicyMethod = - NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getDeleteAuthorizationPolicyMethod = - NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod) - == null) { - NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod = - getDeleteAuthorizationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAuthorizationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("DeleteAuthorizationPolicy")) - .build(); - } - } - } - return getDeleteAuthorizationPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest, - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - getListServerTlsPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServerTlsPolicies", - requestType = com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.class, - responseType = com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest, - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - getListServerTlsPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest, - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - getListServerTlsPoliciesMethod; - if ((getListServerTlsPoliciesMethod = NetworkSecurityGrpc.getListServerTlsPoliciesMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getListServerTlsPoliciesMethod = NetworkSecurityGrpc.getListServerTlsPoliciesMethod) - == null) { - NetworkSecurityGrpc.getListServerTlsPoliciesMethod = - getListServerTlsPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListServerTlsPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("ListServerTlsPolicies")) - .build(); - } - } - } - return getListServerTlsPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest, - com.google.cloud.networksecurity.v1.ServerTlsPolicy> - getGetServerTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetServerTlsPolicy", - requestType = com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.class, - responseType = com.google.cloud.networksecurity.v1.ServerTlsPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest, - com.google.cloud.networksecurity.v1.ServerTlsPolicy> - getGetServerTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest, - com.google.cloud.networksecurity.v1.ServerTlsPolicy> - getGetServerTlsPolicyMethod; - if ((getGetServerTlsPolicyMethod = NetworkSecurityGrpc.getGetServerTlsPolicyMethod) == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getGetServerTlsPolicyMethod = NetworkSecurityGrpc.getGetServerTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getGetServerTlsPolicyMethod = - getGetServerTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.ServerTlsPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("GetServerTlsPolicy")) - .build(); - } - } - } - return getGetServerTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateServerTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateServerTlsPolicy", - requestType = com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateServerTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateServerTlsPolicyMethod; - if ((getCreateServerTlsPolicyMethod = NetworkSecurityGrpc.getCreateServerTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getCreateServerTlsPolicyMethod = NetworkSecurityGrpc.getCreateServerTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getCreateServerTlsPolicyMethod = - getCreateServerTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateServerTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("CreateServerTlsPolicy")) - .build(); - } - } - } - return getCreateServerTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateServerTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateServerTlsPolicy", - requestType = com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateServerTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateServerTlsPolicyMethod; - if ((getUpdateServerTlsPolicyMethod = NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getUpdateServerTlsPolicyMethod = NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod = - getUpdateServerTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateServerTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("UpdateServerTlsPolicy")) - .build(); - } - } - } - return getUpdateServerTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteServerTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteServerTlsPolicy", - requestType = com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteServerTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteServerTlsPolicyMethod; - if ((getDeleteServerTlsPolicyMethod = NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getDeleteServerTlsPolicyMethod = NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod = - getDeleteServerTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteServerTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("DeleteServerTlsPolicy")) - .build(); - } - } - } - return getDeleteServerTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest, - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - getListClientTlsPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListClientTlsPolicies", - requestType = com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.class, - responseType = com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest, - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - getListClientTlsPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest, - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - getListClientTlsPoliciesMethod; - if ((getListClientTlsPoliciesMethod = NetworkSecurityGrpc.getListClientTlsPoliciesMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getListClientTlsPoliciesMethod = NetworkSecurityGrpc.getListClientTlsPoliciesMethod) - == null) { - NetworkSecurityGrpc.getListClientTlsPoliciesMethod = - getListClientTlsPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListClientTlsPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("ListClientTlsPolicies")) - .build(); - } - } - } - return getListClientTlsPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest, - com.google.cloud.networksecurity.v1.ClientTlsPolicy> - getGetClientTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetClientTlsPolicy", - requestType = com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.class, - responseType = com.google.cloud.networksecurity.v1.ClientTlsPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest, - com.google.cloud.networksecurity.v1.ClientTlsPolicy> - getGetClientTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest, - com.google.cloud.networksecurity.v1.ClientTlsPolicy> - getGetClientTlsPolicyMethod; - if ((getGetClientTlsPolicyMethod = NetworkSecurityGrpc.getGetClientTlsPolicyMethod) == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getGetClientTlsPolicyMethod = NetworkSecurityGrpc.getGetClientTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getGetClientTlsPolicyMethod = - getGetClientTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClientTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.ClientTlsPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("GetClientTlsPolicy")) - .build(); - } - } - } - return getGetClientTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateClientTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateClientTlsPolicy", - requestType = com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateClientTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateClientTlsPolicyMethod; - if ((getCreateClientTlsPolicyMethod = NetworkSecurityGrpc.getCreateClientTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getCreateClientTlsPolicyMethod = NetworkSecurityGrpc.getCreateClientTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getCreateClientTlsPolicyMethod = - getCreateClientTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateClientTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("CreateClientTlsPolicy")) - .build(); - } - } - } - return getCreateClientTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateClientTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateClientTlsPolicy", - requestType = com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateClientTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateClientTlsPolicyMethod; - if ((getUpdateClientTlsPolicyMethod = NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getUpdateClientTlsPolicyMethod = NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod = - getUpdateClientTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateClientTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("UpdateClientTlsPolicy")) - .build(); - } - } - } - return getUpdateClientTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteClientTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteClientTlsPolicy", - requestType = com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteClientTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteClientTlsPolicyMethod; - if ((getDeleteClientTlsPolicyMethod = NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getDeleteClientTlsPolicyMethod = NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod = - getDeleteClientTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteClientTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("DeleteClientTlsPolicy")) - .build(); - } - } - } - return getDeleteClientTlsPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static NetworkSecurityStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityStub(channel, callOptions); - } - }; - return NetworkSecurityStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static NetworkSecurityBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityBlockingStub(channel, callOptions); - } - }; - return NetworkSecurityBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static NetworkSecurityFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityFutureStub(channel, callOptions); - } - }; - return NetworkSecurityFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Network Security API provides resources to configure authentication and
-   * authorization policies. Refer to per API resource documentation for more
-   * information.
-   * 
- */ - public abstract static class NetworkSecurityImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists AuthorizationPolicies in a given project and location.
-     * 
- */ - public void listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAuthorizationPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single AuthorizationPolicy.
-     * 
- */ - public void getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAuthorizationPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new AuthorizationPolicy in a given project and location.
-     * 
- */ - public void createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAuthorizationPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single AuthorizationPolicy.
-     * 
- */ - public void updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAuthorizationPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single AuthorizationPolicy.
-     * 
- */ - public void deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAuthorizationPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ServerTlsPolicies in a given project and location.
-     * 
- */ - public void listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListServerTlsPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ServerTlsPolicy.
-     * 
- */ - public void getServerTlsPolicy( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetServerTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new ServerTlsPolicy in a given project and location.
-     * 
- */ - public void createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateServerTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ServerTlsPolicy.
-     * 
- */ - public void updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateServerTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single ServerTlsPolicy.
-     * 
- */ - public void deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteServerTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ClientTlsPolicies in a given project and location.
-     * 
- */ - public void listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListClientTlsPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ClientTlsPolicy.
-     * 
- */ - public void getClientTlsPolicy( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetClientTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new ClientTlsPolicy in a given project and location.
-     * 
- */ - public void createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateClientTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ClientTlsPolicy.
-     * 
- */ - public void updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateClientTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single ClientTlsPolicy.
-     * 
- */ - public void deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteClientTlsPolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListAuthorizationPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest, - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse>( - this, METHODID_LIST_AUTHORIZATION_POLICIES))) - .addMethod( - getGetAuthorizationPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest, - com.google.cloud.networksecurity.v1.AuthorizationPolicy>( - this, METHODID_GET_AUTHORIZATION_POLICY))) - .addMethod( - getCreateAuthorizationPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_AUTHORIZATION_POLICY))) - .addMethod( - getUpdateAuthorizationPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_AUTHORIZATION_POLICY))) - .addMethod( - getDeleteAuthorizationPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_AUTHORIZATION_POLICY))) - .addMethod( - getListServerTlsPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest, - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse>( - this, METHODID_LIST_SERVER_TLS_POLICIES))) - .addMethod( - getGetServerTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest, - com.google.cloud.networksecurity.v1.ServerTlsPolicy>( - this, METHODID_GET_SERVER_TLS_POLICY))) - .addMethod( - getCreateServerTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SERVER_TLS_POLICY))) - .addMethod( - getUpdateServerTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SERVER_TLS_POLICY))) - .addMethod( - getDeleteServerTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SERVER_TLS_POLICY))) - .addMethod( - getListClientTlsPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest, - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse>( - this, METHODID_LIST_CLIENT_TLS_POLICIES))) - .addMethod( - getGetClientTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest, - com.google.cloud.networksecurity.v1.ClientTlsPolicy>( - this, METHODID_GET_CLIENT_TLS_POLICY))) - .addMethod( - getCreateClientTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CLIENT_TLS_POLICY))) - .addMethod( - getUpdateClientTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CLIENT_TLS_POLICY))) - .addMethod( - getDeleteClientTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CLIENT_TLS_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * Network Security API provides resources to configure authentication and
-   * authorization policies. Refer to per API resource documentation for more
-   * information.
-   * 
- */ - public static final class NetworkSecurityStub - extends io.grpc.stub.AbstractAsyncStub { - private NetworkSecurityStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NetworkSecurityStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists AuthorizationPolicies in a given project and location.
-     * 
- */ - public void listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single AuthorizationPolicy.
-     * 
- */ - public void getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new AuthorizationPolicy in a given project and location.
-     * 
- */ - public void createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single AuthorizationPolicy.
-     * 
- */ - public void updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single AuthorizationPolicy.
-     * 
- */ - public void deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ServerTlsPolicies in a given project and location.
-     * 
- */ - public void listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ServerTlsPolicy.
-     * 
- */ - public void getServerTlsPolicy( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new ServerTlsPolicy in a given project and location.
-     * 
- */ - public void createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ServerTlsPolicy.
-     * 
- */ - public void updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single ServerTlsPolicy.
-     * 
- */ - public void deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ClientTlsPolicies in a given project and location.
-     * 
- */ - public void listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ClientTlsPolicy.
-     * 
- */ - public void getClientTlsPolicy( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new ClientTlsPolicy in a given project and location.
-     * 
- */ - public void createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ClientTlsPolicy.
-     * 
- */ - public void updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single ClientTlsPolicy.
-     * 
- */ - public void deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Network Security API provides resources to configure authentication and
-   * authorization policies. Refer to per API resource documentation for more
-   * information.
-   * 
- */ - public static final class NetworkSecurityBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private NetworkSecurityBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NetworkSecurityBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists AuthorizationPolicies in a given project and location.
-     * 
- */ - public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single AuthorizationPolicy.
-     * 
- */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new AuthorizationPolicy in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single AuthorizationPolicy.
-     * 
- */ - public com.google.longrunning.Operation updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single AuthorizationPolicy.
-     * 
- */ - public com.google.longrunning.Operation deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ServerTlsPolicies in a given project and location.
-     * 
- */ - public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single ServerTlsPolicy.
-     * 
- */ - public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new ServerTlsPolicy in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ServerTlsPolicy.
-     * 
- */ - public com.google.longrunning.Operation updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single ServerTlsPolicy.
-     * 
- */ - public com.google.longrunning.Operation deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ClientTlsPolicies in a given project and location.
-     * 
- */ - public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single ClientTlsPolicy.
-     * 
- */ - public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new ClientTlsPolicy in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ClientTlsPolicy.
-     * 
- */ - public com.google.longrunning.Operation updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single ClientTlsPolicy.
-     * 
- */ - public com.google.longrunning.Operation deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Network Security API provides resources to configure authentication and
-   * authorization policies. Refer to per API resource documentation for more
-   * information.
-   * 
- */ - public static final class NetworkSecurityFutureStub - extends io.grpc.stub.AbstractFutureStub { - private NetworkSecurityFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NetworkSecurityFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists AuthorizationPolicies in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single AuthorizationPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.AuthorizationPolicy> - getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new AuthorizationPolicy in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single AuthorizationPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single AuthorizationPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ServerTlsPolicies in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single ServerTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ServerTlsPolicy> - getServerTlsPolicy(com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new ServerTlsPolicy in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ServerTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single ServerTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ClientTlsPolicies in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single ClientTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ClientTlsPolicy> - getClientTlsPolicy(com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new ClientTlsPolicy in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ClientTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single ClientTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_AUTHORIZATION_POLICIES = 0; - private static final int METHODID_GET_AUTHORIZATION_POLICY = 1; - private static final int METHODID_CREATE_AUTHORIZATION_POLICY = 2; - private static final int METHODID_UPDATE_AUTHORIZATION_POLICY = 3; - private static final int METHODID_DELETE_AUTHORIZATION_POLICY = 4; - private static final int METHODID_LIST_SERVER_TLS_POLICIES = 5; - private static final int METHODID_GET_SERVER_TLS_POLICY = 6; - private static final int METHODID_CREATE_SERVER_TLS_POLICY = 7; - private static final int METHODID_UPDATE_SERVER_TLS_POLICY = 8; - private static final int METHODID_DELETE_SERVER_TLS_POLICY = 9; - private static final int METHODID_LIST_CLIENT_TLS_POLICIES = 10; - private static final int METHODID_GET_CLIENT_TLS_POLICY = 11; - private static final int METHODID_CREATE_CLIENT_TLS_POLICY = 12; - private static final int METHODID_UPDATE_CLIENT_TLS_POLICY = 13; - private static final int METHODID_DELETE_CLIENT_TLS_POLICY = 14; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final NetworkSecurityImplBase serviceImpl; - private final int methodId; - - MethodHandlers(NetworkSecurityImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_AUTHORIZATION_POLICIES: - serviceImpl.listAuthorizationPolicies( - (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_AUTHORIZATION_POLICY: - serviceImpl.getAuthorizationPolicy( - (com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_AUTHORIZATION_POLICY: - serviceImpl.createAuthorizationPolicy( - (com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_AUTHORIZATION_POLICY: - serviceImpl.updateAuthorizationPolicy( - (com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_AUTHORIZATION_POLICY: - serviceImpl.deleteAuthorizationPolicy( - (com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SERVER_TLS_POLICIES: - serviceImpl.listServerTlsPolicies( - (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_SERVER_TLS_POLICY: - serviceImpl.getServerTlsPolicy( - (com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SERVER_TLS_POLICY: - serviceImpl.createServerTlsPolicy( - (com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SERVER_TLS_POLICY: - serviceImpl.updateServerTlsPolicy( - (com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVER_TLS_POLICY: - serviceImpl.deleteServerTlsPolicy( - (com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CLIENT_TLS_POLICIES: - serviceImpl.listClientTlsPolicies( - (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_CLIENT_TLS_POLICY: - serviceImpl.getClientTlsPolicy( - (com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CLIENT_TLS_POLICY: - serviceImpl.createClientTlsPolicy( - (com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLIENT_TLS_POLICY: - serviceImpl.updateClientTlsPolicy( - (com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CLIENT_TLS_POLICY: - serviceImpl.deleteClientTlsPolicy( - (com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class NetworkSecurityBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - NetworkSecurityBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networksecurity.v1.NetworkSecurityOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("NetworkSecurity"); - } - } - - private static final class NetworkSecurityFileDescriptorSupplier - extends NetworkSecurityBaseDescriptorSupplier { - NetworkSecurityFileDescriptorSupplier() {} - } - - private static final class NetworkSecurityMethodDescriptorSupplier - extends NetworkSecurityBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - NetworkSecurityMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (NetworkSecurityGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new NetworkSecurityFileDescriptorSupplier()) - .addMethod(getListAuthorizationPoliciesMethod()) - .addMethod(getGetAuthorizationPolicyMethod()) - .addMethod(getCreateAuthorizationPolicyMethod()) - .addMethod(getUpdateAuthorizationPolicyMethod()) - .addMethod(getDeleteAuthorizationPolicyMethod()) - .addMethod(getListServerTlsPoliciesMethod()) - .addMethod(getGetServerTlsPolicyMethod()) - .addMethod(getCreateServerTlsPolicyMethod()) - .addMethod(getUpdateServerTlsPolicyMethod()) - .addMethod(getDeleteServerTlsPolicyMethod()) - .addMethod(getListClientTlsPoliciesMethod()) - .addMethod(getGetClientTlsPolicyMethod()) - .addMethod(getCreateClientTlsPolicyMethod()) - .addMethod(getUpdateClientTlsPolicyMethod()) - .addMethod(getDeleteClientTlsPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java b/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java deleted file mode 100644 index ef56ee68..00000000 --- a/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java +++ /dev/null @@ -1,2097 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.networksecurity.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Network Security API provides resources to configure authentication and
- * authorization policies. Refer to per API resource documentation for more
- * information.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networksecurity/v1beta1/network_security.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class NetworkSecurityGrpc { - - private NetworkSecurityGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networksecurity.v1beta1.NetworkSecurity"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse> - getListAuthorizationPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAuthorizationPolicies", - requestType = com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.class, - responseType = - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse> - getListAuthorizationPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse> - getListAuthorizationPoliciesMethod; - if ((getListAuthorizationPoliciesMethod = - NetworkSecurityGrpc.getListAuthorizationPoliciesMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getListAuthorizationPoliciesMethod = - NetworkSecurityGrpc.getListAuthorizationPoliciesMethod) - == null) { - NetworkSecurityGrpc.getListAuthorizationPoliciesMethod = - getListAuthorizationPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListAuthorizationPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1 - .ListAuthorizationPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1 - .ListAuthorizationPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("ListAuthorizationPolicies")) - .build(); - } - } - } - return getListAuthorizationPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy> - getGetAuthorizationPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAuthorizationPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.class, - responseType = com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy> - getGetAuthorizationPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy> - getGetAuthorizationPolicyMethod; - if ((getGetAuthorizationPolicyMethod = NetworkSecurityGrpc.getGetAuthorizationPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getGetAuthorizationPolicyMethod = NetworkSecurityGrpc.getGetAuthorizationPolicyMethod) - == null) { - NetworkSecurityGrpc.getGetAuthorizationPolicyMethod = - getGetAuthorizationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAuthorizationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("GetAuthorizationPolicy")) - .build(); - } - } - } - return getGetAuthorizationPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getCreateAuthorizationPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAuthorizationPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getCreateAuthorizationPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getCreateAuthorizationPolicyMethod; - if ((getCreateAuthorizationPolicyMethod = - NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getCreateAuthorizationPolicyMethod = - NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod) - == null) { - NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod = - getCreateAuthorizationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateAuthorizationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1 - .CreateAuthorizationPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("CreateAuthorizationPolicy")) - .build(); - } - } - } - return getCreateAuthorizationPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAuthorizationPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAuthorizationPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAuthorizationPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAuthorizationPolicyMethod; - if ((getUpdateAuthorizationPolicyMethod = - NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getUpdateAuthorizationPolicyMethod = - NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod) - == null) { - NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod = - getUpdateAuthorizationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateAuthorizationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1 - .UpdateAuthorizationPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("UpdateAuthorizationPolicy")) - .build(); - } - } - } - return getUpdateAuthorizationPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAuthorizationPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAuthorizationPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAuthorizationPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAuthorizationPolicyMethod; - if ((getDeleteAuthorizationPolicyMethod = - NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getDeleteAuthorizationPolicyMethod = - NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod) - == null) { - NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod = - getDeleteAuthorizationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAuthorizationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1 - .DeleteAuthorizationPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("DeleteAuthorizationPolicy")) - .build(); - } - } - } - return getDeleteAuthorizationPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse> - getListServerTlsPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServerTlsPolicies", - requestType = com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.class, - responseType = com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse> - getListServerTlsPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse> - getListServerTlsPoliciesMethod; - if ((getListServerTlsPoliciesMethod = NetworkSecurityGrpc.getListServerTlsPoliciesMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getListServerTlsPoliciesMethod = NetworkSecurityGrpc.getListServerTlsPoliciesMethod) - == null) { - NetworkSecurityGrpc.getListServerTlsPoliciesMethod = - getListServerTlsPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListServerTlsPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("ListServerTlsPolicies")) - .build(); - } - } - } - return getListServerTlsPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy> - getGetServerTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetServerTlsPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.class, - responseType = com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy> - getGetServerTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy> - getGetServerTlsPolicyMethod; - if ((getGetServerTlsPolicyMethod = NetworkSecurityGrpc.getGetServerTlsPolicyMethod) == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getGetServerTlsPolicyMethod = NetworkSecurityGrpc.getGetServerTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getGetServerTlsPolicyMethod = - getGetServerTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("GetServerTlsPolicy")) - .build(); - } - } - } - return getGetServerTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateServerTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateServerTlsPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateServerTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateServerTlsPolicyMethod; - if ((getCreateServerTlsPolicyMethod = NetworkSecurityGrpc.getCreateServerTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getCreateServerTlsPolicyMethod = NetworkSecurityGrpc.getCreateServerTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getCreateServerTlsPolicyMethod = - getCreateServerTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateServerTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("CreateServerTlsPolicy")) - .build(); - } - } - } - return getCreateServerTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateServerTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateServerTlsPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateServerTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateServerTlsPolicyMethod; - if ((getUpdateServerTlsPolicyMethod = NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getUpdateServerTlsPolicyMethod = NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod = - getUpdateServerTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateServerTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("UpdateServerTlsPolicy")) - .build(); - } - } - } - return getUpdateServerTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteServerTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteServerTlsPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteServerTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteServerTlsPolicyMethod; - if ((getDeleteServerTlsPolicyMethod = NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getDeleteServerTlsPolicyMethod = NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod = - getDeleteServerTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteServerTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("DeleteServerTlsPolicy")) - .build(); - } - } - } - return getDeleteServerTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse> - getListClientTlsPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListClientTlsPolicies", - requestType = com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.class, - responseType = com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse> - getListClientTlsPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse> - getListClientTlsPoliciesMethod; - if ((getListClientTlsPoliciesMethod = NetworkSecurityGrpc.getListClientTlsPoliciesMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getListClientTlsPoliciesMethod = NetworkSecurityGrpc.getListClientTlsPoliciesMethod) - == null) { - NetworkSecurityGrpc.getListClientTlsPoliciesMethod = - getListClientTlsPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListClientTlsPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("ListClientTlsPolicies")) - .build(); - } - } - } - return getListClientTlsPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy> - getGetClientTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetClientTlsPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.class, - responseType = com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy> - getGetClientTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy> - getGetClientTlsPolicyMethod; - if ((getGetClientTlsPolicyMethod = NetworkSecurityGrpc.getGetClientTlsPolicyMethod) == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getGetClientTlsPolicyMethod = NetworkSecurityGrpc.getGetClientTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getGetClientTlsPolicyMethod = - getGetClientTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClientTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("GetClientTlsPolicy")) - .build(); - } - } - } - return getGetClientTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateClientTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateClientTlsPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateClientTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getCreateClientTlsPolicyMethod; - if ((getCreateClientTlsPolicyMethod = NetworkSecurityGrpc.getCreateClientTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getCreateClientTlsPolicyMethod = NetworkSecurityGrpc.getCreateClientTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getCreateClientTlsPolicyMethod = - getCreateClientTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateClientTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("CreateClientTlsPolicy")) - .build(); - } - } - } - return getCreateClientTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateClientTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateClientTlsPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateClientTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest, - com.google.longrunning.Operation> - getUpdateClientTlsPolicyMethod; - if ((getUpdateClientTlsPolicyMethod = NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getUpdateClientTlsPolicyMethod = NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod = - getUpdateClientTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateClientTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("UpdateClientTlsPolicy")) - .build(); - } - } - } - return getUpdateClientTlsPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteClientTlsPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteClientTlsPolicy", - requestType = com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteClientTlsPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest, - com.google.longrunning.Operation> - getDeleteClientTlsPolicyMethod; - if ((getDeleteClientTlsPolicyMethod = NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod) - == null) { - synchronized (NetworkSecurityGrpc.class) { - if ((getDeleteClientTlsPolicyMethod = NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod) - == null) { - NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod = - getDeleteClientTlsPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteClientTlsPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new NetworkSecurityMethodDescriptorSupplier("DeleteClientTlsPolicy")) - .build(); - } - } - } - return getDeleteClientTlsPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static NetworkSecurityStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityStub(channel, callOptions); - } - }; - return NetworkSecurityStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static NetworkSecurityBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityBlockingStub(channel, callOptions); - } - }; - return NetworkSecurityBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static NetworkSecurityFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityFutureStub(channel, callOptions); - } - }; - return NetworkSecurityFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Network Security API provides resources to configure authentication and
-   * authorization policies. Refer to per API resource documentation for more
-   * information.
-   * 
- */ - public abstract static class NetworkSecurityImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists AuthorizationPolicies in a given project and location.
-     * 
- */ - public void listAuthorizationPolicies( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAuthorizationPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single AuthorizationPolicy.
-     * 
- */ - public void getAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAuthorizationPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new AuthorizationPolicy in a given project and location.
-     * 
- */ - public void createAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAuthorizationPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single AuthorizationPolicy.
-     * 
- */ - public void updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAuthorizationPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single AuthorizationPolicy.
-     * 
- */ - public void deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAuthorizationPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ServerTlsPolicies in a given project and location.
-     * 
- */ - public void listServerTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListServerTlsPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ServerTlsPolicy.
-     * 
- */ - public void getServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetServerTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new ServerTlsPolicy in a given project and location.
-     * 
- */ - public void createServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateServerTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ServerTlsPolicy.
-     * 
- */ - public void updateServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateServerTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single ServerTlsPolicy.
-     * 
- */ - public void deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteServerTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ClientTlsPolicies in a given project and location.
-     * 
- */ - public void listClientTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListClientTlsPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ClientTlsPolicy.
-     * 
- */ - public void getClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetClientTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new ClientTlsPolicy in a given project and location.
-     * 
- */ - public void createClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateClientTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ClientTlsPolicy.
-     * 
- */ - public void updateClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateClientTlsPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single ClientTlsPolicy.
-     * 
- */ - public void deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteClientTlsPolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListAuthorizationPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse>( - this, METHODID_LIST_AUTHORIZATION_POLICIES))) - .addMethod( - getGetAuthorizationPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy>( - this, METHODID_GET_AUTHORIZATION_POLICY))) - .addMethod( - getCreateAuthorizationPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_AUTHORIZATION_POLICY))) - .addMethod( - getUpdateAuthorizationPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_AUTHORIZATION_POLICY))) - .addMethod( - getDeleteAuthorizationPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_AUTHORIZATION_POLICY))) - .addMethod( - getListServerTlsPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse>( - this, METHODID_LIST_SERVER_TLS_POLICIES))) - .addMethod( - getGetServerTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy>( - this, METHODID_GET_SERVER_TLS_POLICY))) - .addMethod( - getCreateServerTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SERVER_TLS_POLICY))) - .addMethod( - getUpdateServerTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SERVER_TLS_POLICY))) - .addMethod( - getDeleteServerTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SERVER_TLS_POLICY))) - .addMethod( - getListClientTlsPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest, - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse>( - this, METHODID_LIST_CLIENT_TLS_POLICIES))) - .addMethod( - getGetClientTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy>( - this, METHODID_GET_CLIENT_TLS_POLICY))) - .addMethod( - getCreateClientTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CLIENT_TLS_POLICY))) - .addMethod( - getUpdateClientTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CLIENT_TLS_POLICY))) - .addMethod( - getDeleteClientTlsPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CLIENT_TLS_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * Network Security API provides resources to configure authentication and
-   * authorization policies. Refer to per API resource documentation for more
-   * information.
-   * 
- */ - public static final class NetworkSecurityStub - extends io.grpc.stub.AbstractAsyncStub { - private NetworkSecurityStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NetworkSecurityStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists AuthorizationPolicies in a given project and location.
-     * 
- */ - public void listAuthorizationPolicies( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single AuthorizationPolicy.
-     * 
- */ - public void getAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new AuthorizationPolicy in a given project and location.
-     * 
- */ - public void createAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single AuthorizationPolicy.
-     * 
- */ - public void updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single AuthorizationPolicy.
-     * 
- */ - public void deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ServerTlsPolicies in a given project and location.
-     * 
- */ - public void listServerTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ServerTlsPolicy.
-     * 
- */ - public void getServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new ServerTlsPolicy in a given project and location.
-     * 
- */ - public void createServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ServerTlsPolicy.
-     * 
- */ - public void updateServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single ServerTlsPolicy.
-     * 
- */ - public void deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ClientTlsPolicies in a given project and location.
-     * 
- */ - public void listClientTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ClientTlsPolicy.
-     * 
- */ - public void getClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new ClientTlsPolicy in a given project and location.
-     * 
- */ - public void createClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ClientTlsPolicy.
-     * 
- */ - public void updateClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single ClientTlsPolicy.
-     * 
- */ - public void deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Network Security API provides resources to configure authentication and
-   * authorization policies. Refer to per API resource documentation for more
-   * information.
-   * 
- */ - public static final class NetworkSecurityBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private NetworkSecurityBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NetworkSecurityBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists AuthorizationPolicies in a given project and location.
-     * 
- */ - public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - listAuthorizationPolicies( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single AuthorizationPolicy.
-     * 
- */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new AuthorizationPolicy in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single AuthorizationPolicy.
-     * 
- */ - public com.google.longrunning.Operation updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single AuthorizationPolicy.
-     * 
- */ - public com.google.longrunning.Operation deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ServerTlsPolicies in a given project and location.
-     * 
- */ - public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - listServerTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single ServerTlsPolicy.
-     * 
- */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new ServerTlsPolicy in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ServerTlsPolicy.
-     * 
- */ - public com.google.longrunning.Operation updateServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single ServerTlsPolicy.
-     * 
- */ - public com.google.longrunning.Operation deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ClientTlsPolicies in a given project and location.
-     * 
- */ - public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - listClientTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single ClientTlsPolicy.
-     * 
- */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new ClientTlsPolicy in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ClientTlsPolicy.
-     * 
- */ - public com.google.longrunning.Operation updateClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single ClientTlsPolicy.
-     * 
- */ - public com.google.longrunning.Operation deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Network Security API provides resources to configure authentication and
-   * authorization policies. Refer to per API resource documentation for more
-   * information.
-   * 
- */ - public static final class NetworkSecurityFutureStub - extends io.grpc.stub.AbstractFutureStub { - private NetworkSecurityFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NetworkSecurityFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists AuthorizationPolicies in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse> - listAuthorizationPolicies( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single AuthorizationPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy> - getAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new AuthorizationPolicy in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single AuthorizationPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single AuthorizationPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ServerTlsPolicies in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse> - listServerTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single ServerTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy> - getServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new ServerTlsPolicy in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ServerTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single ServerTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ClientTlsPolicies in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse> - listClientTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single ClientTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy> - getClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new ClientTlsPolicy in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ClientTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single ClientTlsPolicy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_AUTHORIZATION_POLICIES = 0; - private static final int METHODID_GET_AUTHORIZATION_POLICY = 1; - private static final int METHODID_CREATE_AUTHORIZATION_POLICY = 2; - private static final int METHODID_UPDATE_AUTHORIZATION_POLICY = 3; - private static final int METHODID_DELETE_AUTHORIZATION_POLICY = 4; - private static final int METHODID_LIST_SERVER_TLS_POLICIES = 5; - private static final int METHODID_GET_SERVER_TLS_POLICY = 6; - private static final int METHODID_CREATE_SERVER_TLS_POLICY = 7; - private static final int METHODID_UPDATE_SERVER_TLS_POLICY = 8; - private static final int METHODID_DELETE_SERVER_TLS_POLICY = 9; - private static final int METHODID_LIST_CLIENT_TLS_POLICIES = 10; - private static final int METHODID_GET_CLIENT_TLS_POLICY = 11; - private static final int METHODID_CREATE_CLIENT_TLS_POLICY = 12; - private static final int METHODID_UPDATE_CLIENT_TLS_POLICY = 13; - private static final int METHODID_DELETE_CLIENT_TLS_POLICY = 14; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final NetworkSecurityImplBase serviceImpl; - private final int methodId; - - MethodHandlers(NetworkSecurityImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_AUTHORIZATION_POLICIES: - serviceImpl.listAuthorizationPolicies( - (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_AUTHORIZATION_POLICY: - serviceImpl.getAuthorizationPolicy( - (com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy>) - responseObserver); - break; - case METHODID_CREATE_AUTHORIZATION_POLICY: - serviceImpl.createAuthorizationPolicy( - (com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_AUTHORIZATION_POLICY: - serviceImpl.updateAuthorizationPolicy( - (com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_AUTHORIZATION_POLICY: - serviceImpl.deleteAuthorizationPolicy( - (com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SERVER_TLS_POLICIES: - serviceImpl.listServerTlsPolicies( - (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_SERVER_TLS_POLICY: - serviceImpl.getServerTlsPolicy( - (com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy>) - responseObserver); - break; - case METHODID_CREATE_SERVER_TLS_POLICY: - serviceImpl.createServerTlsPolicy( - (com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SERVER_TLS_POLICY: - serviceImpl.updateServerTlsPolicy( - (com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVER_TLS_POLICY: - serviceImpl.deleteServerTlsPolicy( - (com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CLIENT_TLS_POLICIES: - serviceImpl.listClientTlsPolicies( - (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_CLIENT_TLS_POLICY: - serviceImpl.getClientTlsPolicy( - (com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy>) - responseObserver); - break; - case METHODID_CREATE_CLIENT_TLS_POLICY: - serviceImpl.createClientTlsPolicy( - (com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLIENT_TLS_POLICY: - serviceImpl.updateClientTlsPolicy( - (com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CLIENT_TLS_POLICY: - serviceImpl.deleteClientTlsPolicy( - (com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class NetworkSecurityBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - NetworkSecurityBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networksecurity.v1beta1.NetworkSecurityOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("NetworkSecurity"); - } - } - - private static final class NetworkSecurityFileDescriptorSupplier - extends NetworkSecurityBaseDescriptorSupplier { - NetworkSecurityFileDescriptorSupplier() {} - } - - private static final class NetworkSecurityMethodDescriptorSupplier - extends NetworkSecurityBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - NetworkSecurityMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (NetworkSecurityGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new NetworkSecurityFileDescriptorSupplier()) - .addMethod(getListAuthorizationPoliciesMethod()) - .addMethod(getGetAuthorizationPolicyMethod()) - .addMethod(getCreateAuthorizationPolicyMethod()) - .addMethod(getUpdateAuthorizationPolicyMethod()) - .addMethod(getDeleteAuthorizationPolicyMethod()) - .addMethod(getListServerTlsPoliciesMethod()) - .addMethod(getGetServerTlsPolicyMethod()) - .addMethod(getCreateServerTlsPolicyMethod()) - .addMethod(getUpdateServerTlsPolicyMethod()) - .addMethod(getDeleteServerTlsPolicyMethod()) - .addMethod(getListClientTlsPoliciesMethod()) - .addMethod(getGetClientTlsPolicyMethod()) - .addMethod(getCreateClientTlsPolicyMethod()) - .addMethod(getUpdateClientTlsPolicyMethod()) - .addMethod(getDeleteClientTlsPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java similarity index 97% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java rename to owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java index 0a1fe58f..f815e56a 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java +++ b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java @@ -64,13 +64,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -2261,16 +2261,12 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListAuthorizationPoliciesPagedResponse extends AbstractPagedListResponse< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, - AuthorizationPolicy, - ListAuthorizationPoliciesPage, - ListAuthorizationPoliciesFixedSizeCollection> { + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy, + ListAuthorizationPoliciesPage, ListAuthorizationPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ApiFuture futureResponse) { @@ -2289,15 +2285,12 @@ private ListAuthorizationPoliciesPagedResponse(ListAuthorizationPoliciesPage pag public static class ListAuthorizationPoliciesPage extends AbstractPage< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, - AuthorizationPolicy, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy, ListAuthorizationPoliciesPage> { private ListAuthorizationPoliciesPage( PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ListAuthorizationPoliciesResponse response) { @@ -2311,8 +2304,7 @@ private static ListAuthorizationPoliciesPage createEmptyPage() { @Override protected ListAuthorizationPoliciesPage createPage( PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ListAuthorizationPoliciesResponse response) { @@ -2322,8 +2314,7 @@ protected ListAuthorizationPoliciesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ApiFuture futureResponse) { @@ -2333,11 +2324,8 @@ public ApiFuture createPageAsync( public static class ListAuthorizationPoliciesFixedSizeCollection extends AbstractFixedSizeCollection< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, - AuthorizationPolicy, - ListAuthorizationPoliciesPage, - ListAuthorizationPoliciesFixedSizeCollection> { + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy, + ListAuthorizationPoliciesPage, ListAuthorizationPoliciesFixedSizeCollection> { private ListAuthorizationPoliciesFixedSizeCollection( List pages, int collectionSize) { @@ -2357,11 +2345,8 @@ protected ListAuthorizationPoliciesFixedSizeCollection createCollection( public static class ListServerTlsPoliciesPagedResponse extends AbstractPagedListResponse< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, - ServerTlsPolicy, - ListServerTlsPoliciesPage, - ListServerTlsPoliciesFixedSizeCollection> { + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, + ListServerTlsPoliciesPage, ListServerTlsPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2382,9 +2367,7 @@ private ListServerTlsPoliciesPagedResponse(ListServerTlsPoliciesPage page) { public static class ListServerTlsPoliciesPage extends AbstractPage< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, - ServerTlsPolicy, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, ListServerTlsPoliciesPage> { private ListServerTlsPoliciesPage( @@ -2417,11 +2400,8 @@ public ApiFuture createPageAsync( public static class ListServerTlsPoliciesFixedSizeCollection extends AbstractFixedSizeCollection< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, - ServerTlsPolicy, - ListServerTlsPoliciesPage, - ListServerTlsPoliciesFixedSizeCollection> { + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, + ListServerTlsPoliciesPage, ListServerTlsPoliciesFixedSizeCollection> { private ListServerTlsPoliciesFixedSizeCollection( List pages, int collectionSize) { @@ -2441,11 +2421,8 @@ protected ListServerTlsPoliciesFixedSizeCollection createCollection( public static class ListClientTlsPoliciesPagedResponse extends AbstractPagedListResponse< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, - ClientTlsPolicy, - ListClientTlsPoliciesPage, - ListClientTlsPoliciesFixedSizeCollection> { + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, + ListClientTlsPoliciesPage, ListClientTlsPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2466,9 +2443,7 @@ private ListClientTlsPoliciesPagedResponse(ListClientTlsPoliciesPage page) { public static class ListClientTlsPoliciesPage extends AbstractPage< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, - ClientTlsPolicy, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, ListClientTlsPoliciesPage> { private ListClientTlsPoliciesPage( @@ -2501,11 +2476,8 @@ public ApiFuture createPageAsync( public static class ListClientTlsPoliciesFixedSizeCollection extends AbstractFixedSizeCollection< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, - ClientTlsPolicy, - ListClientTlsPoliciesPage, - ListClientTlsPoliciesFixedSizeCollection> { + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, + ListClientTlsPoliciesPage, ListClientTlsPoliciesFixedSizeCollection> { private ListClientTlsPoliciesFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java similarity index 96% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java rename to owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java index 5dce47f8..a9b1c9ce 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java +++ b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java @@ -30,6 +30,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networksecurity.v1.stub.NetworkSecurityStubSettings; @@ -46,10 +47,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (networksecurity.googleapis.com) and default port (443) are + *
  • The default service address (networksecurity.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -79,8 +80,7 @@ public class NetworkSecuritySettings extends ClientSettings listAuthorizationPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listAuthorizationPoliciesSettings(); @@ -135,8 +135,7 @@ public class NetworkSecuritySettings extends ClientSettings listServerTlsPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listServerTlsPoliciesSettings(); @@ -189,8 +188,7 @@ public class NetworkSecuritySettings extends ClientSettings listClientTlsPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listClientTlsPoliciesSettings(); @@ -340,8 +338,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listAuthorizationPolicies. */ public PagedCallSettings.Builder< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings() { return getStubSettingsBuilder().listAuthorizationPoliciesSettings(); @@ -393,8 +390,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings.Builder< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings() { return getStubSettingsBuilder().listServerTlsPoliciesSettings(); @@ -446,8 +442,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listClientTlsPolicies. */ public PagedCallSettings.Builder< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings() { return getStubSettingsBuilder().listClientTlsPoliciesSettings(); diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json similarity index 100% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java similarity index 100% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityCallableFactory.java b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityCallableFactory.java similarity index 100% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityCallableFactory.java rename to owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityCallableFactory.java diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java similarity index 99% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java rename to owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java index 87af37d4..af24a3e8 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java +++ b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java @@ -56,6 +56,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java similarity index 100% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java rename to owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java similarity index 96% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java rename to owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java index d9c8897c..4c07d764 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java @@ -86,10 +86,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (networksecurity.googleapis.com) and default port (443) are + *
  • The default service address (networksecurity.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -121,8 +121,7 @@ public class NetworkSecurityStubSettings extends StubSettingsbuilder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final PagedCallSettings< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings; private final UnaryCallSettings @@ -142,8 +141,7 @@ public class NetworkSecurityStubSettings extends StubSettings deleteAuthorizationPolicyOperationSettings; private final PagedCallSettings< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings; private final UnaryCallSettings @@ -163,8 +161,7 @@ public class NetworkSecurityStubSettings extends StubSettings deleteServerTlsPolicyOperationSettings; private final PagedCallSettings< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings; private final UnaryCallSettings @@ -188,8 +185,7 @@ public class NetworkSecurityStubSettings extends StubSettings LIST_AUTHORIZATION_POLICIES_PAGE_STR_DESC = new PagedListDescriptor< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy>() { @Override public String emptyToken() { @@ -314,13 +310,11 @@ public Iterable extractResources( }; private static final PagedListResponseFactory< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> LIST_AUTHORIZATION_POLICIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -330,8 +324,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> pageContext = PageContext.create( @@ -342,13 +335,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> LIST_SERVER_TLS_POLICIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -366,13 +357,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> LIST_CLIENT_TLS_POLICIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -391,8 +380,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listAuthorizationPolicies. */ public PagedCallSettings< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings() { return listAuthorizationPoliciesSettings; @@ -444,8 +432,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings() { return listServerTlsPoliciesSettings; @@ -495,8 +482,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listClientTlsPolicies. */ public PagedCallSettings< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings() { return listClientTlsPoliciesSettings; @@ -658,8 +644,7 @@ protected NetworkSecurityStubSettings(Builder settingsBuilder) throws IOExceptio public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings; private final UnaryCallSettings.Builder @@ -680,8 +665,7 @@ public static class Builder extends StubSettings.Builder deleteAuthorizationPolicyOperationSettings; private final PagedCallSettings.Builder< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings; private final UnaryCallSettings.Builder @@ -702,8 +686,7 @@ public static class Builder extends StubSettings.Builder deleteServerTlsPolicyOperationSettings; private final PagedCallSettings.Builder< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings; private final UnaryCallSettings.Builder @@ -1189,8 +1172,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listAuthorizationPolicies. */ public PagedCallSettings.Builder< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings() { return listAuthorizationPoliciesSettings; @@ -1248,8 +1230,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings.Builder< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings() { return listServerTlsPoliciesSettings; @@ -1307,8 +1288,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listClientTlsPolicies. */ public PagedCallSettings.Builder< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings() { return listClientTlsPoliciesSettings; diff --git a/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurity.java b/owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurity.java similarity index 100% rename from google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurity.java rename to owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurity.java diff --git a/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java b/owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java similarity index 100% rename from google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java rename to owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java diff --git a/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java b/owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java similarity index 100% rename from google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java rename to owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java new file mode 100644 index 00000000..376371f1 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java @@ -0,0 +1,1517 @@ +package com.google.cloud.networksecurity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Network Security API provides resources to configure authentication and
+ * authorization policies. Refer to per API resource documentation for more
+ * information.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networksecurity/v1/network_security.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NetworkSecurityGrpc { + + private NetworkSecurityGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networksecurity.v1.NetworkSecurity"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListAuthorizationPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAuthorizationPolicies", + requestType = com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAuthorizationPoliciesMethod() { + io.grpc.MethodDescriptor getListAuthorizationPoliciesMethod; + if ((getListAuthorizationPoliciesMethod = NetworkSecurityGrpc.getListAuthorizationPoliciesMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getListAuthorizationPoliciesMethod = NetworkSecurityGrpc.getListAuthorizationPoliciesMethod) == null) { + NetworkSecurityGrpc.getListAuthorizationPoliciesMethod = getListAuthorizationPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAuthorizationPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("ListAuthorizationPolicies")) + .build(); + } + } + } + return getListAuthorizationPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAuthorizationPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAuthorizationPolicy", + requestType = com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.class, + responseType = com.google.cloud.networksecurity.v1.AuthorizationPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAuthorizationPolicyMethod() { + io.grpc.MethodDescriptor getGetAuthorizationPolicyMethod; + if ((getGetAuthorizationPolicyMethod = NetworkSecurityGrpc.getGetAuthorizationPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getGetAuthorizationPolicyMethod = NetworkSecurityGrpc.getGetAuthorizationPolicyMethod) == null) { + NetworkSecurityGrpc.getGetAuthorizationPolicyMethod = getGetAuthorizationPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthorizationPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("GetAuthorizationPolicy")) + .build(); + } + } + } + return getGetAuthorizationPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateAuthorizationPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAuthorizationPolicy", + requestType = com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateAuthorizationPolicyMethod() { + io.grpc.MethodDescriptor getCreateAuthorizationPolicyMethod; + if ((getCreateAuthorizationPolicyMethod = NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getCreateAuthorizationPolicyMethod = NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod) == null) { + NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod = getCreateAuthorizationPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAuthorizationPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("CreateAuthorizationPolicy")) + .build(); + } + } + } + return getCreateAuthorizationPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateAuthorizationPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAuthorizationPolicy", + requestType = com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateAuthorizationPolicyMethod() { + io.grpc.MethodDescriptor getUpdateAuthorizationPolicyMethod; + if ((getUpdateAuthorizationPolicyMethod = NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getUpdateAuthorizationPolicyMethod = NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod) == null) { + NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod = getUpdateAuthorizationPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAuthorizationPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("UpdateAuthorizationPolicy")) + .build(); + } + } + } + return getUpdateAuthorizationPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteAuthorizationPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAuthorizationPolicy", + requestType = com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteAuthorizationPolicyMethod() { + io.grpc.MethodDescriptor getDeleteAuthorizationPolicyMethod; + if ((getDeleteAuthorizationPolicyMethod = NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getDeleteAuthorizationPolicyMethod = NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod) == null) { + NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod = getDeleteAuthorizationPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAuthorizationPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("DeleteAuthorizationPolicy")) + .build(); + } + } + } + return getDeleteAuthorizationPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListServerTlsPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServerTlsPolicies", + requestType = com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListServerTlsPoliciesMethod() { + io.grpc.MethodDescriptor getListServerTlsPoliciesMethod; + if ((getListServerTlsPoliciesMethod = NetworkSecurityGrpc.getListServerTlsPoliciesMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getListServerTlsPoliciesMethod = NetworkSecurityGrpc.getListServerTlsPoliciesMethod) == null) { + NetworkSecurityGrpc.getListServerTlsPoliciesMethod = getListServerTlsPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServerTlsPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("ListServerTlsPolicies")) + .build(); + } + } + } + return getListServerTlsPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetServerTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServerTlsPolicy", + requestType = com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.class, + responseType = com.google.cloud.networksecurity.v1.ServerTlsPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetServerTlsPolicyMethod() { + io.grpc.MethodDescriptor getGetServerTlsPolicyMethod; + if ((getGetServerTlsPolicyMethod = NetworkSecurityGrpc.getGetServerTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getGetServerTlsPolicyMethod = NetworkSecurityGrpc.getGetServerTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getGetServerTlsPolicyMethod = getGetServerTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("GetServerTlsPolicy")) + .build(); + } + } + } + return getGetServerTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateServerTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateServerTlsPolicy", + requestType = com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateServerTlsPolicyMethod() { + io.grpc.MethodDescriptor getCreateServerTlsPolicyMethod; + if ((getCreateServerTlsPolicyMethod = NetworkSecurityGrpc.getCreateServerTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getCreateServerTlsPolicyMethod = NetworkSecurityGrpc.getCreateServerTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getCreateServerTlsPolicyMethod = getCreateServerTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateServerTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("CreateServerTlsPolicy")) + .build(); + } + } + } + return getCreateServerTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateServerTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateServerTlsPolicy", + requestType = com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateServerTlsPolicyMethod() { + io.grpc.MethodDescriptor getUpdateServerTlsPolicyMethod; + if ((getUpdateServerTlsPolicyMethod = NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getUpdateServerTlsPolicyMethod = NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod = getUpdateServerTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateServerTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("UpdateServerTlsPolicy")) + .build(); + } + } + } + return getUpdateServerTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteServerTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteServerTlsPolicy", + requestType = com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteServerTlsPolicyMethod() { + io.grpc.MethodDescriptor getDeleteServerTlsPolicyMethod; + if ((getDeleteServerTlsPolicyMethod = NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getDeleteServerTlsPolicyMethod = NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod = getDeleteServerTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteServerTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("DeleteServerTlsPolicy")) + .build(); + } + } + } + return getDeleteServerTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListClientTlsPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListClientTlsPolicies", + requestType = com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListClientTlsPoliciesMethod() { + io.grpc.MethodDescriptor getListClientTlsPoliciesMethod; + if ((getListClientTlsPoliciesMethod = NetworkSecurityGrpc.getListClientTlsPoliciesMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getListClientTlsPoliciesMethod = NetworkSecurityGrpc.getListClientTlsPoliciesMethod) == null) { + NetworkSecurityGrpc.getListClientTlsPoliciesMethod = getListClientTlsPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClientTlsPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("ListClientTlsPolicies")) + .build(); + } + } + } + return getListClientTlsPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetClientTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetClientTlsPolicy", + requestType = com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.class, + responseType = com.google.cloud.networksecurity.v1.ClientTlsPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetClientTlsPolicyMethod() { + io.grpc.MethodDescriptor getGetClientTlsPolicyMethod; + if ((getGetClientTlsPolicyMethod = NetworkSecurityGrpc.getGetClientTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getGetClientTlsPolicyMethod = NetworkSecurityGrpc.getGetClientTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getGetClientTlsPolicyMethod = getGetClientTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClientTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("GetClientTlsPolicy")) + .build(); + } + } + } + return getGetClientTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateClientTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateClientTlsPolicy", + requestType = com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateClientTlsPolicyMethod() { + io.grpc.MethodDescriptor getCreateClientTlsPolicyMethod; + if ((getCreateClientTlsPolicyMethod = NetworkSecurityGrpc.getCreateClientTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getCreateClientTlsPolicyMethod = NetworkSecurityGrpc.getCreateClientTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getCreateClientTlsPolicyMethod = getCreateClientTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateClientTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("CreateClientTlsPolicy")) + .build(); + } + } + } + return getCreateClientTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateClientTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateClientTlsPolicy", + requestType = com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateClientTlsPolicyMethod() { + io.grpc.MethodDescriptor getUpdateClientTlsPolicyMethod; + if ((getUpdateClientTlsPolicyMethod = NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getUpdateClientTlsPolicyMethod = NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod = getUpdateClientTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateClientTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("UpdateClientTlsPolicy")) + .build(); + } + } + } + return getUpdateClientTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteClientTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteClientTlsPolicy", + requestType = com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteClientTlsPolicyMethod() { + io.grpc.MethodDescriptor getDeleteClientTlsPolicyMethod; + if ((getDeleteClientTlsPolicyMethod = NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getDeleteClientTlsPolicyMethod = NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod = getDeleteClientTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteClientTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("DeleteClientTlsPolicy")) + .build(); + } + } + } + return getDeleteClientTlsPolicyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static NetworkSecurityStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NetworkSecurityStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityStub(channel, callOptions); + } + }; + return NetworkSecurityStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static NetworkSecurityBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NetworkSecurityBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityBlockingStub(channel, callOptions); + } + }; + return NetworkSecurityBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static NetworkSecurityFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NetworkSecurityFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityFutureStub(channel, callOptions); + } + }; + return NetworkSecurityFutureStub.newStub(factory, channel); + } + + /** + *
+   * Network Security API provides resources to configure authentication and
+   * authorization policies. Refer to per API resource documentation for more
+   * information.
+   * 
+ */ + public static abstract class NetworkSecurityImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists AuthorizationPolicies in a given project and location.
+     * 
+ */ + public void listAuthorizationPolicies(com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAuthorizationPoliciesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single AuthorizationPolicy.
+     * 
+ */ + public void getAuthorizationPolicy(com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAuthorizationPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates a new AuthorizationPolicy in a given project and location.
+     * 
+ */ + public void createAuthorizationPolicy(com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAuthorizationPolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single AuthorizationPolicy.
+     * 
+ */ + public void updateAuthorizationPolicy(com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAuthorizationPolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes a single AuthorizationPolicy.
+     * 
+ */ + public void deleteAuthorizationPolicy(com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAuthorizationPolicyMethod(), responseObserver); + } + + /** + *
+     * Lists ServerTlsPolicies in a given project and location.
+     * 
+ */ + public void listServerTlsPolicies(com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServerTlsPoliciesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single ServerTlsPolicy.
+     * 
+ */ + public void getServerTlsPolicy(com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServerTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates a new ServerTlsPolicy in a given project and location.
+     * 
+ */ + public void createServerTlsPolicy(com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServerTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single ServerTlsPolicy.
+     * 
+ */ + public void updateServerTlsPolicy(com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServerTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes a single ServerTlsPolicy.
+     * 
+ */ + public void deleteServerTlsPolicy(com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServerTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Lists ClientTlsPolicies in a given project and location.
+     * 
+ */ + public void listClientTlsPolicies(com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClientTlsPoliciesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single ClientTlsPolicy.
+     * 
+ */ + public void getClientTlsPolicy(com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClientTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates a new ClientTlsPolicy in a given project and location.
+     * 
+ */ + public void createClientTlsPolicy(com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClientTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single ClientTlsPolicy.
+     * 
+ */ + public void updateClientTlsPolicy(com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateClientTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes a single ClientTlsPolicy.
+     * 
+ */ + public void deleteClientTlsPolicy(com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteClientTlsPolicyMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAuthorizationPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest, + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse>( + this, METHODID_LIST_AUTHORIZATION_POLICIES))) + .addMethod( + getGetAuthorizationPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest, + com.google.cloud.networksecurity.v1.AuthorizationPolicy>( + this, METHODID_GET_AUTHORIZATION_POLICY))) + .addMethod( + getCreateAuthorizationPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_AUTHORIZATION_POLICY))) + .addMethod( + getUpdateAuthorizationPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_AUTHORIZATION_POLICY))) + .addMethod( + getDeleteAuthorizationPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_AUTHORIZATION_POLICY))) + .addMethod( + getListServerTlsPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest, + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse>( + this, METHODID_LIST_SERVER_TLS_POLICIES))) + .addMethod( + getGetServerTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest, + com.google.cloud.networksecurity.v1.ServerTlsPolicy>( + this, METHODID_GET_SERVER_TLS_POLICY))) + .addMethod( + getCreateServerTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SERVER_TLS_POLICY))) + .addMethod( + getUpdateServerTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SERVER_TLS_POLICY))) + .addMethod( + getDeleteServerTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SERVER_TLS_POLICY))) + .addMethod( + getListClientTlsPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest, + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse>( + this, METHODID_LIST_CLIENT_TLS_POLICIES))) + .addMethod( + getGetClientTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest, + com.google.cloud.networksecurity.v1.ClientTlsPolicy>( + this, METHODID_GET_CLIENT_TLS_POLICY))) + .addMethod( + getCreateClientTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CLIENT_TLS_POLICY))) + .addMethod( + getUpdateClientTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CLIENT_TLS_POLICY))) + .addMethod( + getDeleteClientTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CLIENT_TLS_POLICY))) + .build(); + } + } + + /** + *
+   * Network Security API provides resources to configure authentication and
+   * authorization policies. Refer to per API resource documentation for more
+   * information.
+   * 
+ */ + public static final class NetworkSecurityStub extends io.grpc.stub.AbstractAsyncStub { + private NetworkSecurityStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityStub(channel, callOptions); + } + + /** + *
+     * Lists AuthorizationPolicies in a given project and location.
+     * 
+ */ + public void listAuthorizationPolicies(com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single AuthorizationPolicy.
+     * 
+ */ + public void getAuthorizationPolicy(com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new AuthorizationPolicy in a given project and location.
+     * 
+ */ + public void createAuthorizationPolicy(com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single AuthorizationPolicy.
+     * 
+ */ + public void updateAuthorizationPolicy(com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single AuthorizationPolicy.
+     * 
+ */ + public void deleteAuthorizationPolicy(com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ServerTlsPolicies in a given project and location.
+     * 
+ */ + public void listServerTlsPolicies(com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single ServerTlsPolicy.
+     * 
+ */ + public void getServerTlsPolicy(com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new ServerTlsPolicy in a given project and location.
+     * 
+ */ + public void createServerTlsPolicy(com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single ServerTlsPolicy.
+     * 
+ */ + public void updateServerTlsPolicy(com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single ServerTlsPolicy.
+     * 
+ */ + public void deleteServerTlsPolicy(com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ClientTlsPolicies in a given project and location.
+     * 
+ */ + public void listClientTlsPolicies(com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single ClientTlsPolicy.
+     * 
+ */ + public void getClientTlsPolicy(com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new ClientTlsPolicy in a given project and location.
+     * 
+ */ + public void createClientTlsPolicy(com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single ClientTlsPolicy.
+     * 
+ */ + public void updateClientTlsPolicy(com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single ClientTlsPolicy.
+     * 
+ */ + public void deleteClientTlsPolicy(com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Network Security API provides resources to configure authentication and
+   * authorization policies. Refer to per API resource documentation for more
+   * information.
+   * 
+ */ + public static final class NetworkSecurityBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private NetworkSecurityBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists AuthorizationPolicies in a given project and location.
+     * 
+ */ + public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse listAuthorizationPolicies(com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single AuthorizationPolicy.
+     * 
+ */ + public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy(com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new AuthorizationPolicy in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createAuthorizationPolicy(com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single AuthorizationPolicy.
+     * 
+ */ + public com.google.longrunning.Operation updateAuthorizationPolicy(com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single AuthorizationPolicy.
+     * 
+ */ + public com.google.longrunning.Operation deleteAuthorizationPolicy(com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ServerTlsPolicies in a given project and location.
+     * 
+ */ + public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse listServerTlsPolicies(com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single ServerTlsPolicy.
+     * 
+ */ + public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy(com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new ServerTlsPolicy in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createServerTlsPolicy(com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single ServerTlsPolicy.
+     * 
+ */ + public com.google.longrunning.Operation updateServerTlsPolicy(com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single ServerTlsPolicy.
+     * 
+ */ + public com.google.longrunning.Operation deleteServerTlsPolicy(com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ClientTlsPolicies in a given project and location.
+     * 
+ */ + public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse listClientTlsPolicies(com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single ClientTlsPolicy.
+     * 
+ */ + public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy(com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new ClientTlsPolicy in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createClientTlsPolicy(com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single ClientTlsPolicy.
+     * 
+ */ + public com.google.longrunning.Operation updateClientTlsPolicy(com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single ClientTlsPolicy.
+     * 
+ */ + public com.google.longrunning.Operation deleteClientTlsPolicy(com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Network Security API provides resources to configure authentication and
+   * authorization policies. Refer to per API resource documentation for more
+   * information.
+   * 
+ */ + public static final class NetworkSecurityFutureStub extends io.grpc.stub.AbstractFutureStub { + private NetworkSecurityFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityFutureStub(channel, callOptions); + } + + /** + *
+     * Lists AuthorizationPolicies in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAuthorizationPolicies( + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single AuthorizationPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAuthorizationPolicy( + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new AuthorizationPolicy in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createAuthorizationPolicy( + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single AuthorizationPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateAuthorizationPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single AuthorizationPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteAuthorizationPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ServerTlsPolicies in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listServerTlsPolicies( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single ServerTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getServerTlsPolicy( + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new ServerTlsPolicy in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createServerTlsPolicy( + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single ServerTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateServerTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single ServerTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteServerTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ClientTlsPolicies in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listClientTlsPolicies( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single ClientTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getClientTlsPolicy( + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new ClientTlsPolicy in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createClientTlsPolicy( + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single ClientTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateClientTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single ClientTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteClientTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_AUTHORIZATION_POLICIES = 0; + private static final int METHODID_GET_AUTHORIZATION_POLICY = 1; + private static final int METHODID_CREATE_AUTHORIZATION_POLICY = 2; + private static final int METHODID_UPDATE_AUTHORIZATION_POLICY = 3; + private static final int METHODID_DELETE_AUTHORIZATION_POLICY = 4; + private static final int METHODID_LIST_SERVER_TLS_POLICIES = 5; + private static final int METHODID_GET_SERVER_TLS_POLICY = 6; + private static final int METHODID_CREATE_SERVER_TLS_POLICY = 7; + private static final int METHODID_UPDATE_SERVER_TLS_POLICY = 8; + private static final int METHODID_DELETE_SERVER_TLS_POLICY = 9; + private static final int METHODID_LIST_CLIENT_TLS_POLICIES = 10; + private static final int METHODID_GET_CLIENT_TLS_POLICY = 11; + private static final int METHODID_CREATE_CLIENT_TLS_POLICY = 12; + private static final int METHODID_UPDATE_CLIENT_TLS_POLICY = 13; + private static final int METHODID_DELETE_CLIENT_TLS_POLICY = 14; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final NetworkSecurityImplBase serviceImpl; + private final int methodId; + + MethodHandlers(NetworkSecurityImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_AUTHORIZATION_POLICIES: + serviceImpl.listAuthorizationPolicies((com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_AUTHORIZATION_POLICY: + serviceImpl.getAuthorizationPolicy((com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_AUTHORIZATION_POLICY: + serviceImpl.createAuthorizationPolicy((com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AUTHORIZATION_POLICY: + serviceImpl.updateAuthorizationPolicy((com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AUTHORIZATION_POLICY: + serviceImpl.deleteAuthorizationPolicy((com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SERVER_TLS_POLICIES: + serviceImpl.listServerTlsPolicies((com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVER_TLS_POLICY: + serviceImpl.getServerTlsPolicy((com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SERVER_TLS_POLICY: + serviceImpl.createServerTlsPolicy((com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SERVER_TLS_POLICY: + serviceImpl.updateServerTlsPolicy((com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SERVER_TLS_POLICY: + serviceImpl.deleteServerTlsPolicy((com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CLIENT_TLS_POLICIES: + serviceImpl.listClientTlsPolicies((com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CLIENT_TLS_POLICY: + serviceImpl.getClientTlsPolicy((com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CLIENT_TLS_POLICY: + serviceImpl.createClientTlsPolicy((com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CLIENT_TLS_POLICY: + serviceImpl.updateClientTlsPolicy((com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CLIENT_TLS_POLICY: + serviceImpl.deleteClientTlsPolicy((com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class NetworkSecurityBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + NetworkSecurityBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1.NetworkSecurityOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("NetworkSecurity"); + } + } + + private static final class NetworkSecurityFileDescriptorSupplier + extends NetworkSecurityBaseDescriptorSupplier { + NetworkSecurityFileDescriptorSupplier() {} + } + + private static final class NetworkSecurityMethodDescriptorSupplier + extends NetworkSecurityBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + NetworkSecurityMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (NetworkSecurityGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NetworkSecurityFileDescriptorSupplier()) + .addMethod(getListAuthorizationPoliciesMethod()) + .addMethod(getGetAuthorizationPolicyMethod()) + .addMethod(getCreateAuthorizationPolicyMethod()) + .addMethod(getUpdateAuthorizationPolicyMethod()) + .addMethod(getDeleteAuthorizationPolicyMethod()) + .addMethod(getListServerTlsPoliciesMethod()) + .addMethod(getGetServerTlsPolicyMethod()) + .addMethod(getCreateServerTlsPolicyMethod()) + .addMethod(getUpdateServerTlsPolicyMethod()) + .addMethod(getDeleteServerTlsPolicyMethod()) + .addMethod(getListClientTlsPoliciesMethod()) + .addMethod(getGetClientTlsPolicyMethod()) + .addMethod(getCreateClientTlsPolicyMethod()) + .addMethod(getUpdateClientTlsPolicyMethod()) + .addMethod(getDeleteClientTlsPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java similarity index 70% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java index 0f4d9c5d..c8e35164 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * AuthorizationPolicy is a resource that specifies how a server
  * should authorize incoming connections. This resource in itself does
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy}
  */
-public final class AuthorizationPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AuthorizationPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthorizationPolicy)
     AuthorizationPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AuthorizationPolicy.newBuilder() to construct.
   private AuthorizationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AuthorizationPolicy() {
     name_ = "";
     description_ = "";
@@ -49,15 +31,16 @@ private AuthorizationPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AuthorizationPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AuthorizationPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,91 +60,79 @@ private AuthorizationPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 48:
-            {
-              int rawValue = input.readEnum();
 
-              action_ = rawValue;
-              break;
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                rules_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule>();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              rules_.add(
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.parser(),
-                      extensionRegistry));
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
+
+            action_ = rawValue;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              rules_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            rules_.add(
+                input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -169,7 +140,8 @@ private AuthorizationPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -178,46 +150,41 @@ private AuthorizationPolicy(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto
-        .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto
-        .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1.AuthorizationPolicy.class,
-            com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder.class);
+            com.google.cloud.networksecurity.v1.AuthorizationPolicy.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Possible values that define what action to take.
    * 
* * Protobuf enum {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Action} */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -226,8 +193,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Grant access.
      * 
@@ -236,8 +201,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW(1), /** - * - * *
      * Deny access.
      * Deny rules should be avoided unless they are used to provide a default
@@ -251,8 +214,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -261,8 +222,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Grant access.
      * 
@@ -271,8 +230,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_VALUE = 1; /** - * - * *
      * Deny access.
      * Deny rules should be avoided unless they are used to provide a default
@@ -283,6 +240,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DENY_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -307,51 +265,49 @@ public static Action valueOf(int 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;
+        case 0: return ACTION_UNSPECIFIED;
+        case 1: return ALLOW;
+        case 2: return DENY;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Action> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Action findValueByNumber(int number) {
+              return Action.forNumber(number);
+            }
+          };
 
-    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() {
+    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() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Action[] VALUES = values();
 
-    public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    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.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -368,14 +324,11 @@ private Action(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Action)
   }
 
-  public interface RuleOrBuilder
-      extends
+  public interface RuleOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -383,15 +336,11 @@ public interface RuleOrBuilder
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getSourcesList(); /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -399,14 +348,10 @@ public interface RuleOrBuilder
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSources(int index); /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -414,14 +359,10 @@ public interface RuleOrBuilder
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ int getSourcesCount(); /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -429,16 +370,11 @@ public interface RuleOrBuilder
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> + java.util.List getSourcesOrBuilderList(); /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -446,16 +382,12 @@ public interface RuleOrBuilder
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder - getSourcesOrBuilder(int index); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder( + int index); /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -464,15 +396,11 @@ public interface RuleOrBuilder
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getDestinationsList(); /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -481,15 +409,10 @@ public interface RuleOrBuilder
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDestinations( - int index); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDestinations(int index); /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -498,14 +421,10 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDest
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getDestinationsCount(); /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -514,17 +433,11 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDest
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> + java.util.List getDestinationsOrBuilderList(); /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -533,32 +446,27 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDest
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder - getDestinationsOrBuilder(int index); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder( + int index); } /** - * - * *
    * Specification of rules.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Rule} */ - public static final class Rule extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Rule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) RuleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Rule.newBuilder() to construct. private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Rule() { sources_ = java.util.Collections.emptyList(); destinations_ = java.util.Collections.emptyList(); @@ -566,15 +474,16 @@ private Rule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Rule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Rule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -594,44 +503,31 @@ private Rule( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source>(); - mutable_bitField0_ |= 0x00000001; - } - sources_.add( - input.readMessage( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - destinations_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule - .Destination>(); - mutable_bitField0_ |= 0x00000002; - } - destinations_.add( - input.readMessage( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .parser(), - extensionRegistry)); - break; + sources_.add( + input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + destinations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinations_.add( + input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,7 +535,8 @@ private Rule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -651,30 +548,24 @@ private Rule( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.class, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder.class); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder.class); } - public interface SourceOrBuilder - extends + public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. List of peer identities to match for authorization. At least one
        * principal should match. Each peer can be an exact match, or a prefix
@@ -685,13 +576,11 @@ public interface SourceOrBuilder
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the principals. */ - java.util.List getPrincipalsList(); + java.util.List + getPrincipalsList(); /** - * - * *
        * Optional. List of peer identities to match for authorization. At least one
        * principal should match. Each peer can be an exact match, or a prefix
@@ -702,13 +591,10 @@ public interface SourceOrBuilder
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of principals. */ int getPrincipalsCount(); /** - * - * *
        * Optional. List of peer identities to match for authorization. At least one
        * principal should match. Each peer can be an exact match, or a prefix
@@ -719,14 +605,11 @@ public interface SourceOrBuilder
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The principals at the given index. */ java.lang.String getPrincipals(int index); /** - * - * *
        * Optional. List of peer identities to match for authorization. At least one
        * principal should match. Each peer can be an exact match, or a prefix
@@ -737,15 +620,13 @@ public interface SourceOrBuilder
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the principals at the given index. */ - com.google.protobuf.ByteString getPrincipalsBytes(int index); + com.google.protobuf.ByteString + getPrincipalsBytes(int index); /** - * - * *
        * Optional. List of CIDR ranges to match based on source IP address. At least one
        * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -755,13 +636,11 @@ public interface SourceOrBuilder
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the ipBlocks. */ - java.util.List getIpBlocksList(); + java.util.List + getIpBlocksList(); /** - * - * *
        * Optional. List of CIDR ranges to match based on source IP address. At least one
        * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -771,13 +650,10 @@ public interface SourceOrBuilder
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of ipBlocks. */ int getIpBlocksCount(); /** - * - * *
        * Optional. List of CIDR ranges to match based on source IP address. At least one
        * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -787,14 +663,11 @@ public interface SourceOrBuilder
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The ipBlocks at the given index. */ java.lang.String getIpBlocks(int index); /** - * - * *
        * Optional. List of CIDR ranges to match based on source IP address. At least one
        * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -804,31 +677,28 @@ public interface SourceOrBuilder
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the ipBlocks at the given index. */ - com.google.protobuf.ByteString getIpBlocksBytes(int index); + com.google.protobuf.ByteString + getIpBlocksBytes(int index); } /** - * - * *
      * Specification of traffic source attributes.
      * 
* * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source} */ - public static final class Source extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Source extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) SourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Source() { principals_ = com.google.protobuf.LazyStringArrayList.EMPTY; ipBlocks_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -836,15 +706,16 @@ private Source() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Source(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -864,33 +735,31 @@ private Source( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - principals_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - principals_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + principals_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - ipBlocks_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - ipBlocks_.add(s); - break; + principals_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + ipBlocks_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ipBlocks_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -898,8 +767,8 @@ private Source( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { principals_ = principals_.getUnmodifiableView(); @@ -911,27 +780,22 @@ private Source( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.class, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder.class); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder.class); } public static final int PRINCIPALS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList principals_; /** - * - * *
        * Optional. List of peer identities to match for authorization. At least one
        * principal should match. Each peer can be an exact match, or a prefix
@@ -942,15 +806,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the principals. */ - public com.google.protobuf.ProtocolStringList getPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getPrincipalsList() { return principals_; } /** - * - * *
        * Optional. List of peer identities to match for authorization. At least one
        * principal should match. Each peer can be an exact match, or a prefix
@@ -961,15 +823,12 @@ public com.google.protobuf.ProtocolStringList getPrincipalsList() {
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of principals. */ public int getPrincipalsCount() { return principals_.size(); } /** - * - * *
        * Optional. List of peer identities to match for authorization. At least one
        * principal should match. Each peer can be an exact match, or a prefix
@@ -980,7 +839,6 @@ public int getPrincipalsCount() {
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The principals at the given index. */ @@ -988,8 +846,6 @@ public java.lang.String getPrincipals(int index) { return principals_.get(index); } /** - * - * *
        * Optional. List of peer identities to match for authorization. At least one
        * principal should match. Each peer can be an exact match, or a prefix
@@ -1000,19 +856,17 @@ public java.lang.String getPrincipals(int index) {
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the principals at the given index. */ - public com.google.protobuf.ByteString getPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getPrincipalsBytes(int index) { return principals_.getByteString(index); } public static final int IP_BLOCKS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ipBlocks_; /** - * - * *
        * Optional. List of CIDR ranges to match based on source IP address. At least one
        * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1022,15 +876,13 @@ public com.google.protobuf.ByteString getPrincipalsBytes(int index) {
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the ipBlocks. */ - public com.google.protobuf.ProtocolStringList getIpBlocksList() { + public com.google.protobuf.ProtocolStringList + getIpBlocksList() { return ipBlocks_; } /** - * - * *
        * Optional. List of CIDR ranges to match based on source IP address. At least one
        * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1040,15 +892,12 @@ public com.google.protobuf.ProtocolStringList getIpBlocksList() {
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of ipBlocks. */ public int getIpBlocksCount() { return ipBlocks_.size(); } /** - * - * *
        * Optional. List of CIDR ranges to match based on source IP address. At least one
        * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1058,7 +907,6 @@ public int getIpBlocksCount() {
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The ipBlocks at the given index. */ @@ -1066,8 +914,6 @@ public java.lang.String getIpBlocks(int index) { return ipBlocks_.get(index); } /** - * - * *
        * Optional. List of CIDR ranges to match based on source IP address. At least one
        * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1077,16 +923,15 @@ public java.lang.String getIpBlocks(int index) {
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the ipBlocks at the given index. */ - public com.google.protobuf.ByteString getIpBlocksBytes(int index) { + public com.google.protobuf.ByteString + getIpBlocksBytes(int index) { return ipBlocks_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1098,7 +943,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < principals_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principals_.getRaw(i)); } @@ -1138,16 +984,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source other = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) obj; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source other = (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) obj; - if (!getPrincipalsList().equals(other.getPrincipalsList())) return false; - if (!getIpBlocksList().equals(other.getIpBlocksList())) return false; + if (!getPrincipalsList() + .equals(other.getPrincipalsList())) return false; + if (!getIpBlocksList() + .equals(other.getIpBlocksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1173,96 +1020,87 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source 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.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - 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.networksecurity.v1.AuthorizationPolicy.Rule.Source 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.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1272,50 +1110,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Specification of traffic source attributes.
        * 
* * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.class, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder - .class); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1327,22 +1159,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source build() { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source result = - buildPartial(); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1351,8 +1180,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source build @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source buildPartial() { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source result = - new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source(this); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source result = new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { principals_ = principals_.getUnmodifiableView(); @@ -1372,54 +1200,46 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.AuthorizationPolicy.Rule.Source) { - return mergeFrom( - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) other); + if (other instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) { + return mergeFrom((com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source other) { - if (other - == com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source other) { + if (other == com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.getDefaultInstance()) return this; if (!other.principals_.isEmpty()) { if (principals_.isEmpty()) { principals_ = other.principals_; @@ -1459,9 +1279,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1470,21 +1288,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList principals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList principals_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePrincipalsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { principals_ = new com.google.protobuf.LazyStringArrayList(principals_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1495,15 +1308,13 @@ private void ensurePrincipalsIsMutable() {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the principals. */ - public com.google.protobuf.ProtocolStringList getPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getPrincipalsList() { return principals_.getUnmodifiableView(); } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1514,15 +1325,12 @@ public com.google.protobuf.ProtocolStringList getPrincipalsList() {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of principals. */ public int getPrincipalsCount() { return principals_.size(); } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1533,7 +1341,6 @@ public int getPrincipalsCount() {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The principals at the given index. */ @@ -1541,8 +1348,6 @@ public java.lang.String getPrincipals(int index) { return principals_.get(index); } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1553,16 +1358,14 @@ public java.lang.String getPrincipals(int index) {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the principals at the given index. */ - public com.google.protobuf.ByteString getPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getPrincipalsBytes(int index) { return principals_.getByteString(index); } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1573,23 +1376,21 @@ public com.google.protobuf.ByteString getPrincipalsBytes(int index) {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The principals to set. * @return This builder for chaining. */ - public Builder setPrincipals(int index, java.lang.String value) { + public Builder setPrincipals( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrincipalsIsMutable(); + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); principals_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1600,22 +1401,20 @@ public Builder setPrincipals(int index, java.lang.String value) {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The principals to add. * @return This builder for chaining. */ - public Builder addPrincipals(java.lang.String value) { + public Builder addPrincipals( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrincipalsIsMutable(); + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); principals_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1626,19 +1425,18 @@ public Builder addPrincipals(java.lang.String value) {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The principals to add. * @return This builder for chaining. */ - public Builder addAllPrincipals(java.lang.Iterable values) { + public Builder addAllPrincipals( + java.lang.Iterable values) { ensurePrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, principals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, principals_); onChanged(); return this; } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1649,7 +1447,6 @@ public Builder addAllPrincipals(java.lang.Iterable values) {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrincipals() { @@ -1659,8 +1456,6 @@ public Builder clearPrincipals() { return this; } /** - * - * *
          * Optional. List of peer identities to match for authorization. At least one
          * principal should match. Each peer can be an exact match, or a prefix
@@ -1671,33 +1466,29 @@ public Builder clearPrincipals() {
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the principals to add. * @return This builder for chaining. */ - public Builder addPrincipalsBytes(com.google.protobuf.ByteString value) { + public Builder addPrincipalsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePrincipalsIsMutable(); principals_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList ipBlocks_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipBlocks_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpBlocksIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ipBlocks_ = new com.google.protobuf.LazyStringArrayList(ipBlocks_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1707,15 +1498,13 @@ private void ensureIpBlocksIsMutable() {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the ipBlocks. */ - public com.google.protobuf.ProtocolStringList getIpBlocksList() { + public com.google.protobuf.ProtocolStringList + getIpBlocksList() { return ipBlocks_.getUnmodifiableView(); } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1725,15 +1514,12 @@ public com.google.protobuf.ProtocolStringList getIpBlocksList() {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of ipBlocks. */ public int getIpBlocksCount() { return ipBlocks_.size(); } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1743,7 +1529,6 @@ public int getIpBlocksCount() {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The ipBlocks at the given index. */ @@ -1751,8 +1536,6 @@ public java.lang.String getIpBlocks(int index) { return ipBlocks_.get(index); } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1762,16 +1545,14 @@ public java.lang.String getIpBlocks(int index) {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the ipBlocks at the given index. */ - public com.google.protobuf.ByteString getIpBlocksBytes(int index) { + public com.google.protobuf.ByteString + getIpBlocksBytes(int index) { return ipBlocks_.getByteString(index); } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1781,23 +1562,21 @@ public com.google.protobuf.ByteString getIpBlocksBytes(int index) {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The ipBlocks to set. * @return This builder for chaining. */ - public Builder setIpBlocks(int index, java.lang.String value) { + public Builder setIpBlocks( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpBlocksIsMutable(); + throw new NullPointerException(); + } + ensureIpBlocksIsMutable(); ipBlocks_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1807,22 +1586,20 @@ public Builder setIpBlocks(int index, java.lang.String value) {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ipBlocks to add. * @return This builder for chaining. */ - public Builder addIpBlocks(java.lang.String value) { + public Builder addIpBlocks( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpBlocksIsMutable(); + throw new NullPointerException(); + } + ensureIpBlocksIsMutable(); ipBlocks_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1832,19 +1609,18 @@ public Builder addIpBlocks(java.lang.String value) {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The ipBlocks to add. * @return This builder for chaining. */ - public Builder addAllIpBlocks(java.lang.Iterable values) { + public Builder addAllIpBlocks( + java.lang.Iterable values) { ensureIpBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipBlocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipBlocks_); onChanged(); return this; } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1854,7 +1630,6 @@ public Builder addAllIpBlocks(java.lang.Iterable values) {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIpBlocks() { @@ -1864,8 +1639,6 @@ public Builder clearIpBlocks() { return this; } /** - * - * *
          * Optional. List of CIDR ranges to match based on source IP address. At least one
          * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
@@ -1875,21 +1648,20 @@ public Builder clearIpBlocks() {
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the ipBlocks to add. * @return This builder for chaining. */ - public Builder addIpBlocksBytes(com.google.protobuf.ByteString value) { + public Builder addIpBlocksBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpBlocksIsMutable(); ipBlocks_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1902,33 +1674,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source) - private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source(); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Source parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Source(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1940,20 +1709,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DestinationOrBuilder - extends + public interface DestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. List of host names to match. Matched against the ":authority" header in
        * http requests. At least one host should match. Each host can be an
@@ -1962,13 +1728,11 @@ public interface DestinationOrBuilder
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the hosts. */ - java.util.List getHostsList(); + java.util.List + getHostsList(); /** - * - * *
        * Required. List of host names to match. Matched against the ":authority" header in
        * http requests. At least one host should match. Each host can be an
@@ -1977,13 +1741,10 @@ public interface DestinationOrBuilder
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of hosts. */ int getHostsCount(); /** - * - * *
        * Required. List of host names to match. Matched against the ":authority" header in
        * http requests. At least one host should match. Each host can be an
@@ -1992,14 +1753,11 @@ public interface DestinationOrBuilder
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The hosts at the given index. */ java.lang.String getHosts(int index); /** - * - * *
        * Required. List of host names to match. Matched against the ":authority" header in
        * http requests. At least one host should match. Each host can be an
@@ -2008,108 +1766,87 @@ public interface DestinationOrBuilder
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the hosts at the given index. */ - com.google.protobuf.ByteString getHostsBytes(int index); + com.google.protobuf.ByteString + getHostsBytes(int index); /** - * - * *
        * Required. List of destination ports to match. At least one port should match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ports. */ java.util.List getPortsList(); /** - * - * *
        * Required. List of destination ports to match. At least one port should match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ports. */ int getPortsCount(); /** - * - * *
        * Required. List of destination ports to match. At least one port should match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ports at the given index. */ int getPorts(int index); /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the methods. */ - java.util.List getMethodsList(); + java.util.List + getMethodsList(); /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of methods. */ int getMethodsCount(); /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The methods at the given index. */ java.lang.String getMethods(int index); /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the methods at the given index. */ - com.google.protobuf.ByteString getMethodsBytes(int index); + com.google.protobuf.ByteString + getMethodsBytes(int index); /** - * - * *
        * Optional. Match against key:value pair in http header. Provides a flexible match
        * based on HTTP headers, for potentially advanced use cases. At least one
@@ -2118,16 +1855,11 @@ public interface DestinationOrBuilder
        * through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpHeaderMatch field is set. */ boolean hasHttpHeaderMatch(); /** - * - * *
        * Optional. Match against key:value pair in http header. Provides a flexible match
        * based on HTTP headers, for potentially advanced use cases. At least one
@@ -2136,17 +1868,11 @@ public interface DestinationOrBuilder
        * through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpHeaderMatch. */ - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - getHttpHeaderMatch(); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getHttpHeaderMatch(); /** - * - * *
        * Optional. Match against key:value pair in http header. Provides a flexible match
        * based on HTTP headers, for potentially advanced use cases. At least one
@@ -2155,33 +1881,26 @@ public interface DestinationOrBuilder
        * through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder - getHttpHeaderMatchOrBuilder(); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder getHttpHeaderMatchOrBuilder(); } /** - * - * *
      * Specification of traffic destination attributes.
      * 
* * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination} */ - public static final class Destination extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Destination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) DestinationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Destination.newBuilder() to construct. private Destination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Destination() { hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY; ports_ = emptyIntList(); @@ -2190,15 +1909,16 @@ private Destination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Destination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Destination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2218,76 +1938,65 @@ private Destination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - hosts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - hosts_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + hosts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - ports_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } + hosts_.add(s); + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + ports_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + ports_.addInt(input.readUInt32()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + ports_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { ports_.addInt(input.readUInt32()); - break; } - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - ports_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - ports_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; + input.popLimit(limit); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + methods_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - methods_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - methods_.add(s); - break; + methods_.add(s); + break; + } + case 42: { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder subBuilder = null; + if (httpHeaderMatch_ != null) { + subBuilder = httpHeaderMatch_.toBuilder(); } - case 42: - { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder - subBuilder = null; - if (httpHeaderMatch_ != null) { - subBuilder = httpHeaderMatch_.toBuilder(); - } - httpHeaderMatch_ = - input.readMessage( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpHeaderMatch_); - httpHeaderMatch_ = subBuilder.buildPartial(); - } - - break; + httpHeaderMatch_ = input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpHeaderMatch_); + httpHeaderMatch_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2295,8 +2004,8 @@ private Destination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { hosts_ = hosts_.getUnmodifiableView(); @@ -2311,31 +2020,24 @@ private Destination( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.class, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder - .class); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder.class); } - public interface HttpHeaderMatchOrBuilder - extends + public interface HttpHeaderMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2347,13 +2049,10 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the regexMatch field is set. */ boolean hasRegexMatch(); /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2365,13 +2064,10 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The regexMatch. */ java.lang.String getRegexMatch(); /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2383,14 +2079,12 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for regexMatch. */ - com.google.protobuf.ByteString getRegexMatchBytes(); + com.google.protobuf.ByteString + getRegexMatchBytes(); /** - * - * *
          * Required. The name of the HTTP header to match. For matching
          * against the HTTP request's authority, use a headerMatch
@@ -2399,13 +2093,10 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The headerName. */ java.lang.String getHeaderName(); /** - * - * *
          * Required. The name of the HTTP header to match. For matching
          * against the HTTP request's authority, use a headerMatch
@@ -2414,50 +2105,45 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for headerName. */ - com.google.protobuf.ByteString getHeaderNameBytes(); + com.google.protobuf.ByteString + getHeaderNameBytes(); - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.TypeCase - getTypeCase(); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCase getTypeCase(); } /** - * - * *
        * Specification of HTTP header match attributes.
        * 
* - * Protobuf type {@code - * google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch} + * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch} */ - public static final class HttpHeaderMatch extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class HttpHeaderMatch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) HttpHeaderMatchOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HttpHeaderMatch.newBuilder() to construct. private HttpHeaderMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HttpHeaderMatch() { headerName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HttpHeaderMatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HttpHeaderMatch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2476,27 +2162,25 @@ private HttpHeaderMatch( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - headerName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - typeCase_ = 2; - type_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + headerName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + typeCase_ = 2; + type_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2504,42 +2188,34 @@ private HttpHeaderMatch( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.class, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder.class); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; - public enum TypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REGEX_MATCH(2), TYPE_NOT_SET(0); private final int value; - private TypeCase(int value) { this.value = value; } @@ -2555,28 +2231,24 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 2: - return REGEX_MATCH; - case 0: - return TYPE_NOT_SET; - default: - return null; + case 2: return REGEX_MATCH; + case 0: return TYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public static final int REGEX_MATCH_FIELD_NUMBER = 2; /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2588,15 +2260,12 @@ public TypeCase getTypeCase() {
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the regexMatch field is set. */ public boolean hasRegexMatch() { return typeCase_ == 2; } /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2608,7 +2277,6 @@ public boolean hasRegexMatch() {
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The regexMatch. */ public java.lang.String getRegexMatch() { @@ -2619,7 +2287,8 @@ public java.lang.String getRegexMatch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 2) { type_ = s; @@ -2628,8 +2297,6 @@ public java.lang.String getRegexMatch() { } } /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2641,17 +2308,18 @@ public java.lang.String getRegexMatch() {
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for regexMatch. */ - public com.google.protobuf.ByteString getRegexMatchBytes() { + public com.google.protobuf.ByteString + getRegexMatchBytes() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (typeCase_ == 2) { type_ = b; } @@ -2664,8 +2332,6 @@ public com.google.protobuf.ByteString getRegexMatchBytes() { public static final int HEADER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object headerName_; /** - * - * *
          * Required. The name of the HTTP header to match. For matching
          * against the HTTP request's authority, use a headerMatch
@@ -2674,7 +2340,6 @@ public com.google.protobuf.ByteString getRegexMatchBytes() {
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The headerName. */ @java.lang.Override @@ -2683,15 +2348,14 @@ public java.lang.String getHeaderName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headerName_ = s; return s; } } /** - * - * *
          * Required. The name of the HTTP header to match. For matching
          * against the HTTP request's authority, use a headerMatch
@@ -2700,15 +2364,16 @@ public java.lang.String getHeaderName() {
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for headerName. */ @java.lang.Override - public com.google.protobuf.ByteString getHeaderNameBytes() { + public com.google.protobuf.ByteString + getHeaderNameBytes() { java.lang.Object ref = headerName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); headerName_ = b; return b; } else { @@ -2717,7 +2382,6 @@ public com.google.protobuf.ByteString getHeaderNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2730,7 +2394,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headerName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, headerName_); } @@ -2760,25 +2424,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - other = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch) - obj; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other = (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) obj; - if (!getHeaderName().equals(other.getHeaderName())) return false; + if (!getHeaderName() + .equals(other.getHeaderName())) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 2: - if (!getRegexMatch().equals(other.getRegexMatch())) return false; + if (!getRegexMatch() + .equals(other.getRegexMatch())) return false; break; case 0: default: @@ -2809,118 +2468,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2930,53 +2559,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Specification of HTTP header match attributes.
          * 
* - * Protobuf type {@code - * google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch} + * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.class, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder.class); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2988,25 +2608,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance(); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - build() { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - result = buildPartial(); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch build() { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3014,13 +2628,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - buildPartial() { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - result = - new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch(this); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch buildPartial() { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch result = new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch(this); if (typeCase_ == 2) { result.type_ = type_; } @@ -3034,76 +2643,60 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch) { - return mergeFrom( - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch) - other); + if (other instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) { + return mergeFrom((com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - other) { - if (other - == com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other) { + if (other == com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance()) return this; if (!other.getHeaderName().isEmpty()) { headerName_ = other.headerName_; onChanged(); } switch (other.getTypeCase()) { - case REGEX_MATCH: - { - typeCase_ = 2; - type_ = other.type_; - onChanged(); - break; - } - case TYPE_NOT_SET: - { - break; - } + case REGEX_MATCH: { + typeCase_ = 2; + type_ = other.type_; + onChanged(); + break; + } + case TYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3120,15 +2713,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - parsedMessage = null; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3137,12 +2726,12 @@ public Builder mergeFrom( } return this; } - private int typeCase_ = 0; private java.lang.Object type_; - - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public Builder clearType() { @@ -3152,9 +2741,8 @@ public Builder clearType() { return this; } + /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3166,7 +2754,6 @@ public Builder clearType() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the regexMatch field is set. */ @java.lang.Override @@ -3174,8 +2761,6 @@ public boolean hasRegexMatch() { return typeCase_ == 2; } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3187,7 +2772,6 @@ public boolean hasRegexMatch() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The regexMatch. */ @java.lang.Override @@ -3197,7 +2781,8 @@ public java.lang.String getRegexMatch() { ref = type_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 2) { type_ = s; @@ -3208,8 +2793,6 @@ public java.lang.String getRegexMatch() { } } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3221,18 +2804,19 @@ public java.lang.String getRegexMatch() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for regexMatch. */ @java.lang.Override - public com.google.protobuf.ByteString getRegexMatchBytes() { + public com.google.protobuf.ByteString + getRegexMatchBytes() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (typeCase_ == 2) { type_ = b; } @@ -3242,8 +2826,6 @@ public com.google.protobuf.ByteString getRegexMatchBytes() { } } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3255,22 +2837,20 @@ public com.google.protobuf.ByteString getRegexMatchBytes() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The regexMatch to set. * @return This builder for chaining. */ - public Builder setRegexMatch(java.lang.String value) { + public Builder setRegexMatch( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - typeCase_ = 2; + throw new NullPointerException(); + } + typeCase_ = 2; type_ = value; onChanged(); return this; } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3282,7 +2862,6 @@ public Builder setRegexMatch(java.lang.String value) {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegexMatch() { @@ -3294,8 +2873,6 @@ public Builder clearRegexMatch() { return this; } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3307,15 +2884,15 @@ public Builder clearRegexMatch() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for regexMatch to set. * @return This builder for chaining. */ - public Builder setRegexMatchBytes(com.google.protobuf.ByteString value) { + public Builder setRegexMatchBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); typeCase_ = 2; type_ = value; onChanged(); @@ -3324,8 +2901,6 @@ public Builder setRegexMatchBytes(com.google.protobuf.ByteString value) { private java.lang.Object headerName_ = ""; /** - * - * *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3334,13 +2909,13 @@ public Builder setRegexMatchBytes(com.google.protobuf.ByteString value) {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The headerName. */ public java.lang.String getHeaderName() { java.lang.Object ref = headerName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headerName_ = s; return s; @@ -3349,8 +2924,6 @@ public java.lang.String getHeaderName() { } } /** - * - * *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3359,14 +2932,15 @@ public java.lang.String getHeaderName() {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for headerName. */ - public com.google.protobuf.ByteString getHeaderNameBytes() { + public com.google.protobuf.ByteString + getHeaderNameBytes() { java.lang.Object ref = headerName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); headerName_ = b; return b; } else { @@ -3374,8 +2948,6 @@ public com.google.protobuf.ByteString getHeaderNameBytes() { } } /** - * - * *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3384,22 +2956,20 @@ public com.google.protobuf.ByteString getHeaderNameBytes() {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The headerName to set. * @return This builder for chaining. */ - public Builder setHeaderName(java.lang.String value) { + public Builder setHeaderName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + headerName_ = value; onChanged(); return this; } - /** - * - * + /** *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3408,18 +2978,15 @@ public Builder setHeaderName(java.lang.String value) {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHeaderName() { - + headerName_ = getDefaultInstance().getHeaderName(); onChanged(); return this; } /** - * - * *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3428,21 +2995,20 @@ public Builder clearHeaderName() {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for headerName to set. * @return This builder for chaining. */ - public Builder setHeaderNameBytes(com.google.protobuf.ByteString value) { + public Builder setHeaderNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + headerName_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3455,36 +3021,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) - private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule - .Destination.HttpHeaderMatch - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch(); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpHeaderMatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpHeaderMatch(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpHeaderMatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpHeaderMatch(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3496,18 +3056,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HOSTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList hosts_; /** - * - * *
        * Required. List of host names to match. Matched against the ":authority" header in
        * http requests. At least one host should match. Each host can be an
@@ -3516,15 +3073,13 @@ public com.google.protobuf.Parser getParserForType() {
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the hosts. */ - public com.google.protobuf.ProtocolStringList getHostsList() { + public com.google.protobuf.ProtocolStringList + getHostsList() { return hosts_; } /** - * - * *
        * Required. List of host names to match. Matched against the ":authority" header in
        * http requests. At least one host should match. Each host can be an
@@ -3533,15 +3088,12 @@ public com.google.protobuf.ProtocolStringList getHostsList() {
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of hosts. */ public int getHostsCount() { return hosts_.size(); } /** - * - * *
        * Required. List of host names to match. Matched against the ":authority" header in
        * http requests. At least one host should match. Each host can be an
@@ -3550,7 +3102,6 @@ public int getHostsCount() {
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The hosts at the given index. */ @@ -3558,8 +3109,6 @@ public java.lang.String getHosts(int index) { return hosts_.get(index); } /** - * - * *
        * Required. List of host names to match. Matched against the ":authority" header in
        * http requests. At least one host should match. Each host can be an
@@ -3568,105 +3117,88 @@ public java.lang.String getHosts(int index) {
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the hosts at the given index. */ - public com.google.protobuf.ByteString getHostsBytes(int index) { + public com.google.protobuf.ByteString + getHostsBytes(int index) { return hosts_.getByteString(index); } public static final int PORTS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.IntList ports_; /** - * - * *
        * Required. List of destination ports to match. At least one port should match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ports. */ @java.lang.Override - public java.util.List getPortsList() { + public java.util.List + getPortsList() { return ports_; } /** - * - * *
        * Required. List of destination ports to match. At least one port should match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ports. */ public int getPortsCount() { return ports_.size(); } /** - * - * *
        * Required. List of destination ports to match. At least one port should match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ports at the given index. */ public int getPorts(int index) { return ports_.getInt(index); } - private int portsMemoizedSerializedSize = -1; public static final int METHODS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList methods_; /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the methods. */ - public com.google.protobuf.ProtocolStringList getMethodsList() { + public com.google.protobuf.ProtocolStringList + getMethodsList() { return methods_; } /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of methods. */ public int getMethodsCount() { return methods_.size(); } /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The methods at the given index. */ @@ -3674,29 +3206,23 @@ public java.lang.String getMethods(int index) { return methods_.get(index); } /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the methods at the given index. */ - public com.google.protobuf.ByteString getMethodsBytes(int index) { + public com.google.protobuf.ByteString + getMethodsBytes(int index) { return methods_.getByteString(index); } public static final int HTTP_HEADER_MATCH_FIELD_NUMBER = 5; - private com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - httpHeaderMatch_; + private com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch httpHeaderMatch_; /** - * - * *
        * Optional. Match against key:value pair in http header. Provides a flexible match
        * based on HTTP headers, for potentially advanced use cases. At least one
@@ -3705,10 +3231,7 @@ public com.google.protobuf.ByteString getMethodsBytes(int index) {
        * through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpHeaderMatch field is set. */ @java.lang.Override @@ -3716,8 +3239,6 @@ public boolean hasHttpHeaderMatch() { return httpHeaderMatch_ != null; } /** - * - * *
        * Optional. Match against key:value pair in http header. Provides a flexible match
        * based on HTTP headers, for potentially advanced use cases. At least one
@@ -3726,24 +3247,14 @@ public boolean hasHttpHeaderMatch() {
        * through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpHeaderMatch. */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getHttpHeaderMatch() { - return httpHeaderMatch_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance() - : httpHeaderMatch_; + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getHttpHeaderMatch() { + return httpHeaderMatch_ == null ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance() : httpHeaderMatch_; } /** - * - * *
        * Optional. Match against key:value pair in http header. Provides a flexible match
        * based on HTTP headers, for potentially advanced use cases. At least one
@@ -3752,19 +3263,14 @@ public boolean hasHttpHeaderMatch() {
        * through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder - getHttpHeaderMatchOrBuilder() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder getHttpHeaderMatchOrBuilder() { return getHttpHeaderMatch(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3776,7 +3282,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < hosts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hosts_.getRaw(i)); @@ -3814,13 +3321,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < ports_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(ports_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(ports_.getInt(i)); } size += dataSize; if (!getPortsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } portsMemoizedSerializedSize = dataSize; } @@ -3833,7 +3341,8 @@ public int getSerializedSize() { size += 1 * getMethodsList().size(); } if (httpHeaderMatch_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHttpHeaderMatch()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getHttpHeaderMatch()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3843,21 +3352,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination other = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) obj; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination other = (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) obj; - if (!getHostsList().equals(other.getHostsList())) return false; - if (!getPortsList().equals(other.getPortsList())) return false; - if (!getMethodsList().equals(other.getMethodsList())) return false; + if (!getHostsList() + .equals(other.getHostsList())) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (!getMethodsList() + .equals(other.getMethodsList())) return false; if (hasHttpHeaderMatch() != other.hasHttpHeaderMatch()) return false; if (hasHttpHeaderMatch()) { - if (!getHttpHeaderMatch().equals(other.getHttpHeaderMatch())) return false; + if (!getHttpHeaderMatch() + .equals(other.getHttpHeaderMatch())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3891,103 +3402,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3997,50 +3493,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Specification of traffic destination attributes.
        * 
* * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.class, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder - .class); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4060,22 +3550,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination build() { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination result = - buildPartial(); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4083,10 +3570,8 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - buildPartial() { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination result = - new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination(this); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination buildPartial() { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination result = new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { hosts_ = hosts_.getUnmodifiableView(); @@ -4116,54 +3601,46 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.AuthorizationPolicy.Rule.Destination) { - return mergeFrom( - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) other); + if (other instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) { + return mergeFrom((com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination other) { - if (other - == com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination other) { + if (other == com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.getDefaultInstance()) return this; if (!other.hosts_.isEmpty()) { if (hosts_.isEmpty()) { hosts_ = other.hosts_; @@ -4212,14 +3689,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parsedMessage = - null; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4228,21 +3702,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList hosts_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureHostsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hosts_ = new com.google.protobuf.LazyStringArrayList(hosts_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4251,15 +3720,13 @@ private void ensureHostsIsMutable() {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the hosts. */ - public com.google.protobuf.ProtocolStringList getHostsList() { + public com.google.protobuf.ProtocolStringList + getHostsList() { return hosts_.getUnmodifiableView(); } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4268,15 +3735,12 @@ public com.google.protobuf.ProtocolStringList getHostsList() {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of hosts. */ public int getHostsCount() { return hosts_.size(); } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4285,7 +3749,6 @@ public int getHostsCount() {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The hosts at the given index. */ @@ -4293,8 +3756,6 @@ public java.lang.String getHosts(int index) { return hosts_.get(index); } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4303,16 +3764,14 @@ public java.lang.String getHosts(int index) {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the hosts at the given index. */ - public com.google.protobuf.ByteString getHostsBytes(int index) { + public com.google.protobuf.ByteString + getHostsBytes(int index) { return hosts_.getByteString(index); } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4321,23 +3780,21 @@ public com.google.protobuf.ByteString getHostsBytes(int index) {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The hosts to set. * @return This builder for chaining. */ - public Builder setHosts(int index, java.lang.String value) { + public Builder setHosts( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureHostsIsMutable(); + throw new NullPointerException(); + } + ensureHostsIsMutable(); hosts_.set(index, value); onChanged(); return this; } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4346,22 +3803,20 @@ public Builder setHosts(int index, java.lang.String value) {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hosts to add. * @return This builder for chaining. */ - public Builder addHosts(java.lang.String value) { + public Builder addHosts( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureHostsIsMutable(); + throw new NullPointerException(); + } + ensureHostsIsMutable(); hosts_.add(value); onChanged(); return this; } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4370,19 +3825,18 @@ public Builder addHosts(java.lang.String value) {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The hosts to add. * @return This builder for chaining. */ - public Builder addAllHosts(java.lang.Iterable values) { + public Builder addAllHosts( + java.lang.Iterable values) { ensureHostsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hosts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hosts_); onChanged(); return this; } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4391,7 +3845,6 @@ public Builder addAllHosts(java.lang.Iterable values) {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHosts() { @@ -4401,8 +3854,6 @@ public Builder clearHosts() { return this; } /** - * - * *
          * Required. List of host names to match. Matched against the ":authority" header in
          * http requests. At least one host should match. Each host can be an
@@ -4411,15 +3862,15 @@ public Builder clearHosts() {
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the hosts to add. * @return This builder for chaining. */ - public Builder addHostsBytes(com.google.protobuf.ByteString value) { + public Builder addHostsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureHostsIsMutable(); hosts_.add(value); onChanged(); @@ -4427,52 +3878,42 @@ public Builder addHostsBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.IntList ports_ = emptyIntList(); - private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ports_ = mutableCopy(ports_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * Required. List of destination ports to match. At least one port should match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ports. */ - public java.util.List getPortsList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(ports_) - : ports_; + public java.util.List + getPortsList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(ports_) : ports_; } /** - * - * *
          * Required. List of destination ports to match. At least one port should match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ports. */ public int getPortsCount() { return ports_.size(); } /** - * - * *
          * Required. List of destination ports to match. At least one port should match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ports at the given index. */ @@ -4480,33 +3921,28 @@ public int getPorts(int index) { return ports_.getInt(index); } /** - * - * *
          * Required. List of destination ports to match. At least one port should match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The ports to set. * @return This builder for chaining. */ - public Builder setPorts(int index, int value) { + public Builder setPorts( + int index, int value) { ensurePortsIsMutable(); ports_.setInt(index, value); onChanged(); return this; } /** - * - * *
          * Required. List of destination ports to match. At least one port should match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ports to add. * @return This builder for chaining. */ @@ -4517,32 +3953,28 @@ public Builder addPorts(int value) { return this; } /** - * - * *
          * Required. List of destination ports to match. At least one port should match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The ports to add. * @return This builder for chaining. */ - public Builder addAllPorts(java.lang.Iterable values) { + public Builder addAllPorts( + java.lang.Iterable values) { ensurePortsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); onChanged(); return this; } /** - * - * *
          * Required. List of destination ports to match. At least one port should match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPorts() { @@ -4552,55 +3984,45 @@ public Builder clearPorts() { return this; } - private com.google.protobuf.LazyStringList methods_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList methods_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMethodsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { methods_ = new com.google.protobuf.LazyStringArrayList(methods_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the methods. */ - public com.google.protobuf.ProtocolStringList getMethodsList() { + public com.google.protobuf.ProtocolStringList + getMethodsList() { return methods_.getUnmodifiableView(); } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of methods. */ public int getMethodsCount() { return methods_.size(); } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The methods at the given index. */ @@ -4608,95 +4030,85 @@ public java.lang.String getMethods(int index) { return methods_.get(index); } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the methods at the given index. */ - public com.google.protobuf.ByteString getMethodsBytes(int index) { + public com.google.protobuf.ByteString + getMethodsBytes(int index) { return methods_.getByteString(index); } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The methods to set. * @return This builder for chaining. */ - public Builder setMethods(int index, java.lang.String value) { + public Builder setMethods( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); + throw new NullPointerException(); + } + ensureMethodsIsMutable(); methods_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The methods to add. * @return This builder for chaining. */ - public Builder addMethods(java.lang.String value) { + public Builder addMethods( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); + throw new NullPointerException(); + } + ensureMethodsIsMutable(); methods_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The methods to add. * @return This builder for chaining. */ - public Builder addAllMethods(java.lang.Iterable values) { + public Builder addAllMethods( + java.lang.Iterable values) { ensureMethodsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, methods_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, methods_); onChanged(); return this; } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMethods() { @@ -4706,43 +4118,31 @@ public Builder clearMethods() { return this; } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the methods to add. * @return This builder for chaining. */ - public Builder addMethodsBytes(com.google.protobuf.ByteString value) { + public Builder addMethodsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMethodsIsMutable(); methods_.add(value); onChanged(); return this; } - private com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - httpHeaderMatch_; + private com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch httpHeaderMatch_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder> - httpHeaderMatchBuilder_; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder> httpHeaderMatchBuilder_; /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4751,18 +4151,13 @@ public Builder addMethodsBytes(com.google.protobuf.ByteString value) {
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpHeaderMatch field is set. */ public boolean hasHttpHeaderMatch() { return httpHeaderMatchBuilder_ != null || httpHeaderMatch_ != null; } /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4771,27 +4166,17 @@ public boolean hasHttpHeaderMatch() {
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpHeaderMatch. */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getHttpHeaderMatch() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getHttpHeaderMatch() { if (httpHeaderMatchBuilder_ == null) { - return httpHeaderMatch_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance() - : httpHeaderMatch_; + return httpHeaderMatch_ == null ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance() : httpHeaderMatch_; } else { return httpHeaderMatchBuilder_.getMessage(); } } /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4800,13 +4185,9 @@ public boolean hasHttpHeaderMatch() {
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setHttpHeaderMatch( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - value) { + public Builder setHttpHeaderMatch(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch value) { if (httpHeaderMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4820,8 +4201,6 @@ public Builder setHttpHeaderMatch( return this; } /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4830,14 +4209,10 @@ public Builder setHttpHeaderMatch(
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHttpHeaderMatch( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - .Builder - builderForValue) { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder builderForValue) { if (httpHeaderMatchBuilder_ == null) { httpHeaderMatch_ = builderForValue.build(); onChanged(); @@ -4848,8 +4223,6 @@ public Builder setHttpHeaderMatch( return this; } /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4858,20 +4231,13 @@ public Builder setHttpHeaderMatch(
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeHttpHeaderMatch( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - value) { + public Builder mergeHttpHeaderMatch(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch value) { if (httpHeaderMatchBuilder_ == null) { if (httpHeaderMatch_ != null) { httpHeaderMatch_ = - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.newBuilder(httpHeaderMatch_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.newBuilder(httpHeaderMatch_).mergeFrom(value).buildPartial(); } else { httpHeaderMatch_ = value; } @@ -4883,8 +4249,6 @@ public Builder mergeHttpHeaderMatch( return this; } /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4893,9 +4257,7 @@ public Builder mergeHttpHeaderMatch(
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHttpHeaderMatch() { if (httpHeaderMatchBuilder_ == null) { @@ -4909,8 +4271,6 @@ public Builder clearHttpHeaderMatch() { return this; } /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4919,20 +4279,14 @@ public Builder clearHttpHeaderMatch() {
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder - getHttpHeaderMatchBuilder() { - + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder getHttpHeaderMatchBuilder() { + onChanged(); return getHttpHeaderMatchFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4941,25 +4295,17 @@ public Builder clearHttpHeaderMatch() {
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder - getHttpHeaderMatchOrBuilder() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder getHttpHeaderMatchOrBuilder() { if (httpHeaderMatchBuilder_ != null) { return httpHeaderMatchBuilder_.getMessageOrBuilder(); } else { - return httpHeaderMatch_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance() - : httpHeaderMatch_; + return httpHeaderMatch_ == null ? + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance() : httpHeaderMatch_; } } /** - * - * *
          * Optional. Match against key:value pair in http header. Provides a flexible match
          * based on HTTP headers, for potentially advanced use cases. At least one
@@ -4968,33 +4314,21 @@ public Builder clearHttpHeaderMatch() {
          * through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder> + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder> getHttpHeaderMatchFieldBuilder() { if (httpHeaderMatchBuilder_ == null) { - httpHeaderMatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder>( - getHttpHeaderMatch(), getParentForChildren(), isClean()); + httpHeaderMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder>( + getHttpHeaderMatch(), + getParentForChildren(), + isClean()); httpHeaderMatch_ = null; } return httpHeaderMatchBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5007,33 +4341,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination) - private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination(); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Destination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Destination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Destination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Destination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5045,18 +4376,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SOURCES_FIELD_NUMBER = 1; - private java.util.List - sources_; + private java.util.List sources_; /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -5064,18 +4392,13 @@ public com.google.protobuf.Parser getParserForType() {
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getSourcesList() { + public java.util.List getSourcesList() { return sources_; } /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -5083,19 +4406,14 @@ public com.google.protobuf.Parser getParserForType() {
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> + public java.util.List getSourcesOrBuilderList() { return sources_; } /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -5103,17 +4421,13 @@ public com.google.protobuf.Parser getParserForType() {
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getSourcesCount() { return sources_.size(); } /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -5121,18 +4435,13 @@ public int getSourcesCount() {
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSources( - int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSources(int index) { return sources_.get(index); } /** - * - * *
      * Optional. List of attributes for the traffic source. All of the sources must match.
      * A source is a match if both principals and ip_blocks match. If not set,
@@ -5140,22 +4449,17 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo
      * rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder - getSourcesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder( + int index) { return sources_.get(index); } public static final int DESTINATIONS_FIELD_NUMBER = 2; - private java.util.List - destinations_; + private java.util.List destinations_; /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -5164,18 +4468,13 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getDestinationsList() { + public java.util.List getDestinationsList() { return destinations_; } /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -5184,20 +4483,14 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> + public java.util.List getDestinationsOrBuilderList() { return destinations_; } /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -5206,17 +4499,13 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getDestinationsCount() { return destinations_.size(); } /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -5225,18 +4514,13 @@ public int getDestinationsCount() {
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDestinations( - int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDestinations(int index) { return destinations_.get(index); } /** - * - * *
      * Optional. List of attributes for the traffic destination. All of the destinations
      * must match. A destination is a match if a request matches all the
@@ -5245,18 +4529,15 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder - getDestinationsOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder( + int index) { return destinations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5268,7 +4549,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } @@ -5285,10 +4567,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sources_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, destinations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, destinations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5298,16 +4582,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule other = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) obj; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule other = (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) obj; - if (!getSourcesList().equals(other.getSourcesList())) return false; - if (!getDestinationsList().equals(other.getDestinationsList())) return false; + if (!getSourcesList() + .equals(other.getSourcesList())) return false; + if (!getDestinationsList() + .equals(other.getDestinationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5333,94 +4618,87 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule 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.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5430,32 +4708,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specification of rules.
      * 
* * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy.Rule} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.class, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder.class); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.newBuilder() @@ -5463,18 +4736,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSourcesFieldBuilder(); getDestinationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5494,14 +4767,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.getDefaultInstance(); } @@ -5516,8 +4788,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule build() { @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule buildPartial() { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule result = - new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule(this); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule result = new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5545,41 +4816,38 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.AuthorizationPolicy.Rule) { - return mergeFrom((com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) other); + return mergeFrom((com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule)other); } else { super.mergeFrom(other); return this; @@ -5587,9 +4855,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule other) { - if (other - == com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.getDefaultInstance()) - return this; + if (other == com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.getDefaultInstance()) return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { @@ -5608,10 +4874,9 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); - sourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSourcesFieldBuilder() - : null; + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } @@ -5635,10 +4900,9 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy destinationsBuilder_ = null; destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); - destinationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDestinationsFieldBuilder() - : null; + destinationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDestinationsFieldBuilder() : null; } else { destinationsBuilder_.addAllMessages(other.destinations_); } @@ -5663,9 +4927,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5674,30 +4936,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - sources_ = java.util.Collections.emptyList(); - + private java.util.List sources_ = + java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sources_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source>(sources_); + sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> - sourcesBuilder_; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> sourcesBuilder_; /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5705,12 +4958,9 @@ private void ensureSourcesIsMutable() {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getSourcesList() { + public java.util.List getSourcesList() { if (sourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(sources_); } else { @@ -5718,8 +4968,6 @@ private void ensureSourcesIsMutable() { } } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5727,9 +4975,7 @@ private void ensureSourcesIsMutable() {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getSourcesCount() { if (sourcesBuilder_ == null) { @@ -5739,8 +4985,6 @@ public int getSourcesCount() { } } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5748,12 +4992,9 @@ public int getSourcesCount() {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSources( - int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSources(int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { @@ -5761,8 +5002,6 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo } } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5770,9 +5009,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSources( int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source value) { @@ -5789,8 +5026,6 @@ public Builder setSources( return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5798,14 +5033,10 @@ public Builder setSources(
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSources( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder - builderForValue) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.set(index, builderForValue.build()); @@ -5816,8 +5047,6 @@ public Builder setSources( return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5825,12 +5054,9 @@ public Builder setSources(
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addSources( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source value) { + public Builder addSources(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5844,8 +5070,6 @@ public Builder addSources( return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5853,9 +5077,7 @@ public Builder addSources(
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSources( int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source value) { @@ -5872,8 +5094,6 @@ public Builder addSources( return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5881,13 +5101,10 @@ public Builder addSources(
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSources( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder - builderForValue) { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(builderForValue.build()); @@ -5898,8 +5115,6 @@ public Builder addSources( return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5907,14 +5122,10 @@ public Builder addSources(
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSources( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder - builderForValue) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(index, builderForValue.build()); @@ -5925,8 +5136,6 @@ public Builder addSources( return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5934,17 +5143,14 @@ public Builder addSources(
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllSources( - java.lang.Iterable< - ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source> - values) { + java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); @@ -5952,8 +5158,6 @@ public Builder addAllSources( return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5961,9 +5165,7 @@ public Builder addAllSources(
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSources() { if (sourcesBuilder_ == null) { @@ -5976,8 +5178,6 @@ public Builder clearSources() { return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -5985,9 +5185,7 @@ public Builder clearSources() {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeSources(int index) { if (sourcesBuilder_ == null) { @@ -6000,8 +5198,6 @@ public Builder removeSources(int index) { return this; } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -6009,17 +5205,13 @@ public Builder removeSources(int index) {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder - getSourcesBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder getSourcesBuilder( + int index) { return getSourcesFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -6027,21 +5219,16 @@ public Builder removeSources(int index) {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder - getSourcesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder( + int index) { if (sourcesBuilder_ == null) { - return sources_.get(index); - } else { + return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -6049,14 +5236,10 @@ public Builder removeSources(int index) {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> - getSourcesOrBuilderList() { + public java.util.List + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -6064,8 +5247,6 @@ public Builder removeSources(int index) { } } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -6073,20 +5254,13 @@ public Builder removeSources(int index) {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder - addSourcesBuilder() { - return getSourcesFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder addSourcesBuilder() { + return getSourcesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.getDefaultInstance()); } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -6094,21 +5268,14 @@ public Builder removeSources(int index) {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder - addSourcesBuilder(int index) { - return getSourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder addSourcesBuilder( + int index) { + return getSourcesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.getDefaultInstance()); } /** - * - * *
        * Optional. List of attributes for the traffic source. All of the sources must match.
        * A source is a match if both principals and ip_blocks match. If not set,
@@ -6116,56 +5283,40 @@ public Builder removeSources(int index) {
        * rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder> - getSourcesBuilderList() { + public java.util.List + getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { - sourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder>( - sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder>( + sources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); sources_ = null; } return sourcesBuilder_; } - private java.util.List< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination> - destinations_ = java.util.Collections.emptyList(); - + private java.util.List destinations_ = + java.util.Collections.emptyList(); private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - destinations_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination>( - destinations_); + destinations_ = new java.util.ArrayList(destinations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> - destinationsBuilder_; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> destinationsBuilder_; /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6174,13 +5325,9 @@ private void ensureDestinationsIsMutable() {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination> - getDestinationsList() { + public java.util.List getDestinationsList() { if (destinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(destinations_); } else { @@ -6188,8 +5335,6 @@ private void ensureDestinationsIsMutable() { } } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6198,9 +5343,7 @@ private void ensureDestinationsIsMutable() {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getDestinationsCount() { if (destinationsBuilder_ == null) { @@ -6210,8 +5353,6 @@ public int getDestinationsCount() { } } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6220,12 +5361,9 @@ public int getDestinationsCount() {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - getDestinations(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDestinations(int index) { if (destinationsBuilder_ == null) { return destinations_.get(index); } else { @@ -6233,8 +5371,6 @@ public int getDestinationsCount() { } } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6243,13 +5379,10 @@ public int getDestinationsCount() {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDestinations( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination value) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6263,8 +5396,6 @@ public Builder setDestinations( return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6273,14 +5404,10 @@ public Builder setDestinations(
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDestinations( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder - builderForValue) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.set(index, builderForValue.build()); @@ -6291,8 +5418,6 @@ public Builder setDestinations( return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6301,12 +5426,9 @@ public Builder setDestinations(
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addDestinations( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination value) { + public Builder addDestinations(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6320,8 +5442,6 @@ public Builder addDestinations( return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6330,13 +5450,10 @@ public Builder addDestinations(
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addDestinations( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination value) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6350,8 +5467,6 @@ public Builder addDestinations( return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6360,13 +5475,10 @@ public Builder addDestinations(
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addDestinations( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder - builderForValue) { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(builderForValue.build()); @@ -6377,8 +5489,6 @@ public Builder addDestinations( return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6387,14 +5497,10 @@ public Builder addDestinations(
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addDestinations( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder - builderForValue) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(index, builderForValue.build()); @@ -6405,8 +5511,6 @@ public Builder addDestinations( return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6415,18 +5519,14 @@ public Builder addDestinations(
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllDestinations( - java.lang.Iterable< - ? extends - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination> - values) { + java.lang.Iterable values) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, destinations_); onChanged(); } else { destinationsBuilder_.addAllMessages(values); @@ -6434,8 +5534,6 @@ public Builder addAllDestinations( return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6444,9 +5542,7 @@ public Builder addAllDestinations(
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDestinations() { if (destinationsBuilder_ == null) { @@ -6459,8 +5555,6 @@ public Builder clearDestinations() { return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6469,9 +5563,7 @@ public Builder clearDestinations() {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeDestinations(int index) { if (destinationsBuilder_ == null) { @@ -6484,8 +5576,6 @@ public Builder removeDestinations(int index) { return this; } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6494,17 +5584,13 @@ public Builder removeDestinations(int index) {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder - getDestinationsBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder getDestinationsBuilder( + int index) { return getDestinationsFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6513,21 +5599,16 @@ public Builder removeDestinations(int index) {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder - getDestinationsOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder( + int index) { if (destinationsBuilder_ == null) { - return destinations_.get(index); - } else { + return destinations_.get(index); } else { return destinationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6536,14 +5617,10 @@ public Builder removeDestinations(int index) {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> - getDestinationsOrBuilderList() { + public java.util.List + getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { @@ -6551,8 +5628,6 @@ public Builder removeDestinations(int index) { } } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6561,20 +5636,13 @@ public Builder removeDestinations(int index) {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder - addDestinationsBuilder() { - return getDestinationsFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder addDestinationsBuilder() { + return getDestinationsFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.getDefaultInstance()); } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6583,21 +5651,14 @@ public Builder removeDestinations(int index) {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder - addDestinationsBuilder(int index) { - return getDestinationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder addDestinationsBuilder( + int index) { + return getDestinationsFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.getDefaultInstance()); } /** - * - * *
        * Optional. List of attributes for the traffic destination. All of the destinations
        * must match. A destination is a match if a request matches all the
@@ -6606,28 +5667,18 @@ public Builder removeDestinations(int index) {
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder> - getDestinationsBuilderList() { + public java.util.List + getDestinationsBuilderList() { return getDestinationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> getDestinationsFieldBuilder() { if (destinationsBuilder_ == null) { - destinationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule - .DestinationOrBuilder>( + destinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder>( destinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6636,7 +5687,6 @@ public Builder removeDestinations(int index) { } return destinationsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6649,32 +5699,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthorizationPolicy.Rule) - private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule(); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Rule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Rule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6686,24 +5734,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the AuthorizationPolicy resource. It matches pattern
    * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -6712,30 +5757,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the AuthorizationPolicy resource. It matches pattern
    * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6746,14 +5791,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -6762,29 +5804,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -6795,15 +5837,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -6811,15 +5849,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -6827,14 +5861,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -6844,15 +5875,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -6860,15 +5887,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -6876,14 +5899,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -6891,23 +5911,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -6916,30 +5937,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
@@ -6947,12 +5966,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
@@ -6960,16 +5978,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
@@ -6977,11 +5995,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6991,52 +6010,35 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int ACTION_FIELD_NUMBER = 6; private int action_; /** - * - * *
    * Required. The action to take when a rule match is found. Possible values
    * are "ALLOW" or "DENY".
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
    * Required. The action to take when a rule match is found. Possible values
    * are "ALLOW" or "DENY".
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The action. */ - @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction() { + @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action result = - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.valueOf(action_); - return result == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.UNRECOGNIZED - : result; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action result = com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.valueOf(action_); + return result == null ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.UNRECOGNIZED : result; } public static final int RULES_FIELD_NUMBER = 7; private java.util.List rules_; - /** - * - * + /** *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -7044,18 +6046,13 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction(
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getRulesList() { + public java.util.List getRulesList() { return rules_; } /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -7063,19 +6060,14 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction(
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder> + public java.util.List getRulesOrBuilderList() { return rules_; } /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -7083,17 +6075,13 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction(
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -7101,17 +6089,13 @@ public int getRulesCount() {
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getRules(int index) { return rules_.get(index); } /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -7119,9 +6103,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getRules(int
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder getRulesOrBuilder( @@ -7130,7 +6112,6 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder get } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7142,7 +6123,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -7155,11 +6137,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); - if (action_ - != com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.ACTION_UNSPECIFIED - .getNumber()) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); + if (action_ != com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(6, action_); } for (int i = 0; i < rules_.size(); i++) { @@ -7181,28 +6165,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); - } - if (action_ - != com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.ACTION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); + } + if (action_ != com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, action_); } for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, rules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7212,27 +6198,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.AuthorizationPolicy)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.AuthorizationPolicy other = - (com.google.cloud.networksecurity.v1.AuthorizationPolicy) obj; + com.google.cloud.networksecurity.v1.AuthorizationPolicy other = (com.google.cloud.networksecurity.v1.AuthorizationPolicy) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (action_ != other.action_) return false; - if (!getRulesList().equals(other.getRulesList())) return false; + if (!getRulesList() + .equals(other.getRulesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7272,104 +6263,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy 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.networksecurity.v1.AuthorizationPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.AuthorizationPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.AuthorizationPolicy prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.AuthorizationPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * AuthorizationPolicy is a resource that specifies how a server
    * should authorize incoming connections. This resource in itself does
@@ -7379,43 +6362,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1.AuthorizationPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthorizationPolicy)
       com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1.AuthorizationPolicy.class,
-              com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder.class);
+              com.google.cloud.networksecurity.v1.AuthorizationPolicy.class, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1.AuthorizationPolicy.newBuilder()
@@ -7423,17 +6406,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getRulesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -7466,9 +6449,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -7487,8 +6470,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1.AuthorizationPolicy buildPartial() {
-      com.google.cloud.networksecurity.v1.AuthorizationPolicy result =
-          new com.google.cloud.networksecurity.v1.AuthorizationPolicy(this);
+      com.google.cloud.networksecurity.v1.AuthorizationPolicy result = new com.google.cloud.networksecurity.v1.AuthorizationPolicy(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.description_ = description_;
@@ -7522,39 +6504,38 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1.AuthorizationPolicy) {
-        return mergeFrom((com.google.cloud.networksecurity.v1.AuthorizationPolicy) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1.AuthorizationPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -7562,8 +6543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy other) {
-      if (other == com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -7578,7 +6558,8 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.action_ != 0) {
         setActionValue(other.getActionValue());
       }
@@ -7600,10 +6581,9 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthorizationPolicy
             rulesBuilder_ = null;
             rules_ = other.rules_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            rulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRulesFieldBuilder()
-                    : null;
+            rulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRulesFieldBuilder() : null;
           } else {
             rulesBuilder_.addAllMessages(other.rules_);
           }
@@ -7628,8 +6608,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1.AuthorizationPolicy) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1.AuthorizationPolicy) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -7638,26 +6617,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -7666,22 +6642,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7689,64 +6664,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -7754,20 +6722,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -7776,21 +6742,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -7798,61 +6763,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -7860,58 +6818,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -7927,17 +6866,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -7948,21 +6884,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -7974,15 +6906,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -7996,64 +6924,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -8061,58 +6973,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -8128,17 +7021,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -8149,21 +7039,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -8175,15 +7061,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -8197,84 +7079,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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 com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -8286,30 +7153,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Set of label tags associated with the AuthorizationPolicy resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. Set of label tags associated with the AuthorizationPolicy resource.
      * 
@@ -8317,12 +7182,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Set of label tags associated with the AuthorizationPolicy resource.
      * 
@@ -8330,17 +7194,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Set of label tags associated with the AuthorizationPolicy resource.
      * 
@@ -8348,11 +7211,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8360,139 +7224,118 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Set of label tags associated with the AuthorizationPolicy resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. Set of label tags associated with the AuthorizationPolicy resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Set of label tags associated with the AuthorizationPolicy resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private int action_ = 0; /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @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; onChanged(); return this; } /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The action. */ @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action result = - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.valueOf(action_); - return result == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.UNRECOGNIZED - : result; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action result = com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.valueOf(action_); + return result == null ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action.UNRECOGNIZED : result; } /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @param value The action to set. * @return This builder for chaining. */ @@ -8500,53 +7343,40 @@ public Builder setAction(com.google.cloud.networksecurity.v1.AuthorizationPolicy if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; } private java.util.List rules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - rules_ = - new java.util.ArrayList( - rules_); + rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder> - rulesBuilder_; + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder> rulesBuilder_; /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8554,12 +7384,9 @@ private void ensureRulesIsMutable() {
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getRulesList() { + public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { @@ -8567,8 +7394,6 @@ private void ensureRulesIsMutable() { } } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8576,9 +7401,7 @@ private void ensureRulesIsMutable() {
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public int getRulesCount() { if (rulesBuilder_ == null) { @@ -8588,8 +7411,6 @@ public int getRulesCount() { } } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8597,9 +7418,7 @@ public int getRulesCount() {
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getRules(int index) { if (rulesBuilder_ == null) { @@ -8609,8 +7428,6 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getRules(int } } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8618,9 +7435,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getRules(int
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRules( int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule value) { @@ -8637,8 +7452,6 @@ public Builder setRules( return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8646,13 +7459,10 @@ public Builder setRules(
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRules( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); @@ -8663,8 +7473,6 @@ public Builder setRules( return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8672,9 +7480,7 @@ public Builder setRules(
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addRules(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule value) { if (rulesBuilder_ == null) { @@ -8690,8 +7496,6 @@ public Builder addRules(com.google.cloud.networksecurity.v1.AuthorizationPolicy. return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8699,9 +7503,7 @@ public Builder addRules(com.google.cloud.networksecurity.v1.AuthorizationPolicy.
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addRules( int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule value) { @@ -8718,8 +7520,6 @@ public Builder addRules( return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8727,9 +7527,7 @@ public Builder addRules(
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addRules( com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder builderForValue) { @@ -8743,8 +7541,6 @@ public Builder addRules( return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8752,13 +7548,10 @@ public Builder addRules(
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addRules( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); @@ -8769,8 +7562,6 @@ public Builder addRules( return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8778,16 +7569,14 @@ public Builder addRules(
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllRules( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); @@ -8795,8 +7584,6 @@ public Builder addAllRules( return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8804,9 +7591,7 @@ public Builder addAllRules(
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRules() { if (rulesBuilder_ == null) { @@ -8819,8 +7604,6 @@ public Builder clearRules() { return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8828,9 +7611,7 @@ public Builder clearRules() {
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { @@ -8843,8 +7624,6 @@ public Builder removeRules(int index) { return this; } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8852,17 +7631,13 @@ public Builder removeRules(int index) {
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8870,21 +7645,16 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder getR
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { - return rules_.get(index); - } else { + return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8892,13 +7662,10 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder get
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder> - getRulesOrBuilderList() { + public java.util.List + getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { @@ -8906,8 +7673,6 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder get } } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8915,18 +7680,13 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder get
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder addRulesBuilder() { - return getRulesFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.getDefaultInstance()); + return getRulesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.getDefaultInstance()); } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8934,20 +7694,14 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder addR
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder addRulesBuilder( int index) { - return getRulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.getDefaultInstance()); + return getRulesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.getDefaultInstance()); } /** - * - * *
      * Optional. List of rules to match. Note that at least one of the rules must match in
      * order for the action specified in the 'action' field to be taken. A rule is
@@ -8955,34 +7709,29 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder addR
      * action specified in the `action` field will be applied on every request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getRulesBuilderList() { + public java.util.List + getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder> + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { - rulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder>( - rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder>( + rules_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); rules_ = null; } return rulesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8992,12 +7741,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthorizationPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthorizationPolicy) private static final com.google.cloud.networksecurity.v1.AuthorizationPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthorizationPolicy(); } @@ -9006,16 +7755,16 @@ public static com.google.cloud.networksecurity.v1.AuthorizationPolicy getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthorizationPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthorizationPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizationPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthorizationPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9030,4 +7779,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.AuthorizationPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java similarity index 70% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java index 84897b0a..a4752b00 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java @@ -1,159 +1,109 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; -public interface AuthorizationPolicyOrBuilder - extends +public interface AuthorizationPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthorizationPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the AuthorizationPolicy resource. It matches pattern
    * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the AuthorizationPolicy resource. It matches pattern
    * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
@@ -162,31 +112,30 @@ public interface AuthorizationPolicyOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
@@ -195,55 +144,43 @@ public interface AuthorizationPolicyOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Set of label tags associated with the AuthorizationPolicy resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. The action to take when a rule match is found. Possible values
    * are "ALLOW" or "DENY".
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * Required. The action to take when a rule match is found. Possible values
    * are "ALLOW" or "DENY".
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The action. */ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction(); /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -251,14 +188,11 @@ java.lang.String getLabelsOrDefault(
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getRulesList(); + java.util.List + getRulesList(); /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -266,14 +200,10 @@ java.lang.String getLabelsOrDefault(
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getRules(int index); /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -281,14 +211,10 @@ java.lang.String getLabelsOrDefault(
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getRulesCount(); /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -296,15 +222,11 @@ java.lang.String getLabelsOrDefault(
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getRulesOrBuilderList(); /** - * - * *
    * Optional. List of rules to match. Note that at least one of the rules must match in
    * order for the action specified in the 'action' field to be taken. A rule is
@@ -312,9 +234,7 @@ java.lang.String getLabelsOrDefault(
    * action specified in the `action` field will be applied on every request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder getRulesOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyProto.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyProto.java new file mode 100644 index 00000000..e727bf99 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyProto.java @@ -0,0 +1,247 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/authorization_policy.proto + +package com.google.cloud.networksecurity.v1; + +public final class AuthorizationPolicyProto { + private AuthorizationPolicyProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/networksecurity/v1/author" + + "ization_policy.proto\022\037google.cloud.netwo" + + "rksecurity.v1\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032 googl" + + "e/protobuf/field_mask.proto\032\037google/prot" + + "obuf/timestamp.proto\"\261\t\n\023AuthorizationPo" + + "licy\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002" + + " \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" + + "\006labels\030\005 \003(\0132@.google.cloud.networksecu" + + "rity.v1.AuthorizationPolicy.LabelsEntryB" + + "\003\340A\001\022P\n\006action\030\006 \001(\0162;.google.cloud.netw" + + "orksecurity.v1.AuthorizationPolicy.Actio" + + "nB\003\340A\002\022M\n\005rules\030\007 \003(\01329.google.cloud.net" + + "worksecurity.v1.AuthorizationPolicy.Rule" + + "B\003\340A\001\032\221\004\n\004Rule\022V\n\007sources\030\001 \003(\0132@.google" + + ".cloud.networksecurity.v1.AuthorizationP" + + "olicy.Rule.SourceB\003\340A\001\022`\n\014destinations\030\002" + + " \003(\0132E.google.cloud.networksecurity.v1.A" + + "uthorizationPolicy.Rule.DestinationB\003\340A\001" + + "\0329\n\006Source\022\027\n\nprincipals\030\001 \003(\tB\003\340A\001\022\026\n\ti" + + "p_blocks\030\002 \003(\tB\003\340A\001\032\223\002\n\013Destination\022\022\n\005h" + + "osts\030\001 \003(\tB\003\340A\002\022\022\n\005ports\030\002 \003(\rB\003\340A\002\022\024\n\007m" + + "ethods\030\004 \003(\tB\003\340A\001\022u\n\021http_header_match\030\005" + + " \001(\0132U.google.cloud.networksecurity.v1.A" + + "uthorizationPolicy.Rule.Destination.Http" + + "HeaderMatchB\003\340A\001\032O\n\017HttpHeaderMatch\022\032\n\013r" + + "egex_match\030\002 \001(\tB\003\340A\002H\000\022\030\n\013header_name\030\001" + + " \001(\tB\003\340A\002B\006\n\004type\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\006Action\022\026\n\022AC" + + "TION_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020\002:" + + "\216\001\352A\212\001\n2networksecurity.googleapis.com/A" + + "uthorizationPolicy\022Tprojects/{project}/l" + + "ocations/{location}/authorizationPolicie" + + "s/{authorization_policy}\"\204\001\n ListAuthori" + + "zationPoliciesRequest\0229\n\006parent\030\001 \001(\tB)\340" + + "A\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\"" + + "\222\001\n!ListAuthorizationPoliciesResponse\022T\n" + + "\026authorization_policies\030\001 \003(\01324.google.c" + + "loud.networksecurity.v1.AuthorizationPol" + + "icy\022\027\n\017next_page_token\030\002 \001(\t\"i\n\035GetAutho" + + "rizationPolicyRequest\022H\n\004name\030\001 \001(\tB:\340A\002" + + "\372A4\n2networksecurity.googleapis.com/Auth" + + "orizationPolicy\"\355\001\n CreateAuthorizationP" + + "olicyRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222ne" + + "tworksecurity.googleapis.com/Authorizati" + + "onPolicy\022$\n\027authorization_policy_id\030\002 \001(" + + "\tB\003\340A\002\022W\n\024authorization_policy\030\003 \001(\01324.g" + + "oogle.cloud.networksecurity.v1.Authoriza" + + "tionPolicyB\003\340A\002\"\261\001\n UpdateAuthorizationP" + + "olicyRequest\0224\n\013update_mask\030\001 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\001\022W\n\024authorizat" + + "ion_policy\030\002 \001(\01324.google.cloud.networks" + + "ecurity.v1.AuthorizationPolicyB\003\340A\002\"l\n D" + + "eleteAuthorizationPolicyRequest\022H\n\004name\030" + + "\001 \001(\tB:\340A\002\372A4\n2networksecurity.googleapi" + + "s.com/AuthorizationPolicyB\372\001\n#com.google" + + ".cloud.networksecurity.v1B\030Authorization" + + "PolicyProtoP\001ZNgoogle.golang.org/genprot" + + "o/googleapis/cloud/networksecurity/v1;ne" + + "tworksecurity\252\002\037Google.Cloud.NetworkSecu" + + "rity.V1\312\002\037Google\\Cloud\\NetworkSecurity\\V" + + "1\352\002\"Google::Cloud::NetworkSecurity::V1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Labels", "Action", "Rules", }); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor, + new java.lang.String[] { "Sources", "Destinations", }); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor, + new java.lang.String[] { "Principals", "IpBlocks", }); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor, + new java.lang.String[] { "Hosts", "Ports", "Methods", "HttpHeaderMatch", }); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor, + new java.lang.String[] { "RegexMatch", "HeaderName", "Type", }); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor, + new java.lang.String[] { "AuthorizationPolicies", "NextPageToken", }); + internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor, + new java.lang.String[] { "Parent", "AuthorizationPolicyId", "AuthorizationPolicy", }); + internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor, + new java.lang.String[] { "UpdateMask", "AuthorizationPolicy", }); + internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java similarity index 66% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java index 487a0ef0..ba4536d9 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Specification of certificate provider. Defines the mechanism to obtain the
  * certificate and private key for peer to peer authentication.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1.CertificateProvider}
  */
-public final class CertificateProvider extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateProvider extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CertificateProvider)
     CertificateProviderOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateProvider.newBuilder() to construct.
   private CertificateProvider(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private CertificateProvider() {}
+  private CertificateProvider() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateProvider();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateProvider(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,50 +53,41 @@ private CertificateProvider(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder subBuilder = null;
-              if (typeCase_ == 2) {
-                subBuilder = ((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.GrpcEndpoint.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 2;
-              break;
+          case 18: {
+            com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder subBuilder = null;
+            if (typeCase_ == 2) {
+              subBuilder = ((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_).toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder subBuilder =
-                  null;
-              if (typeCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_)
-                        .toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.CertificateProviderInstance.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 3;
-              break;
+            type_ =
+                input.readMessage(com.google.cloud.networksecurity.v1.GrpcEndpoint.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            typeCase_ = 2;
+            break;
+          }
+          case 26: {
+            com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder subBuilder = null;
+            if (typeCase_ == 3) {
+              subBuilder = ((com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_).toBuilder();
+            }
+            type_ =
+                input.readMessage(com.google.cloud.networksecurity.v1.CertificateProviderInstance.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_);
+              type_ = subBuilder.buildPartial();
             }
+            typeCase_ = 3;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -120,40 +95,35 @@ private CertificateProvider(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1_CertificateProvider_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProvider_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1.CertificateProvider.class,
-            com.google.cloud.networksecurity.v1.CertificateProvider.Builder.class);
+            com.google.cloud.networksecurity.v1.CertificateProvider.class, com.google.cloud.networksecurity.v1.CertificateProvider.Builder.class);
   }
 
   private int typeCase_ = 0;
   private java.lang.Object type_;
-
   public enum TypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GRPC_ENDPOINT(2),
     CERTIFICATE_PROVIDER_INSTANCE(3),
     TYPE_NOT_SET(0);
     private final int value;
-
     private TypeCase(int value) {
       this.value = value;
     }
@@ -169,37 +139,31 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return GRPC_ENDPOINT;
-        case 3:
-          return CERTIFICATE_PROVIDER_INSTANCE;
-        case 0:
-          return TYPE_NOT_SET;
-        default:
-          return null;
+        case 2: return GRPC_ENDPOINT;
+        case 3: return CERTIFICATE_PROVIDER_INSTANCE;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase getTypeCase() {
-    return TypeCase.forNumber(typeCase_);
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
   }
 
   public static final int GRPC_ENDPOINT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
    * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ @java.lang.Override @@ -207,27 +171,22 @@ public boolean hasGrpcEndpoint() { return typeCase_ == 2; } /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
    * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ @java.lang.Override public com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint() { if (typeCase_ == 2) { - return (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_; + return (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_; } return com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance(); } /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
@@ -238,25 +197,20 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint() {
   @java.lang.Override
   public com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder() {
     if (typeCase_ == 2) {
-      return (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_;
+       return (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_;
     }
     return com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance();
   }
 
   public static final int CERTIFICATE_PROVIDER_INSTANCE_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ @java.lang.Override @@ -264,52 +218,40 @@ public boolean hasCertificateProviderInstance() { return typeCase_ == 3; } /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstance - getCertificateProviderInstance() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstance getCertificateProviderInstance() { if (typeCase_ == 3) { - return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; + return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; } return com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance(); } /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder() { if (typeCase_ == 3) { - return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; + return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; } return com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,13 +263,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 2) { output.writeMessage(2, (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_); } if (typeCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_); + output.writeMessage(3, (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_); } unknownFields.writeTo(output); } @@ -339,14 +281,12 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_); } if (typeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,22 +296,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.CertificateProvider)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.CertificateProvider other = - (com.google.cloud.networksecurity.v1.CertificateProvider) obj; + com.google.cloud.networksecurity.v1.CertificateProvider other = (com.google.cloud.networksecurity.v1.CertificateProvider) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 2: - if (!getGrpcEndpoint().equals(other.getGrpcEndpoint())) return false; + if (!getGrpcEndpoint() + .equals(other.getGrpcEndpoint())) return false; break; case 3: - if (!getCertificateProviderInstance().equals(other.getCertificateProviderInstance())) - return false; + if (!getCertificateProviderInstance() + .equals(other.getCertificateProviderInstance())) return false; break; case 0: default: @@ -405,104 +345,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CertificateProvider 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.networksecurity.v1.CertificateProvider parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CertificateProvider parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CertificateProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CertificateProvider parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CertificateProvider parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.CertificateProvider prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.CertificateProvider prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specification of certificate provider. Defines the mechanism to obtain the
    * certificate and private key for peer to peer authentication.
@@ -510,23 +442,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1.CertificateProvider}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CertificateProvider)
       com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_CertificateProvider_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProvider_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1.CertificateProvider.class,
-              com.google.cloud.networksecurity.v1.CertificateProvider.Builder.class);
+              com.google.cloud.networksecurity.v1.CertificateProvider.class, com.google.cloud.networksecurity.v1.CertificateProvider.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1.CertificateProvider.newBuilder()
@@ -534,15 +464,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -552,9 +483,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor;
     }
 
     @java.lang.Override
@@ -573,8 +504,7 @@ public com.google.cloud.networksecurity.v1.CertificateProvider build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1.CertificateProvider buildPartial() {
-      com.google.cloud.networksecurity.v1.CertificateProvider result =
-          new com.google.cloud.networksecurity.v1.CertificateProvider(this);
+      com.google.cloud.networksecurity.v1.CertificateProvider result = new com.google.cloud.networksecurity.v1.CertificateProvider(this);
       if (typeCase_ == 2) {
         if (grpcEndpointBuilder_ == null) {
           result.type_ = type_;
@@ -598,39 +528,38 @@ public com.google.cloud.networksecurity.v1.CertificateProvider buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1.CertificateProvider) {
-        return mergeFrom((com.google.cloud.networksecurity.v1.CertificateProvider) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1.CertificateProvider)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -638,23 +567,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1.CertificateProvider other) {
-      if (other == com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance()) return this;
       switch (other.getTypeCase()) {
-        case GRPC_ENDPOINT:
-          {
-            mergeGrpcEndpoint(other.getGrpcEndpoint());
-            break;
-          }
-        case CERTIFICATE_PROVIDER_INSTANCE:
-          {
-            mergeCertificateProviderInstance(other.getCertificateProviderInstance());
-            break;
-          }
-        case TYPE_NOT_SET:
-          {
-            break;
-          }
+        case GRPC_ENDPOINT: {
+          mergeGrpcEndpoint(other.getGrpcEndpoint());
+          break;
+        }
+        case CERTIFICATE_PROVIDER_INSTANCE: {
+          mergeCertificateProviderInstance(other.getCertificateProviderInstance());
+          break;
+        }
+        case TYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -675,8 +600,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1.CertificateProvider) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1.CertificateProvider) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -685,12 +609,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int typeCase_ = 0;
     private java.lang.Object type_;
-
-    public TypeCase getTypeCase() {
-      return TypeCase.forNumber(typeCase_);
+    public TypeCase
+        getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
     }
 
     public Builder clearType() {
@@ -700,21 +624,16 @@ public Builder clearType() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.GrpcEndpoint,
-            com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder,
-            com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder>
-        grpcEndpointBuilder_;
+        com.google.cloud.networksecurity.v1.GrpcEndpoint, com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder> grpcEndpointBuilder_;
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
      * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ @java.lang.Override @@ -722,15 +641,12 @@ public boolean hasGrpcEndpoint() { return typeCase_ == 2; } /** - * - * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
      * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ @java.lang.Override @@ -748,8 +664,6 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint() { } } /** - * - * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -771,8 +685,6 @@ public Builder setGrpcEndpoint(com.google.cloud.networksecurity.v1.GrpcEndpoint
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -792,8 +704,6 @@ public Builder setGrpcEndpoint(
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -803,13 +713,10 @@ public Builder setGrpcEndpoint(
      */
     public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1.GrpcEndpoint value) {
       if (grpcEndpointBuilder_ == null) {
-        if (typeCase_ == 2
-            && type_ != com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance()) {
-          type_ =
-              com.google.cloud.networksecurity.v1.GrpcEndpoint.newBuilder(
-                      (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (typeCase_ == 2 &&
+            type_ != com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance()) {
+          type_ = com.google.cloud.networksecurity.v1.GrpcEndpoint.newBuilder((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_)
+              .mergeFrom(value).buildPartial();
         } else {
           type_ = value;
         }
@@ -825,8 +732,6 @@ public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1.GrpcEndpoin
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -851,8 +756,6 @@ public Builder clearGrpcEndpoint() {
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -864,8 +767,6 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder getGrpcEndpointB
       return getGrpcEndpointFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -885,8 +786,6 @@ public com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpoint
       }
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -895,48 +794,34 @@ public com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpoint
      * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.GrpcEndpoint,
-            com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder,
-            com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder>
+        com.google.cloud.networksecurity.v1.GrpcEndpoint, com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder> 
         getGrpcEndpointFieldBuilder() {
       if (grpcEndpointBuilder_ == null) {
         if (!(typeCase_ == 2)) {
           type_ = com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance();
         }
-        grpcEndpointBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.networksecurity.v1.GrpcEndpoint,
-                com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder,
-                com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder>(
+        grpcEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.networksecurity.v1.GrpcEndpoint, com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder>(
                 (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_,
                 getParentForChildren(),
                 isClean());
         type_ = null;
       }
       typeCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return grpcEndpointBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.CertificateProviderInstance,
-            com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder,
-            com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder>
-        certificateProviderInstanceBuilder_;
+        com.google.cloud.networksecurity.v1.CertificateProviderInstance, com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder> certificateProviderInstanceBuilder_;
     /**
-     *
-     *
      * 
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ @java.lang.Override @@ -944,23 +829,17 @@ public boolean hasCertificateProviderInstance() { return typeCase_ == 3; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstance - getCertificateProviderInstance() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstance getCertificateProviderInstance() { if (certificateProviderInstanceBuilder_ == null) { if (typeCase_ == 3) { return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; @@ -974,20 +853,15 @@ public boolean hasCertificateProviderInstance() { } } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ - public Builder setCertificateProviderInstance( - com.google.cloud.networksecurity.v1.CertificateProviderInstance value) { + public Builder setCertificateProviderInstance(com.google.cloud.networksecurity.v1.CertificateProviderInstance value) { if (certificateProviderInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1001,17 +875,13 @@ public Builder setCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ public Builder setCertificateProviderInstance( com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder builderForValue) { @@ -1025,30 +895,20 @@ public Builder setCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ - public Builder mergeCertificateProviderInstance( - com.google.cloud.networksecurity.v1.CertificateProviderInstance value) { + public Builder mergeCertificateProviderInstance(com.google.cloud.networksecurity.v1.CertificateProviderInstance value) { if (certificateProviderInstanceBuilder_ == null) { - if (typeCase_ == 3 - && type_ - != com.google.cloud.networksecurity.v1.CertificateProviderInstance - .getDefaultInstance()) { - type_ = - com.google.cloud.networksecurity.v1.CertificateProviderInstance.newBuilder( - (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 3 && + type_ != com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance()) { + type_ = com.google.cloud.networksecurity.v1.CertificateProviderInstance.newBuilder((com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1064,17 +924,13 @@ public Builder mergeCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ public Builder clearCertificateProviderInstance() { if (certificateProviderInstanceBuilder_ == null) { @@ -1093,38 +949,28 @@ public Builder clearCertificateProviderInstance() { return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ - public com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder - getCertificateProviderInstanceBuilder() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder getCertificateProviderInstanceBuilder() { return getCertificateProviderInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder() { if ((typeCase_ == 3) && (certificateProviderInstanceBuilder_ != null)) { return certificateProviderInstanceBuilder_.getMessageOrBuilder(); } else { @@ -1135,46 +981,35 @@ public Builder clearCertificateProviderInstance() { } } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.CertificateProviderInstance, - com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, - com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder> + com.google.cloud.networksecurity.v1.CertificateProviderInstance, com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder> getCertificateProviderInstanceFieldBuilder() { if (certificateProviderInstanceBuilder_ == null) { if (!(typeCase_ == 3)) { - type_ = - com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance(); + type_ = com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance(); } - certificateProviderInstanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.CertificateProviderInstance, - com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, - com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder>( + certificateProviderInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.CertificateProviderInstance, com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder>( (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; - onChanged(); - ; + onChanged();; return certificateProviderInstanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1184,12 +1019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CertificateProvider) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CertificateProvider) private static final com.google.cloud.networksecurity.v1.CertificateProvider DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CertificateProvider(); } @@ -1198,16 +1033,16 @@ public static com.google.cloud.networksecurity.v1.CertificateProvider getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateProvider parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateProvider(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateProvider(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1222,4 +1057,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.CertificateProvider getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java similarity index 68% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java index 5c6552b1..1d42cf64 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Specification of a TLS certificate provider instance. Workloads may have one
  * or more CertificateProvider instances (plugins) and one of them is enabled
@@ -30,31 +13,31 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1.CertificateProviderInstance}
  */
-public final class CertificateProviderInstance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateProviderInstance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CertificateProviderInstance)
     CertificateProviderInstanceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateProviderInstance.newBuilder() to construct.
   private CertificateProviderInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateProviderInstance() {
     pluginInstance_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateProviderInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateProviderInstance(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,20 +56,19 @@ private CertificateProviderInstance(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              pluginInstance_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            pluginInstance_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,33 +76,29 @@ private CertificateProviderInstance(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1.CertificateProviderInstance.class,
-            com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder.class);
+            com.google.cloud.networksecurity.v1.CertificateProviderInstance.class, com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder.class);
   }
 
   public static final int PLUGIN_INSTANCE_FIELD_NUMBER = 1;
   private volatile java.lang.Object pluginInstance_;
   /**
-   *
-   *
    * 
    * Required. Plugin instance name, used to locate and load CertificateProvider instance
    * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -128,7 +106,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pluginInstance. */ @java.lang.Override @@ -137,15 +114,14 @@ public java.lang.String getPluginInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pluginInstance_ = s; return s; } } /** - * - * *
    * Required. Plugin instance name, used to locate and load CertificateProvider instance
    * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -153,15 +129,16 @@ public java.lang.String getPluginInstance() {
    * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pluginInstance. */ @java.lang.Override - public com.google.protobuf.ByteString getPluginInstanceBytes() { + public com.google.protobuf.ByteString + getPluginInstanceBytes() { java.lang.Object ref = pluginInstance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pluginInstance_ = b; return b; } else { @@ -170,7 +147,6 @@ public com.google.protobuf.ByteString getPluginInstanceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pluginInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pluginInstance_); } @@ -206,15 +183,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.CertificateProviderInstance)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.CertificateProviderInstance other = - (com.google.cloud.networksecurity.v1.CertificateProviderInstance) obj; + com.google.cloud.networksecurity.v1.CertificateProviderInstance other = (com.google.cloud.networksecurity.v1.CertificateProviderInstance) obj; - if (!getPluginInstance().equals(other.getPluginInstance())) return false; + if (!getPluginInstance() + .equals(other.getPluginInstance())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,104 +211,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance 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.networksecurity.v1.CertificateProviderInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.CertificateProviderInstance prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.CertificateProviderInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specification of a TLS certificate provider instance. Workloads may have one
    * or more CertificateProvider instances (plugins) and one of them is enabled
@@ -341,23 +310,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1.CertificateProviderInstance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CertificateProviderInstance)
       com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1.CertificateProviderInstance.class,
-              com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder.class);
+              com.google.cloud.networksecurity.v1.CertificateProviderInstance.class, com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1.CertificateProviderInstance.newBuilder()
@@ -365,15 +332,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -383,14 +351,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networksecurity.v1.CertificateProviderInstance
-        getDefaultInstanceForType() {
+    public com.google.cloud.networksecurity.v1.CertificateProviderInstance getDefaultInstanceForType() {
       return com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance();
     }
 
@@ -405,8 +372,7 @@ public com.google.cloud.networksecurity.v1.CertificateProviderInstance build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1.CertificateProviderInstance buildPartial() {
-      com.google.cloud.networksecurity.v1.CertificateProviderInstance result =
-          new com.google.cloud.networksecurity.v1.CertificateProviderInstance(this);
+      com.google.cloud.networksecurity.v1.CertificateProviderInstance result = new com.google.cloud.networksecurity.v1.CertificateProviderInstance(this);
       result.pluginInstance_ = pluginInstance_;
       onBuilt();
       return result;
@@ -416,50 +382,46 @@ public com.google.cloud.networksecurity.v1.CertificateProviderInstance buildPart
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1.CertificateProviderInstance) {
-        return mergeFrom((com.google.cloud.networksecurity.v1.CertificateProviderInstance) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1.CertificateProviderInstance)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networksecurity.v1.CertificateProviderInstance other) {
-      if (other
-          == com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.networksecurity.v1.CertificateProviderInstance other) {
+      if (other == com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance()) return this;
       if (!other.getPluginInstance().isEmpty()) {
         pluginInstance_ = other.pluginInstance_;
         onChanged();
@@ -483,9 +445,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1.CertificateProviderInstance)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1.CertificateProviderInstance) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -497,8 +457,6 @@ public Builder mergeFrom(
 
     private java.lang.Object pluginInstance_ = "";
     /**
-     *
-     *
      * 
      * Required. Plugin instance name, used to locate and load CertificateProvider instance
      * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -506,13 +464,13 @@ public Builder mergeFrom(
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pluginInstance. */ public java.lang.String getPluginInstance() { java.lang.Object ref = pluginInstance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pluginInstance_ = s; return s; @@ -521,8 +479,6 @@ public java.lang.String getPluginInstance() { } } /** - * - * *
      * Required. Plugin instance name, used to locate and load CertificateProvider instance
      * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -530,14 +486,15 @@ public java.lang.String getPluginInstance() {
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pluginInstance. */ - public com.google.protobuf.ByteString getPluginInstanceBytes() { + public com.google.protobuf.ByteString + getPluginInstanceBytes() { java.lang.Object ref = pluginInstance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pluginInstance_ = b; return b; } else { @@ -545,8 +502,6 @@ public com.google.protobuf.ByteString getPluginInstanceBytes() { } } /** - * - * *
      * Required. Plugin instance name, used to locate and load CertificateProvider instance
      * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -554,22 +509,20 @@ public com.google.protobuf.ByteString getPluginInstanceBytes() {
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The pluginInstance to set. * @return This builder for chaining. */ - public Builder setPluginInstance(java.lang.String value) { + public Builder setPluginInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pluginInstance_ = value; onChanged(); return this; } /** - * - * *
      * Required. Plugin instance name, used to locate and load CertificateProvider instance
      * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -577,18 +530,15 @@ public Builder setPluginInstance(java.lang.String value) {
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPluginInstance() { - + pluginInstance_ = getDefaultInstance().getPluginInstance(); onChanged(); return this; } /** - * - * *
      * Required. Plugin instance name, used to locate and load CertificateProvider instance
      * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -596,23 +546,23 @@ public Builder clearPluginInstance() {
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for pluginInstance to set. * @return This builder for chaining. */ - public Builder setPluginInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setPluginInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pluginInstance_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,32 +572,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CertificateProviderInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CertificateProviderInstance) - private static final com.google.cloud.networksecurity.v1.CertificateProviderInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.CertificateProviderInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CertificateProviderInstance(); } - public static com.google.cloud.networksecurity.v1.CertificateProviderInstance - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.CertificateProviderInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateProviderInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateProviderInstance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateProviderInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateProviderInstance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -659,8 +607,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstance - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java similarity index 60% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java index 4bfde71f..b32932cb 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto package com.google.cloud.networksecurity.v1; -public interface CertificateProviderInstanceOrBuilder - extends +public interface CertificateProviderInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CertificateProviderInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Plugin instance name, used to locate and load CertificateProvider instance
    * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -33,13 +15,10 @@ public interface CertificateProviderInstanceOrBuilder
    * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pluginInstance. */ java.lang.String getPluginInstance(); /** - * - * *
    * Required. Plugin instance name, used to locate and load CertificateProvider instance
    * configuration. Set to "google_cloud_private_spiffe" to use Certificate
@@ -47,8 +26,8 @@ public interface CertificateProviderInstanceOrBuilder
    * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pluginInstance. */ - com.google.protobuf.ByteString getPluginInstanceBytes(); + com.google.protobuf.ByteString + getPluginInstanceBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java index e62cd941..b63f5d22 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto package com.google.cloud.networksecurity.v1; -public interface CertificateProviderOrBuilder - extends +public interface CertificateProviderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CertificateProvider) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
    * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ boolean hasGrpcEndpoint(); /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
    * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint(); /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
@@ -62,52 +38,37 @@ public interface CertificateProviderOrBuilder
   com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder();
 
   /**
-   *
-   *
    * 
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ boolean hasCertificateProviderInstance(); /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ com.google.cloud.networksecurity.v1.CertificateProviderInstance getCertificateProviderInstance(); /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ - com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder(); + com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder(); public com.google.cloud.networksecurity.v1.CertificateProvider.TypeCase getTypeCase(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java similarity index 66% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java index ced1a724..3a975e5a 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * ClientTlsPolicy is a resource that specifies how a client should authenticate
  * connections to backends of a service. This resource itself does not affect
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1.ClientTlsPolicy}
  */
-public final class ClientTlsPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ClientTlsPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ClientTlsPolicy)
     ClientTlsPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ClientTlsPolicy.newBuilder() to construct.
   private ClientTlsPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ClientTlsPolicy() {
     name_ = "";
     description_ = "";
@@ -48,15 +30,16 @@ private ClientTlsPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ClientTlsPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ClientTlsPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,107 +59,92 @@ private ClientTlsPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              sni_ = s;
-              break;
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              com.google.cloud.networksecurity.v1.CertificateProvider.Builder subBuilder = null;
-              if (clientCertificate_ != null) {
-                subBuilder = clientCertificate_.toBuilder();
-              }
-              clientCertificate_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.CertificateProvider.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(clientCertificate_);
-                clientCertificate_ = subBuilder.buildPartial();
-              }
-
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            sni_ = s;
+            break;
+          }
+          case 58: {
+            com.google.cloud.networksecurity.v1.CertificateProvider.Builder subBuilder = null;
+            if (clientCertificate_ != null) {
+              subBuilder = clientCertificate_.toBuilder();
             }
-          case 66:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                serverValidationCa_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              serverValidationCa_.add(
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.ValidationCA.parser(),
-                      extensionRegistry));
-              break;
+            clientCertificate_ = input.readMessage(com.google.cloud.networksecurity.v1.CertificateProvider.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(clientCertificate_);
+              clientCertificate_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 66: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              serverValidationCa_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
+            }
+            serverValidationCa_.add(
+                input.readMessage(com.google.cloud.networksecurity.v1.ValidationCA.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -184,7 +152,8 @@ private ClientTlsPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         serverValidationCa_ = java.util.Collections.unmodifiableList(serverValidationCa_);
@@ -193,45 +162,40 @@ private ClientTlsPolicy(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto
-        .internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto
-        .internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1.ClientTlsPolicy.class,
-            com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder.class);
+            com.google.cloud.networksecurity.v1.ClientTlsPolicy.class, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -240,30 +204,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -274,14 +238,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -290,29 +251,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -323,15 +284,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -339,15 +296,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -355,14 +308,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -372,15 +322,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -388,15 +334,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -404,14 +346,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -419,23 +358,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -444,30 +384,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -475,12 +413,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -488,16 +425,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -505,11 +442,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -519,15 +457,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int SNI_FIELD_NUMBER = 6; private volatile java.lang.Object sni_; /** - * - * *
    * Optional. Server Name Indication string to present to the server during TLS
    * handshake. E.g: "secure.example.com".
    * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sni. */ @java.lang.Override @@ -536,30 +471,30 @@ public java.lang.String getSni() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sni_ = s; return s; } } /** - * - * *
    * Optional. Server Name Indication string to present to the server during TLS
    * handshake. E.g: "secure.example.com".
    * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sni. */ @java.lang.Override - public com.google.protobuf.ByteString getSniBytes() { + public com.google.protobuf.ByteString + getSniBytes() { java.lang.Object ref = sni_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sni_ = b; return b; } else { @@ -570,17 +505,12 @@ public com.google.protobuf.ByteString getSniBytes() { public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 7; private com.google.cloud.networksecurity.v1.CertificateProvider clientCertificate_; /** - * - * *
    * Optional. Defines a mechanism to provision client identity (public and private keys)
    * for peer to peer authentication. The presence of this dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the clientCertificate field is set. */ @java.lang.Override @@ -588,127 +518,94 @@ public boolean hasClientCertificate() { return clientCertificate_ != null; } /** - * - * *
    * Optional. Defines a mechanism to provision client identity (public and private keys)
    * for peer to peer authentication. The presence of this dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The clientCertificate. */ @java.lang.Override public com.google.cloud.networksecurity.v1.CertificateProvider getClientCertificate() { - return clientCertificate_ == null - ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() - : clientCertificate_; + return clientCertificate_ == null ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() : clientCertificate_; } /** - * - * *
    * Optional. Defines a mechanism to provision client identity (public and private keys)
    * for peer to peer authentication. The presence of this dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder - getClientCertificateOrBuilder() { + public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getClientCertificateOrBuilder() { return getClientCertificate(); } public static final int SERVER_VALIDATION_CA_FIELD_NUMBER = 8; private java.util.List serverValidationCa_; /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getServerValidationCaList() { + public java.util.List getServerValidationCaList() { return serverValidationCa_; } /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getServerValidationCaOrBuilderList() { return serverValidationCa_; } /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getServerValidationCaCount() { return serverValidationCa_.size(); } /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.networksecurity.v1.ValidationCA getServerValidationCa(int index) { return serverValidationCa_.get(index); } /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getServerValidationCaOrBuilder( @@ -717,7 +614,6 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getServerValida } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -729,7 +625,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -742,8 +639,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sni_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sni_); } @@ -769,30 +670,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sni_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sni_); } if (clientCertificate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getClientCertificate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getClientCertificate()); } for (int i = 0; i < serverValidationCa_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, serverValidationCa_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, serverValidationCa_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -802,31 +706,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.ClientTlsPolicy)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.ClientTlsPolicy other = - (com.google.cloud.networksecurity.v1.ClientTlsPolicy) obj; + com.google.cloud.networksecurity.v1.ClientTlsPolicy other = (com.google.cloud.networksecurity.v1.ClientTlsPolicy) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getSni().equals(other.getSni())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getSni() + .equals(other.getSni())) return false; if (hasClientCertificate() != other.hasClientCertificate()) return false; if (hasClientCertificate()) { - if (!getClientCertificate().equals(other.getClientCertificate())) return false; + if (!getClientCertificate() + .equals(other.getClientCertificate())) return false; } - if (!getServerValidationCaList().equals(other.getServerValidationCaList())) return false; + if (!getServerValidationCaList() + .equals(other.getServerValidationCaList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -870,103 +781,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy 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.networksecurity.v1.ClientTlsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ClientTlsPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networksecurity.v1.ClientTlsPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ClientTlsPolicy is a resource that specifies how a client should authenticate
    * connections to backends of a service. This resource itself does not affect
@@ -975,43 +879,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1.ClientTlsPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ClientTlsPolicy)
       com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1.ClientTlsPolicy.class,
-              com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder.class);
+              com.google.cloud.networksecurity.v1.ClientTlsPolicy.class, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1.ClientTlsPolicy.newBuilder()
@@ -1019,17 +923,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getServerValidationCaFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1068,9 +972,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -1089,8 +993,7 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1.ClientTlsPolicy buildPartial() {
-      com.google.cloud.networksecurity.v1.ClientTlsPolicy result =
-          new com.google.cloud.networksecurity.v1.ClientTlsPolicy(this);
+      com.google.cloud.networksecurity.v1.ClientTlsPolicy result = new com.google.cloud.networksecurity.v1.ClientTlsPolicy(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.description_ = description_;
@@ -1129,39 +1032,38 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1.ClientTlsPolicy) {
-        return mergeFrom((com.google.cloud.networksecurity.v1.ClientTlsPolicy) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1.ClientTlsPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1169,8 +1071,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1.ClientTlsPolicy other) {
-      if (other == com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1185,7 +1086,8 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.ClientTlsPolicy oth
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getSni().isEmpty()) {
         sni_ = other.sni_;
         onChanged();
@@ -1211,10 +1113,9 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.ClientTlsPolicy oth
             serverValidationCaBuilder_ = null;
             serverValidationCa_ = other.serverValidationCa_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            serverValidationCaBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getServerValidationCaFieldBuilder()
-                    : null;
+            serverValidationCaBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getServerValidationCaFieldBuilder() : null;
           } else {
             serverValidationCaBuilder_.addAllMessages(other.serverValidationCa_);
           }
@@ -1239,8 +1140,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1.ClientTlsPolicy) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1.ClientTlsPolicy) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1249,26 +1149,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1277,22 +1174,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1300,64 +1196,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1365,20 +1254,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1387,21 +1274,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1409,61 +1295,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1471,58 +1350,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1538,17 +1398,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1559,21 +1416,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1585,15 +1438,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1607,64 +1456,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -1672,58 +1505,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1739,17 +1553,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1760,21 +1571,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1786,15 +1593,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1808,84 +1611,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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 com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1897,30 +1685,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
@@ -1928,12 +1714,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
@@ -1941,17 +1726,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
@@ -1959,11 +1743,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1971,81 +1756,82 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object sni_ = ""; /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sni. */ public java.lang.String getSni() { java.lang.Object ref = sni_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sni_ = s; return s; @@ -2054,22 +1840,21 @@ public java.lang.String getSni() { } } /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sni. */ - public com.google.protobuf.ByteString getSniBytes() { + public com.google.protobuf.ByteString + getSniBytes() { java.lang.Object ref = sni_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sni_ = b; return b; } else { @@ -2077,64 +1862,57 @@ public com.google.protobuf.ByteString getSniBytes() { } } /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sni to set. * @return This builder for chaining. */ - public Builder setSni(java.lang.String value) { + public Builder setSni( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sni_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSni() { - + sni_ = getDefaultInstance().getSni(); onChanged(); return this; } /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sni to set. * @return This builder for chaining. */ - public Builder setSniBytes(com.google.protobuf.ByteString value) { + public Builder setSniBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sni_ = value; onChanged(); return this; @@ -2142,64 +1920,44 @@ public Builder setSniBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networksecurity.v1.CertificateProvider clientCertificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.CertificateProvider, - com.google.cloud.networksecurity.v1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder> - clientCertificateBuilder_; + com.google.cloud.networksecurity.v1.CertificateProvider, com.google.cloud.networksecurity.v1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder> clientCertificateBuilder_; /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the clientCertificate field is set. */ public boolean hasClientCertificate() { return clientCertificateBuilder_ != null || clientCertificate_ != null; } /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The clientCertificate. */ public com.google.cloud.networksecurity.v1.CertificateProvider getClientCertificate() { if (clientCertificateBuilder_ == null) { - return clientCertificate_ == null - ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() - : clientCertificate_; + return clientCertificate_ == null ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() : clientCertificate_; } else { return clientCertificateBuilder_.getMessage(); } } /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setClientCertificate( - com.google.cloud.networksecurity.v1.CertificateProvider value) { + public Builder setClientCertificate(com.google.cloud.networksecurity.v1.CertificateProvider value) { if (clientCertificateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2213,16 +1971,12 @@ public Builder setClientCertificate( return this; } /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setClientCertificate( com.google.cloud.networksecurity.v1.CertificateProvider.Builder builderForValue) { @@ -2236,25 +1990,18 @@ public Builder setClientCertificate( return this; } /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeClientCertificate( - com.google.cloud.networksecurity.v1.CertificateProvider value) { + public Builder mergeClientCertificate(com.google.cloud.networksecurity.v1.CertificateProvider value) { if (clientCertificateBuilder_ == null) { if (clientCertificate_ != null) { clientCertificate_ = - com.google.cloud.networksecurity.v1.CertificateProvider.newBuilder(clientCertificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1.CertificateProvider.newBuilder(clientCertificate_).mergeFrom(value).buildPartial(); } else { clientCertificate_ = value; } @@ -2266,16 +2013,12 @@ public Builder mergeClientCertificate( return this; } /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearClientCertificate() { if (clientCertificateBuilder_ == null) { @@ -2289,107 +2032,78 @@ public Builder clearClientCertificate() { return this; } /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.CertificateProvider.Builder - getClientCertificateBuilder() { - + public com.google.cloud.networksecurity.v1.CertificateProvider.Builder getClientCertificateBuilder() { + onChanged(); return getClientCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder - getClientCertificateOrBuilder() { + public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getClientCertificateOrBuilder() { if (clientCertificateBuilder_ != null) { return clientCertificateBuilder_.getMessageOrBuilder(); } else { - return clientCertificate_ == null - ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() - : clientCertificate_; + return clientCertificate_ == null ? + com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() : clientCertificate_; } } /** - * - * *
      * Optional. Defines a mechanism to provision client identity (public and private keys)
      * for peer to peer authentication. The presence of this dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.CertificateProvider, - com.google.cloud.networksecurity.v1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder> + com.google.cloud.networksecurity.v1.CertificateProvider, com.google.cloud.networksecurity.v1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder> getClientCertificateFieldBuilder() { if (clientCertificateBuilder_ == null) { - clientCertificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.CertificateProvider, - com.google.cloud.networksecurity.v1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder>( - getClientCertificate(), getParentForChildren(), isClean()); + clientCertificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.CertificateProvider, com.google.cloud.networksecurity.v1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder>( + getClientCertificate(), + getParentForChildren(), + isClean()); clientCertificate_ = null; } return clientCertificateBuilder_; } private java.util.List serverValidationCa_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServerValidationCaIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - serverValidationCa_ = - new java.util.ArrayList( - serverValidationCa_); + serverValidationCa_ = new java.util.ArrayList(serverValidationCa_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ValidationCA, - com.google.cloud.networksecurity.v1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1.ValidationCAOrBuilder> - serverValidationCaBuilder_; + com.google.cloud.networksecurity.v1.ValidationCA, com.google.cloud.networksecurity.v1.ValidationCA.Builder, com.google.cloud.networksecurity.v1.ValidationCAOrBuilder> serverValidationCaBuilder_; /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getServerValidationCaList() { + public java.util.List getServerValidationCaList() { if (serverValidationCaBuilder_ == null) { return java.util.Collections.unmodifiableList(serverValidationCa_); } else { @@ -2397,17 +2111,13 @@ private void ensureServerValidationCaIsMutable() { } } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public int getServerValidationCaCount() { if (serverValidationCaBuilder_ == null) { @@ -2417,17 +2127,13 @@ public int getServerValidationCaCount() { } } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.ValidationCA getServerValidationCa(int index) { if (serverValidationCaBuilder_ == null) { @@ -2437,17 +2143,13 @@ public com.google.cloud.networksecurity.v1.ValidationCA getServerValidationCa(in } } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setServerValidationCa( int index, com.google.cloud.networksecurity.v1.ValidationCA value) { @@ -2464,17 +2166,13 @@ public Builder setServerValidationCa( return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setServerValidationCa( int index, com.google.cloud.networksecurity.v1.ValidationCA.Builder builderForValue) { @@ -2488,17 +2186,13 @@ public Builder setServerValidationCa( return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addServerValidationCa(com.google.cloud.networksecurity.v1.ValidationCA value) { if (serverValidationCaBuilder_ == null) { @@ -2514,17 +2208,13 @@ public Builder addServerValidationCa(com.google.cloud.networksecurity.v1.Validat return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addServerValidationCa( int index, com.google.cloud.networksecurity.v1.ValidationCA value) { @@ -2541,17 +2231,13 @@ public Builder addServerValidationCa( return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addServerValidationCa( com.google.cloud.networksecurity.v1.ValidationCA.Builder builderForValue) { @@ -2565,17 +2251,13 @@ public Builder addServerValidationCa( return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addServerValidationCa( int index, com.google.cloud.networksecurity.v1.ValidationCA.Builder builderForValue) { @@ -2589,23 +2271,20 @@ public Builder addServerValidationCa( return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllServerValidationCa( java.lang.Iterable values) { if (serverValidationCaBuilder_ == null) { ensureServerValidationCaIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverValidationCa_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverValidationCa_); onChanged(); } else { serverValidationCaBuilder_.addAllMessages(values); @@ -2613,17 +2292,13 @@ public Builder addAllServerValidationCa( return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearServerValidationCa() { if (serverValidationCaBuilder_ == null) { @@ -2636,17 +2311,13 @@ public Builder clearServerValidationCa() { return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeServerValidationCa(int index) { if (serverValidationCaBuilder_ == null) { @@ -2659,58 +2330,45 @@ public Builder removeServerValidationCa(int index) { return this; } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.ValidationCA.Builder getServerValidationCaBuilder( int index) { return getServerValidationCaFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getServerValidationCaOrBuilder( int index) { if (serverValidationCaBuilder_ == null) { - return serverValidationCa_.get(index); - } else { + return serverValidationCa_.get(index); } else { return serverValidationCaBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getServerValidationCaOrBuilderList() { + public java.util.List + getServerValidationCaOrBuilderList() { if (serverValidationCaBuilder_ != null) { return serverValidationCaBuilder_.getMessageOrBuilderList(); } else { @@ -2718,69 +2376,51 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getServerValida } } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addServerValidationCaBuilder() { - return getServerValidationCaFieldBuilder() - .addBuilder(com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()); + return getServerValidationCaFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()); } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addServerValidationCaBuilder( int index) { - return getServerValidationCaFieldBuilder() - .addBuilder(index, com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()); + return getServerValidationCaFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()); } /** - * - * *
      * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the server certificate. If empty, client does not validate the
      * server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getServerValidationCaBuilderList() { + public java.util.List + getServerValidationCaBuilderList() { return getServerValidationCaFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ValidationCA, - com.google.cloud.networksecurity.v1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1.ValidationCAOrBuilder> + com.google.cloud.networksecurity.v1.ValidationCA, com.google.cloud.networksecurity.v1.ValidationCA.Builder, com.google.cloud.networksecurity.v1.ValidationCAOrBuilder> getServerValidationCaFieldBuilder() { if (serverValidationCaBuilder_ == null) { - serverValidationCaBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ValidationCA, - com.google.cloud.networksecurity.v1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1.ValidationCAOrBuilder>( + serverValidationCaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.ValidationCA, com.google.cloud.networksecurity.v1.ValidationCA.Builder, com.google.cloud.networksecurity.v1.ValidationCAOrBuilder>( serverValidationCa_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2789,9 +2429,9 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addServerValidat } return serverValidationCaBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2801,12 +2441,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ClientTlsPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ClientTlsPolicy) private static final com.google.cloud.networksecurity.v1.ClientTlsPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ClientTlsPolicy(); } @@ -2815,16 +2455,16 @@ public static com.google.cloud.networksecurity.v1.ClientTlsPolicy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientTlsPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientTlsPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientTlsPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientTlsPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2839,4 +2479,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.ClientTlsPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java similarity index 69% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java index e1aeee81..36cb30f7 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java @@ -1,159 +1,109 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface ClientTlsPolicyOrBuilder - extends +public interface ClientTlsPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ClientTlsPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -162,31 +112,30 @@ public interface ClientTlsPolicyOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -195,161 +144,123 @@ public interface ClientTlsPolicyOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Server Name Indication string to present to the server during TLS
    * handshake. E.g: "secure.example.com".
    * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sni. */ java.lang.String getSni(); /** - * - * *
    * Optional. Server Name Indication string to present to the server during TLS
    * handshake. E.g: "secure.example.com".
    * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sni. */ - com.google.protobuf.ByteString getSniBytes(); + com.google.protobuf.ByteString + getSniBytes(); /** - * - * *
    * Optional. Defines a mechanism to provision client identity (public and private keys)
    * for peer to peer authentication. The presence of this dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the clientCertificate field is set. */ boolean hasClientCertificate(); /** - * - * *
    * Optional. Defines a mechanism to provision client identity (public and private keys)
    * for peer to peer authentication. The presence of this dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The clientCertificate. */ com.google.cloud.networksecurity.v1.CertificateProvider getClientCertificate(); /** - * - * *
    * Optional. Defines a mechanism to provision client identity (public and private keys)
    * for peer to peer authentication. The presence of this dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getClientCertificateOrBuilder(); /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getServerValidationCaList(); + java.util.List + getServerValidationCaList(); /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1.ValidationCA getServerValidationCa(int index); /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getServerValidationCaCount(); /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getServerValidationCaOrBuilderList(); /** - * - * *
    * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
    * validate the server certificate. If empty, client does not validate the
    * server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getServerValidationCaOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyProto.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyProto.java new file mode 100644 index 00000000..3ea3bd92 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyProto.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/client_tls_policy.proto + +package com.google.cloud.networksecurity.v1; + +public final class ClientTlsPolicyProto { + private ClientTlsPolicyProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/networksecurity/v1/client" + + "_tls_policy.proto\022\037google.cloud.networks" + + "ecurity.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032)google/c" + + "loud/networksecurity/v1/tls.proto\032 googl" + + "e/protobuf/field_mask.proto\032\037google/prot" + + "obuf/timestamp.proto\"\354\004\n\017ClientTlsPolicy" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\t" + + "B\003\340A\001\0224\n\013create_time\030\003 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022Q\n\006lab" + + "els\030\005 \003(\0132<.google.cloud.networksecurity" + + ".v1.ClientTlsPolicy.LabelsEntryB\003\340A\001\022\020\n\003" + + "sni\030\006 \001(\tB\003\340A\001\022U\n\022client_certificate\030\007 \001" + + "(\01324.google.cloud.networksecurity.v1.Cer" + + "tificateProviderB\003\340A\001\022P\n\024server_validati" + + "on_ca\030\010 \003(\0132-.google.cloud.networksecuri" + + "ty.v1.ValidationCAB\003\340A\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n.ne" + + "tworksecurity.googleapis.com/ClientTlsPo" + + "licy\022Mprojects/{project}/locations/{loca" + + "tion}/clientTlsPolicies/{client_tls_poli" + + "cy}\"\200\001\n\034ListClientTlsPoliciesRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"\207\001\n\035ListClientTlsPolicies" + + "Response\022M\n\023client_tls_policies\030\001 \003(\01320." + + "google.cloud.networksecurity.v1.ClientTl" + + "sPolicy\022\027\n\017next_page_token\030\002 \001(\t\"a\n\031GetC" + + "lientTlsPolicyRequest\022D\n\004name\030\001 \001(\tB6\340A\002" + + "\372A0\n.networksecurity.googleapis.com/Clie" + + "ntTlsPolicy\"\333\001\n\034CreateClientTlsPolicyReq" + + "uest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.networksec" + + "urity.googleapis.com/ClientTlsPolicy\022!\n\024" + + "client_tls_policy_id\030\002 \001(\tB\003\340A\002\022P\n\021clien" + + "t_tls_policy\030\003 \001(\01320.google.cloud.networ" + + "ksecurity.v1.ClientTlsPolicyB\003\340A\002\"\246\001\n\034Up" + + "dateClientTlsPolicyRequest\0224\n\013update_mas" + + "k\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001" + + "\022P\n\021client_tls_policy\030\002 \001(\01320.google.clo" + + "ud.networksecurity.v1.ClientTlsPolicyB\003\340" + + "A\002\"d\n\034DeleteClientTlsPolicyRequest\022D\n\004na" + + "me\030\001 \001(\tB6\340A\002\372A0\n.networksecurity.google" + + "apis.com/ClientTlsPolicyB\366\001\n#com.google." + + "cloud.networksecurity.v1B\024ClientTlsPolic" + + "yProtoP\001ZNgoogle.golang.org/genproto/goo" + + "gleapis/cloud/networksecurity/v1;network" + + "security\252\002\037Google.Cloud.NetworkSecurity." + + "V1\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"G" + + "oogle::Cloud::NetworkSecurity::V1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.networksecurity.v1.TlsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Labels", "Sni", "ClientCertificate", "ServerValidationCa", }); + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor, + new java.lang.String[] { "ClientTlsPolicies", "NextPageToken", }); + internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor, + new java.lang.String[] { "Parent", "ClientTlsPolicyId", "ClientTlsPolicy", }); + internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor, + new java.lang.String[] { "UpdateMask", "ClientTlsPolicy", }); + internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.networksecurity.v1.TlsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CommonProto.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CommonProto.java new file mode 100644 index 00000000..dad8653b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CommonProto.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/common.proto + +package com.google.cloud.networksecurity.v1; + +public final class CommonProto { + private CommonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/networksecurity/v1/common" + + ".proto\022\037google.cloud.networksecurity.v1\032" + + "\037google/api/field_behavior.proto\032\037google" + + "/protobuf/timestamp.proto\"\200\002\n\021OperationM" + + "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006targ" + + "et\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016stat" + + "us_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cance" + + "llation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB" + + "\003\340A\003B\355\001\n#com.google.cloud.networksecurit" + + "y.v1B\013CommonProtoP\001ZNgoogle.golang.org/g" + + "enproto/googleapis/cloud/networksecurity" + + "/v1;networksecurity\252\002\037Google.Cloud.Netwo" + + "rkSecurity.V1\312\002\037Google\\Cloud\\NetworkSecu" + + "rity\\V1\352\002\"Google::Cloud::NetworkSecurity" + + "::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networksecurity_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java similarity index 63% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java index f611460e..0621ca26 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the CreateAuthorizationPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest} */ -public final class CreateAuthorizationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateAuthorizationPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) CreateAuthorizationPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateAuthorizationPolicyRequest.newBuilder() to construct. - private CreateAuthorizationPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateAuthorizationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAuthorizationPolicyRequest() { parent_ = ""; authorizationPolicyId_ = ""; @@ -45,15 +26,16 @@ private CreateAuthorizationPolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAuthorizationPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateAuthorizationPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,44 +54,38 @@ private CreateAuthorizationPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - authorizationPolicyId_ = s; - break; + authorizationPolicyId_ = s; + break; + } + case 26: { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder subBuilder = null; + if (authorizationPolicy_ != null) { + subBuilder = authorizationPolicy_.toBuilder(); } - case 26: - { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder subBuilder = null; - if (authorizationPolicy_ != null) { - subBuilder = authorizationPolicy_.toBuilder(); - } - authorizationPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authorizationPolicy_); - authorizationPolicy_ = subBuilder.buildPartial(); - } - - break; + authorizationPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authorizationPolicy_); + authorizationPolicy_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,42 +93,35 @@ private CreateAuthorizationPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the AuthorizationPolicy. Must be in the
    * format `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -161,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the AuthorizationPolicy. Must be in the
    * format `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int AUTHORIZATION_POLICY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object authorizationPolicyId_; /** - * - * *
    * Required. Short name of the AuthorizationPolicy resource to be created.
    * This value should be 1-63 characters long, containing only
@@ -207,7 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The authorizationPolicyId. */ @java.lang.Override @@ -216,15 +180,14 @@ public java.lang.String getAuthorizationPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationPolicyId_ = s; return s; } } /** - * - * *
    * Required. Short name of the AuthorizationPolicy resource to be created.
    * This value should be 1-63 characters long, containing only
@@ -233,15 +196,16 @@ public java.lang.String getAuthorizationPolicyId() {
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for authorizationPolicyId. */ @java.lang.Override - public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() { + public com.google.protobuf.ByteString + getAuthorizationPolicyIdBytes() { java.lang.Object ref = authorizationPolicyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizationPolicyId_ = b; return b; } else { @@ -252,16 +216,11 @@ public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() { public static final int AUTHORIZATION_POLICY_FIELD_NUMBER = 3; private com.google.cloud.networksecurity.v1.AuthorizationPolicy authorizationPolicy_; /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ @java.lang.Override @@ -269,43 +228,30 @@ public boolean hasAuthorizationPolicy() { return authorizationPolicy_ != null; } /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy() { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder() { return getAuthorizationPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -343,7 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authorizationPolicyId_); } if (authorizationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthorizationPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAuthorizationPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -353,19 +301,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest other = - (com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) obj; + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest other = (com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getAuthorizationPolicyId().equals(other.getAuthorizationPolicyId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getAuthorizationPolicyId() + .equals(other.getAuthorizationPolicyId())) return false; if (hasAuthorizationPolicy() != other.hasAuthorizationPolicy()) return false; if (hasAuthorizationPolicy()) { - if (!getAuthorizationPolicy().equals(other.getAuthorizationPolicy())) return false; + if (!getAuthorizationPolicy() + .equals(other.getAuthorizationPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -392,145 +342,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest 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.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - 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.networksecurity.v1.CreateAuthorizationPolicyRequest 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.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the CreateAuthorizationPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,16 +487,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -571,8 +508,7 @@ public com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest buil @java.lang.Override public com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest result = - new com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest(this); + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest result = new com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest(this); result.parent_ = parent_; result.authorizationPolicyId_ = authorizationPolicyId_; if (authorizationPolicyBuilder_ == null) { @@ -588,51 +524,46 @@ public com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.CreateAuthorizationPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -663,9 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -677,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -702,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -727,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -798,8 +707,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object authorizationPolicyId_ = ""; /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -808,13 +715,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The authorizationPolicyId. */ public java.lang.String getAuthorizationPolicyId() { java.lang.Object ref = authorizationPolicyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationPolicyId_ = s; return s; @@ -823,8 +730,6 @@ public java.lang.String getAuthorizationPolicyId() { } } /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -833,14 +738,15 @@ public java.lang.String getAuthorizationPolicyId() {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for authorizationPolicyId. */ - public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() { + public com.google.protobuf.ByteString + getAuthorizationPolicyIdBytes() { java.lang.Object ref = authorizationPolicyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizationPolicyId_ = b; return b; } else { @@ -848,8 +754,6 @@ public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() { } } /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -858,22 +762,20 @@ public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The authorizationPolicyId to set. * @return This builder for chaining. */ - public Builder setAuthorizationPolicyId(java.lang.String value) { + public Builder setAuthorizationPolicyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizationPolicyId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -882,18 +784,15 @@ public Builder setAuthorizationPolicyId(java.lang.String value) {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAuthorizationPolicyId() { - + authorizationPolicyId_ = getDefaultInstance().getAuthorizationPolicyId(); onChanged(); return this; } /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -902,16 +801,16 @@ public Builder clearAuthorizationPolicyId() {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for authorizationPolicyId to set. * @return This builder for chaining. */ - public Builder setAuthorizationPolicyIdBytes(com.google.protobuf.ByteString value) { + public Builder setAuthorizationPolicyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationPolicyId_ = value; onChanged(); return this; @@ -919,61 +818,41 @@ public Builder setAuthorizationPolicyIdBytes(com.google.protobuf.ByteString valu private com.google.cloud.networksecurity.v1.AuthorizationPolicy authorizationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> - authorizationPolicyBuilder_; + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> authorizationPolicyBuilder_; /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ public boolean hasAuthorizationPolicy() { return authorizationPolicyBuilder_ != null || authorizationPolicy_ != null; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy() { if (authorizationPolicyBuilder_ == null) { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } else { return authorizationPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAuthorizationPolicy( - com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { + public Builder setAuthorizationPolicy(com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { if (authorizationPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -987,15 +866,11 @@ public Builder setAuthorizationPolicy( return this; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAuthorizationPolicy( com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder builderForValue) { @@ -1009,25 +884,17 @@ public Builder setAuthorizationPolicy( return this; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeAuthorizationPolicy( - com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { + public Builder mergeAuthorizationPolicy(com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { if (authorizationPolicyBuilder_ == null) { if (authorizationPolicy_ != null) { authorizationPolicy_ = - com.google.cloud.networksecurity.v1.AuthorizationPolicy.newBuilder( - authorizationPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.newBuilder(authorizationPolicy_).mergeFrom(value).buildPartial(); } else { authorizationPolicy_ = value; } @@ -1039,15 +906,11 @@ public Builder mergeAuthorizationPolicy( return this; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAuthorizationPolicy() { if (authorizationPolicyBuilder_ == null) { @@ -1061,73 +924,55 @@ public Builder clearAuthorizationPolicy() { return this; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder - getAuthorizationPolicyBuilder() { - + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder getAuthorizationPolicyBuilder() { + onChanged(); return getAuthorizationPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder() { if (authorizationPolicyBuilder_ != null) { return authorizationPolicyBuilder_.getMessageOrBuilder(); } else { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? + com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> getAuthorizationPolicyFieldBuilder() { if (authorizationPolicyBuilder_ == null) { - authorizationPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder>( - getAuthorizationPolicy(), getParentForChildren(), isClean()); + authorizationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder>( + getAuthorizationPolicy(), + getParentForChildren(), + isClean()); authorizationPolicy_ = null; } return authorizationPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1137,32 +982,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) - private static final com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAuthorizationPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAuthorizationPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAuthorizationPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAuthorizationPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1174,8 +1017,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java index f1b33cd9..817a145c 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; -public interface CreateAuthorizationPolicyRequestOrBuilder - extends +public interface CreateAuthorizationPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the AuthorizationPolicy. Must be in the
    * format `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource of the AuthorizationPolicy. Must be in the
    * format `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Short name of the AuthorizationPolicy resource to be created.
    * This value should be 1-63 characters long, containing only
@@ -65,13 +38,10 @@ public interface CreateAuthorizationPolicyRequestOrBuilder
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The authorizationPolicyId. */ java.lang.String getAuthorizationPolicyId(); /** - * - * *
    * Required. Short name of the AuthorizationPolicy resource to be created.
    * This value should be 1-63 characters long, containing only
@@ -80,50 +50,35 @@ public interface CreateAuthorizationPolicyRequestOrBuilder
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for authorizationPolicyId. */ - com.google.protobuf.ByteString getAuthorizationPolicyIdBytes(); + com.google.protobuf.ByteString + getAuthorizationPolicyIdBytes(); /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ boolean hasAuthorizationPolicy(); /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy(); /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder(); + com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java index 5f353edd..211d5b85 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the CreateClientTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest} */ -public final class CreateClientTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateClientTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) CreateClientTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateClientTlsPolicyRequest.newBuilder() to construct. private CreateClientTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateClientTlsPolicyRequest() { parent_ = ""; clientTlsPolicyId_ = ""; @@ -44,15 +26,16 @@ private CreateClientTlsPolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateClientTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateClientTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateClientTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - clientTlsPolicyId_ = s; - break; + clientTlsPolicyId_ = s; + break; + } + case 26: { + com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder subBuilder = null; + if (clientTlsPolicy_ != null) { + subBuilder = clientTlsPolicy_.toBuilder(); } - case 26: - { - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder subBuilder = null; - if (clientTlsPolicy_ != null) { - subBuilder = clientTlsPolicy_.toBuilder(); - } - clientTlsPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1.ClientTlsPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientTlsPolicy_); - clientTlsPolicy_ = subBuilder.buildPartial(); - } - - break; + clientTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.ClientTlsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientTlsPolicy_); + clientTlsPolicy_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +93,35 @@ private CreateClientTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the ClientTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the ClientTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CLIENT_TLS_POLICY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object clientTlsPolicyId_; /** - * - * *
    * Required. Short name of the ClientTlsPolicy resource to be created. This value should
    * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -205,7 +171,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clientTlsPolicyId. */ @java.lang.Override @@ -214,15 +179,14 @@ public java.lang.String getClientTlsPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientTlsPolicyId_ = s; return s; } } /** - * - * *
    * Required. Short name of the ClientTlsPolicy resource to be created. This value should
    * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -230,15 +194,16 @@ public java.lang.String getClientTlsPolicyId() {
    * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clientTlsPolicyId. */ @java.lang.Override - public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { + public com.google.protobuf.ByteString + getClientTlsPolicyIdBytes() { java.lang.Object ref = clientTlsPolicyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientTlsPolicyId_ = b; return b; } else { @@ -249,16 +214,11 @@ public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { public static final int CLIENT_TLS_POLICY_FIELD_NUMBER = 3; private com.google.cloud.networksecurity.v1.ClientTlsPolicy clientTlsPolicy_; /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ @java.lang.Override @@ -266,43 +226,30 @@ public boolean hasClientTlsPolicy() { return clientTlsPolicy_ != null; } /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy() { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder - getClientTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder() { return getClientTlsPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -340,7 +288,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientTlsPolicyId_); } if (clientTlsPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getClientTlsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClientTlsPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,19 +299,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest other = (com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getClientTlsPolicyId().equals(other.getClientTlsPolicyId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getClientTlsPolicyId() + .equals(other.getClientTlsPolicyId())) return false; if (hasClientTlsPolicy() != other.hasClientTlsPolicy()) return false; if (hasClientTlsPolicy()) { - if (!getClientTlsPolicy().equals(other.getClientTlsPolicy())) return false; + if (!getClientTlsPolicy() + .equals(other.getClientTlsPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -389,127 +340,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest 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.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the CreateClientTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.newBuilder() @@ -517,15 +458,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,14 +485,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.getDefaultInstance(); } @@ -565,8 +506,7 @@ public com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest result = new com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest(this); result.parent_ = parent_; result.clientTlsPolicyId_ = clientTlsPolicyId_; if (clientTlsPolicyBuilder_ == null) { @@ -582,50 +522,46 @@ public com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.CreateClientTlsPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -656,9 +592,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -670,23 +604,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -695,24 +625,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -720,70 +647,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -791,8 +705,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object clientTlsPolicyId_ = ""; /** - * - * *
      * Required. Short name of the ClientTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -800,13 +712,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clientTlsPolicyId. */ public java.lang.String getClientTlsPolicyId() { java.lang.Object ref = clientTlsPolicyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientTlsPolicyId_ = s; return s; @@ -815,8 +727,6 @@ public java.lang.String getClientTlsPolicyId() { } } /** - * - * *
      * Required. Short name of the ClientTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -824,14 +734,15 @@ public java.lang.String getClientTlsPolicyId() {
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clientTlsPolicyId. */ - public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { + public com.google.protobuf.ByteString + getClientTlsPolicyIdBytes() { java.lang.Object ref = clientTlsPolicyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientTlsPolicyId_ = b; return b; } else { @@ -839,8 +750,6 @@ public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { } } /** - * - * *
      * Required. Short name of the ClientTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -848,22 +757,20 @@ public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() {
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clientTlsPolicyId to set. * @return This builder for chaining. */ - public Builder setClientTlsPolicyId(java.lang.String value) { + public Builder setClientTlsPolicyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientTlsPolicyId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Short name of the ClientTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -871,18 +778,15 @@ public Builder setClientTlsPolicyId(java.lang.String value) {
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClientTlsPolicyId() { - + clientTlsPolicyId_ = getDefaultInstance().getClientTlsPolicyId(); onChanged(); return this; } /** - * - * *
      * Required. Short name of the ClientTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -890,16 +794,16 @@ public Builder clearClientTlsPolicyId() {
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clientTlsPolicyId to set. * @return This builder for chaining. */ - public Builder setClientTlsPolicyIdBytes(com.google.protobuf.ByteString value) { + public Builder setClientTlsPolicyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientTlsPolicyId_ = value; onChanged(); return this; @@ -907,58 +811,39 @@ public Builder setClientTlsPolicyIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networksecurity.v1.ClientTlsPolicy clientTlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> - clientTlsPolicyBuilder_; + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> clientTlsPolicyBuilder_; /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ public boolean hasClientTlsPolicy() { return clientTlsPolicyBuilder_ != null || clientTlsPolicy_ != null; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy() { if (clientTlsPolicyBuilder_ == null) { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } else { return clientTlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setClientTlsPolicy(com.google.cloud.networksecurity.v1.ClientTlsPolicy value) { if (clientTlsPolicyBuilder_ == null) { @@ -974,15 +859,11 @@ public Builder setClientTlsPolicy(com.google.cloud.networksecurity.v1.ClientTlsP return this; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setClientTlsPolicy( com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder builderForValue) { @@ -996,23 +877,17 @@ public Builder setClientTlsPolicy( return this; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeClientTlsPolicy(com.google.cloud.networksecurity.v1.ClientTlsPolicy value) { if (clientTlsPolicyBuilder_ == null) { if (clientTlsPolicy_ != null) { clientTlsPolicy_ = - com.google.cloud.networksecurity.v1.ClientTlsPolicy.newBuilder(clientTlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1.ClientTlsPolicy.newBuilder(clientTlsPolicy_).mergeFrom(value).buildPartial(); } else { clientTlsPolicy_ = value; } @@ -1024,15 +899,11 @@ public Builder mergeClientTlsPolicy(com.google.cloud.networksecurity.v1.ClientTl return this; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearClientTlsPolicy() { if (clientTlsPolicyBuilder_ == null) { @@ -1046,72 +917,55 @@ public Builder clearClientTlsPolicy() { return this; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder getClientTlsPolicyBuilder() { - + onChanged(); return getClientTlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder - getClientTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder() { if (clientTlsPolicyBuilder_ != null) { return clientTlsPolicyBuilder_.getMessageOrBuilder(); } else { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? + com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> getClientTlsPolicyFieldBuilder() { if (clientTlsPolicyBuilder_ == null) { - clientTlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder>( - getClientTlsPolicy(), getParentForChildren(), isClean()); + clientTlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder>( + getClientTlsPolicy(), + getParentForChildren(), + isClean()); clientTlsPolicy_ = null; } return clientTlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +975,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateClientTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateClientTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClientTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateClientTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1010,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java index 00ae92f0..fac847f4 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface CreateClientTlsPolicyRequestOrBuilder - extends +public interface CreateClientTlsPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the ClientTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource of the ClientTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Short name of the ClientTlsPolicy resource to be created. This value should
    * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -64,13 +37,10 @@ public interface CreateClientTlsPolicyRequestOrBuilder
    * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clientTlsPolicyId. */ java.lang.String getClientTlsPolicyId(); /** - * - * *
    * Required. Short name of the ClientTlsPolicy resource to be created. This value should
    * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -78,49 +48,35 @@ public interface CreateClientTlsPolicyRequestOrBuilder
    * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clientTlsPolicyId. */ - com.google.protobuf.ByteString getClientTlsPolicyIdBytes(); + com.google.protobuf.ByteString + getClientTlsPolicyIdBytes(); /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ boolean hasClientTlsPolicy(); /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy(); /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java index c95be1a2..cce84aad 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the CreateServerTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest} */ -public final class CreateServerTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateServerTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) CreateServerTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateServerTlsPolicyRequest.newBuilder() to construct. private CreateServerTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateServerTlsPolicyRequest() { parent_ = ""; serverTlsPolicyId_ = ""; @@ -44,15 +26,16 @@ private CreateServerTlsPolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateServerTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateServerTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateServerTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - serverTlsPolicyId_ = s; - break; + serverTlsPolicyId_ = s; + break; + } + case 26: { + com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder subBuilder = null; + if (serverTlsPolicy_ != null) { + subBuilder = serverTlsPolicy_.toBuilder(); } - case 26: - { - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder subBuilder = null; - if (serverTlsPolicy_ != null) { - subBuilder = serverTlsPolicy_.toBuilder(); - } - serverTlsPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1.ServerTlsPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverTlsPolicy_); - serverTlsPolicy_ = subBuilder.buildPartial(); - } - - break; + serverTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.ServerTlsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serverTlsPolicy_); + serverTlsPolicy_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +93,35 @@ private CreateServerTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the ServerTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the ServerTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SERVER_TLS_POLICY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object serverTlsPolicyId_; /** - * - * *
    * Required. Short name of the ServerTlsPolicy resource to be created. This value should
    * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -205,7 +171,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serverTlsPolicyId. */ @java.lang.Override @@ -214,15 +179,14 @@ public java.lang.String getServerTlsPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serverTlsPolicyId_ = s; return s; } } /** - * - * *
    * Required. Short name of the ServerTlsPolicy resource to be created. This value should
    * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -230,15 +194,16 @@ public java.lang.String getServerTlsPolicyId() {
    * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serverTlsPolicyId. */ @java.lang.Override - public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { + public com.google.protobuf.ByteString + getServerTlsPolicyIdBytes() { java.lang.Object ref = serverTlsPolicyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serverTlsPolicyId_ = b; return b; } else { @@ -249,16 +214,11 @@ public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { public static final int SERVER_TLS_POLICY_FIELD_NUMBER = 3; private com.google.cloud.networksecurity.v1.ServerTlsPolicy serverTlsPolicy_; /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ @java.lang.Override @@ -266,43 +226,30 @@ public boolean hasServerTlsPolicy() { return serverTlsPolicy_ != null; } /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy() { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder - getServerTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder() { return getServerTlsPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -340,7 +288,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serverTlsPolicyId_); } if (serverTlsPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getServerTlsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getServerTlsPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,19 +299,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest other = (com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getServerTlsPolicyId().equals(other.getServerTlsPolicyId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getServerTlsPolicyId() + .equals(other.getServerTlsPolicyId())) return false; if (hasServerTlsPolicy() != other.hasServerTlsPolicy()) return false; if (hasServerTlsPolicy()) { - if (!getServerTlsPolicy().equals(other.getServerTlsPolicy())) return false; + if (!getServerTlsPolicy() + .equals(other.getServerTlsPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -389,127 +340,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest 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.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the CreateServerTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.newBuilder() @@ -517,15 +458,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,14 +485,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.getDefaultInstance(); } @@ -565,8 +506,7 @@ public com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest result = new com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest(this); result.parent_ = parent_; result.serverTlsPolicyId_ = serverTlsPolicyId_; if (serverTlsPolicyBuilder_ == null) { @@ -582,50 +522,46 @@ public com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.CreateServerTlsPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -656,9 +592,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -670,23 +604,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -695,24 +625,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -720,70 +647,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -791,8 +705,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object serverTlsPolicyId_ = ""; /** - * - * *
      * Required. Short name of the ServerTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -800,13 +712,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serverTlsPolicyId. */ public java.lang.String getServerTlsPolicyId() { java.lang.Object ref = serverTlsPolicyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serverTlsPolicyId_ = s; return s; @@ -815,8 +727,6 @@ public java.lang.String getServerTlsPolicyId() { } } /** - * - * *
      * Required. Short name of the ServerTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -824,14 +734,15 @@ public java.lang.String getServerTlsPolicyId() {
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serverTlsPolicyId. */ - public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { + public com.google.protobuf.ByteString + getServerTlsPolicyIdBytes() { java.lang.Object ref = serverTlsPolicyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serverTlsPolicyId_ = b; return b; } else { @@ -839,8 +750,6 @@ public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { } } /** - * - * *
      * Required. Short name of the ServerTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -848,22 +757,20 @@ public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() {
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The serverTlsPolicyId to set. * @return This builder for chaining. */ - public Builder setServerTlsPolicyId(java.lang.String value) { + public Builder setServerTlsPolicyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serverTlsPolicyId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Short name of the ServerTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -871,18 +778,15 @@ public Builder setServerTlsPolicyId(java.lang.String value) {
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearServerTlsPolicyId() { - + serverTlsPolicyId_ = getDefaultInstance().getServerTlsPolicyId(); onChanged(); return this; } /** - * - * *
      * Required. Short name of the ServerTlsPolicy resource to be created. This value should
      * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -890,16 +794,16 @@ public Builder clearServerTlsPolicyId() {
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for serverTlsPolicyId to set. * @return This builder for chaining. */ - public Builder setServerTlsPolicyIdBytes(com.google.protobuf.ByteString value) { + public Builder setServerTlsPolicyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverTlsPolicyId_ = value; onChanged(); return this; @@ -907,58 +811,39 @@ public Builder setServerTlsPolicyIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networksecurity.v1.ServerTlsPolicy serverTlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> - serverTlsPolicyBuilder_; + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> serverTlsPolicyBuilder_; /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ public boolean hasServerTlsPolicy() { return serverTlsPolicyBuilder_ != null || serverTlsPolicy_ != null; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy() { if (serverTlsPolicyBuilder_ == null) { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } else { return serverTlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServerTlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsPolicy value) { if (serverTlsPolicyBuilder_ == null) { @@ -974,15 +859,11 @@ public Builder setServerTlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsP return this; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServerTlsPolicy( com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder builderForValue) { @@ -996,23 +877,17 @@ public Builder setServerTlsPolicy( return this; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeServerTlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsPolicy value) { if (serverTlsPolicyBuilder_ == null) { if (serverTlsPolicy_ != null) { serverTlsPolicy_ = - com.google.cloud.networksecurity.v1.ServerTlsPolicy.newBuilder(serverTlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1.ServerTlsPolicy.newBuilder(serverTlsPolicy_).mergeFrom(value).buildPartial(); } else { serverTlsPolicy_ = value; } @@ -1024,15 +899,11 @@ public Builder mergeServerTlsPolicy(com.google.cloud.networksecurity.v1.ServerTl return this; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearServerTlsPolicy() { if (serverTlsPolicyBuilder_ == null) { @@ -1046,72 +917,55 @@ public Builder clearServerTlsPolicy() { return this; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder getServerTlsPolicyBuilder() { - + onChanged(); return getServerTlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder - getServerTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder() { if (serverTlsPolicyBuilder_ != null) { return serverTlsPolicyBuilder_.getMessageOrBuilder(); } else { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? + com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> getServerTlsPolicyFieldBuilder() { if (serverTlsPolicyBuilder_ == null) { - serverTlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder>( - getServerTlsPolicy(), getParentForChildren(), isClean()); + serverTlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder>( + getServerTlsPolicy(), + getParentForChildren(), + isClean()); serverTlsPolicy_ = null; } return serverTlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +975,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServerTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateServerTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServerTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateServerTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1010,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java index c052b6e4..04911aac 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface CreateServerTlsPolicyRequestOrBuilder - extends +public interface CreateServerTlsPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the ServerTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource of the ServerTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Short name of the ServerTlsPolicy resource to be created. This value should
    * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -64,13 +37,10 @@ public interface CreateServerTlsPolicyRequestOrBuilder
    * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serverTlsPolicyId. */ java.lang.String getServerTlsPolicyId(); /** - * - * *
    * Required. Short name of the ServerTlsPolicy resource to be created. This value should
    * be 1-63 characters long, containing only letters, numbers, hyphens, and
@@ -78,49 +48,35 @@ public interface CreateServerTlsPolicyRequestOrBuilder
    * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serverTlsPolicyId. */ - com.google.protobuf.ByteString getServerTlsPolicyIdBytes(); + com.google.protobuf.ByteString + getServerTlsPolicyIdBytes(); /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ boolean hasServerTlsPolicy(); /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy(); /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java similarity index 62% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java index 61c8eedc..978c9ba7 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the DeleteAuthorizationPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest} */ -public final class DeleteAuthorizationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAuthorizationPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) DeleteAuthorizationPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAuthorizationPolicyRequest.newBuilder() to construct. - private DeleteAuthorizationPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteAuthorizationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAuthorizationPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAuthorizationPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAuthorizationPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private DeleteAuthorizationPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,42 +73,35 @@ private DeleteAuthorizationPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the AuthorizationPolicy to delete. Must be in the format
    * `projects/{project}/locations/{location}/authorizationPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the AuthorizationPolicy to delete. Must be in the format
    * `projects/{project}/locations/{location}/authorizationPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -170,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -206,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest other = - (com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) obj; + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest other = (com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest 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.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - 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.networksecurity.v1.DeleteAuthorizationPolicyRequest 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.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the DeleteAuthorizationPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -405,8 +364,7 @@ public com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest buil @java.lang.Override public com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest result = - new com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest(this); + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest result = new com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,51 +374,46 @@ public com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.DeleteAuthorizationPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the AuthorizationPolicy to delete. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the AuthorizationPolicy to delete. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -548,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the AuthorizationPolicy to delete. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the AuthorizationPolicy to delete. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the AuthorizationPolicy to delete. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) - private static final com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAuthorizationPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAuthorizationPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthorizationPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAuthorizationPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,8 +594,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java new file mode 100644 index 00000000..638b438c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/authorization_policy.proto + +package com.google.cloud.networksecurity.v1; + +public interface DeleteAuthorizationPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
+   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
+   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java similarity index 64% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java index 890ab458..6083de6c 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the DeleteClientTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest} */ -public final class DeleteClientTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteClientTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) DeleteClientTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteClientTlsPolicyRequest.newBuilder() to construct. private DeleteClientTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteClientTlsPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteClientTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteClientTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteClientTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteClientTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the ClientTlsPolicy to delete. Must be in
    * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the ClientTlsPolicy to delete. Must be in
    * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest other = (com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest 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.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the DeleteClientTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest result = new com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.DeleteClientTlsPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteClientTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteClientTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClientTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteClientTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..9d71c224 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/client_tls_policy.proto + +package com.google.cloud.networksecurity.v1; + +public interface DeleteClientTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the ClientTlsPolicy to delete. Must be in
+   * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the ClientTlsPolicy to delete. Must be in
+   * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java similarity index 64% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java index 04a27ec1..694e2fa7 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the DeleteServerTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest} */ -public final class DeleteServerTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteServerTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) DeleteServerTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteServerTlsPolicyRequest.newBuilder() to construct. private DeleteServerTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteServerTlsPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteServerTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteServerTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteServerTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteServerTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the ServerTlsPolicy to delete. Must be in
    * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the ServerTlsPolicy to delete. Must be in
    * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest other = (com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest 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.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the DeleteServerTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest result = new com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.DeleteServerTlsPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServerTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteServerTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServerTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteServerTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..08202d9c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/server_tls_policy.proto + +package com.google.cloud.networksecurity.v1; + +public interface DeleteServerTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the ServerTlsPolicy to delete. Must be in
+   * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the ServerTlsPolicy to delete. Must be in
+   * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java similarity index 63% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java index 3cd2d4c5..12f105aa 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the GetAuthorizationPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest} */ -public final class GetAuthorizationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAuthorizationPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) GetAuthorizationPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAuthorizationPolicyRequest.newBuilder() to construct. private GetAuthorizationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAuthorizationPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAuthorizationPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAuthorizationPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetAuthorizationPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetAuthorizationPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the AuthorizationPolicy to get. Must be in the format
    * `projects/{project}/locations/{location}/authorizationPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the AuthorizationPolicy to get. Must be in the format
    * `projects/{project}/locations/{location}/authorizationPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest other = - (com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) obj; + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest other = (com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest 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.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest - 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.networksecurity.v1.GetAuthorizationPolicyRequest 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.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the GetAuthorizationPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.getDefaultInstance(); } @@ -403,8 +364,7 @@ public com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest result = - new com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest(this); + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest result = new com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,50 +374,46 @@ public com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.GetAuthorizationPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -481,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -625,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) - private static final com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAuthorizationPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAuthorizationPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthorizationPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAuthorizationPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,8 +594,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequestOrBuilder.java new file mode 100644 index 00000000..99e4fbe6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/authorization_policy.proto + +package com.google.cloud.networksecurity.v1; + +public interface GetAuthorizationPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the AuthorizationPolicy to get. Must be in the format
+   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the AuthorizationPolicy to get. Must be in the format
+   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java index 2687c1ab..9ab68147 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the GetClientTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.GetClientTlsPolicyRequest} */ -public final class GetClientTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetClientTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) GetClientTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetClientTlsPolicyRequest.newBuilder() to construct. private GetClientTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetClientTlsPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetClientTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetClientTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetClientTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetClientTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the ClientTlsPolicy to get. Must be in the format
    * `projects/*/locations/{location}/clientTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the ClientTlsPolicy to get. Must be in the format
    * `projects/*/locations/{location}/clientTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest other = (com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest 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.networksecurity.v1.GetClientTlsPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the GetClientTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.GetClientTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest build() { @java.lang.Override public com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest result = new com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.GetClientTlsPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,13 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest(); } @@ -637,16 +573,16 @@ public static com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetClientTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetClientTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClientTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetClientTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..812d55b1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/client_tls_policy.proto + +package com.google.cloud.networksecurity.v1; + +public interface GetClientTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the ClientTlsPolicy to get. Must be in the format
+   * `projects/*/locations/{location}/clientTlsPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the ClientTlsPolicy to get. Must be in the format
+   * `projects/*/locations/{location}/clientTlsPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java index 572501dc..d66bb0cf 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the GetServerTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.GetServerTlsPolicyRequest} */ -public final class GetServerTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetServerTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) GetServerTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetServerTlsPolicyRequest.newBuilder() to construct. private GetServerTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetServerTlsPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetServerTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetServerTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetServerTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetServerTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the ServerTlsPolicy to get. Must be in the format
    * `projects/*/locations/{location}/serverTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the ServerTlsPolicy to get. Must be in the format
    * `projects/*/locations/{location}/serverTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest other = (com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest 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.networksecurity.v1.GetServerTlsPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the GetServerTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.GetServerTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest build() { @java.lang.Override public com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest result = new com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.GetServerTlsPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,13 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest(); } @@ -637,16 +573,16 @@ public static com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServerTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetServerTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServerTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetServerTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..a0a87b11 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/server_tls_policy.proto + +package com.google.cloud.networksecurity.v1; + +public interface GetServerTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the ServerTlsPolicy to get. Must be in the format
+   * `projects/*/locations/{location}/serverTlsPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the ServerTlsPolicy to get. Must be in the format
+   * `projects/*/locations/{location}/serverTlsPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java similarity index 69% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java index 6b60c6ca..6ecdc061 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Specification of the GRPC Endpoint.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.GrpcEndpoint} */ -public final class GrpcEndpoint extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GrpcEndpoint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GrpcEndpoint) GrpcEndpointOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GrpcEndpoint.newBuilder() to construct. private GrpcEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GrpcEndpoint() { targetUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GrpcEndpoint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GrpcEndpoint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GrpcEndpoint( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - targetUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GrpcEndpoint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.TlsProto - .internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.TlsProto - .internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_fieldAccessorTable + return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.GrpcEndpoint.class, - com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder.class); + com.google.cloud.networksecurity.v1.GrpcEndpoint.class, com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder.class); } public static final int TARGET_URI_FIELD_NUMBER = 1; private volatile java.lang.Object targetUri_; /** - * - * *
    * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
    * should start with "unix:".
    * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetUri. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getTargetUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetUri_ = s; return s; } } /** - * - * *
    * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
    * should start with "unix:".
    * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetUri. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetUriBytes() { + public com.google.protobuf.ByteString + getTargetUriBytes() { java.lang.Object ref = targetUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetUri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getTargetUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetUri_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.GrpcEndpoint)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.GrpcEndpoint other = - (com.google.cloud.networksecurity.v1.GrpcEndpoint) obj; + com.google.cloud.networksecurity.v1.GrpcEndpoint other = (com.google.cloud.networksecurity.v1.GrpcEndpoint) obj; - if (!getTargetUri().equals(other.getTargetUri())) return false; + if (!getTargetUri() + .equals(other.getTargetUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint 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.networksecurity.v1.GrpcEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.GrpcEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networksecurity.v1.GrpcEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specification of the GRPC Endpoint.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.GrpcEndpoint} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GrpcEndpoint) com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.TlsProto - .internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.TlsProto - .internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_fieldAccessorTable + return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.GrpcEndpoint.class, - com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder.class); + com.google.cloud.networksecurity.v1.GrpcEndpoint.class, com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.GrpcEndpoint.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.TlsProto - .internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor; } @java.lang.Override @@ -395,8 +364,7 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint build() { @java.lang.Override public com.google.cloud.networksecurity.v1.GrpcEndpoint buildPartial() { - com.google.cloud.networksecurity.v1.GrpcEndpoint result = - new com.google.cloud.networksecurity.v1.GrpcEndpoint(this); + com.google.cloud.networksecurity.v1.GrpcEndpoint result = new com.google.cloud.networksecurity.v1.GrpcEndpoint(this); result.targetUri_ = targetUri_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.GrpcEndpoint) { - return mergeFrom((com.google.cloud.networksecurity.v1.GrpcEndpoint) other); + return mergeFrom((com.google.cloud.networksecurity.v1.GrpcEndpoint)other); } else { super.mergeFrom(other); return this; @@ -446,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networksecurity.v1.GrpcEndpoint other) { - if (other == com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance()) - return this; + if (other == com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance()) return this; if (!other.getTargetUri().isEmpty()) { targetUri_ = other.targetUri_; onChanged(); @@ -483,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object targetUri_ = ""; /** - * - * *
      * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
      * should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetUri. */ public java.lang.String getTargetUri() { java.lang.Object ref = targetUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetUri_ = s; return s; @@ -506,22 +470,21 @@ public java.lang.String getTargetUri() { } } /** - * - * *
      * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
      * should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetUri. */ - public com.google.protobuf.ByteString getTargetUriBytes() { + public com.google.protobuf.ByteString + getTargetUriBytes() { java.lang.Object ref = targetUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetUri_ = b; return b; } else { @@ -529,71 +492,64 @@ public com.google.protobuf.ByteString getTargetUriBytes() { } } /** - * - * *
      * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
      * should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetUri to set. * @return This builder for chaining. */ - public Builder setTargetUri(java.lang.String value) { + public Builder setTargetUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
      * should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetUri() { - + targetUri_ = getDefaultInstance().getTargetUri(); onChanged(); return this; } /** - * - * *
      * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
      * should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetUri to set. * @return This builder for chaining. */ - public Builder setTargetUriBytes(com.google.protobuf.ByteString value) { + public Builder setTargetUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GrpcEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GrpcEndpoint) private static final com.google.cloud.networksecurity.v1.GrpcEndpoint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GrpcEndpoint(); } @@ -617,16 +573,16 @@ public static com.google.cloud.networksecurity.v1.GrpcEndpoint getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GrpcEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GrpcEndpoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GrpcEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GrpcEndpoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.GrpcEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java similarity index 54% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java index e8bf20fe..eb2ddddc 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto package com.google.cloud.networksecurity.v1; -public interface GrpcEndpointOrBuilder - extends +public interface GrpcEndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GrpcEndpoint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
    * should start with "unix:".
    * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetUri. */ java.lang.String getTargetUri(); /** - * - * *
    * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
    * should start with "unix:".
    * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetUri. */ - com.google.protobuf.ByteString getTargetUriBytes(); + com.google.protobuf.ByteString + getTargetUriBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java similarity index 67% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java index e291fa07..a6491e4b 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used with the ListAuthorizationPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest} */ -public final class ListAuthorizationPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAuthorizationPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) ListAuthorizationPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAuthorizationPoliciesRequest.newBuilder() to construct. - private ListAuthorizationPoliciesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAuthorizationPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAuthorizationPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +26,16 @@ private ListAuthorizationPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAuthorizationPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAuthorizationPoliciesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +54,30 @@ private ListAuthorizationPoliciesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,43 +85,36 @@ private ListAuthorizationPoliciesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.class, - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.class, com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location from which the AuthorizationPolicies
    * should be listed, specified in the format
    * `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -150,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location from which the AuthorizationPolicies
    * should be listed, specified in the format
    * `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,14 +158,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of AuthorizationPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -205,8 +173,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -215,7 +181,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -224,15 +189,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -241,15 +205,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,7 +223,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -293,7 +258,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -306,17 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest other = - (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) obj; + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest other = (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -340,145 +308,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest 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.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - 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.networksecurity.v1.ListAuthorizationPoliciesRequest 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.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used with the ListAuthorizationPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.class, - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.class, com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -492,16 +449,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.getDefaultInstance(); } @java.lang.Override @@ -515,8 +470,7 @@ public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest buil @java.lang.Override public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest buildPartial() { - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest result = - new com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest(this); + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest result = new com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -528,51 +482,46 @@ public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.ListAuthorizationPoliciesRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest other) { - if (other - == com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest other) { + if (other == com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -603,9 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -617,24 +564,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -643,25 +586,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -669,88 +609,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of AuthorizationPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -758,36 +682,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of AuthorizationPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of AuthorizationPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -795,8 +713,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -805,13 +721,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -820,8 +736,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -830,14 +744,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -845,8 +760,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -855,22 +768,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -879,18 +790,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -899,23 +807,23 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,32 +833,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) - private static final com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest(); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAuthorizationPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAuthorizationPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthorizationPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAuthorizationPoliciesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,8 +868,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java index 01979f77..d6cf839b 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java @@ -1,77 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; -public interface ListAuthorizationPoliciesRequestOrBuilder - extends +public interface ListAuthorizationPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location from which the AuthorizationPolicies
    * should be listed, specified in the format
    * `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location from which the AuthorizationPolicies
    * should be listed, specified in the format
    * `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of AuthorizationPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -80,13 +50,10 @@ public interface ListAuthorizationPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -95,8 +62,8 @@ public interface ListAuthorizationPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java index a52da94c..cd2a1e36 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Response returned by the ListAuthorizationPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse} */ -public final class ListAuthorizationPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAuthorizationPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) ListAuthorizationPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAuthorizationPoliciesResponse.newBuilder() to construct. - private ListAuthorizationPoliciesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAuthorizationPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAuthorizationPoliciesResponse() { authorizationPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListAuthorizationPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAuthorizationPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAuthorizationPoliciesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,34 +55,28 @@ private ListAuthorizationPoliciesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - authorizationPolicies_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1.AuthorizationPolicy>(); - mutable_bitField0_ |= 0x00000001; - } - authorizationPolicies_.add( - input.readMessage( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + authorizationPolicies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + authorizationPolicies_.add( + input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +84,8 @@ private ListAuthorizationPoliciesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { authorizationPolicies_ = java.util.Collections.unmodifiableList(authorizationPolicies_); @@ -117,105 +94,82 @@ private ListAuthorizationPoliciesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.class, - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.class, com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.Builder.class); } public static final int AUTHORIZATION_POLICIES_FIELD_NUMBER = 1; - private java.util.List - authorizationPolicies_; + private java.util.List authorizationPolicies_; /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override - public java.util.List - getAuthorizationPoliciesList() { + public java.util.List getAuthorizationPoliciesList() { return authorizationPolicies_; } /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAuthorizationPoliciesOrBuilderList() { return authorizationPolicies_; } /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override public int getAuthorizationPoliciesCount() { return authorizationPolicies_.size(); } /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicies( - int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicies(int index) { return authorizationPolicies_.get(index); } /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPoliciesOrBuilder( + int index) { return authorizationPolicies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -223,7 +177,6 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationP
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,15 +185,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -248,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -265,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < authorizationPolicies_.size(); i++) { output.writeMessage(1, authorizationPolicies_.get(i)); } @@ -294,9 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < authorizationPolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, authorizationPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, authorizationPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -309,16 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse other = - (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) obj; + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse other = (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) obj; - if (!getAuthorizationPoliciesList().equals(other.getAuthorizationPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getAuthorizationPoliciesList() + .equals(other.getAuthorizationPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,147 +295,135 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse 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.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - 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.networksecurity.v1.ListAuthorizationPoliciesResponse 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.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response returned by the ListAuthorizationPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.class, - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.class, com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAuthorizationPoliciesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -498,16 +439,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.getDefaultInstance(); } @java.lang.Override @@ -521,8 +460,7 @@ public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse bui @java.lang.Override public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse buildPartial() { - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse result = - new com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse(this); + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse result = new com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse(this); int from_bitField0_ = bitField0_; if (authorizationPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -542,51 +480,46 @@ public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.ListAuthorizationPoliciesResponse) { - return mergeFrom( - (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) other); + return mergeFrom((com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse other) { - if (other - == com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse other) { + if (other == com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.getDefaultInstance()) return this; if (authorizationPoliciesBuilder_ == null) { if (!other.authorizationPolicies_.isEmpty()) { if (authorizationPolicies_.isEmpty()) { @@ -605,10 +538,9 @@ public Builder mergeFrom( authorizationPoliciesBuilder_ = null; authorizationPolicies_ = other.authorizationPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - authorizationPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAuthorizationPoliciesFieldBuilder() - : null; + authorizationPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAuthorizationPoliciesFieldBuilder() : null; } else { authorizationPoliciesBuilder_.addAllMessages(other.authorizationPolicies_); } @@ -637,9 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -648,40 +578,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - authorizationPolicies_ = java.util.Collections.emptyList(); - + private java.util.List authorizationPolicies_ = + java.util.Collections.emptyList(); private void ensureAuthorizationPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - authorizationPolicies_ = - new java.util.ArrayList( - authorizationPolicies_); + authorizationPolicies_ = new java.util.ArrayList(authorizationPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> - authorizationPoliciesBuilder_; + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> authorizationPoliciesBuilder_; /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public java.util.List - getAuthorizationPoliciesList() { + public java.util.List getAuthorizationPoliciesList() { if (authorizationPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(authorizationPolicies_); } else { @@ -689,15 +607,11 @@ private void ensureAuthorizationPoliciesIsMutable() { } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public int getAuthorizationPoliciesCount() { if (authorizationPoliciesBuilder_ == null) { @@ -707,18 +621,13 @@ public int getAuthorizationPoliciesCount() { } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicies( - int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicies(int index) { if (authorizationPoliciesBuilder_ == null) { return authorizationPolicies_.get(index); } else { @@ -726,15 +635,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationP } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public Builder setAuthorizationPolicies( int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { @@ -751,19 +656,14 @@ public Builder setAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public Builder setAuthorizationPolicies( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder builderForValue) { if (authorizationPoliciesBuilder_ == null) { ensureAuthorizationPoliciesIsMutable(); authorizationPolicies_.set(index, builderForValue.build()); @@ -774,18 +674,13 @@ public Builder setAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public Builder addAuthorizationPolicies( - com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { + public Builder addAuthorizationPolicies(com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { if (authorizationPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,15 +694,11 @@ public Builder addAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public Builder addAuthorizationPolicies( int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { @@ -824,15 +715,11 @@ public Builder addAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public Builder addAuthorizationPolicies( com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder builderForValue) { @@ -846,19 +733,14 @@ public Builder addAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public Builder addAuthorizationPolicies( - int index, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder builderForValue) { if (authorizationPoliciesBuilder_ == null) { ensureAuthorizationPoliciesIsMutable(); authorizationPolicies_.add(index, builderForValue.build()); @@ -869,22 +751,18 @@ public Builder addAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public Builder addAllAuthorizationPolicies( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (authorizationPoliciesBuilder_ == null) { ensureAuthorizationPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authorizationPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, authorizationPolicies_); onChanged(); } else { authorizationPoliciesBuilder_.addAllMessages(values); @@ -892,15 +770,11 @@ public Builder addAllAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public Builder clearAuthorizationPolicies() { if (authorizationPoliciesBuilder_ == null) { @@ -913,15 +787,11 @@ public Builder clearAuthorizationPolicies() { return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ public Builder removeAuthorizationPolicies(int index) { if (authorizationPoliciesBuilder_ == null) { @@ -934,53 +804,39 @@ public Builder removeAuthorizationPolicies(int index) { return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder - getAuthorizationPoliciesBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder getAuthorizationPoliciesBuilder( + int index) { return getAuthorizationPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPoliciesOrBuilder( + int index) { if (authorizationPoliciesBuilder_ == null) { - return authorizationPolicies_.get(index); - } else { + return authorizationPolicies_.get(index); } else { return authorizationPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public java.util.List< - ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> - getAuthorizationPoliciesOrBuilderList() { + public java.util.List + getAuthorizationPoliciesOrBuilderList() { if (authorizationPoliciesBuilder_ != null) { return authorizationPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -988,65 +844,45 @@ public Builder removeAuthorizationPolicies(int index) { } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder - addAuthorizationPoliciesBuilder() { - return getAuthorizationPoliciesFieldBuilder() - .addBuilder(com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder addAuthorizationPoliciesBuilder() { + return getAuthorizationPoliciesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance()); } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder - addAuthorizationPoliciesBuilder(int index) { - return getAuthorizationPoliciesFieldBuilder() - .addBuilder( - index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder addAuthorizationPoliciesBuilder( + int index) { + return getAuthorizationPoliciesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance()); } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - public java.util.List - getAuthorizationPoliciesBuilderList() { + public java.util.List + getAuthorizationPoliciesBuilderList() { return getAuthorizationPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> getAuthorizationPoliciesFieldBuilder() { if (authorizationPoliciesBuilder_ == null) { - authorizationPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder>( + authorizationPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder>( authorizationPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1058,8 +894,6 @@ public Builder removeAuthorizationPolicies(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1067,13 +901,13 @@ public Builder removeAuthorizationPolicies(int index) {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1082,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1091,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1106,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1115,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1138,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1157,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1183,32 +1009,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) - private static final com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse(); } - public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAuthorizationPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAuthorizationPoliciesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthorizationPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAuthorizationPoliciesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1220,8 +1044,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java index eb3926a8..ef6b3941 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java @@ -1,90 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; -public interface ListAuthorizationPoliciesResponseOrBuilder - extends +public interface ListAuthorizationPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - java.util.List + java.util.List getAuthorizationPoliciesList(); /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicies(int index); /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ int getAuthorizationPoliciesCount(); /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - java.util.List + java.util.List getAuthorizationPoliciesOrBuilderList(); /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policies = 1; */ - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPoliciesOrBuilder(int index); + com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPoliciesOrBuilder( + int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -92,13 +59,10 @@ public interface ListAuthorizationPoliciesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -106,8 +70,8 @@ public interface ListAuthorizationPoliciesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java similarity index 68% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java index 0864b1ed..d9747494 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the ListClientTlsPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest} */ -public final class ListClientTlsPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListClientTlsPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) ListClientTlsPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListClientTlsPoliciesRequest.newBuilder() to construct. private ListClientTlsPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListClientTlsPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListClientTlsPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListClientTlsPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListClientTlsPoliciesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListClientTlsPoliciesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListClientTlsPoliciesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.class, - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.class, com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location from which the ClientTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location from which the ClientTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of ClientTlsPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListClientTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -212,7 +179,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,15 +187,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListClientTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -238,15 +203,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -255,7 +221,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -290,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest other = - (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) obj; + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest other = (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest 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.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the ListClientTlsPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.class, - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.class, com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.getDefaultInstance(); } @@ -509,8 +468,7 @@ public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest buildPartial() { - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest result = - new com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest(this); + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest result = new com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -522,50 +480,46 @@ public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.ListClientTlsPoliciesRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest other) { - if (other - == com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest other) { + if (other == com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -610,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -635,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -660,85 +605,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of ClientTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -746,36 +675,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of ClientTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of ClientTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -783,8 +706,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -793,13 +714,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -808,8 +729,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -818,14 +737,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -833,8 +753,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -843,22 +761,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -867,18 +783,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -887,23 +800,23 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,32 +826,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) - private static final com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest(); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClientTlsPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListClientTlsPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClientTlsPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClientTlsPoliciesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,8 +861,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java index f880f4db..525bbce3 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface ListClientTlsPoliciesRequestOrBuilder - extends +public interface ListClientTlsPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location from which the ClientTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location from which the ClientTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of ClientTlsPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListClientTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -78,13 +48,10 @@ public interface ListClientTlsPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListClientTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -93,8 +60,8 @@ public interface ListClientTlsPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java similarity index 71% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java index 5e9125fb..147f8acf 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Response returned by the ListClientTlsPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse} */ -public final class ListClientTlsPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListClientTlsPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) ListClientTlsPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListClientTlsPoliciesResponse.newBuilder() to construct. private ListClientTlsPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListClientTlsPoliciesResponse() { clientTlsPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListClientTlsPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListClientTlsPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListClientTlsPoliciesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListClientTlsPoliciesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientTlsPolicies_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clientTlsPolicies_.add( - input.readMessage( - com.google.cloud.networksecurity.v1.ClientTlsPolicy.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + clientTlsPolicies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + clientTlsPolicies_.add( + input.readMessage(com.google.cloud.networksecurity.v1.ClientTlsPolicy.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListClientTlsPoliciesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { clientTlsPolicies_ = java.util.Collections.unmodifiableList(clientTlsPolicies_); @@ -115,27 +94,22 @@ private ListClientTlsPoliciesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.class, - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.class, com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.Builder.class); } public static final int CLIENT_TLS_POLICIES_FIELD_NUMBER = 1; private java.util.List clientTlsPolicies_; /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
@@ -143,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ @java.lang.Override - public java.util.List - getClientTlsPoliciesList() { + public java.util.List getClientTlsPoliciesList() { return clientTlsPolicies_; } /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
@@ -157,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getClientTlsPoliciesOrBuilderList() { return clientTlsPolicies_; } /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
@@ -175,8 +144,6 @@ public int getClientTlsPoliciesCount() { return clientTlsPolicies_.size(); } /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
@@ -188,8 +155,6 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicies( return clientTlsPolicies_.get(index); } /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
@@ -205,8 +170,6 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTls public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -214,7 +177,6 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTls
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,15 +185,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -239,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -256,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < clientTlsPolicies_.size(); i++) { output.writeMessage(1, clientTlsPolicies_.get(i)); } @@ -285,8 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < clientTlsPolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, clientTlsPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, clientTlsPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -299,16 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse other = - (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) obj; + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse other = (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) obj; - if (!getClientTlsPoliciesList().equals(other.getClientTlsPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getClientTlsPoliciesList() + .equals(other.getClientTlsPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,147 +295,135 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse 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.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse - 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.networksecurity.v1.ListClientTlsPoliciesResponse 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.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response returned by the ListClientTlsPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.class, - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.class, com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getClientTlsPoliciesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,14 +439,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.getDefaultInstance(); } @@ -510,8 +460,7 @@ public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse build() @java.lang.Override public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse buildPartial() { - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse result = - new com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse(this); + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse result = new com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse(this); int from_bitField0_ = bitField0_; if (clientTlsPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -531,50 +480,46 @@ public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.ListClientTlsPoliciesResponse) { - return mergeFrom((com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) other); + return mergeFrom((com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse other) { - if (other - == com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse other) { + if (other == com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse.getDefaultInstance()) return this; if (clientTlsPoliciesBuilder_ == null) { if (!other.clientTlsPolicies_.isEmpty()) { if (clientTlsPolicies_.isEmpty()) { @@ -593,10 +538,9 @@ public Builder mergeFrom( clientTlsPoliciesBuilder_ = null; clientTlsPolicies_ = other.clientTlsPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - clientTlsPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClientTlsPoliciesFieldBuilder() - : null; + clientTlsPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClientTlsPoliciesFieldBuilder() : null; } else { clientTlsPoliciesBuilder_.addAllMessages(other.clientTlsPolicies_); } @@ -625,9 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,39 +578,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List clientTlsPolicies_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureClientTlsPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - clientTlsPolicies_ = - new java.util.ArrayList( - clientTlsPolicies_); + clientTlsPolicies_ = new java.util.ArrayList(clientTlsPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> - clientTlsPoliciesBuilder_; + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> clientTlsPoliciesBuilder_; /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ - public java.util.List - getClientTlsPoliciesList() { + public java.util.List getClientTlsPoliciesList() { if (clientTlsPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(clientTlsPolicies_); } else { @@ -676,14 +607,11 @@ private void ensureClientTlsPoliciesIsMutable() { } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public int getClientTlsPoliciesCount() { if (clientTlsPoliciesBuilder_ == null) { @@ -693,14 +621,11 @@ public int getClientTlsPoliciesCount() { } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicies(int index) { if (clientTlsPoliciesBuilder_ == null) { @@ -710,14 +635,11 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicies( } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder setClientTlsPolicies( int index, com.google.cloud.networksecurity.v1.ClientTlsPolicy value) { @@ -734,14 +656,11 @@ public Builder setClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder setClientTlsPolicies( int index, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder builderForValue) { @@ -755,14 +674,11 @@ public Builder setClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addClientTlsPolicies(com.google.cloud.networksecurity.v1.ClientTlsPolicy value) { if (clientTlsPoliciesBuilder_ == null) { @@ -778,14 +694,11 @@ public Builder addClientTlsPolicies(com.google.cloud.networksecurity.v1.ClientTl return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addClientTlsPolicies( int index, com.google.cloud.networksecurity.v1.ClientTlsPolicy value) { @@ -802,14 +715,11 @@ public Builder addClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addClientTlsPolicies( com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder builderForValue) { @@ -823,14 +733,11 @@ public Builder addClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addClientTlsPolicies( int index, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder builderForValue) { @@ -844,20 +751,18 @@ public Builder addClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addAllClientTlsPolicies( java.lang.Iterable values) { if (clientTlsPoliciesBuilder_ == null) { ensureClientTlsPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientTlsPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clientTlsPolicies_); onChanged(); } else { clientTlsPoliciesBuilder_.addAllMessages(values); @@ -865,14 +770,11 @@ public Builder addAllClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder clearClientTlsPolicies() { if (clientTlsPoliciesBuilder_ == null) { @@ -885,14 +787,11 @@ public Builder clearClientTlsPolicies() { return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public Builder removeClientTlsPolicies(int index) { if (clientTlsPoliciesBuilder_ == null) { @@ -905,49 +804,39 @@ public Builder removeClientTlsPolicies(int index) { return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder getClientTlsPoliciesBuilder( int index) { return getClientTlsPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder - getClientTlsPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPoliciesOrBuilder( + int index) { if (clientTlsPoliciesBuilder_ == null) { - return clientTlsPolicies_.get(index); - } else { + return clientTlsPolicies_.get(index); } else { return clientTlsPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ - public java.util.List - getClientTlsPoliciesOrBuilderList() { + public java.util.List + getClientTlsPoliciesOrBuilderList() { if (clientTlsPoliciesBuilder_ != null) { return clientTlsPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -955,62 +844,45 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder getClientTlsP } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder - addClientTlsPoliciesBuilder() { - return getClientTlsPoliciesFieldBuilder() - .addBuilder(com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder addClientTlsPoliciesBuilder() { + return getClientTlsPoliciesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance()); } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder addClientTlsPoliciesBuilder( int index) { - return getClientTlsPoliciesFieldBuilder() - .addBuilder( - index, com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance()); + return getClientTlsPoliciesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance()); } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ - public java.util.List - getClientTlsPoliciesBuilderList() { + public java.util.List + getClientTlsPoliciesBuilderList() { return getClientTlsPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> getClientTlsPoliciesFieldBuilder() { if (clientTlsPoliciesBuilder_ == null) { - clientTlsPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder>( + clientTlsPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder>( clientTlsPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1022,8 +894,6 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder addClientTlsP private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1031,13 +901,13 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder addClientTlsP
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1046,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1055,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1070,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1079,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1102,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1121,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1147,32 +1009,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) - private static final com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse(); } - public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClientTlsPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListClientTlsPoliciesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClientTlsPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClientTlsPoliciesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1184,8 +1044,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java index d72ad348..043f89cb 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface ListClientTlsPoliciesResponseOrBuilder - extends +public interface ListClientTlsPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ - java.util.List getClientTlsPoliciesList(); + java.util.List + getClientTlsPoliciesList(); /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
@@ -44,8 +25,6 @@ public interface ListClientTlsPoliciesResponseOrBuilder */ com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicies(int index); /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
@@ -54,19 +33,15 @@ public interface ListClientTlsPoliciesResponseOrBuilder */ int getClientTlsPoliciesCount(); /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* * repeated .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policies = 1; */ - java.util.List + java.util.List getClientTlsPoliciesOrBuilderList(); /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
@@ -77,8 +52,6 @@ com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicie int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -86,13 +59,10 @@ com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicie
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -100,8 +70,8 @@ com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicie
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java similarity index 68% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java index 6a908414..0513d195 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by the ListServerTlsPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest} */ -public final class ListServerTlsPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServerTlsPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) ListServerTlsPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServerTlsPoliciesRequest.newBuilder() to construct. private ListServerTlsPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServerTlsPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListServerTlsPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServerTlsPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListServerTlsPoliciesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListServerTlsPoliciesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListServerTlsPoliciesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.class, - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.class, com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location from which the ServerTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location from which the ServerTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of ServerTlsPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListServerTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -212,7 +179,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,15 +187,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListServerTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -238,15 +203,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -255,7 +221,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -290,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest other = - (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) obj; + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest other = (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest 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.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the ListServerTlsPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.class, - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.class, com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.getDefaultInstance(); } @@ -509,8 +468,7 @@ public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest buildPartial() { - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest result = - new com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest(this); + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest result = new com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -522,50 +480,46 @@ public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.ListServerTlsPoliciesRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest other) { - if (other - == com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest other) { + if (other == com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -610,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -635,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -660,85 +605,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of ServerTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -746,36 +675,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of ServerTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of ServerTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -783,8 +706,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -793,13 +714,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -808,8 +729,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -818,14 +737,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -833,8 +753,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -843,22 +761,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -867,18 +783,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -887,23 +800,23 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,32 +826,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) - private static final com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest(); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServerTlsPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServerTlsPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServerTlsPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListServerTlsPoliciesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,8 +861,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java index 8558be24..186b5e4e 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface ListServerTlsPoliciesRequestOrBuilder - extends +public interface ListServerTlsPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location from which the ServerTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location from which the ServerTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of ServerTlsPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListServerTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -78,13 +48,10 @@ public interface ListServerTlsPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListServerTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -93,8 +60,8 @@ public interface ListServerTlsPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java similarity index 71% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java index 318d90ab..be26e374 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Response returned by the ListServerTlsPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse} */ -public final class ListServerTlsPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServerTlsPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) ListServerTlsPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServerTlsPoliciesResponse.newBuilder() to construct. private ListServerTlsPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServerTlsPoliciesResponse() { serverTlsPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListServerTlsPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServerTlsPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListServerTlsPoliciesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListServerTlsPoliciesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serverTlsPolicies_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - serverTlsPolicies_.add( - input.readMessage( - com.google.cloud.networksecurity.v1.ServerTlsPolicy.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + serverTlsPolicies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + serverTlsPolicies_.add( + input.readMessage(com.google.cloud.networksecurity.v1.ServerTlsPolicy.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListServerTlsPoliciesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { serverTlsPolicies_ = java.util.Collections.unmodifiableList(serverTlsPolicies_); @@ -115,27 +94,22 @@ private ListServerTlsPoliciesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.class, - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.class, com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.Builder.class); } public static final int SERVER_TLS_POLICIES_FIELD_NUMBER = 1; private java.util.List serverTlsPolicies_; /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
@@ -143,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ @java.lang.Override - public java.util.List - getServerTlsPoliciesList() { + public java.util.List getServerTlsPoliciesList() { return serverTlsPolicies_; } /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
@@ -157,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServerTlsPoliciesOrBuilderList() { return serverTlsPolicies_; } /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
@@ -175,8 +144,6 @@ public int getServerTlsPoliciesCount() { return serverTlsPolicies_.size(); } /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
@@ -188,8 +155,6 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicies( return serverTlsPolicies_.get(index); } /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
@@ -205,8 +170,6 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTls public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -214,7 +177,6 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTls
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,15 +185,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -239,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -256,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < serverTlsPolicies_.size(); i++) { output.writeMessage(1, serverTlsPolicies_.get(i)); } @@ -285,8 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < serverTlsPolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, serverTlsPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, serverTlsPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -299,16 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse other = - (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) obj; + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse other = (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) obj; - if (!getServerTlsPoliciesList().equals(other.getServerTlsPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getServerTlsPoliciesList() + .equals(other.getServerTlsPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,147 +295,135 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse 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.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse - 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.networksecurity.v1.ListServerTlsPoliciesResponse 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.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response returned by the ListServerTlsPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.class, - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.class, com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getServerTlsPoliciesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,14 +439,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.getDefaultInstance(); } @@ -510,8 +460,7 @@ public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse build() @java.lang.Override public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse buildPartial() { - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse result = - new com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse(this); + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse result = new com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse(this); int from_bitField0_ = bitField0_; if (serverTlsPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -531,50 +480,46 @@ public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.ListServerTlsPoliciesResponse) { - return mergeFrom((com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) other); + return mergeFrom((com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse other) { - if (other - == com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse other) { + if (other == com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse.getDefaultInstance()) return this; if (serverTlsPoliciesBuilder_ == null) { if (!other.serverTlsPolicies_.isEmpty()) { if (serverTlsPolicies_.isEmpty()) { @@ -593,10 +538,9 @@ public Builder mergeFrom( serverTlsPoliciesBuilder_ = null; serverTlsPolicies_ = other.serverTlsPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - serverTlsPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServerTlsPoliciesFieldBuilder() - : null; + serverTlsPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServerTlsPoliciesFieldBuilder() : null; } else { serverTlsPoliciesBuilder_.addAllMessages(other.serverTlsPolicies_); } @@ -625,9 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,39 +578,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List serverTlsPolicies_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServerTlsPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - serverTlsPolicies_ = - new java.util.ArrayList( - serverTlsPolicies_); + serverTlsPolicies_ = new java.util.ArrayList(serverTlsPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> - serverTlsPoliciesBuilder_; + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> serverTlsPoliciesBuilder_; /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ - public java.util.List - getServerTlsPoliciesList() { + public java.util.List getServerTlsPoliciesList() { if (serverTlsPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(serverTlsPolicies_); } else { @@ -676,14 +607,11 @@ private void ensureServerTlsPoliciesIsMutable() { } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public int getServerTlsPoliciesCount() { if (serverTlsPoliciesBuilder_ == null) { @@ -693,14 +621,11 @@ public int getServerTlsPoliciesCount() { } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicies(int index) { if (serverTlsPoliciesBuilder_ == null) { @@ -710,14 +635,11 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicies( } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder setServerTlsPolicies( int index, com.google.cloud.networksecurity.v1.ServerTlsPolicy value) { @@ -734,14 +656,11 @@ public Builder setServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder setServerTlsPolicies( int index, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder builderForValue) { @@ -755,14 +674,11 @@ public Builder setServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addServerTlsPolicies(com.google.cloud.networksecurity.v1.ServerTlsPolicy value) { if (serverTlsPoliciesBuilder_ == null) { @@ -778,14 +694,11 @@ public Builder addServerTlsPolicies(com.google.cloud.networksecurity.v1.ServerTl return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addServerTlsPolicies( int index, com.google.cloud.networksecurity.v1.ServerTlsPolicy value) { @@ -802,14 +715,11 @@ public Builder addServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addServerTlsPolicies( com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder builderForValue) { @@ -823,14 +733,11 @@ public Builder addServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addServerTlsPolicies( int index, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder builderForValue) { @@ -844,20 +751,18 @@ public Builder addServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addAllServerTlsPolicies( java.lang.Iterable values) { if (serverTlsPoliciesBuilder_ == null) { ensureServerTlsPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverTlsPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverTlsPolicies_); onChanged(); } else { serverTlsPoliciesBuilder_.addAllMessages(values); @@ -865,14 +770,11 @@ public Builder addAllServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder clearServerTlsPolicies() { if (serverTlsPoliciesBuilder_ == null) { @@ -885,14 +787,11 @@ public Builder clearServerTlsPolicies() { return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public Builder removeServerTlsPolicies(int index) { if (serverTlsPoliciesBuilder_ == null) { @@ -905,49 +804,39 @@ public Builder removeServerTlsPolicies(int index) { return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder getServerTlsPoliciesBuilder( int index) { return getServerTlsPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder - getServerTlsPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPoliciesOrBuilder( + int index) { if (serverTlsPoliciesBuilder_ == null) { - return serverTlsPolicies_.get(index); - } else { + return serverTlsPolicies_.get(index); } else { return serverTlsPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ - public java.util.List - getServerTlsPoliciesOrBuilderList() { + public java.util.List + getServerTlsPoliciesOrBuilderList() { if (serverTlsPoliciesBuilder_ != null) { return serverTlsPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -955,62 +844,45 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder getServerTlsP } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder - addServerTlsPoliciesBuilder() { - return getServerTlsPoliciesFieldBuilder() - .addBuilder(com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder addServerTlsPoliciesBuilder() { + return getServerTlsPoliciesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance()); } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder addServerTlsPoliciesBuilder( int index) { - return getServerTlsPoliciesFieldBuilder() - .addBuilder( - index, com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance()); + return getServerTlsPoliciesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance()); } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ - public java.util.List - getServerTlsPoliciesBuilderList() { + public java.util.List + getServerTlsPoliciesBuilderList() { return getServerTlsPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> getServerTlsPoliciesFieldBuilder() { if (serverTlsPoliciesBuilder_ == null) { - serverTlsPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder>( + serverTlsPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder>( serverTlsPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1022,8 +894,6 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder addServerTlsP private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1031,13 +901,13 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder addServerTlsP
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1046,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1055,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1070,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1079,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1102,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1121,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1147,32 +1009,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) - private static final com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse(); } - public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServerTlsPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServerTlsPoliciesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServerTlsPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListServerTlsPoliciesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1184,8 +1044,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java index b3f1d3fc..a2b1b046 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface ListServerTlsPoliciesResponseOrBuilder - extends +public interface ListServerTlsPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ - java.util.List getServerTlsPoliciesList(); + java.util.List + getServerTlsPoliciesList(); /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
@@ -44,8 +25,6 @@ public interface ListServerTlsPoliciesResponseOrBuilder */ com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicies(int index); /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
@@ -54,19 +33,15 @@ public interface ListServerTlsPoliciesResponseOrBuilder */ int getServerTlsPoliciesCount(); /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* * repeated .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policies = 1; */ - java.util.List + java.util.List getServerTlsPoliciesOrBuilderList(); /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
@@ -77,8 +52,6 @@ com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicie int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -86,13 +59,10 @@ com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicie
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -100,8 +70,8 @@ com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicie
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java new file mode 100644 index 00000000..c9a775e0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java @@ -0,0 +1,176 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/network_security.proto + +package com.google.cloud.networksecurity.v1; + +public final class NetworkSecurityOuterClass { + private NetworkSecurityOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/networksecurity/v1/networ" + + "k_security.proto\022\037google.cloud.networkse" + + "curity.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032:google/cloud/n" + + "etworksecurity/v1/authorization_policy.p" + + "roto\0327google/cloud/networksecurity/v1/cl" + + "ient_tls_policy.proto\0327google/cloud/netw" + + "orksecurity/v1/server_tls_policy.proto\032#" + + "google/longrunning/operations.proto2\375 \n\017" + + "NetworkSecurity\022\356\001\n\031ListAuthorizationPol" + + "icies\022A.google.cloud.networksecurity.v1." + + "ListAuthorizationPoliciesRequest\032B.googl" + + "e.cloud.networksecurity.v1.ListAuthoriza" + + "tionPoliciesResponse\"J\202\323\344\223\002;\0229/v1/{paren" + + "t=projects/*/locations/*}/authorizationP" + + "olicies\332A\006parent\022\330\001\n\026GetAuthorizationPol" + + "icy\022>.google.cloud.networksecurity.v1.Ge" + + "tAuthorizationPolicyRequest\0324.google.clo" + + "ud.networksecurity.v1.AuthorizationPolic" + + "y\"H\202\323\344\223\002;\0229/v1/{name=projects/*/location" + + "s/*/authorizationPolicies/*}\332A\004name\022\330\002\n\031" + + "CreateAuthorizationPolicy\022A.google.cloud" + + ".networksecurity.v1.CreateAuthorizationP" + + "olicyRequest\032\035.google.longrunning.Operat" + + "ion\"\330\001\202\323\344\223\002Q\"9/v1/{parent=projects/*/loc" + + "ations/*}/authorizationPolicies:\024authori" + + "zation_policy\332A3parent,authorization_pol" + + "icy,authorization_policy_id\312AH\n\023Authoriz" + + "ationPolicy\0221google.cloud.networksecurit" + + "y.v1.OperationMetadata\022\332\002\n\031UpdateAuthori" + + "zationPolicy\022A.google.cloud.networksecur" + + "ity.v1.UpdateAuthorizationPolicyRequest\032" + + "\035.google.longrunning.Operation\"\332\001\202\323\344\223\002f2" + + "N/v1/{authorization_policy.name=projects" + + "/*/locations/*/authorizationPolicies/*}:" + + "\024authorization_policy\332A authorization_po" + + "licy,update_mask\312AH\n\023AuthorizationPolicy" + + "\0221google.cloud.networksecurity.v1.Operat" + + "ionMetadata\022\225\002\n\031DeleteAuthorizationPolic" + + "y\022A.google.cloud.networksecurity.v1.Dele" + + "teAuthorizationPolicyRequest\032\035.google.lo" + + "ngrunning.Operation\"\225\001\202\323\344\223\002;*9/v1/{name=" + + "projects/*/locations/*/authorizationPoli" + + "cies/*}\332A\004name\312AJ\n\025google.protobuf.Empty" + + "\0221google.cloud.networksecurity.v1.Operat" + + "ionMetadata\022\336\001\n\025ListServerTlsPolicies\022=." + + "google.cloud.networksecurity.v1.ListServ" + + "erTlsPoliciesRequest\032>.google.cloud.netw" + + "orksecurity.v1.ListServerTlsPoliciesResp" + + "onse\"F\202\323\344\223\0027\0225/v1/{parent=projects/*/loc" + + "ations/*}/serverTlsPolicies\332A\006parent\022\310\001\n" + + "\022GetServerTlsPolicy\022:.google.cloud.netwo" + + "rksecurity.v1.GetServerTlsPolicyRequest\032" + + "0.google.cloud.networksecurity.v1.Server" + + "TlsPolicy\"D\202\323\344\223\0027\0225/v1/{name=projects/*/" + + "locations/*/serverTlsPolicies/*}\332A\004name\022" + + "\277\002\n\025CreateServerTlsPolicy\022=.google.cloud" + + ".networksecurity.v1.CreateServerTlsPolic" + + "yRequest\032\035.google.longrunning.Operation\"" + + "\307\001\202\323\344\223\002J\"5/v1/{parent=projects/*/locatio" + + "ns/*}/serverTlsPolicies:\021server_tls_poli" + + "cy\332A-parent,server_tls_policy,server_tls" + + "_policy_id\312AD\n\017ServerTlsPolicy\0221google.c" + + "loud.networksecurity.v1.OperationMetadat" + + "a\022\301\002\n\025UpdateServerTlsPolicy\022=.google.clo" + + "ud.networksecurity.v1.UpdateServerTlsPol" + + "icyRequest\032\035.google.longrunning.Operatio" + + "n\"\311\001\202\323\344\223\002\\2G/v1/{server_tls_policy.name=" + + "projects/*/locations/*/serverTlsPolicies" + + "/*}:\021server_tls_policy\332A\035server_tls_poli" + + "cy,update_mask\312AD\n\017ServerTlsPolicy\0221goog" + + "le.cloud.networksecurity.v1.OperationMet" + + "adata\022\211\002\n\025DeleteServerTlsPolicy\022=.google" + + ".cloud.networksecurity.v1.DeleteServerTl" + + "sPolicyRequest\032\035.google.longrunning.Oper" + + "ation\"\221\001\202\323\344\223\0027*5/v1/{name=projects/*/loc" + + "ations/*/serverTlsPolicies/*}\332A\004name\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.net" + + "worksecurity.v1.OperationMetadata\022\336\001\n\025Li" + + "stClientTlsPolicies\022=.google.cloud.netwo" + + "rksecurity.v1.ListClientTlsPoliciesReque" + + "st\032>.google.cloud.networksecurity.v1.Lis" + + "tClientTlsPoliciesResponse\"F\202\323\344\223\0027\0225/v1/" + + "{parent=projects/*/locations/*}/clientTl" + + "sPolicies\332A\006parent\022\310\001\n\022GetClientTlsPolic" + + "y\022:.google.cloud.networksecurity.v1.GetC" + + "lientTlsPolicyRequest\0320.google.cloud.net" + + "worksecurity.v1.ClientTlsPolicy\"D\202\323\344\223\0027\022" + + "5/v1/{name=projects/*/locations/*/client" + + "TlsPolicies/*}\332A\004name\022\277\002\n\025CreateClientTl" + + "sPolicy\022=.google.cloud.networksecurity.v" + + "1.CreateClientTlsPolicyRequest\032\035.google." + + "longrunning.Operation\"\307\001\202\323\344\223\002J\"5/v1/{par" + + "ent=projects/*/locations/*}/clientTlsPol" + + "icies:\021client_tls_policy\332A-parent,client" + + "_tls_policy,client_tls_policy_id\312AD\n\017Cli" + + "entTlsPolicy\0221google.cloud.networksecuri" + + "ty.v1.OperationMetadata\022\301\002\n\025UpdateClient" + + "TlsPolicy\022=.google.cloud.networksecurity" + + ".v1.UpdateClientTlsPolicyRequest\032\035.googl" + + "e.longrunning.Operation\"\311\001\202\323\344\223\002\\2G/v1/{c" + + "lient_tls_policy.name=projects/*/locatio" + + "ns/*/clientTlsPolicies/*}:\021client_tls_po" + + "licy\332A\035client_tls_policy,update_mask\312AD\n" + + "\017ClientTlsPolicy\0221google.cloud.networkse" + + "curity.v1.OperationMetadata\022\211\002\n\025DeleteCl" + + "ientTlsPolicy\022=.google.cloud.networksecu" + + "rity.v1.DeleteClientTlsPolicyRequest\032\035.g" + + "oogle.longrunning.Operation\"\221\001\202\323\344\223\0027*5/v" + + "1/{name=projects/*/locations/*/clientTls" + + "Policies/*}\332A\004name\312AJ\n\025google.protobuf.E" + + "mpty\0221google.cloud.networksecurity.v1.Op" + + "erationMetadata\032R\312A\036networksecurity.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\340\001\n#com.google.cloud" + + ".networksecurity.v1P\001ZNgoogle.golang.org" + + "/genproto/googleapis/cloud/networksecuri" + + "ty/v1;networksecurity\252\002\037Google.Cloud.Net" + + "workSecurity.V1\312\002\037Google\\Cloud\\NetworkSe" + + "curity\\V1\352\002\"Google::Cloud::NetworkSecuri" + + "ty::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java index 832bc7a2..320009c8 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/common.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.CommonProto - .internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.CommonProto.internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.CommonProto - .internal_static_google_cloud_networksecurity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networksecurity.v1.CommonProto.internal_static_google_cloud_networksecurity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.OperationMetadata.class, - com.google.cloud.networksecurity.v1.OperationMetadata.Builder.class); + com.google.cloud.networksecurity.v1.OperationMetadata.class, com.google.cloud.networksecurity.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,29 +237,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,29 +283,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -387,29 +329,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +468,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +485,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -560,27 +499,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.OperationMetadata other = - (com.google.cloud.networksecurity.v1.OperationMetadata) obj; + com.google.cloud.networksecurity.v1.OperationMetadata other = (com.google.cloud.networksecurity.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +552,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -616,127 +562,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.OperationMetadata 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.networksecurity.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.OperationMetadata) com.google.cloud.networksecurity.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.CommonProto - .internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.CommonProto.internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.CommonProto - .internal_static_google_cloud_networksecurity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networksecurity.v1.CommonProto.internal_static_google_cloud_networksecurity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.OperationMetadata.class, - com.google.cloud.networksecurity.v1.OperationMetadata.Builder.class); + com.google.cloud.networksecurity.v1.OperationMetadata.class, com.google.cloud.networksecurity.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.OperationMetadata.newBuilder() @@ -744,15 +680,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -782,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.CommonProto - .internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.CommonProto.internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -803,8 +740,7 @@ public com.google.cloud.networksecurity.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networksecurity.v1.OperationMetadata buildPartial() { - com.google.cloud.networksecurity.v1.OperationMetadata result = - new com.google.cloud.networksecurity.v1.OperationMetadata(this); + com.google.cloud.networksecurity.v1.OperationMetadata result = new com.google.cloud.networksecurity.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -828,39 +764,38 @@ public com.google.cloud.networksecurity.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.networksecurity.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.networksecurity.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -868,8 +803,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networksecurity.v1.OperationMetadata other) { - if (other == com.google.cloud.networksecurity.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.networksecurity.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -914,8 +848,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -927,58 +860,39 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -994,17 +908,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1015,21 +926,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1041,15 +948,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1063,64 +966,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1128,35 +1015,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1167,14 +1043,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1190,16 +1063,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1210,20 +1081,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1235,14 +1103,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1256,59 +1121,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1316,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1338,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1360,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1422,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1444,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1466,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1528,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1550,21 +1382,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1572,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1644,7 +1466,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1652,8 +1473,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1662,19 +1481,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1683,11 +1499,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1695,20 +1510,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1717,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1739,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1810,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.OperationMetadata) private static final com.google.cloud.networksecurity.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.OperationMetadata(); } @@ -1824,16 +1629,16 @@ public static com.google.cloud.networksecurity.v1.OperationMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1848,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java index 29dbebc5..5ae30e9e 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/common.proto package com.google.cloud.networksecurity.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java similarity index 71% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java index d7dc77eb..d30ae13e 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * ServerTlsPolicy is a resource that specifies how a server should authenticate
  * incoming requests. This resource itself does not affect configuration unless
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1.ServerTlsPolicy}
  */
-public final class ServerTlsPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ServerTlsPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ServerTlsPolicy)
     ServerTlsPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ServerTlsPolicy.newBuilder() to construct.
   private ServerTlsPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ServerTlsPolicy() {
     name_ = "";
     description_ = "";
@@ -46,15 +28,16 @@ private ServerTlsPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ServerTlsPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ServerTlsPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,110 +57,95 @@ private ServerTlsPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 48:
-            {
-              allowOpen_ = input.readBool();
-              break;
+
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              com.google.cloud.networksecurity.v1.CertificateProvider.Builder subBuilder = null;
-              if (serverCertificate_ != null) {
-                subBuilder = serverCertificate_.toBuilder();
-              }
-              serverCertificate_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.CertificateProvider.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(serverCertificate_);
-                serverCertificate_ = subBuilder.buildPartial();
-              }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 48: {
 
-              break;
+            allowOpen_ = input.readBool();
+            break;
+          }
+          case 58: {
+            com.google.cloud.networksecurity.v1.CertificateProvider.Builder subBuilder = null;
+            if (serverCertificate_ != null) {
+              subBuilder = serverCertificate_.toBuilder();
+            }
+            serverCertificate_ = input.readMessage(com.google.cloud.networksecurity.v1.CertificateProvider.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(serverCertificate_);
+              serverCertificate_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder subBuilder =
-                  null;
-              if (mtlsPolicy_ != null) {
-                subBuilder = mtlsPolicy_.toBuilder();
-              }
-              mtlsPolicy_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(mtlsPolicy_);
-                mtlsPolicy_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 66: {
+            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder subBuilder = null;
+            if (mtlsPolicy_ != null) {
+              subBuilder = mtlsPolicy_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            mtlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(mtlsPolicy_);
+              mtlsPolicy_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -185,47 +153,43 @@ private ServerTlsPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto
-        .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto
-        .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.class,
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder.class);
+            com.google.cloud.networksecurity.v1.ServerTlsPolicy.class, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder.class);
   }
 
-  public interface MTLSPolicyOrBuilder
-      extends
+  public interface MTLSPolicyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -233,10 +197,9 @@ public interface MTLSPolicyOrBuilder
      *
      * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      */
-    java.util.List getClientValidationCaList();
+    java.util.List 
+        getClientValidationCaList();
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -246,8 +209,6 @@ public interface MTLSPolicyOrBuilder
      */
     com.google.cloud.networksecurity.v1.ValidationCA getClientValidationCa(int index);
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -257,8 +218,6 @@ public interface MTLSPolicyOrBuilder
      */
     int getClientValidationCaCount();
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -266,11 +225,9 @@ public interface MTLSPolicyOrBuilder
      *
      * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      */
-    java.util.List
+    java.util.List 
         getClientValidationCaOrBuilderList();
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -282,39 +239,37 @@ com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getClientValidationCaO
         int index);
   }
   /**
-   *
-   *
    * 
    * Specification of the MTLSPolicy.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy} */ - public static final class MTLSPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class MTLSPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) MTLSPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MTLSPolicy.newBuilder() to construct. private MTLSPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MTLSPolicy() { clientValidationCa_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MTLSPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MTLSPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -334,26 +289,22 @@ private MTLSPolicy( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientValidationCa_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clientValidationCa_.add( - input.readMessage( - com.google.cloud.networksecurity.v1.ValidationCA.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + clientValidationCa_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + clientValidationCa_.add( + input.readMessage(com.google.cloud.networksecurity.v1.ValidationCA.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -361,7 +312,8 @@ private MTLSPolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { clientValidationCa_ = java.util.Collections.unmodifiableList(clientValidationCa_); @@ -370,27 +322,22 @@ private MTLSPolicy( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.class, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder.class); + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.class, com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder.class); } public static final int CLIENT_VALIDATION_CA_FIELD_NUMBER = 1; private java.util.List clientValidationCa_; /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -399,13 +346,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      */
     @java.lang.Override
-    public java.util.List
-        getClientValidationCaList() {
+    public java.util.List getClientValidationCaList() {
       return clientValidationCa_;
     }
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -414,13 +358,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      */
     @java.lang.Override
-    public java.util.List
+    public java.util.List 
         getClientValidationCaOrBuilderList() {
       return clientValidationCa_;
     }
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -433,8 +375,6 @@ public int getClientValidationCaCount() {
       return clientValidationCa_.size();
     }
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -447,8 +387,6 @@ public com.google.cloud.networksecurity.v1.ValidationCA getClientValidationCa(in
       return clientValidationCa_.get(index);
     }
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -463,7 +401,6 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getClientValida
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -475,7 +412,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       for (int i = 0; i < clientValidationCa_.size(); i++) {
         output.writeMessage(1, clientValidationCa_.get(i));
       }
@@ -489,8 +427,8 @@ public int getSerializedSize() {
 
       size = 0;
       for (int i = 0; i < clientValidationCa_.size(); i++) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(1, clientValidationCa_.get(i));
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, clientValidationCa_.get(i));
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -500,15 +438,15 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy)) {
         return super.equals(obj);
       }
-      com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy other =
-          (com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) obj;
+      com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy other = (com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) obj;
 
-      if (!getClientValidationCaList().equals(other.getClientValidationCaList())) return false;
+      if (!getClientValidationCaList()
+          .equals(other.getClientValidationCaList())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -530,94 +468,87 @@ public int hashCode() {
     }
 
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy 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.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy prototype) {
+    public static Builder newBuilder(com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -627,32 +558,27 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Specification of the MTLSPolicy.
      * 
* * Protobuf type {@code google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.class, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder.class); + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.class, com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.newBuilder() @@ -660,17 +586,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getClientValidationCaFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -684,14 +610,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance(); } @@ -706,8 +631,7 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy build() { @java.lang.Override public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy buildPartial() { - com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy result = - new com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy(this); + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy result = new com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy(this); int from_bitField0_ = bitField0_; if (clientValidationCaBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -726,52 +650,46 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) { - return mergeFrom((com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) other); + return mergeFrom((com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy other) { - if (other - == com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy other) { + if (other == com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance()) return this; if (clientValidationCaBuilder_ == null) { if (!other.clientValidationCa_.isEmpty()) { if (clientValidationCa_.isEmpty()) { @@ -790,10 +708,9 @@ public Builder mergeFrom( clientValidationCaBuilder_ = null; clientValidationCa_ = other.clientValidationCa_; bitField0_ = (bitField0_ & ~0x00000001); - clientValidationCaBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClientValidationCaFieldBuilder() - : null; + clientValidationCaBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClientValidationCaFieldBuilder() : null; } else { clientValidationCaBuilder_.addAllMessages(other.clientValidationCa_); } @@ -818,9 +735,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -829,40 +744,29 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List clientValidationCa_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureClientValidationCaIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - clientValidationCa_ = - new java.util.ArrayList( - clientValidationCa_); + clientValidationCa_ = new java.util.ArrayList(clientValidationCa_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ValidationCA, - com.google.cloud.networksecurity.v1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1.ValidationCAOrBuilder> - clientValidationCaBuilder_; + com.google.cloud.networksecurity.v1.ValidationCA, com.google.cloud.networksecurity.v1.ValidationCA.Builder, com.google.cloud.networksecurity.v1.ValidationCAOrBuilder> clientValidationCaBuilder_; /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ - public java.util.List - getClientValidationCaList() { + public java.util.List getClientValidationCaList() { if (clientValidationCaBuilder_ == null) { return java.util.Collections.unmodifiableList(clientValidationCa_); } else { @@ -870,15 +774,12 @@ private void ensureClientValidationCaIsMutable() { } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public int getClientValidationCaCount() { if (clientValidationCaBuilder_ == null) { @@ -888,15 +789,12 @@ public int getClientValidationCaCount() { } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public com.google.cloud.networksecurity.v1.ValidationCA getClientValidationCa(int index) { if (clientValidationCaBuilder_ == null) { @@ -906,15 +804,12 @@ public com.google.cloud.networksecurity.v1.ValidationCA getClientValidationCa(in } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder setClientValidationCa( int index, com.google.cloud.networksecurity.v1.ValidationCA value) { @@ -931,15 +826,12 @@ public Builder setClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder setClientValidationCa( int index, com.google.cloud.networksecurity.v1.ValidationCA.Builder builderForValue) { @@ -953,15 +845,12 @@ public Builder setClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder addClientValidationCa(com.google.cloud.networksecurity.v1.ValidationCA value) { if (clientValidationCaBuilder_ == null) { @@ -977,15 +866,12 @@ public Builder addClientValidationCa(com.google.cloud.networksecurity.v1.Validat return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder addClientValidationCa( int index, com.google.cloud.networksecurity.v1.ValidationCA value) { @@ -1002,15 +888,12 @@ public Builder addClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder addClientValidationCa( com.google.cloud.networksecurity.v1.ValidationCA.Builder builderForValue) { @@ -1024,15 +907,12 @@ public Builder addClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder addClientValidationCa( int index, com.google.cloud.networksecurity.v1.ValidationCA.Builder builderForValue) { @@ -1046,21 +926,19 @@ public Builder addClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder addAllClientValidationCa( java.lang.Iterable values) { if (clientValidationCaBuilder_ == null) { ensureClientValidationCaIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientValidationCa_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clientValidationCa_); onChanged(); } else { clientValidationCaBuilder_.addAllMessages(values); @@ -1068,15 +946,12 @@ public Builder addAllClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder clearClientValidationCa() { if (clientValidationCaBuilder_ == null) { @@ -1089,15 +964,12 @@ public Builder clearClientValidationCa() { return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public Builder removeClientValidationCa(int index) { if (clientValidationCaBuilder_ == null) { @@ -1110,52 +982,42 @@ public Builder removeClientValidationCa(int index) { return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public com.google.cloud.networksecurity.v1.ValidationCA.Builder getClientValidationCaBuilder( int index) { return getClientValidationCaFieldBuilder().getBuilder(index); } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ - public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder - getClientValidationCaOrBuilder(int index) { + public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getClientValidationCaOrBuilder( + int index) { if (clientValidationCaBuilder_ == null) { - return clientValidationCa_.get(index); - } else { + return clientValidationCa_.get(index); } else { return clientValidationCaBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ - public java.util.List - getClientValidationCaOrBuilderList() { + public java.util.List + getClientValidationCaOrBuilderList() { if (clientValidationCaBuilder_ != null) { return clientValidationCaBuilder_.getMessageOrBuilderList(); } else { @@ -1163,65 +1025,48 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder getClientValidat } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ - public com.google.cloud.networksecurity.v1.ValidationCA.Builder - addClientValidationCaBuilder() { - return getClientValidationCaFieldBuilder() - .addBuilder(com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()); + public com.google.cloud.networksecurity.v1.ValidationCA.Builder addClientValidationCaBuilder() { + return getClientValidationCaFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()); } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addClientValidationCaBuilder( int index) { - return getClientValidationCaFieldBuilder() - .addBuilder( - index, com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()); + return getClientValidationCaFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()); } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1; */ - public java.util.List - getClientValidationCaBuilderList() { + public java.util.List + getClientValidationCaBuilderList() { return getClientValidationCaFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ValidationCA, - com.google.cloud.networksecurity.v1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1.ValidationCAOrBuilder> + com.google.cloud.networksecurity.v1.ValidationCA, com.google.cloud.networksecurity.v1.ValidationCA.Builder, com.google.cloud.networksecurity.v1.ValidationCAOrBuilder> getClientValidationCaFieldBuilder() { if (clientValidationCaBuilder_ == null) { - clientValidationCaBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1.ValidationCA, - com.google.cloud.networksecurity.v1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1.ValidationCAOrBuilder>( + clientValidationCaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.ValidationCA, com.google.cloud.networksecurity.v1.ValidationCA.Builder, com.google.cloud.networksecurity.v1.ValidationCAOrBuilder>( clientValidationCa_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1230,7 +1075,6 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addClientValidat } return clientValidationCaBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1243,32 +1087,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) - private static final com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy(); } - public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MTLSPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MTLSPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MTLSPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MTLSPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1280,24 +1122,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the ServerTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1306,30 +1145,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the ServerTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1340,14 +1179,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Free-text description of the resource.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -1356,29 +1192,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Free-text description of the resource.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1389,15 +1225,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1405,15 +1237,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1421,14 +1249,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1438,15 +1263,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1454,15 +1275,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1470,14 +1287,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1485,23 +1299,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1510,30 +1325,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -1541,12 +1354,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -1554,16 +1366,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -1571,11 +1383,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1585,8 +1398,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int ALLOW_OPEN_FIELD_NUMBER = 6; private boolean allowOpen_; /** - * - * *
    * Determines if server allows plaintext connections. If set to true, server
    * allows plain text connections. By default, it is set to false. This setting
@@ -1599,7 +1410,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * bool allow_open = 6; - * * @return The allowOpen. */ @java.lang.Override @@ -1610,8 +1420,6 @@ public boolean getAllowOpen() { public static final int SERVER_CERTIFICATE_FIELD_NUMBER = 7; private com.google.cloud.networksecurity.v1.CertificateProvider serverCertificate_; /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -1619,7 +1427,6 @@ public boolean getAllowOpen() {
    * 
* * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7; - * * @return Whether the serverCertificate field is set. */ @java.lang.Override @@ -1627,8 +1434,6 @@ public boolean hasServerCertificate() { return serverCertificate_ != null; } /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -1636,18 +1441,13 @@ public boolean hasServerCertificate() {
    * 
* * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7; - * * @return The serverCertificate. */ @java.lang.Override public com.google.cloud.networksecurity.v1.CertificateProvider getServerCertificate() { - return serverCertificate_ == null - ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() - : serverCertificate_; + return serverCertificate_ == null ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() : serverCertificate_; } /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -1657,16 +1457,13 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getServerCertific
    * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
    */
   @java.lang.Override
-  public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder
-      getServerCertificateOrBuilder() {
+  public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getServerCertificateOrBuilder() {
     return getServerCertificate();
   }
 
   public static final int MTLS_POLICY_FIELD_NUMBER = 8;
   private com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtlsPolicy_;
   /**
-   *
-   *
    * 
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -1676,7 +1473,6 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getServerCertific
    * 
* * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return Whether the mtlsPolicy field is set. */ @java.lang.Override @@ -1684,8 +1480,6 @@ public boolean hasMtlsPolicy() { return mtlsPolicy_ != null; } /** - * - * *
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -1695,18 +1489,13 @@ public boolean hasMtlsPolicy() {
    * 
* * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return The mtlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getMtlsPolicy() { - return mtlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() - : mtlsPolicy_; + return mtlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() : mtlsPolicy_; } /** - * - * *
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -1718,13 +1507,11 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getMtlsPol
    * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
    */
   @java.lang.Override
-  public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder
-      getMtlsPolicyOrBuilder() {
+  public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder getMtlsPolicyOrBuilder() {
     return getMtlsPolicy();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1736,7 +1523,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  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_);
     }
@@ -1749,8 +1537,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (updateTime_ != null) {
       output.writeMessage(4, getUpdateTime());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        5);
     if (allowOpen_ != false) {
       output.writeBool(6, allowOpen_);
     }
@@ -1776,29 +1568,34 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getUpdateTime());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, labels__);
     }
     if (allowOpen_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowOpen_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(6, allowOpen_);
     }
     if (serverCertificate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getServerCertificate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getServerCertificate());
     }
     if (mtlsPolicy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMtlsPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getMtlsPolicy());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1808,33 +1605,40 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.networksecurity.v1.ServerTlsPolicy)) {
       return super.equals(obj);
     }
-    com.google.cloud.networksecurity.v1.ServerTlsPolicy other =
-        (com.google.cloud.networksecurity.v1.ServerTlsPolicy) obj;
+    com.google.cloud.networksecurity.v1.ServerTlsPolicy other = (com.google.cloud.networksecurity.v1.ServerTlsPolicy) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
-    if (getAllowOpen() != other.getAllowOpen()) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
+    if (getAllowOpen()
+        != other.getAllowOpen()) return false;
     if (hasServerCertificate() != other.hasServerCertificate()) return false;
     if (hasServerCertificate()) {
-      if (!getServerCertificate().equals(other.getServerCertificate())) return false;
+      if (!getServerCertificate()
+          .equals(other.getServerCertificate())) return false;
     }
     if (hasMtlsPolicy() != other.hasMtlsPolicy()) return false;
     if (hasMtlsPolicy()) {
-      if (!getMtlsPolicy().equals(other.getMtlsPolicy())) return false;
+      if (!getMtlsPolicy()
+          .equals(other.getMtlsPolicy())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1864,7 +1668,8 @@ public int hashCode() {
       hash = (53 * hash) + internalGetLabels().hashCode();
     }
     hash = (37 * hash) + ALLOW_OPEN_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowOpen());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getAllowOpen());
     if (hasServerCertificate()) {
       hash = (37 * hash) + SERVER_CERTIFICATE_FIELD_NUMBER;
       hash = (53 * hash) + getServerCertificate().hashCode();
@@ -1879,103 +1684,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy 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.networksecurity.v1.ServerTlsPolicy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networksecurity.v1.ServerTlsPolicy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.networksecurity.v1.ServerTlsPolicy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * ServerTlsPolicy is a resource that specifies how a server should authenticate
    * incoming requests. This resource itself does not affect configuration unless
@@ -1984,43 +1782,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1.ServerTlsPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ServerTlsPolicy)
       com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1.ServerTlsPolicy.class,
-              com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder.class);
+              com.google.cloud.networksecurity.v1.ServerTlsPolicy.class, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1.ServerTlsPolicy.newBuilder()
@@ -2028,15 +1826,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2075,9 +1874,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -2096,8 +1895,7 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1.ServerTlsPolicy buildPartial() {
-      com.google.cloud.networksecurity.v1.ServerTlsPolicy result =
-          new com.google.cloud.networksecurity.v1.ServerTlsPolicy(this);
+      com.google.cloud.networksecurity.v1.ServerTlsPolicy result = new com.google.cloud.networksecurity.v1.ServerTlsPolicy(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.description_ = description_;
@@ -2132,39 +1930,38 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1.ServerTlsPolicy) {
-        return mergeFrom((com.google.cloud.networksecurity.v1.ServerTlsPolicy) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1.ServerTlsPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2172,8 +1969,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1.ServerTlsPolicy other) {
-      if (other == com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2188,7 +1984,8 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.ServerTlsPolicy oth
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.getAllowOpen() != false) {
         setAllowOpen(other.getAllowOpen());
       }
@@ -2217,8 +2014,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1.ServerTlsPolicy) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1.ServerTlsPolicy) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2227,26 +2023,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2255,22 +2048,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2278,64 +2070,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2343,20 +2128,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2365,21 +2148,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2387,61 +2169,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2449,58 +2224,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2516,17 +2272,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2537,21 +2290,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2563,15 +2312,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2585,64 +2330,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -2650,58 +2379,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2717,17 +2427,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2738,21 +2445,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2764,15 +2467,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2786,84 +2485,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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 com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2875,30 +2559,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Set of label tags associated with the resource.
      * 
@@ -2906,12 +2588,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Set of label tags associated with the resource.
      * 
@@ -2919,17 +2600,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Set of label tags associated with the resource.
      * 
@@ -2937,11 +2617,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2949,68 +2630,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private boolean allowOpen_; + private boolean allowOpen_ ; /** - * - * *
      * Determines if server allows plaintext connections. If set to true, server
      * allows plain text connections. By default, it is set to false. This setting
@@ -3023,7 +2705,6 @@ public Builder putAllLabels(java.util.Map va
      * 
* * bool allow_open = 6; - * * @return The allowOpen. */ @java.lang.Override @@ -3031,8 +2712,6 @@ public boolean getAllowOpen() { return allowOpen_; } /** - * - * *
      * Determines if server allows plaintext connections. If set to true, server
      * allows plain text connections. By default, it is set to false. This setting
@@ -3045,19 +2724,16 @@ public boolean getAllowOpen() {
      * 
* * bool allow_open = 6; - * * @param value The allowOpen to set. * @return This builder for chaining. */ public Builder setAllowOpen(boolean value) { - + allowOpen_ = value; onChanged(); return this; } /** - * - * *
      * Determines if server allows plaintext connections. If set to true, server
      * allows plain text connections. By default, it is set to false. This setting
@@ -3070,11 +2746,10 @@ public Builder setAllowOpen(boolean value) {
      * 
* * bool allow_open = 6; - * * @return This builder for chaining. */ public Builder clearAllowOpen() { - + allowOpen_ = false; onChanged(); return this; @@ -3082,13 +2757,8 @@ public Builder clearAllowOpen() { private com.google.cloud.networksecurity.v1.CertificateProvider serverCertificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.CertificateProvider, - com.google.cloud.networksecurity.v1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder> - serverCertificateBuilder_; + com.google.cloud.networksecurity.v1.CertificateProvider, com.google.cloud.networksecurity.v1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder> serverCertificateBuilder_; /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3096,15 +2766,12 @@ public Builder clearAllowOpen() {
      * 
* * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7; - * * @return Whether the serverCertificate field is set. */ public boolean hasServerCertificate() { return serverCertificateBuilder_ != null || serverCertificate_ != null; } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3112,21 +2779,16 @@ public boolean hasServerCertificate() {
      * 
* * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7; - * * @return The serverCertificate. */ public com.google.cloud.networksecurity.v1.CertificateProvider getServerCertificate() { if (serverCertificateBuilder_ == null) { - return serverCertificate_ == null - ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() - : serverCertificate_; + return serverCertificate_ == null ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() : serverCertificate_; } else { return serverCertificateBuilder_.getMessage(); } } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3135,8 +2797,7 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getServerCertific
      *
      * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
      */
-    public Builder setServerCertificate(
-        com.google.cloud.networksecurity.v1.CertificateProvider value) {
+    public Builder setServerCertificate(com.google.cloud.networksecurity.v1.CertificateProvider value) {
       if (serverCertificateBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3150,8 +2811,6 @@ public Builder setServerCertificate(
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3172,8 +2831,6 @@ public Builder setServerCertificate(
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3182,14 +2839,11 @@ public Builder setServerCertificate(
      *
      * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
      */
-    public Builder mergeServerCertificate(
-        com.google.cloud.networksecurity.v1.CertificateProvider value) {
+    public Builder mergeServerCertificate(com.google.cloud.networksecurity.v1.CertificateProvider value) {
       if (serverCertificateBuilder_ == null) {
         if (serverCertificate_ != null) {
           serverCertificate_ =
-              com.google.cloud.networksecurity.v1.CertificateProvider.newBuilder(serverCertificate_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.networksecurity.v1.CertificateProvider.newBuilder(serverCertificate_).mergeFrom(value).buildPartial();
         } else {
           serverCertificate_ = value;
         }
@@ -3201,8 +2855,6 @@ public Builder mergeServerCertificate(
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3223,8 +2875,6 @@ public Builder clearServerCertificate() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3233,15 +2883,12 @@ public Builder clearServerCertificate() {
      *
      * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
      */
-    public com.google.cloud.networksecurity.v1.CertificateProvider.Builder
-        getServerCertificateBuilder() {
-
+    public com.google.cloud.networksecurity.v1.CertificateProvider.Builder getServerCertificateBuilder() {
+      
       onChanged();
       return getServerCertificateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3250,19 +2897,15 @@ public Builder clearServerCertificate() {
      *
      * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
      */
-    public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder
-        getServerCertificateOrBuilder() {
+    public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getServerCertificateOrBuilder() {
       if (serverCertificateBuilder_ != null) {
         return serverCertificateBuilder_.getMessageOrBuilder();
       } else {
-        return serverCertificate_ == null
-            ? com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance()
-            : serverCertificate_;
+        return serverCertificate_ == null ?
+            com.google.cloud.networksecurity.v1.CertificateProvider.getDefaultInstance() : serverCertificate_;
       }
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -3272,17 +2915,14 @@ public Builder clearServerCertificate() {
      * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.CertificateProvider,
-            com.google.cloud.networksecurity.v1.CertificateProvider.Builder,
-            com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder>
+        com.google.cloud.networksecurity.v1.CertificateProvider, com.google.cloud.networksecurity.v1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder> 
         getServerCertificateFieldBuilder() {
       if (serverCertificateBuilder_ == null) {
-        serverCertificateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.networksecurity.v1.CertificateProvider,
-                com.google.cloud.networksecurity.v1.CertificateProvider.Builder,
-                com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder>(
-                getServerCertificate(), getParentForChildren(), isClean());
+        serverCertificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.networksecurity.v1.CertificateProvider, com.google.cloud.networksecurity.v1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder>(
+                getServerCertificate(),
+                getParentForChildren(),
+                isClean());
         serverCertificate_ = null;
       }
       return serverCertificateBuilder_;
@@ -3290,13 +2930,8 @@ public Builder clearServerCertificate() {
 
     private com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtlsPolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy,
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder,
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder>
-        mtlsPolicyBuilder_;
+        com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder> mtlsPolicyBuilder_;
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3306,15 +2941,12 @@ public Builder clearServerCertificate() {
      * 
* * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return Whether the mtlsPolicy field is set. */ public boolean hasMtlsPolicy() { return mtlsPolicyBuilder_ != null || mtlsPolicy_ != null; } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3324,21 +2956,16 @@ public boolean hasMtlsPolicy() {
      * 
* * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return The mtlsPolicy. */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getMtlsPolicy() { if (mtlsPolicyBuilder_ == null) { - return mtlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() - : mtlsPolicy_; + return mtlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() : mtlsPolicy_; } else { return mtlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3349,8 +2976,7 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getMtlsPol
      *
      * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
      */
-    public Builder setMtlsPolicy(
-        com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy value) {
+    public Builder setMtlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy value) {
       if (mtlsPolicyBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3364,8 +2990,6 @@ public Builder setMtlsPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3388,8 +3012,6 @@ public Builder setMtlsPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3400,14 +3022,11 @@ public Builder setMtlsPolicy(
      *
      * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
      */
-    public Builder mergeMtlsPolicy(
-        com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy value) {
+    public Builder mergeMtlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy value) {
       if (mtlsPolicyBuilder_ == null) {
         if (mtlsPolicy_ != null) {
           mtlsPolicy_ =
-              com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.newBuilder(mtlsPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.newBuilder(mtlsPolicy_).mergeFrom(value).buildPartial();
         } else {
           mtlsPolicy_ = value;
         }
@@ -3419,8 +3038,6 @@ public Builder mergeMtlsPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3443,8 +3060,6 @@ public Builder clearMtlsPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3455,15 +3070,12 @@ public Builder clearMtlsPolicy() {
      *
      * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
      */
-    public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder
-        getMtlsPolicyBuilder() {
-
+    public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder getMtlsPolicyBuilder() {
+      
       onChanged();
       return getMtlsPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3474,19 +3086,15 @@ public Builder clearMtlsPolicy() {
      *
      * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
      */
-    public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder
-        getMtlsPolicyOrBuilder() {
+    public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder getMtlsPolicyOrBuilder() {
       if (mtlsPolicyBuilder_ != null) {
         return mtlsPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return mtlsPolicy_ == null
-            ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance()
-            : mtlsPolicy_;
+        return mtlsPolicy_ == null ?
+            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() : mtlsPolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3498,24 +3106,21 @@ public Builder clearMtlsPolicy() {
      * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy,
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder,
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder>
+        com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder> 
         getMtlsPolicyFieldBuilder() {
       if (mtlsPolicyBuilder_ == null) {
-        mtlsPolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy,
-                com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder,
-                com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder>(
-                getMtlsPolicy(), getParentForChildren(), isClean());
+        mtlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder>(
+                getMtlsPolicy(),
+                getParentForChildren(),
+                isClean());
         mtlsPolicy_ = null;
       }
       return mtlsPolicyBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3525,12 +3130,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ServerTlsPolicy)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ServerTlsPolicy)
   private static final com.google.cloud.networksecurity.v1.ServerTlsPolicy DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ServerTlsPolicy();
   }
@@ -3539,16 +3144,16 @@ public static com.google.cloud.networksecurity.v1.ServerTlsPolicy getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ServerTlsPolicy parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ServerTlsPolicy(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ServerTlsPolicy parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ServerTlsPolicy(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3563,4 +3168,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.networksecurity.v1.ServerTlsPolicy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java
similarity index 100%
rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java
rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java
diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
similarity index 81%
rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
index 7552b879..76781d7f 100644
--- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
@@ -1,159 +1,109 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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/networksecurity/v1/server_tls_policy.proto
 
 package com.google.cloud.networksecurity.v1;
 
-public interface ServerTlsPolicyOrBuilder
-    extends
+public interface ServerTlsPolicyOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ServerTlsPolicy)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Name of the ServerTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the ServerTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Free-text description of the resource.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Free-text description of the resource.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -162,31 +112,30 @@ public interface ServerTlsPolicyOrBuilder */ int getLabelsCount(); /** - * - * *
    * Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -195,24 +144,22 @@ public interface ServerTlsPolicyOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Determines if server allows plaintext connections. If set to true, server
    * allows plain text connections. By default, it is set to false. This setting
@@ -225,14 +172,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool allow_open = 6; - * * @return The allowOpen. */ boolean getAllowOpen(); /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -240,13 +184,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7; - * * @return Whether the serverCertificate field is set. */ boolean hasServerCertificate(); /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -254,13 +195,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7; - * * @return The serverCertificate. */ com.google.cloud.networksecurity.v1.CertificateProvider getServerCertificate(); /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -272,8 +210,6 @@ java.lang.String getLabelsOrDefault(
   com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getServerCertificateOrBuilder();
 
   /**
-   *
-   *
    * 
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -283,13 +219,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return Whether the mtlsPolicy field is set. */ boolean hasMtlsPolicy(); /** - * - * *
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -299,13 +232,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return The mtlsPolicy. */ com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getMtlsPolicy(); /** - * - * *
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java
new file mode 100644
index 00000000..46c7baa8
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java
@@ -0,0 +1,202 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networksecurity/v1/server_tls_policy.proto
+
+package com.google.cloud.networksecurity.v1;
+
+public final class ServerTlsPolicyProto {
+  private ServerTlsPolicyProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n7google/cloud/networksecurity/v1/server" +
+      "_tls_policy.proto\022\037google.cloud.networks" +
+      "ecurity.v1\032\037google/api/field_behavior.pr" +
+      "oto\032\031google/api/resource.proto\032)google/c" +
+      "loud/networksecurity/v1/tls.proto\032 googl" +
+      "e/protobuf/field_mask.proto\032\037google/prot" +
+      "obuf/timestamp.proto\"\272\005\n\017ServerTlsPolicy" +
+      "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013description\030\002 \001(\t" +
+      "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." +
+      "TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.go" +
+      "ogle.protobuf.TimestampB\003\340A\003\022L\n\006labels\030\005" +
+      " \003(\0132<.google.cloud.networksecurity.v1.S" +
+      "erverTlsPolicy.LabelsEntry\022\022\n\nallow_open" +
+      "\030\006 \001(\010\022P\n\022server_certificate\030\007 \001(\01324.goo" +
+      "gle.cloud.networksecurity.v1.Certificate" +
+      "Provider\022P\n\013mtls_policy\030\010 \001(\0132;.google.c" +
+      "loud.networksecurity.v1.ServerTlsPolicy." +
+      "MTLSPolicy\032Y\n\nMTLSPolicy\022K\n\024client_valid" +
+      "ation_ca\030\001 \003(\0132-.google.cloud.networksec" +
+      "urity.v1.ValidationCA\032-\n\013LabelsEntry\022\013\n\003" +
+      "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n.netw" +
+      "orksecurity.googleapis.com/ServerTlsPoli" +
+      "cy\022Mprojects/{project}/locations/{locati" +
+      "on}/serverTlsPolicies/{server_tls_policy" +
+      "}\"\200\001\n\034ListServerTlsPoliciesRequest\0229\n\006pa" +
+      "rent\030\001 \001(\tB)\340A\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\"\207\001\n\035ListServerTlsPoliciesRe" +
+      "sponse\022M\n\023server_tls_policies\030\001 \003(\01320.go" +
+      "ogle.cloud.networksecurity.v1.ServerTlsP" +
+      "olicy\022\027\n\017next_page_token\030\002 \001(\t\"a\n\031GetSer" +
+      "verTlsPolicyRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A" +
+      "0\n.networksecurity.googleapis.com/Server" +
+      "TlsPolicy\"\333\001\n\034CreateServerTlsPolicyReque" +
+      "st\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.networksecur" +
+      "ity.googleapis.com/ServerTlsPolicy\022!\n\024se" +
+      "rver_tls_policy_id\030\002 \001(\tB\003\340A\002\022P\n\021server_" +
+      "tls_policy\030\003 \001(\01320.google.cloud.networks" +
+      "ecurity.v1.ServerTlsPolicyB\003\340A\002\"\246\001\n\034Upda" +
+      "teServerTlsPolicyRequest\0224\n\013update_mask\030" +
+      "\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022P" +
+      "\n\021server_tls_policy\030\002 \001(\01320.google.cloud" +
+      ".networksecurity.v1.ServerTlsPolicyB\003\340A\002" +
+      "\"d\n\034DeleteServerTlsPolicyRequest\022D\n\004name" +
+      "\030\001 \001(\tB6\340A\002\372A0\n.networksecurity.googleap" +
+      "is.com/ServerTlsPolicyB\366\001\n#com.google.cl" +
+      "oud.networksecurity.v1B\024ServerTlsPolicyP" +
+      "rotoP\001ZNgoogle.golang.org/genproto/googl" +
+      "eapis/cloud/networksecurity/v1;networkse" +
+      "curity\252\002\037Google.Cloud.NetworkSecurity.V1" +
+      "\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Goo" +
+      "gle::Cloud::NetworkSecurity::V1b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.cloud.networksecurity.v1.TlsProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+        });
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor,
+        new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Labels", "AllowOpen", "ServerCertificate", "MtlsPolicy", });
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor =
+      internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor,
+        new java.lang.String[] { "ClientValidationCa", });
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor =
+      internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor,
+        new java.lang.String[] { "ServerTlsPolicies", "NextPageToken", });
+    internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor,
+        new java.lang.String[] { "Parent", "ServerTlsPolicyId", "ServerTlsPolicy", });
+    internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor,
+        new java.lang.String[] { "UpdateMask", "ServerTlsPolicy", });
+    internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.networksecurity.v1.TlsProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsProto.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsProto.java
new file mode 100644
index 00000000..d62ff275
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsProto.java
@@ -0,0 +1,107 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networksecurity/v1/tls.proto
+
+package com.google.cloud.networksecurity.v1;
+
+public final class TlsProto {
+  private TlsProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_ValidationCA_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1_CertificateProvider_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n)google/cloud/networksecurity/v1/tls.pr" +
+      "oto\022\037google.cloud.networksecurity.v1\032\037go" +
+      "ogle/api/field_behavior.proto\"\'\n\014GrpcEnd" +
+      "point\022\027\n\ntarget_uri\030\001 \001(\tB\003\340A\002\"\305\001\n\014Valid" +
+      "ationCA\022F\n\rgrpc_endpoint\030\002 \001(\0132-.google." +
+      "cloud.networksecurity.v1.GrpcEndpointH\000\022" +
+      "e\n\035certificate_provider_instance\030\003 \001(\0132<" +
+      ".google.cloud.networksecurity.v1.Certifi" +
+      "cateProviderInstanceH\000B\006\n\004type\";\n\033Certif" +
+      "icateProviderInstance\022\034\n\017plugin_instance" +
+      "\030\001 \001(\tB\003\340A\002\"\314\001\n\023CertificateProvider\022F\n\rg" +
+      "rpc_endpoint\030\002 \001(\0132-.google.cloud.networ" +
+      "ksecurity.v1.GrpcEndpointH\000\022e\n\035certifica" +
+      "te_provider_instance\030\003 \001(\0132<.google.clou" +
+      "d.networksecurity.v1.CertificateProvider" +
+      "InstanceH\000B\006\n\004typeB\352\001\n#com.google.cloud." +
+      "networksecurity.v1B\010TlsProtoP\001ZNgoogle.g" +
+      "olang.org/genproto/googleapis/cloud/netw" +
+      "orksecurity/v1;networksecurity\252\002\037Google." +
+      "Cloud.NetworkSecurity.V1\312\002\037Google\\Cloud\\" +
+      "NetworkSecurity\\V1\352\002\"Google::Cloud::Netw" +
+      "orkSecurity::V1b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+        });
+    internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor,
+        new java.lang.String[] { "TargetUri", });
+    internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_networksecurity_v1_ValidationCA_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor,
+        new java.lang.String[] { "GrpcEndpoint", "CertificateProviderInstance", "Type", });
+    internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor,
+        new java.lang.String[] { "PluginInstance", });
+    internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_networksecurity_v1_CertificateProvider_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor,
+        new java.lang.String[] { "GrpcEndpoint", "CertificateProviderInstance", "Type", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
similarity index 64%
rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
index bdccb634..a50e521d 100644
--- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
@@ -1,56 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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/networksecurity/v1/authorization_policy.proto
 
 package com.google.cloud.networksecurity.v1;
 
 /**
- *
- *
  * 
  * Request used by the UpdateAuthorizationPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest} */ -public final class UpdateAuthorizationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateAuthorizationPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) UpdateAuthorizationPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateAuthorizationPolicyRequest.newBuilder() to construct. - private UpdateAuthorizationPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateAuthorizationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateAuthorizationPolicyRequest() {} + private UpdateAuthorizationPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateAuthorizationPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateAuthorizationPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,45 +52,39 @@ private UpdateAuthorizationPolicyRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder subBuilder = null; - if (authorizationPolicy_ != null) { - subBuilder = authorizationPolicy_.toBuilder(); - } - authorizationPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1.AuthorizationPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authorizationPolicy_); - authorizationPolicy_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder subBuilder = null; + if (authorizationPolicy_ != null) { + subBuilder = authorizationPolicy_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authorizationPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authorizationPolicy_); + authorizationPolicy_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,33 +92,29 @@ private UpdateAuthorizationPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -150,9 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -160,8 +131,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -170,9 +139,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -180,8 +147,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -190,8 +155,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -201,16 +165,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int AUTHORIZATION_POLICY_FIELD_NUMBER = 2; private com.google.cloud.networksecurity.v1.AuthorizationPolicy authorizationPolicy_; /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ @java.lang.Override @@ -218,43 +177,30 @@ public boolean hasAuthorizationPolicy() { return authorizationPolicy_ != null; } /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy() { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder() { return getAuthorizationPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -283,10 +230,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (authorizationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthorizationPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAuthorizationPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,21 +245,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest other = - (com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) obj; + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest other = (com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasAuthorizationPolicy() != other.hasAuthorizationPolicy()) return false; if (hasAuthorizationPolicy()) { - if (!getAuthorizationPolicy().equals(other.getAuthorizationPolicy())) return false; + if (!getAuthorizationPolicy() + .equals(other.getAuthorizationPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -337,145 +287,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest 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.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - 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.networksecurity.v1.UpdateAuthorizationPolicyRequest 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.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the UpdateAuthorizationPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,16 +434,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -518,8 +455,7 @@ public com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest buil @java.lang.Override public com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest result = - new com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest(this); + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest result = new com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -538,51 +474,46 @@ public com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.UpdateAuthorizationPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -608,9 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,13 +551,8 @@ public Builder mergeFrom( 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -637,17 +561,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -656,23 +576,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -681,8 +595,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -698,8 +611,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -708,10 +619,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -722,8 +633,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -732,14 +641,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -751,8 +659,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -761,8 +667,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -776,8 +681,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -786,17 +689,14 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -805,21 +705,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -828,21 +724,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -850,61 +742,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networksecurity.v1.AuthorizationPolicy authorizationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> - authorizationPolicyBuilder_; + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> authorizationPolicyBuilder_; /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ public boolean hasAuthorizationPolicy() { return authorizationPolicyBuilder_ != null || authorizationPolicy_ != null; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy() { if (authorizationPolicyBuilder_ == null) { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } else { return authorizationPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAuthorizationPolicy( - com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { + public Builder setAuthorizationPolicy(com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { if (authorizationPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -918,15 +790,11 @@ public Builder setAuthorizationPolicy( return this; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAuthorizationPolicy( com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder builderForValue) { @@ -940,25 +808,17 @@ public Builder setAuthorizationPolicy( return this; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeAuthorizationPolicy( - com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { + public Builder mergeAuthorizationPolicy(com.google.cloud.networksecurity.v1.AuthorizationPolicy value) { if (authorizationPolicyBuilder_ == null) { if (authorizationPolicy_ != null) { authorizationPolicy_ = - com.google.cloud.networksecurity.v1.AuthorizationPolicy.newBuilder( - authorizationPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1.AuthorizationPolicy.newBuilder(authorizationPolicy_).mergeFrom(value).buildPartial(); } else { authorizationPolicy_ = value; } @@ -970,15 +830,11 @@ public Builder mergeAuthorizationPolicy( return this; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAuthorizationPolicy() { if (authorizationPolicyBuilder_ == null) { @@ -992,73 +848,55 @@ public Builder clearAuthorizationPolicy() { return this; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder - getAuthorizationPolicyBuilder() { - + public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder getAuthorizationPolicyBuilder() { + onChanged(); return getAuthorizationPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder() { if (authorizationPolicyBuilder_ != null) { return authorizationPolicyBuilder_.getMessageOrBuilder(); } else { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? + com.google.cloud.networksecurity.v1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> getAuthorizationPolicyFieldBuilder() { if (authorizationPolicyBuilder_ == null) { - authorizationPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder>( - getAuthorizationPolicy(), getParentForChildren(), isClean()); + authorizationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AuthorizationPolicy, com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder>( + getAuthorizationPolicy(), + getParentForChildren(), + isClean()); authorizationPolicy_ = null; } return authorizationPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1068,32 +906,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) - private static final com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAuthorizationPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAuthorizationPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAuthorizationPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAuthorizationPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1105,8 +941,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java index b0ec7b74..bddf5988 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto package com.google.cloud.networksecurity.v1; -public interface UpdateAuthorizationPolicyRequestOrBuilder - extends +public interface UpdateAuthorizationPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -68,50 +42,34 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ boolean hasAuthorizationPolicy(); /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy(); /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder(); + com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java similarity index 66% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java index 184c7e44..2ad305af 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by UpdateClientTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest} */ -public final class UpdateClientTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateClientTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) UpdateClientTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateClientTlsPolicyRequest.newBuilder() to construct. private UpdateClientTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateClientTlsPolicyRequest() {} + private UpdateClientTlsPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateClientTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateClientTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateClientTlsPolicyRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder subBuilder = null; - if (clientTlsPolicy_ != null) { - subBuilder = clientTlsPolicy_.toBuilder(); - } - clientTlsPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1.ClientTlsPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientTlsPolicy_); - clientTlsPolicy_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder subBuilder = null; + if (clientTlsPolicy_ != null) { + subBuilder = clientTlsPolicy_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + clientTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.ClientTlsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientTlsPolicy_); + clientTlsPolicy_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +92,29 @@ private UpdateClientTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -150,9 +124,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -160,8 +132,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -171,9 +141,7 @@ public boolean hasUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -181,8 +149,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -192,8 +158,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -203,16 +168,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CLIENT_TLS_POLICY_FIELD_NUMBER = 2; private com.google.cloud.networksecurity.v1.ClientTlsPolicy clientTlsPolicy_; /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ @java.lang.Override @@ -220,43 +180,30 @@ public boolean hasClientTlsPolicy() { return clientTlsPolicy_ != null; } /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy() { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder - getClientTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder() { return getClientTlsPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -285,10 +233,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (clientTlsPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientTlsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClientTlsPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -298,21 +248,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest other = (com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasClientTlsPolicy() != other.hasClientTlsPolicy()) return false; if (hasClientTlsPolicy()) { - if (!getClientTlsPolicy().equals(other.getClientTlsPolicy())) return false; + if (!getClientTlsPolicy() + .equals(other.getClientTlsPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,127 +290,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest 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.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by UpdateClientTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.newBuilder() @@ -467,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.getDefaultInstance(); } @@ -517,8 +458,7 @@ public com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest result = new com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -537,50 +477,46 @@ public com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.UpdateClientTlsPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -606,9 +542,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,13 +554,8 @@ public Builder mergeFrom( 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -636,17 +565,13 @@ public Builder mergeFrom(
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -656,23 +581,17 @@ public boolean hasUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -682,8 +601,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -699,8 +617,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -710,10 +626,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -724,8 +640,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -735,14 +649,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -754,8 +667,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -765,8 +676,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -780,8 +690,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -791,17 +699,14 @@ public Builder clearUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -811,21 +716,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -835,21 +736,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -857,58 +754,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networksecurity.v1.ClientTlsPolicy clientTlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> - clientTlsPolicyBuilder_; + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> clientTlsPolicyBuilder_; /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ public boolean hasClientTlsPolicy() { return clientTlsPolicyBuilder_ != null || clientTlsPolicy_ != null; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy() { if (clientTlsPolicyBuilder_ == null) { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } else { return clientTlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setClientTlsPolicy(com.google.cloud.networksecurity.v1.ClientTlsPolicy value) { if (clientTlsPolicyBuilder_ == null) { @@ -924,15 +802,11 @@ public Builder setClientTlsPolicy(com.google.cloud.networksecurity.v1.ClientTlsP return this; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setClientTlsPolicy( com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder builderForValue) { @@ -946,23 +820,17 @@ public Builder setClientTlsPolicy( return this; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeClientTlsPolicy(com.google.cloud.networksecurity.v1.ClientTlsPolicy value) { if (clientTlsPolicyBuilder_ == null) { if (clientTlsPolicy_ != null) { clientTlsPolicy_ = - com.google.cloud.networksecurity.v1.ClientTlsPolicy.newBuilder(clientTlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1.ClientTlsPolicy.newBuilder(clientTlsPolicy_).mergeFrom(value).buildPartial(); } else { clientTlsPolicy_ = value; } @@ -974,15 +842,11 @@ public Builder mergeClientTlsPolicy(com.google.cloud.networksecurity.v1.ClientTl return this; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearClientTlsPolicy() { if (clientTlsPolicyBuilder_ == null) { @@ -996,72 +860,55 @@ public Builder clearClientTlsPolicy() { return this; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder getClientTlsPolicyBuilder() { - + onChanged(); return getClientTlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder - getClientTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder() { if (clientTlsPolicyBuilder_ != null) { return clientTlsPolicyBuilder_.getMessageOrBuilder(); } else { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? + com.google.cloud.networksecurity.v1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder> getClientTlsPolicyFieldBuilder() { if (clientTlsPolicyBuilder_ == null) { - clientTlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder>( - getClientTlsPolicy(), getParentForChildren(), isClean()); + clientTlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.ClientTlsPolicy, com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder>( + getClientTlsPolicy(), + getParentForChildren(), + isClean()); clientTlsPolicy_ = null; } return clientTlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,32 +918,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateClientTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateClientTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClientTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateClientTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1108,8 +953,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java index 6563573b..3b1aae75 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface UpdateClientTlsPolicyRequestOrBuilder - extends +public interface UpdateClientTlsPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -35,15 +17,11 @@ public interface UpdateClientTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -53,15 +31,11 @@ public interface UpdateClientTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -71,49 +45,34 @@ public interface UpdateClientTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ boolean hasClientTlsPolicy(); /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy(); /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java similarity index 66% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java index 203c52f8..1cb16a1a 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Request used by UpdateServerTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest} */ -public final class UpdateServerTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateServerTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) UpdateServerTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateServerTlsPolicyRequest.newBuilder() to construct. private UpdateServerTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateServerTlsPolicyRequest() {} + private UpdateServerTlsPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateServerTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateServerTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateServerTlsPolicyRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder subBuilder = null; - if (serverTlsPolicy_ != null) { - subBuilder = serverTlsPolicy_.toBuilder(); - } - serverTlsPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1.ServerTlsPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverTlsPolicy_); - serverTlsPolicy_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder subBuilder = null; + if (serverTlsPolicy_ != null) { + subBuilder = serverTlsPolicy_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + serverTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.ServerTlsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serverTlsPolicy_); + serverTlsPolicy_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +92,29 @@ private UpdateServerTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -150,9 +124,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -160,8 +132,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -171,9 +141,7 @@ public boolean hasUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -181,8 +149,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -192,8 +158,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -203,16 +168,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SERVER_TLS_POLICY_FIELD_NUMBER = 2; private com.google.cloud.networksecurity.v1.ServerTlsPolicy serverTlsPolicy_; /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ @java.lang.Override @@ -220,43 +180,30 @@ public boolean hasServerTlsPolicy() { return serverTlsPolicy_ != null; } /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy() { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder - getServerTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder() { return getServerTlsPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -285,10 +233,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (serverTlsPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServerTlsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getServerTlsPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -298,21 +248,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest other = (com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasServerTlsPolicy() != other.hasServerTlsPolicy()) return false; if (hasServerTlsPolicy()) { - if (!getServerTlsPolicy().equals(other.getServerTlsPolicy())) return false; + if (!getServerTlsPolicy() + .equals(other.getServerTlsPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,127 +290,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest 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.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by UpdateServerTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.Builder.class); } // Construct using com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.newBuilder() @@ -467,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest getDefaultInstanceForType() { return com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.getDefaultInstance(); } @@ -517,8 +458,7 @@ public com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest build() @java.lang.Override public com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest result = new com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -537,50 +477,46 @@ public com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1.UpdateServerTlsPolicyRequest) { - return mergeFrom((com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -606,9 +542,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,13 +554,8 @@ public Builder mergeFrom( 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -636,17 +565,13 @@ public Builder mergeFrom(
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -656,23 +581,17 @@ public boolean hasUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -682,8 +601,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -699,8 +617,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -710,10 +626,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -724,8 +640,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -735,14 +649,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -754,8 +667,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -765,8 +676,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -780,8 +690,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -791,17 +699,14 @@ public Builder clearUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -811,21 +716,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -835,21 +736,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -857,58 +754,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networksecurity.v1.ServerTlsPolicy serverTlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> - serverTlsPolicyBuilder_; + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> serverTlsPolicyBuilder_; /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ public boolean hasServerTlsPolicy() { return serverTlsPolicyBuilder_ != null || serverTlsPolicy_ != null; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy() { if (serverTlsPolicyBuilder_ == null) { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } else { return serverTlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServerTlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsPolicy value) { if (serverTlsPolicyBuilder_ == null) { @@ -924,15 +802,11 @@ public Builder setServerTlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsP return this; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServerTlsPolicy( com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder builderForValue) { @@ -946,23 +820,17 @@ public Builder setServerTlsPolicy( return this; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeServerTlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsPolicy value) { if (serverTlsPolicyBuilder_ == null) { if (serverTlsPolicy_ != null) { serverTlsPolicy_ = - com.google.cloud.networksecurity.v1.ServerTlsPolicy.newBuilder(serverTlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1.ServerTlsPolicy.newBuilder(serverTlsPolicy_).mergeFrom(value).buildPartial(); } else { serverTlsPolicy_ = value; } @@ -974,15 +842,11 @@ public Builder mergeServerTlsPolicy(com.google.cloud.networksecurity.v1.ServerTl return this; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearServerTlsPolicy() { if (serverTlsPolicyBuilder_ == null) { @@ -996,72 +860,55 @@ public Builder clearServerTlsPolicy() { return this; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder getServerTlsPolicyBuilder() { - + onChanged(); return getServerTlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder - getServerTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder() { if (serverTlsPolicyBuilder_ != null) { return serverTlsPolicyBuilder_.getMessageOrBuilder(); } else { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? + com.google.cloud.networksecurity.v1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder> getServerTlsPolicyFieldBuilder() { if (serverTlsPolicyBuilder_ == null) { - serverTlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder>( - getServerTlsPolicy(), getParentForChildren(), isClean()); + serverTlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.ServerTlsPolicy, com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder>( + getServerTlsPolicy(), + getParentForChildren(), + isClean()); serverTlsPolicy_ = null; } return serverTlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,32 +918,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateServerTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateServerTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServerTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateServerTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1108,8 +953,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java index 78314da0..8ce749c1 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto package com.google.cloud.networksecurity.v1; -public interface UpdateServerTlsPolicyRequestOrBuilder - extends +public interface UpdateServerTlsPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -35,15 +17,11 @@ public interface UpdateServerTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -53,15 +31,11 @@ public interface UpdateServerTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -71,49 +45,34 @@ public interface UpdateServerTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ boolean hasServerTlsPolicy(); /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy(); /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java similarity index 67% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java index 734ab616..5f45208b 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto package com.google.cloud.networksecurity.v1; /** - * - * *
  * Specification of ValidationCA. Defines the mechanism to obtain the
  * Certificate Authority certificate to validate the peer certificate.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1.ValidationCA}
  */
-public final class ValidationCA extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ValidationCA extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ValidationCA)
     ValidationCAOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ValidationCA.newBuilder() to construct.
   private ValidationCA(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ValidationCA() {}
+  private ValidationCA() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ValidationCA();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ValidationCA(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,50 +53,41 @@ private ValidationCA(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder subBuilder = null;
-              if (typeCase_ == 2) {
-                subBuilder = ((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.GrpcEndpoint.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 2;
-              break;
+          case 18: {
+            com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder subBuilder = null;
+            if (typeCase_ == 2) {
+              subBuilder = ((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_).toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder subBuilder =
-                  null;
-              if (typeCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_)
-                        .toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1.CertificateProviderInstance.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 3;
-              break;
+            type_ =
+                input.readMessage(com.google.cloud.networksecurity.v1.GrpcEndpoint.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            typeCase_ = 2;
+            break;
+          }
+          case 26: {
+            com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder subBuilder = null;
+            if (typeCase_ == 3) {
+              subBuilder = ((com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_).toBuilder();
+            }
+            type_ =
+                input.readMessage(com.google.cloud.networksecurity.v1.CertificateProviderInstance.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_);
+              type_ = subBuilder.buildPartial();
             }
+            typeCase_ = 3;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -120,40 +95,35 @@ private ValidationCA(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1_ValidationCA_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_ValidationCA_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1.ValidationCA.class,
-            com.google.cloud.networksecurity.v1.ValidationCA.Builder.class);
+            com.google.cloud.networksecurity.v1.ValidationCA.class, com.google.cloud.networksecurity.v1.ValidationCA.Builder.class);
   }
 
   private int typeCase_ = 0;
   private java.lang.Object type_;
-
   public enum TypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GRPC_ENDPOINT(2),
     CERTIFICATE_PROVIDER_INSTANCE(3),
     TYPE_NOT_SET(0);
     private final int value;
-
     private TypeCase(int value) {
       this.value = value;
     }
@@ -169,37 +139,31 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return GRPC_ENDPOINT;
-        case 3:
-          return CERTIFICATE_PROVIDER_INSTANCE;
-        case 0:
-          return TYPE_NOT_SET;
-        default:
-          return null;
+        case 2: return GRPC_ENDPOINT;
+        case 3: return CERTIFICATE_PROVIDER_INSTANCE;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase getTypeCase() {
-    return TypeCase.forNumber(typeCase_);
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
   }
 
   public static final int GRPC_ENDPOINT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
    * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ @java.lang.Override @@ -207,27 +171,22 @@ public boolean hasGrpcEndpoint() { return typeCase_ == 2; } /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
    * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ @java.lang.Override public com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint() { if (typeCase_ == 2) { - return (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_; + return (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_; } return com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance(); } /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
@@ -238,25 +197,20 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint() {
   @java.lang.Override
   public com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder() {
     if (typeCase_ == 2) {
-      return (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_;
+       return (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_;
     }
     return com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance();
   }
 
   public static final int CERTIFICATE_PROVIDER_INSTANCE_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ @java.lang.Override @@ -264,52 +218,40 @@ public boolean hasCertificateProviderInstance() { return typeCase_ == 3; } /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstance - getCertificateProviderInstance() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstance getCertificateProviderInstance() { if (typeCase_ == 3) { - return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; + return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; } return com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance(); } /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder() { if (typeCase_ == 3) { - return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; + return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; } return com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,13 +263,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 2) { output.writeMessage(2, (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_); } if (typeCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_); + output.writeMessage(3, (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_); } unknownFields.writeTo(output); } @@ -339,14 +281,12 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_); } if (typeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,22 +296,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1.ValidationCA)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1.ValidationCA other = - (com.google.cloud.networksecurity.v1.ValidationCA) obj; + com.google.cloud.networksecurity.v1.ValidationCA other = (com.google.cloud.networksecurity.v1.ValidationCA) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 2: - if (!getGrpcEndpoint().equals(other.getGrpcEndpoint())) return false; + if (!getGrpcEndpoint() + .equals(other.getGrpcEndpoint())) return false; break; case 3: - if (!getCertificateProviderInstance().equals(other.getCertificateProviderInstance())) - return false; + if (!getCertificateProviderInstance() + .equals(other.getCertificateProviderInstance())) return false; break; case 0: default: @@ -404,104 +344,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ValidationCA 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.networksecurity.v1.ValidationCA parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1.ValidationCA parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1.ValidationCA parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ValidationCA parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1.ValidationCA parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networksecurity.v1.ValidationCA prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specification of ValidationCA. Defines the mechanism to obtain the
    * Certificate Authority certificate to validate the peer certificate.
@@ -509,23 +442,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1.ValidationCA}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ValidationCA)
       com.google.cloud.networksecurity.v1.ValidationCAOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_ValidationCA_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_ValidationCA_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1.ValidationCA.class,
-              com.google.cloud.networksecurity.v1.ValidationCA.Builder.class);
+              com.google.cloud.networksecurity.v1.ValidationCA.class, com.google.cloud.networksecurity.v1.ValidationCA.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1.ValidationCA.newBuilder()
@@ -533,15 +464,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -551,9 +483,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1.TlsProto.internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor;
     }
 
     @java.lang.Override
@@ -572,8 +504,7 @@ public com.google.cloud.networksecurity.v1.ValidationCA build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1.ValidationCA buildPartial() {
-      com.google.cloud.networksecurity.v1.ValidationCA result =
-          new com.google.cloud.networksecurity.v1.ValidationCA(this);
+      com.google.cloud.networksecurity.v1.ValidationCA result = new com.google.cloud.networksecurity.v1.ValidationCA(this);
       if (typeCase_ == 2) {
         if (grpcEndpointBuilder_ == null) {
           result.type_ = type_;
@@ -597,39 +528,38 @@ public com.google.cloud.networksecurity.v1.ValidationCA buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1.ValidationCA) {
-        return mergeFrom((com.google.cloud.networksecurity.v1.ValidationCA) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1.ValidationCA)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -637,23 +567,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1.ValidationCA other) {
-      if (other == com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1.ValidationCA.getDefaultInstance()) return this;
       switch (other.getTypeCase()) {
-        case GRPC_ENDPOINT:
-          {
-            mergeGrpcEndpoint(other.getGrpcEndpoint());
-            break;
-          }
-        case CERTIFICATE_PROVIDER_INSTANCE:
-          {
-            mergeCertificateProviderInstance(other.getCertificateProviderInstance());
-            break;
-          }
-        case TYPE_NOT_SET:
-          {
-            break;
-          }
+        case GRPC_ENDPOINT: {
+          mergeGrpcEndpoint(other.getGrpcEndpoint());
+          break;
+        }
+        case CERTIFICATE_PROVIDER_INSTANCE: {
+          mergeCertificateProviderInstance(other.getCertificateProviderInstance());
+          break;
+        }
+        case TYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -683,12 +609,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int typeCase_ = 0;
     private java.lang.Object type_;
-
-    public TypeCase getTypeCase() {
-      return TypeCase.forNumber(typeCase_);
+    public TypeCase
+        getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
     }
 
     public Builder clearType() {
@@ -698,21 +624,16 @@ public Builder clearType() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.GrpcEndpoint,
-            com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder,
-            com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder>
-        grpcEndpointBuilder_;
+        com.google.cloud.networksecurity.v1.GrpcEndpoint, com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder> grpcEndpointBuilder_;
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
      * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ @java.lang.Override @@ -720,15 +641,12 @@ public boolean hasGrpcEndpoint() { return typeCase_ == 2; } /** - * - * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
      * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ @java.lang.Override @@ -746,8 +664,6 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint() { } } /** - * - * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -769,8 +685,6 @@ public Builder setGrpcEndpoint(com.google.cloud.networksecurity.v1.GrpcEndpoint
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -790,8 +704,6 @@ public Builder setGrpcEndpoint(
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -801,13 +713,10 @@ public Builder setGrpcEndpoint(
      */
     public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1.GrpcEndpoint value) {
       if (grpcEndpointBuilder_ == null) {
-        if (typeCase_ == 2
-            && type_ != com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance()) {
-          type_ =
-              com.google.cloud.networksecurity.v1.GrpcEndpoint.newBuilder(
-                      (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (typeCase_ == 2 &&
+            type_ != com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance()) {
+          type_ = com.google.cloud.networksecurity.v1.GrpcEndpoint.newBuilder((com.google.cloud.networksecurity.v1.GrpcEndpoint) type_)
+              .mergeFrom(value).buildPartial();
         } else {
           type_ = value;
         }
@@ -823,8 +732,6 @@ public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1.GrpcEndpoin
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -849,8 +756,6 @@ public Builder clearGrpcEndpoint() {
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -862,8 +767,6 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder getGrpcEndpointB
       return getGrpcEndpointFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -883,8 +786,6 @@ public com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpoint
       }
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -893,48 +794,34 @@ public com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpoint
      * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.GrpcEndpoint,
-            com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder,
-            com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder>
+        com.google.cloud.networksecurity.v1.GrpcEndpoint, com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder> 
         getGrpcEndpointFieldBuilder() {
       if (grpcEndpointBuilder_ == null) {
         if (!(typeCase_ == 2)) {
           type_ = com.google.cloud.networksecurity.v1.GrpcEndpoint.getDefaultInstance();
         }
-        grpcEndpointBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.networksecurity.v1.GrpcEndpoint,
-                com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder,
-                com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder>(
+        grpcEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.networksecurity.v1.GrpcEndpoint, com.google.cloud.networksecurity.v1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder>(
                 (com.google.cloud.networksecurity.v1.GrpcEndpoint) type_,
                 getParentForChildren(),
                 isClean());
         type_ = null;
       }
       typeCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return grpcEndpointBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1.CertificateProviderInstance,
-            com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder,
-            com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder>
-        certificateProviderInstanceBuilder_;
+        com.google.cloud.networksecurity.v1.CertificateProviderInstance, com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder> certificateProviderInstanceBuilder_;
     /**
-     *
-     *
      * 
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ @java.lang.Override @@ -942,23 +829,17 @@ public boolean hasCertificateProviderInstance() { return typeCase_ == 3; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstance - getCertificateProviderInstance() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstance getCertificateProviderInstance() { if (certificateProviderInstanceBuilder_ == null) { if (typeCase_ == 3) { return (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_; @@ -972,20 +853,15 @@ public boolean hasCertificateProviderInstance() { } } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ - public Builder setCertificateProviderInstance( - com.google.cloud.networksecurity.v1.CertificateProviderInstance value) { + public Builder setCertificateProviderInstance(com.google.cloud.networksecurity.v1.CertificateProviderInstance value) { if (certificateProviderInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -999,17 +875,13 @@ public Builder setCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ public Builder setCertificateProviderInstance( com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder builderForValue) { @@ -1023,30 +895,20 @@ public Builder setCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ - public Builder mergeCertificateProviderInstance( - com.google.cloud.networksecurity.v1.CertificateProviderInstance value) { + public Builder mergeCertificateProviderInstance(com.google.cloud.networksecurity.v1.CertificateProviderInstance value) { if (certificateProviderInstanceBuilder_ == null) { - if (typeCase_ == 3 - && type_ - != com.google.cloud.networksecurity.v1.CertificateProviderInstance - .getDefaultInstance()) { - type_ = - com.google.cloud.networksecurity.v1.CertificateProviderInstance.newBuilder( - (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 3 && + type_ != com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance()) { + type_ = com.google.cloud.networksecurity.v1.CertificateProviderInstance.newBuilder((com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1062,17 +924,13 @@ public Builder mergeCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ public Builder clearCertificateProviderInstance() { if (certificateProviderInstanceBuilder_ == null) { @@ -1091,38 +949,28 @@ public Builder clearCertificateProviderInstance() { return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ - public com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder - getCertificateProviderInstanceBuilder() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder getCertificateProviderInstanceBuilder() { return getCertificateProviderInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ @java.lang.Override - public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder() { + public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder() { if ((typeCase_ == 3) && (certificateProviderInstanceBuilder_ != null)) { return certificateProviderInstanceBuilder_.getMessageOrBuilder(); } else { @@ -1133,46 +981,35 @@ public Builder clearCertificateProviderInstance() { } } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.CertificateProviderInstance, - com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, - com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder> + com.google.cloud.networksecurity.v1.CertificateProviderInstance, com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder> getCertificateProviderInstanceFieldBuilder() { if (certificateProviderInstanceBuilder_ == null) { if (!(typeCase_ == 3)) { - type_ = - com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance(); + type_ = com.google.cloud.networksecurity.v1.CertificateProviderInstance.getDefaultInstance(); } - certificateProviderInstanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1.CertificateProviderInstance, - com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, - com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder>( + certificateProviderInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.CertificateProviderInstance, com.google.cloud.networksecurity.v1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder>( (com.google.cloud.networksecurity.v1.CertificateProviderInstance) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; - onChanged(); - ; + onChanged();; return certificateProviderInstanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1182,12 +1019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ValidationCA) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ValidationCA) private static final com.google.cloud.networksecurity.v1.ValidationCA DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ValidationCA(); } @@ -1196,16 +1033,16 @@ public static com.google.cloud.networksecurity.v1.ValidationCA getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidationCA parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidationCA(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidationCA parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidationCA(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1220,4 +1057,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.ValidationCA getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java similarity index 65% rename from proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java index 6d2d2d80..73674f91 100644 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto package com.google.cloud.networksecurity.v1; -public interface ValidationCAOrBuilder - extends +public interface ValidationCAOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ValidationCA) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
    * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ boolean hasGrpcEndpoint(); /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
    * 
* * .google.cloud.networksecurity.v1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint(); /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
@@ -62,52 +38,37 @@ public interface ValidationCAOrBuilder
   com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder();
 
   /**
-   *
-   *
    * 
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ boolean hasCertificateProviderInstance(); /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ com.google.cloud.networksecurity.v1.CertificateProviderInstance getCertificateProviderInstance(); /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1.CertificateProviderInstance certificate_provider_instance = 3; */ - com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder(); + com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder(); public com.google.cloud.networksecurity.v1.ValidationCA.TypeCase getTypeCase(); } diff --git a/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto diff --git a/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto diff --git a/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto diff --git a/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto diff --git a/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto diff --git a/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto b/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto similarity index 100% rename from proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto rename to owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java similarity index 83% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java index 07ac0804..f0b7b323 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -27,11 +28,19 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.networksecurity.v1beta1.stub.NetworkSecurityStub; import com.google.cloud.networksecurity.v1beta1.stub.NetworkSecurityStubSettings; import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -65,13 +74,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -108,6 +117,21 @@ * NetworkSecurityClient.create(networkSecuritySettings); * }
* + *

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 for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * NetworkSecuritySettings networkSecuritySettings =
+ *     NetworkSecuritySettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             NetworkSecuritySettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * NetworkSecurityClient networkSecurityClient =
+ *     NetworkSecurityClient.create(networkSecuritySettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -115,7 +139,8 @@ public class NetworkSecurityClient implements BackgroundResource { private final NetworkSecuritySettings settings; private final NetworkSecurityStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of NetworkSecurityClient with default settings. */ public static final NetworkSecurityClient create() throws IOException { @@ -147,13 +172,17 @@ public static final NetworkSecurityClient create(NetworkSecurityStub stub) { protected NetworkSecurityClient(NetworkSecuritySettings settings) throws IOException { this.settings = settings; this.stub = ((NetworkSecurityStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected NetworkSecurityClient(NetworkSecurityStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final NetworkSecuritySettings getSettings() { @@ -168,10 +197,19 @@ public NetworkSecurityStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + 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 AuthorizationPolicies in a given project and location. @@ -450,8 +488,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * AuthorizationPolicyName parent = - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); * String authorizationPolicyId = "authorizationPolicyId1314252166"; * AuthorizationPolicy response = @@ -471,7 +508,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe */ public final OperationFuture createAuthorizationPolicyAsync( - AuthorizationPolicyName parent, + LocationName parent, AuthorizationPolicy authorizationPolicy, String authorizationPolicyId) { CreateAuthorizationPolicyRequest request = @@ -493,9 +530,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * String parent = - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); * String authorizationPolicyId = "authorizationPolicyId1314252166"; * AuthorizationPolicy response = @@ -537,9 +572,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() - * .setParent( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setAuthorizationPolicyId("authorizationPolicyId1314252166") * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) * .build(); @@ -568,9 +601,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() - * .setParent( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setAuthorizationPolicyId("authorizationPolicyId1314252166") * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) * .build(); @@ -599,9 +630,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() - * .setParent( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setAuthorizationPolicyId("authorizationPolicyId1314252166") * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) * .build(); @@ -1153,8 +1182,7 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest reques * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ServerTlsPolicyName parent = - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); * String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; * ServerTlsPolicy response = @@ -1173,7 +1201,7 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServerTlsPolicyAsync( - ServerTlsPolicyName parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { + LocationName parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1193,8 +1221,7 @@ public final OperationFuture createServerTls * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * String parent = - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); * String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; * ServerTlsPolicy response = @@ -1235,9 +1262,7 @@ public final OperationFuture createServerTls * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() - * .setParent( - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setServerTlsPolicyId("serverTlsPolicyId-1966046011") * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) * .build(); @@ -1265,9 +1290,7 @@ public final OperationFuture createServerTls * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() - * .setParent( - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setServerTlsPolicyId("serverTlsPolicyId-1966046011") * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) * .build(); @@ -1295,9 +1318,7 @@ public final OperationFuture createServerTls * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() - * .setParent( - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setServerTlsPolicyId("serverTlsPolicyId-1966046011") * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) * .build(); @@ -1842,8 +1863,7 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest reques * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ClientTlsPolicyName parent = - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); * String clientTlsPolicyId = "clientTlsPolicyId-188933315"; * ClientTlsPolicy response = @@ -1862,7 +1882,7 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClientTlsPolicyAsync( - ClientTlsPolicyName parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { + LocationName parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1882,8 +1902,7 @@ public final OperationFuture createClientTls * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * String parent = - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); * String clientTlsPolicyId = "clientTlsPolicyId-188933315"; * ClientTlsPolicy response = @@ -1924,9 +1943,7 @@ public final OperationFuture createClientTls * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() - * .setParent( - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setClientTlsPolicyId("clientTlsPolicyId-188933315") * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) * .build(); @@ -1954,9 +1971,7 @@ public final OperationFuture createClientTls * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() - * .setParent( - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setClientTlsPolicyId("clientTlsPolicyId-188933315") * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) * .build(); @@ -1984,9 +1999,7 @@ public final OperationFuture createClientTls * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() - * .setParent( - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setClientTlsPolicyId("clientTlsPolicyId-188933315") * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) * .build(); @@ -2256,6 +2269,332 @@ public final OperationFuture deleteClientTlsPolicyAsyn return stub.deleteClientTlsPolicyCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : networkSecurityClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       networkSecurityClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         networkSecurityClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = networkSecurityClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = networkSecurityClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = networkSecurityClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = networkSecurityClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = networkSecurityClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = networkSecurityClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = networkSecurityClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       networkSecurityClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -2288,16 +2627,12 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListAuthorizationPoliciesPagedResponse extends AbstractPagedListResponse< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, - AuthorizationPolicy, - ListAuthorizationPoliciesPage, - ListAuthorizationPoliciesFixedSizeCollection> { + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy, + ListAuthorizationPoliciesPage, ListAuthorizationPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ApiFuture futureResponse) { @@ -2316,15 +2651,12 @@ private ListAuthorizationPoliciesPagedResponse(ListAuthorizationPoliciesPage pag public static class ListAuthorizationPoliciesPage extends AbstractPage< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, - AuthorizationPolicy, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy, ListAuthorizationPoliciesPage> { private ListAuthorizationPoliciesPage( PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ListAuthorizationPoliciesResponse response) { @@ -2338,8 +2670,7 @@ private static ListAuthorizationPoliciesPage createEmptyPage() { @Override protected ListAuthorizationPoliciesPage createPage( PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ListAuthorizationPoliciesResponse response) { @@ -2349,8 +2680,7 @@ protected ListAuthorizationPoliciesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ApiFuture futureResponse) { @@ -2360,11 +2690,8 @@ public ApiFuture createPageAsync( public static class ListAuthorizationPoliciesFixedSizeCollection extends AbstractFixedSizeCollection< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, - AuthorizationPolicy, - ListAuthorizationPoliciesPage, - ListAuthorizationPoliciesFixedSizeCollection> { + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy, + ListAuthorizationPoliciesPage, ListAuthorizationPoliciesFixedSizeCollection> { private ListAuthorizationPoliciesFixedSizeCollection( List pages, int collectionSize) { @@ -2384,11 +2711,8 @@ protected ListAuthorizationPoliciesFixedSizeCollection createCollection( public static class ListServerTlsPoliciesPagedResponse extends AbstractPagedListResponse< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, - ServerTlsPolicy, - ListServerTlsPoliciesPage, - ListServerTlsPoliciesFixedSizeCollection> { + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, + ListServerTlsPoliciesPage, ListServerTlsPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2409,9 +2733,7 @@ private ListServerTlsPoliciesPagedResponse(ListServerTlsPoliciesPage page) { public static class ListServerTlsPoliciesPage extends AbstractPage< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, - ServerTlsPolicy, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, ListServerTlsPoliciesPage> { private ListServerTlsPoliciesPage( @@ -2444,11 +2766,8 @@ public ApiFuture createPageAsync( public static class ListServerTlsPoliciesFixedSizeCollection extends AbstractFixedSizeCollection< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, - ServerTlsPolicy, - ListServerTlsPoliciesPage, - ListServerTlsPoliciesFixedSizeCollection> { + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, + ListServerTlsPoliciesPage, ListServerTlsPoliciesFixedSizeCollection> { private ListServerTlsPoliciesFixedSizeCollection( List pages, int collectionSize) { @@ -2468,11 +2787,8 @@ protected ListServerTlsPoliciesFixedSizeCollection createCollection( public static class ListClientTlsPoliciesPagedResponse extends AbstractPagedListResponse< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, - ClientTlsPolicy, - ListClientTlsPoliciesPage, - ListClientTlsPoliciesFixedSizeCollection> { + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, + ListClientTlsPoliciesPage, ListClientTlsPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2493,9 +2809,7 @@ private ListClientTlsPoliciesPagedResponse(ListClientTlsPoliciesPage page) { public static class ListClientTlsPoliciesPage extends AbstractPage< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, - ClientTlsPolicy, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, ListClientTlsPoliciesPage> { private ListClientTlsPoliciesPage( @@ -2528,11 +2842,8 @@ public ApiFuture createPageAsync( public static class ListClientTlsPoliciesFixedSizeCollection extends AbstractFixedSizeCollection< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, - ClientTlsPolicy, - ListClientTlsPoliciesPage, - ListClientTlsPoliciesFixedSizeCollection> { + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, + ListClientTlsPoliciesPage, ListClientTlsPoliciesFixedSizeCollection> { private ListClientTlsPoliciesFixedSizeCollection( List pages, int collectionSize) { @@ -2549,4 +2860,74 @@ protected ListClientTlsPoliciesFixedSizeCollection createCollection( return new ListClientTlsPoliciesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java similarity index 82% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java index 795e1e78..a8061a25 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; import com.google.api.core.ApiFunction; @@ -25,14 +26,25 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.networksecurity.v1beta1.stub.NetworkSecurityStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -46,10 +58,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (networksecurity.googleapis.com) and default port (443) are + *
  • The default service address (networksecurity.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -80,8 +92,7 @@ public class NetworkSecuritySettings extends ClientSettings listAuthorizationPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listAuthorizationPoliciesSettings(); @@ -136,8 +147,7 @@ public class NetworkSecuritySettings extends ClientSettings listServerTlsPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listServerTlsPoliciesSettings(); @@ -190,8 +200,7 @@ public class NetworkSecuritySettings extends ClientSettings listClientTlsPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listClientTlsPoliciesSettings(); @@ -242,6 +251,33 @@ public class NetworkSecuritySettings extends ClientSettings + listLocationsSettings() { + return ((NetworkSecurityStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((NetworkSecurityStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((NetworkSecurityStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((NetworkSecurityStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((NetworkSecurityStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + public static final NetworkSecuritySettings create(NetworkSecurityStubSettings stub) throws IOException { return new NetworkSecuritySettings.Builder(stub.toBuilder()).build(); @@ -267,11 +303,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return NetworkSecurityStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return NetworkSecurityStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return NetworkSecurityStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return NetworkSecurityStubSettings.defaultTransportChannelProvider(); } @@ -281,11 +324,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return NetworkSecurityStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -323,6 +372,11 @@ private static Builder createDefault() { return new Builder(NetworkSecurityStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(NetworkSecurityStubSettings.newHttpJsonBuilder()); + } + public NetworkSecurityStubSettings.Builder getStubSettingsBuilder() { return ((NetworkSecurityStubSettings.Builder) getStubSettings()); } @@ -341,8 +395,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listAuthorizationPolicies. */ public PagedCallSettings.Builder< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings() { return getStubSettingsBuilder().listAuthorizationPoliciesSettings(); @@ -394,8 +447,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings.Builder< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings() { return getStubSettingsBuilder().listServerTlsPoliciesSettings(); @@ -447,8 +499,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listClientTlsPolicies. */ public PagedCallSettings.Builder< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings() { return getStubSettingsBuilder().listClientTlsPoliciesSettings(); @@ -498,6 +549,34 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deleteClientTlsPolicyOperationSettings(); } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + @Override public NetworkSecuritySettings build() throws IOException { return new NetworkSecuritySettings(this); diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json similarity index 86% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json index b7b8623f..ab16ffdf 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json @@ -34,6 +34,12 @@ "GetClientTlsPolicy": { "methods": ["getClientTlsPolicy", "getClientTlsPolicy", "getClientTlsPolicy", "getClientTlsPolicyCallable"] }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, "GetServerTlsPolicy": { "methods": ["getServerTlsPolicy", "getServerTlsPolicy", "getServerTlsPolicy", "getServerTlsPolicyCallable"] }, @@ -43,9 +49,18 @@ "ListClientTlsPolicies": { "methods": ["listClientTlsPolicies", "listClientTlsPolicies", "listClientTlsPolicies", "listClientTlsPoliciesPagedCallable", "listClientTlsPoliciesCallable"] }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, "ListServerTlsPolicies": { "methods": ["listServerTlsPolicies", "listServerTlsPolicies", "listServerTlsPolicies", "listServerTlsPoliciesPagedCallable", "listServerTlsPoliciesCallable"] }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, "UpdateAuthorizationPolicy": { "methods": ["updateAuthorizationPolicyAsync", "updateAuthorizationPolicyAsync", "updateAuthorizationPolicyOperationCallable", "updateAuthorizationPolicyCallable"] }, diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java similarity index 93% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java index 5935a4ae..d31f1e36 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Network Security API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= NetworkSecurityClient ======================= * diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityCallableFactory.java similarity index 100% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityCallableFactory.java diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java similarity index 82% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java index cc67eb55..9854d3e3 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; import com.google.api.core.BetaApi; @@ -28,6 +29,10 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; import com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest; @@ -51,12 +56,18 @@ import com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest; import com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest; import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -240,6 +251,52 @@ public class GrpcNetworkSecurityStub extends NetworkSecurityStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable listAuthorizationPoliciesCallable; private final UnaryCallable< @@ -297,6 +354,14 @@ public class GrpcNetworkSecurityStub extends NetworkSecurityStub { deleteClientTlsPolicyCallable; private final OperationCallable deleteClientTlsPolicyOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -516,6 +581,57 @@ protected GrpcNetworkSecurityStub( return params.build(); }) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); this.listAuthorizationPoliciesCallable = callableFactory.createUnaryCallable( @@ -661,6 +777,26 @@ protected GrpcNetworkSecurityStub( settings.deleteClientTlsPolicyOperationSettings(), clientContext, operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -824,6 +960,38 @@ public UnaryCallable deleteClientTlsPol return deleteClientTlsPolicyOperationCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + @Override public final void close() { try { diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityCallableFactory.java new file mode 100644 index 00000000..d1b697c6 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the NetworkSecurity service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonNetworkSecurityCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java new file mode 100644 index 00000000..9790b0dd --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java @@ -0,0 +1,1519 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.stub; + +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; +import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; +import com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest; +import com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse; +import com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest; +import com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse; +import com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest; +import com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse; +import com.google.cloud.networksecurity.v1beta1.OperationMetadata; +import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy; +import com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the NetworkSecurity service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(ServerTlsPolicy.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(AuthorizationPolicy.getDescriptor()) + .add(ClientTlsPolicy.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse> + listAuthorizationPoliciesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/ListAuthorizationPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/authorizationPolicies", + 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()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAuthorizationPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAuthorizationPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/GetAuthorizationPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/authorizationPolicies/*}", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthorizationPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAuthorizationPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/CreateAuthorizationPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/authorizationPolicies", + 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, + "authorizationPolicyId", + request.getAuthorizationPolicyId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("authorizationPolicy", request.getAuthorizationPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAuthorizationPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateAuthorizationPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/UpdateAuthorizationPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{authorizationPolicy.name=projects/*/locations/*/authorizationPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "authorizationPolicy.name", + request.getAuthorizationPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("authorizationPolicy", request.getAuthorizationPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAuthorizationPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteAuthorizationPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/DeleteAuthorizationPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/authorizationPolicies/*}", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAuthorizationPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse> + listServerTlsPoliciesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/ListServerTlsPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/serverTlsPolicies", + 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()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListServerTlsPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getServerTlsPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/GetServerTlsPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/serverTlsPolicies/*}", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ServerTlsPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createServerTlsPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/CreateServerTlsPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/serverTlsPolicies", + 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, "serverTlsPolicyId", request.getServerTlsPolicyId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("serverTlsPolicy", request.getServerTlsPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateServerTlsPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateServerTlsPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/UpdateServerTlsPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{serverTlsPolicy.name=projects/*/locations/*/serverTlsPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "serverTlsPolicy.name", + request.getServerTlsPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("serverTlsPolicy", request.getServerTlsPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateServerTlsPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteServerTlsPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/DeleteServerTlsPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/serverTlsPolicies/*}", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteServerTlsPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse> + listClientTlsPoliciesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/ListClientTlsPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/clientTlsPolicies", + 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()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListClientTlsPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getClientTlsPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/GetClientTlsPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/clientTlsPolicies/*}", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ClientTlsPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createClientTlsPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/CreateClientTlsPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/clientTlsPolicies", + 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, "clientTlsPolicyId", request.getClientTlsPolicyId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("clientTlsPolicy", request.getClientTlsPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateClientTlsPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateClientTlsPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/UpdateClientTlsPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{clientTlsPolicy.name=projects/*/locations/*/clientTlsPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "clientTlsPolicy.name", + request.getClientTlsPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("clientTlsPolicy", request.getClientTlsPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateClientTlsPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteClientTlsPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networksecurity.v1beta1.NetworkSecurity/DeleteClientTlsPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/clientTlsPolicies/*}", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteClientTlsPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*}/locations", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*}", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/authorizationPolicies/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1beta1/{resource=projects/*/locations/*/serverTlsPolicies/*}:setIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/clientTlsPolicies/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/authorizationPolicies/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1beta1/{resource=projects/*/locations/*/serverTlsPolicies/*}:getIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/clientTlsPolicies/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/authorizationPolicies/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1beta1/{resource=projects/*/locations/*/serverTlsPolicies/*}:testIamPermissions", + "/v1beta1/{resource=projects/*/locations/*/clientTlsPolicies/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listAuthorizationPoliciesCallable; + private final UnaryCallable< + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesPagedResponse> + listAuthorizationPoliciesPagedCallable; + private final UnaryCallable + getAuthorizationPolicyCallable; + private final UnaryCallable + createAuthorizationPolicyCallable; + private final OperationCallable< + CreateAuthorizationPolicyRequest, AuthorizationPolicy, OperationMetadata> + createAuthorizationPolicyOperationCallable; + private final UnaryCallable + updateAuthorizationPolicyCallable; + private final OperationCallable< + UpdateAuthorizationPolicyRequest, AuthorizationPolicy, OperationMetadata> + updateAuthorizationPolicyOperationCallable; + private final UnaryCallable + deleteAuthorizationPolicyCallable; + private final OperationCallable + deleteAuthorizationPolicyOperationCallable; + private final UnaryCallable + listServerTlsPoliciesCallable; + private final UnaryCallable + listServerTlsPoliciesPagedCallable; + private final UnaryCallable + getServerTlsPolicyCallable; + private final UnaryCallable + createServerTlsPolicyCallable; + private final OperationCallable + createServerTlsPolicyOperationCallable; + private final UnaryCallable + updateServerTlsPolicyCallable; + private final OperationCallable + updateServerTlsPolicyOperationCallable; + private final UnaryCallable + deleteServerTlsPolicyCallable; + private final OperationCallable + deleteServerTlsPolicyOperationCallable; + private final UnaryCallable + listClientTlsPoliciesCallable; + private final UnaryCallable + listClientTlsPoliciesPagedCallable; + private final UnaryCallable + getClientTlsPolicyCallable; + private final UnaryCallable + createClientTlsPolicyCallable; + private final OperationCallable + createClientTlsPolicyOperationCallable; + private final UnaryCallable + updateClientTlsPolicyCallable; + private final OperationCallable + updateClientTlsPolicyOperationCallable; + private final UnaryCallable + deleteClientTlsPolicyCallable; + private final OperationCallable + deleteClientTlsPolicyOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonNetworkSecurityStub create(NetworkSecurityStubSettings settings) + throws IOException { + return new HttpJsonNetworkSecurityStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonNetworkSecurityStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonNetworkSecurityStub( + NetworkSecurityStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonNetworkSecurityStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonNetworkSecurityStub( + NetworkSecurityStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonNetworkSecurityStub, 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 HttpJsonNetworkSecurityStub( + NetworkSecurityStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonNetworkSecurityCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonNetworkSecurityStub, 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 HttpJsonNetworkSecurityStub( + NetworkSecurityStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings + listAuthorizationPoliciesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAuthorizationPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getAuthorizationPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAuthorizationPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createAuthorizationPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAuthorizationPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateAuthorizationPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAuthorizationPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteAuthorizationPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthorizationPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listServerTlsPoliciesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listServerTlsPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getServerTlsPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getServerTlsPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createServerTlsPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createServerTlsPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateServerTlsPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateServerTlsPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteServerTlsPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteServerTlsPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listClientTlsPoliciesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listClientTlsPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getClientTlsPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getClientTlsPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createClientTlsPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createClientTlsPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateClientTlsPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateClientTlsPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteClientTlsPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteClientTlsPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listAuthorizationPoliciesCallable = + callableFactory.createUnaryCallable( + listAuthorizationPoliciesTransportSettings, + settings.listAuthorizationPoliciesSettings(), + clientContext); + this.listAuthorizationPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAuthorizationPoliciesTransportSettings, + settings.listAuthorizationPoliciesSettings(), + clientContext); + this.getAuthorizationPolicyCallable = + callableFactory.createUnaryCallable( + getAuthorizationPolicyTransportSettings, + settings.getAuthorizationPolicySettings(), + clientContext); + this.createAuthorizationPolicyCallable = + callableFactory.createUnaryCallable( + createAuthorizationPolicyTransportSettings, + settings.createAuthorizationPolicySettings(), + clientContext); + this.createAuthorizationPolicyOperationCallable = + callableFactory.createOperationCallable( + createAuthorizationPolicyTransportSettings, + settings.createAuthorizationPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateAuthorizationPolicyCallable = + callableFactory.createUnaryCallable( + updateAuthorizationPolicyTransportSettings, + settings.updateAuthorizationPolicySettings(), + clientContext); + this.updateAuthorizationPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAuthorizationPolicyTransportSettings, + settings.updateAuthorizationPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAuthorizationPolicyCallable = + callableFactory.createUnaryCallable( + deleteAuthorizationPolicyTransportSettings, + settings.deleteAuthorizationPolicySettings(), + clientContext); + this.deleteAuthorizationPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAuthorizationPolicyTransportSettings, + settings.deleteAuthorizationPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listServerTlsPoliciesCallable = + callableFactory.createUnaryCallable( + listServerTlsPoliciesTransportSettings, + settings.listServerTlsPoliciesSettings(), + clientContext); + this.listServerTlsPoliciesPagedCallable = + callableFactory.createPagedCallable( + listServerTlsPoliciesTransportSettings, + settings.listServerTlsPoliciesSettings(), + clientContext); + this.getServerTlsPolicyCallable = + callableFactory.createUnaryCallable( + getServerTlsPolicyTransportSettings, + settings.getServerTlsPolicySettings(), + clientContext); + this.createServerTlsPolicyCallable = + callableFactory.createUnaryCallable( + createServerTlsPolicyTransportSettings, + settings.createServerTlsPolicySettings(), + clientContext); + this.createServerTlsPolicyOperationCallable = + callableFactory.createOperationCallable( + createServerTlsPolicyTransportSettings, + settings.createServerTlsPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateServerTlsPolicyCallable = + callableFactory.createUnaryCallable( + updateServerTlsPolicyTransportSettings, + settings.updateServerTlsPolicySettings(), + clientContext); + this.updateServerTlsPolicyOperationCallable = + callableFactory.createOperationCallable( + updateServerTlsPolicyTransportSettings, + settings.updateServerTlsPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteServerTlsPolicyCallable = + callableFactory.createUnaryCallable( + deleteServerTlsPolicyTransportSettings, + settings.deleteServerTlsPolicySettings(), + clientContext); + this.deleteServerTlsPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteServerTlsPolicyTransportSettings, + settings.deleteServerTlsPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listClientTlsPoliciesCallable = + callableFactory.createUnaryCallable( + listClientTlsPoliciesTransportSettings, + settings.listClientTlsPoliciesSettings(), + clientContext); + this.listClientTlsPoliciesPagedCallable = + callableFactory.createPagedCallable( + listClientTlsPoliciesTransportSettings, + settings.listClientTlsPoliciesSettings(), + clientContext); + this.getClientTlsPolicyCallable = + callableFactory.createUnaryCallable( + getClientTlsPolicyTransportSettings, + settings.getClientTlsPolicySettings(), + clientContext); + this.createClientTlsPolicyCallable = + callableFactory.createUnaryCallable( + createClientTlsPolicyTransportSettings, + settings.createClientTlsPolicySettings(), + clientContext); + this.createClientTlsPolicyOperationCallable = + callableFactory.createOperationCallable( + createClientTlsPolicyTransportSettings, + settings.createClientTlsPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateClientTlsPolicyCallable = + callableFactory.createUnaryCallable( + updateClientTlsPolicyTransportSettings, + settings.updateClientTlsPolicySettings(), + clientContext); + this.updateClientTlsPolicyOperationCallable = + callableFactory.createOperationCallable( + updateClientTlsPolicyTransportSettings, + settings.updateClientTlsPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteClientTlsPolicyCallable = + callableFactory.createUnaryCallable( + deleteClientTlsPolicyTransportSettings, + settings.deleteClientTlsPolicySettings(), + clientContext); + this.deleteClientTlsPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteClientTlsPolicyTransportSettings, + settings.deleteClientTlsPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAuthorizationPoliciesMethodDescriptor); + methodDescriptors.add(getAuthorizationPolicyMethodDescriptor); + methodDescriptors.add(createAuthorizationPolicyMethodDescriptor); + methodDescriptors.add(updateAuthorizationPolicyMethodDescriptor); + methodDescriptors.add(deleteAuthorizationPolicyMethodDescriptor); + methodDescriptors.add(listServerTlsPoliciesMethodDescriptor); + methodDescriptors.add(getServerTlsPolicyMethodDescriptor); + methodDescriptors.add(createServerTlsPolicyMethodDescriptor); + methodDescriptors.add(updateServerTlsPolicyMethodDescriptor); + methodDescriptors.add(deleteServerTlsPolicyMethodDescriptor); + methodDescriptors.add(listClientTlsPoliciesMethodDescriptor); + methodDescriptors.add(getClientTlsPolicyMethodDescriptor); + methodDescriptors.add(createClientTlsPolicyMethodDescriptor); + methodDescriptors.add(updateClientTlsPolicyMethodDescriptor); + methodDescriptors.add(deleteClientTlsPolicyMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listAuthorizationPoliciesCallable() { + return listAuthorizationPoliciesCallable; + } + + @Override + public UnaryCallable + listAuthorizationPoliciesPagedCallable() { + return listAuthorizationPoliciesPagedCallable; + } + + @Override + public UnaryCallable + getAuthorizationPolicyCallable() { + return getAuthorizationPolicyCallable; + } + + @Override + public UnaryCallable + createAuthorizationPolicyCallable() { + return createAuthorizationPolicyCallable; + } + + @Override + public OperationCallable + createAuthorizationPolicyOperationCallable() { + return createAuthorizationPolicyOperationCallable; + } + + @Override + public UnaryCallable + updateAuthorizationPolicyCallable() { + return updateAuthorizationPolicyCallable; + } + + @Override + public OperationCallable + updateAuthorizationPolicyOperationCallable() { + return updateAuthorizationPolicyOperationCallable; + } + + @Override + public UnaryCallable + deleteAuthorizationPolicyCallable() { + return deleteAuthorizationPolicyCallable; + } + + @Override + public OperationCallable + deleteAuthorizationPolicyOperationCallable() { + return deleteAuthorizationPolicyOperationCallable; + } + + @Override + public UnaryCallable + listServerTlsPoliciesCallable() { + return listServerTlsPoliciesCallable; + } + + @Override + public UnaryCallable + listServerTlsPoliciesPagedCallable() { + return listServerTlsPoliciesPagedCallable; + } + + @Override + public UnaryCallable getServerTlsPolicyCallable() { + return getServerTlsPolicyCallable; + } + + @Override + public UnaryCallable createServerTlsPolicyCallable() { + return createServerTlsPolicyCallable; + } + + @Override + public OperationCallable + createServerTlsPolicyOperationCallable() { + return createServerTlsPolicyOperationCallable; + } + + @Override + public UnaryCallable updateServerTlsPolicyCallable() { + return updateServerTlsPolicyCallable; + } + + @Override + public OperationCallable + updateServerTlsPolicyOperationCallable() { + return updateServerTlsPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteServerTlsPolicyCallable() { + return deleteServerTlsPolicyCallable; + } + + @Override + public OperationCallable + deleteServerTlsPolicyOperationCallable() { + return deleteServerTlsPolicyOperationCallable; + } + + @Override + public UnaryCallable + listClientTlsPoliciesCallable() { + return listClientTlsPoliciesCallable; + } + + @Override + public UnaryCallable + listClientTlsPoliciesPagedCallable() { + return listClientTlsPoliciesPagedCallable; + } + + @Override + public UnaryCallable getClientTlsPolicyCallable() { + return getClientTlsPolicyCallable; + } + + @Override + public UnaryCallable createClientTlsPolicyCallable() { + return createClientTlsPolicyCallable; + } + + @Override + public OperationCallable + createClientTlsPolicyOperationCallable() { + return createClientTlsPolicyOperationCallable; + } + + @Override + public UnaryCallable updateClientTlsPolicyCallable() { + return updateClientTlsPolicyCallable; + } + + @Override + public OperationCallable + updateClientTlsPolicyOperationCallable() { + return updateClientTlsPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteClientTlsPolicyCallable() { + return deleteClientTlsPolicyCallable; + } + + @Override + public OperationCallable + deleteClientTlsPolicyOperationCallable() { + return deleteClientTlsPolicyOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java similarity index 84% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java index ae36993a..bd5b8925 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java @@ -18,12 +18,17 @@ import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; import com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest; @@ -46,6 +51,11 @@ import com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest; import com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest; import com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -62,7 +72,11 @@ public abstract class NetworkSecurityStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable @@ -204,6 +218,32 @@ public UnaryCallable deleteClientTlsPol throw new UnsupportedOperationException("Not implemented: deleteClientTlsPolicyCallable()"); } + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java similarity index 83% rename from google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java index dba484ff..bda22884 100644 --- a/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; import com.google.api.core.ApiFunction; @@ -30,6 +31,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -46,6 +50,10 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; import com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest; @@ -72,6 +80,11 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -86,10 +99,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (networksecurity.googleapis.com) and default port (443) are + *
  • The default service address (networksecurity.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -122,8 +135,7 @@ public class NetworkSecurityStubSettings extends StubSettingsbuilder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final PagedCallSettings< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings; private final UnaryCallSettings @@ -143,8 +155,7 @@ public class NetworkSecurityStubSettings extends StubSettings deleteAuthorizationPolicyOperationSettings; private final PagedCallSettings< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings; private final UnaryCallSettings @@ -164,8 +175,7 @@ public class NetworkSecurityStubSettings extends StubSettings deleteServerTlsPolicyOperationSettings; private final PagedCallSettings< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings; private final UnaryCallSettings @@ -184,13 +194,20 @@ public class NetworkSecurityStubSettings extends StubSettings deleteClientTlsPolicyOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; private static final PagedListDescriptor< ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> LIST_AUTHORIZATION_POLICIES_PAGE_STR_DESC = new PagedListDescriptor< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy>() { @Override public String emptyToken() { @@ -314,14 +331,48 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + private static final PagedListResponseFactory< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> LIST_AUTHORIZATION_POLICIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -331,8 +382,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> pageContext = PageContext.create( @@ -343,13 +393,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> LIST_SERVER_TLS_POLICIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -367,13 +415,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> LIST_CLIENT_TLS_POLICIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -390,10 +436,26 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listAuthorizationPolicies. */ public PagedCallSettings< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings() { return listAuthorizationPoliciesSettings; @@ -445,8 +507,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings() { return listServerTlsPoliciesSettings; @@ -496,8 +557,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listClientTlsPolicies. */ public PagedCallSettings< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings() { return listClientTlsPoliciesSettings; @@ -545,12 +605,44 @@ public ApiFuture getFuturePagedResponse( return deleteClientTlsPolicyOperationSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + public NetworkSecurityStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcNetworkSecurityStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonNetworkSecurityStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -583,18 +675,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(NetworkSecurityStubSettings.class)) @@ -602,11 +701,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(NetworkSecurityStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return NetworkSecurityStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -653,14 +771,18 @@ protected NetworkSecurityStubSettings(Builder settingsBuilder) throws IOExceptio deleteClientTlsPolicySettings = settingsBuilder.deleteClientTlsPolicySettings().build(); deleteClientTlsPolicyOperationSettings = settingsBuilder.deleteClientTlsPolicyOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); } /** Builder for NetworkSecurityStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings; private final UnaryCallSettings.Builder @@ -681,8 +803,7 @@ public static class Builder extends StubSettings.Builder deleteAuthorizationPolicyOperationSettings; private final PagedCallSettings.Builder< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings; private final UnaryCallSettings.Builder @@ -703,8 +824,7 @@ public static class Builder extends StubSettings.Builder deleteServerTlsPolicyOperationSettings; private final PagedCallSettings.Builder< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings; private final UnaryCallSettings.Builder @@ -724,6 +844,14 @@ public static class Builder extends StubSettings.Builder deleteClientTlsPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -785,6 +913,11 @@ protected Builder(ClientContext clientContext) { updateClientTlsPolicyOperationSettings = OperationCallSettings.newBuilder(); deleteClientTlsPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteClientTlsPolicyOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -802,7 +935,12 @@ protected Builder(ClientContext clientContext) { getClientTlsPolicySettings, createClientTlsPolicySettings, updateClientTlsPolicySettings, - deleteClientTlsPolicySettings); + deleteClientTlsPolicySettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); initDefaults(this); } @@ -842,6 +980,11 @@ protected Builder(NetworkSecurityStubSettings settings) { deleteClientTlsPolicySettings = settings.deleteClientTlsPolicySettings.toBuilder(); deleteClientTlsPolicyOperationSettings = settings.deleteClientTlsPolicyOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -859,7 +1002,12 @@ protected Builder(NetworkSecurityStubSettings settings) { getClientTlsPolicySettings, createClientTlsPolicySettings, updateClientTlsPolicySettings, - deleteClientTlsPolicySettings); + deleteClientTlsPolicySettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); } private static Builder createDefault() { @@ -875,6 +1023,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .listAuthorizationPoliciesSettings() @@ -951,6 +1112,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .createAuthorizationPolicyOperationSettings() .setInitialCallSettings( @@ -1190,8 +1376,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listAuthorizationPolicies. */ public PagedCallSettings.Builder< - ListAuthorizationPoliciesRequest, - ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings() { return listAuthorizationPoliciesSettings; @@ -1249,8 +1434,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings.Builder< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings() { return listServerTlsPoliciesSettings; @@ -1308,8 +1492,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listClientTlsPolicies. */ public PagedCallSettings.Builder< - ListClientTlsPoliciesRequest, - ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings() { return listClientTlsPoliciesSettings; @@ -1365,6 +1548,34 @@ public Builder applyToAllUnaryMethods( return deleteClientTlsPolicyOperationSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + @Override public NetworkSecurityStubSettings build() throws IOException { return new NetworkSecurityStubSettings(this); diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicy.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicy.java new file mode 100644 index 00000000..f1a9c766 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicyImpl.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicyImpl.java new file mode 100644 index 00000000..1546aef0 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicyImpl.java @@ -0,0 +1,127 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicyImpl extends IAMPolicyImplBase { + private List requests; + private Queue responses; + + public MockIAMPolicyImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) 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 TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocations.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocations.java new file mode 100644 index 00000000..e9ff238b --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocationsImpl.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocationsImpl.java new file mode 100644 index 00000000..ba75e18d --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurity.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurity.java similarity index 100% rename from google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurity.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurity.java diff --git a/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurityImpl.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurityImpl.java similarity index 100% rename from google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurityImpl.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurityImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientHttpJsonTest.java new file mode 100644 index 00000000..6ceb4a72 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientHttpJsonTest.java @@ -0,0 +1,1920 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1; + +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1beta1.stub.HttpJsonNetworkSecurityStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class NetworkSecurityClientHttpJsonTest { + private static MockHttpService mockService; + private static NetworkSecurityClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonNetworkSecurityStub.getMethodDescriptors(), + NetworkSecuritySettings.getDefaultEndpoint()); + NetworkSecuritySettings settings = + NetworkSecuritySettings.newHttpJsonBuilder() + .setTransportChannelProvider( + NetworkSecuritySettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = NetworkSecurityClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listAuthorizationPoliciesTest() throws Exception { + AuthorizationPolicy responsesElement = AuthorizationPolicy.newBuilder().build(); + ListAuthorizationPoliciesResponse expectedResponse = + ListAuthorizationPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizationPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAuthorizationPoliciesPagedResponse pagedListResponse = + client.listAuthorizationPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationPoliciesList().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 listAuthorizationPoliciesExceptionTest() 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.listAuthorizationPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationPoliciesTest2() throws Exception { + AuthorizationPolicy responsesElement = AuthorizationPolicy.newBuilder().build(); + ListAuthorizationPoliciesResponse expectedResponse = + ListAuthorizationPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizationPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAuthorizationPoliciesPagedResponse pagedListResponse = + client.listAuthorizationPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationPoliciesList().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 listAuthorizationPoliciesExceptionTest2() 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.listAuthorizationPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationPolicyTest() throws Exception { + AuthorizationPolicy expectedResponse = + AuthorizationPolicy.newBuilder() + .setName( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthorizationPolicyName name = + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); + + AuthorizationPolicy actualResponse = client.getAuthorizationPolicy(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 getAuthorizationPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthorizationPolicyName name = + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); + client.getAuthorizationPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationPolicyTest2() throws Exception { + AuthorizationPolicy expectedResponse = + AuthorizationPolicy.newBuilder() + .setName( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7969/locations/location-7969/authorizationPolicies/authorizationPolicie-7969"; + + AuthorizationPolicy actualResponse = client.getAuthorizationPolicy(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 getAuthorizationPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7969/locations/location-7969/authorizationPolicies/authorizationPolicie-7969"; + client.getAuthorizationPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthorizationPolicyTest() throws Exception { + AuthorizationPolicy expectedResponse = + AuthorizationPolicy.newBuilder() + .setName( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllRules(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAuthorizationPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); + String authorizationPolicyId = "authorizationPolicyId1314252166"; + + AuthorizationPolicy actualResponse = + client + .createAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId) + .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 createAuthorizationPolicyExceptionTest() 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]"); + AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); + String authorizationPolicyId = "authorizationPolicyId1314252166"; + client + .createAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAuthorizationPolicyTest2() throws Exception { + AuthorizationPolicy expectedResponse = + AuthorizationPolicy.newBuilder() + .setName( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllRules(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAuthorizationPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); + String authorizationPolicyId = "authorizationPolicyId1314252166"; + + AuthorizationPolicy actualResponse = + client + .createAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId) + .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 createAuthorizationPolicyExceptionTest2() 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"; + AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); + String authorizationPolicyId = "authorizationPolicyId1314252166"; + client + .createAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateAuthorizationPolicyTest() throws Exception { + AuthorizationPolicy expectedResponse = + AuthorizationPolicy.newBuilder() + .setName( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllRules(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAuthorizationPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AuthorizationPolicy authorizationPolicy = + AuthorizationPolicy.newBuilder() + .setName( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllRules(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AuthorizationPolicy actualResponse = + client.updateAuthorizationPolicyAsync(authorizationPolicy, 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 updateAuthorizationPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthorizationPolicy authorizationPolicy = + AuthorizationPolicy.newBuilder() + .setName( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllRules(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAuthorizationPolicyAsync(authorizationPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAuthorizationPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAuthorizationPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AuthorizationPolicyName name = + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); + + client.deleteAuthorizationPolicyAsync(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 deleteAuthorizationPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthorizationPolicyName name = + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); + client.deleteAuthorizationPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAuthorizationPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAuthorizationPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7969/locations/location-7969/authorizationPolicies/authorizationPolicie-7969"; + + client.deleteAuthorizationPolicyAsync(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 deleteAuthorizationPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7969/locations/location-7969/authorizationPolicies/authorizationPolicie-7969"; + client.deleteAuthorizationPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listServerTlsPoliciesTest() throws Exception { + ServerTlsPolicy responsesElement = ServerTlsPolicy.newBuilder().build(); + ListServerTlsPoliciesResponse expectedResponse = + ListServerTlsPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllServerTlsPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListServerTlsPoliciesPagedResponse pagedListResponse = client.listServerTlsPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServerTlsPoliciesList().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 listServerTlsPoliciesExceptionTest() 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.listServerTlsPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServerTlsPoliciesTest2() throws Exception { + ServerTlsPolicy responsesElement = ServerTlsPolicy.newBuilder().build(); + ListServerTlsPoliciesResponse expectedResponse = + ListServerTlsPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllServerTlsPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListServerTlsPoliciesPagedResponse pagedListResponse = client.listServerTlsPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServerTlsPoliciesList().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 listServerTlsPoliciesExceptionTest2() 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.listServerTlsPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServerTlsPolicyTest() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ServerTlsPolicyName name = + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + + ServerTlsPolicy actualResponse = client.getServerTlsPolicy(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 getServerTlsPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServerTlsPolicyName name = + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + client.getServerTlsPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServerTlsPolicyTest2() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7730/locations/location-7730/serverTlsPolicies/serverTlsPolicie-7730"; + + ServerTlsPolicy actualResponse = client.getServerTlsPolicy(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 getServerTlsPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7730/locations/location-7730/serverTlsPolicies/serverTlsPolicie-7730"; + client.getServerTlsPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServerTlsPolicyTest() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + + ServerTlsPolicy actualResponse = + client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).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 createServerTlsPolicyExceptionTest() 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]"); + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createServerTlsPolicyTest2() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + + ServerTlsPolicy actualResponse = + client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).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 createServerTlsPolicyExceptionTest2() 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"; + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateServerTlsPolicyTest() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ServerTlsPolicy serverTlsPolicy = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ServerTlsPolicy actualResponse = + client.updateServerTlsPolicyAsync(serverTlsPolicy, 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 updateServerTlsPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServerTlsPolicy serverTlsPolicy = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateServerTlsPolicyAsync(serverTlsPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteServerTlsPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ServerTlsPolicyName name = + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + + client.deleteServerTlsPolicyAsync(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 deleteServerTlsPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServerTlsPolicyName name = + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + client.deleteServerTlsPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteServerTlsPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7730/locations/location-7730/serverTlsPolicies/serverTlsPolicie-7730"; + + client.deleteServerTlsPolicyAsync(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 deleteServerTlsPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7730/locations/location-7730/serverTlsPolicies/serverTlsPolicie-7730"; + client.deleteServerTlsPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listClientTlsPoliciesTest() throws Exception { + ClientTlsPolicy responsesElement = ClientTlsPolicy.newBuilder().build(); + ListClientTlsPoliciesResponse expectedResponse = + ListClientTlsPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllClientTlsPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListClientTlsPoliciesPagedResponse pagedListResponse = client.listClientTlsPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClientTlsPoliciesList().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 listClientTlsPoliciesExceptionTest() 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.listClientTlsPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listClientTlsPoliciesTest2() throws Exception { + ClientTlsPolicy responsesElement = ClientTlsPolicy.newBuilder().build(); + ListClientTlsPoliciesResponse expectedResponse = + ListClientTlsPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllClientTlsPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListClientTlsPoliciesPagedResponse pagedListResponse = client.listClientTlsPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClientTlsPoliciesList().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 listClientTlsPoliciesExceptionTest2() 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.listClientTlsPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClientTlsPolicyTest() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ClientTlsPolicyName name = + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + + ClientTlsPolicy actualResponse = client.getClientTlsPolicy(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 getClientTlsPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClientTlsPolicyName name = + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + client.getClientTlsPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClientTlsPolicyTest2() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6614/locations/location-6614/clientTlsPolicies/clientTlsPolicie-6614"; + + ClientTlsPolicy actualResponse = client.getClientTlsPolicy(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 getClientTlsPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6614/locations/location-6614/clientTlsPolicies/clientTlsPolicie-6614"; + client.getClientTlsPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClientTlsPolicyTest() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + + ClientTlsPolicy actualResponse = + client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).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 createClientTlsPolicyExceptionTest() 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]"); + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createClientTlsPolicyTest2() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + + ClientTlsPolicy actualResponse = + client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).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 createClientTlsPolicyExceptionTest2() 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"; + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateClientTlsPolicyTest() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClientTlsPolicy clientTlsPolicy = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ClientTlsPolicy actualResponse = + client.updateClientTlsPolicyAsync(clientTlsPolicy, 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 updateClientTlsPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClientTlsPolicy clientTlsPolicy = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateClientTlsPolicyAsync(clientTlsPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteClientTlsPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClientTlsPolicyName name = + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + + client.deleteClientTlsPolicyAsync(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 deleteClientTlsPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClientTlsPolicyName name = + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + client.deleteClientTlsPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteClientTlsPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6614/locations/location-6614/clientTlsPolicies/clientTlsPolicie-6614"; + + client.deleteClientTlsPolicyAsync(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 deleteClientTlsPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6614/locations/location-6614/clientTlsPolicies/clientTlsPolicie-6614"; + client.deleteClientTlsPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + 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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + 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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + 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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + 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 testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java similarity index 83% rename from google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java index bf7883c3..3863fc46 100644 --- a/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java +++ b/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -28,10 +29,23 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -53,6 +67,8 @@ @Generated("by gapic-generator-java") public class NetworkSecurityClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; private static MockNetworkSecurity mockNetworkSecurity; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -61,9 +77,12 @@ public class NetworkSecurityClientTest { @BeforeClass public static void startStaticServer() { mockNetworkSecurity = new MockNetworkSecurity(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockNetworkSecurity)); + UUID.randomUUID().toString(), + Arrays.asList(mockNetworkSecurity, mockLocations, mockIAMPolicy)); mockServiceHelper.start(); } @@ -296,8 +315,7 @@ public void createAuthorizationPolicyTest() throws Exception { .build(); mockNetworkSecurity.addResponse(resultOperation); - AuthorizationPolicyName parent = - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); String authorizationPolicyId = "authorizationPolicyId1314252166"; @@ -327,8 +345,7 @@ public void createAuthorizationPolicyExceptionTest() throws Exception { mockNetworkSecurity.addException(exception); try { - AuthorizationPolicyName parent = - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); String authorizationPolicyId = "authorizationPolicyId1314252166"; client @@ -759,8 +776,7 @@ public void createServerTlsPolicyTest() throws Exception { .build(); mockNetworkSecurity.addResponse(resultOperation); - ServerTlsPolicyName parent = - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; @@ -788,8 +804,7 @@ public void createServerTlsPolicyExceptionTest() throws Exception { mockNetworkSecurity.addException(exception); try { - ServerTlsPolicyName parent = - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); @@ -1216,8 +1231,7 @@ public void createClientTlsPolicyTest() throws Exception { .build(); mockNetworkSecurity.addResponse(resultOperation); - ClientTlsPolicyName parent = - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); String clientTlsPolicyId = "clientTlsPolicyId-188933315"; @@ -1245,8 +1259,7 @@ public void createClientTlsPolicyExceptionTest() throws Exception { mockNetworkSecurity.addException(exception); try { - ClientTlsPolicyName parent = - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); String clientTlsPolicyId = "clientTlsPolicyId-188933315"; client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); @@ -1466,4 +1479,265 @@ public void deleteClientTlsPolicyExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java new file mode 100644 index 00000000..d9d67eaa --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java @@ -0,0 +1,1517 @@ +package com.google.cloud.networksecurity.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Network Security API provides resources to configure authentication and
+ * authorization policies. Refer to per API resource documentation for more
+ * information.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networksecurity/v1beta1/network_security.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NetworkSecurityGrpc { + + private NetworkSecurityGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networksecurity.v1beta1.NetworkSecurity"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListAuthorizationPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAuthorizationPolicies", + requestType = com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.class, + responseType = com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAuthorizationPoliciesMethod() { + io.grpc.MethodDescriptor getListAuthorizationPoliciesMethod; + if ((getListAuthorizationPoliciesMethod = NetworkSecurityGrpc.getListAuthorizationPoliciesMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getListAuthorizationPoliciesMethod = NetworkSecurityGrpc.getListAuthorizationPoliciesMethod) == null) { + NetworkSecurityGrpc.getListAuthorizationPoliciesMethod = getListAuthorizationPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAuthorizationPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("ListAuthorizationPolicies")) + .build(); + } + } + } + return getListAuthorizationPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAuthorizationPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAuthorizationPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.class, + responseType = com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAuthorizationPolicyMethod() { + io.grpc.MethodDescriptor getGetAuthorizationPolicyMethod; + if ((getGetAuthorizationPolicyMethod = NetworkSecurityGrpc.getGetAuthorizationPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getGetAuthorizationPolicyMethod = NetworkSecurityGrpc.getGetAuthorizationPolicyMethod) == null) { + NetworkSecurityGrpc.getGetAuthorizationPolicyMethod = getGetAuthorizationPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthorizationPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("GetAuthorizationPolicy")) + .build(); + } + } + } + return getGetAuthorizationPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateAuthorizationPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAuthorizationPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateAuthorizationPolicyMethod() { + io.grpc.MethodDescriptor getCreateAuthorizationPolicyMethod; + if ((getCreateAuthorizationPolicyMethod = NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getCreateAuthorizationPolicyMethod = NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod) == null) { + NetworkSecurityGrpc.getCreateAuthorizationPolicyMethod = getCreateAuthorizationPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAuthorizationPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("CreateAuthorizationPolicy")) + .build(); + } + } + } + return getCreateAuthorizationPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateAuthorizationPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAuthorizationPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateAuthorizationPolicyMethod() { + io.grpc.MethodDescriptor getUpdateAuthorizationPolicyMethod; + if ((getUpdateAuthorizationPolicyMethod = NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getUpdateAuthorizationPolicyMethod = NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod) == null) { + NetworkSecurityGrpc.getUpdateAuthorizationPolicyMethod = getUpdateAuthorizationPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAuthorizationPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("UpdateAuthorizationPolicy")) + .build(); + } + } + } + return getUpdateAuthorizationPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteAuthorizationPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAuthorizationPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteAuthorizationPolicyMethod() { + io.grpc.MethodDescriptor getDeleteAuthorizationPolicyMethod; + if ((getDeleteAuthorizationPolicyMethod = NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getDeleteAuthorizationPolicyMethod = NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod) == null) { + NetworkSecurityGrpc.getDeleteAuthorizationPolicyMethod = getDeleteAuthorizationPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAuthorizationPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("DeleteAuthorizationPolicy")) + .build(); + } + } + } + return getDeleteAuthorizationPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListServerTlsPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServerTlsPolicies", + requestType = com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.class, + responseType = com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListServerTlsPoliciesMethod() { + io.grpc.MethodDescriptor getListServerTlsPoliciesMethod; + if ((getListServerTlsPoliciesMethod = NetworkSecurityGrpc.getListServerTlsPoliciesMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getListServerTlsPoliciesMethod = NetworkSecurityGrpc.getListServerTlsPoliciesMethod) == null) { + NetworkSecurityGrpc.getListServerTlsPoliciesMethod = getListServerTlsPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServerTlsPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("ListServerTlsPolicies")) + .build(); + } + } + } + return getListServerTlsPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetServerTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServerTlsPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.class, + responseType = com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetServerTlsPolicyMethod() { + io.grpc.MethodDescriptor getGetServerTlsPolicyMethod; + if ((getGetServerTlsPolicyMethod = NetworkSecurityGrpc.getGetServerTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getGetServerTlsPolicyMethod = NetworkSecurityGrpc.getGetServerTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getGetServerTlsPolicyMethod = getGetServerTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("GetServerTlsPolicy")) + .build(); + } + } + } + return getGetServerTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateServerTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateServerTlsPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateServerTlsPolicyMethod() { + io.grpc.MethodDescriptor getCreateServerTlsPolicyMethod; + if ((getCreateServerTlsPolicyMethod = NetworkSecurityGrpc.getCreateServerTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getCreateServerTlsPolicyMethod = NetworkSecurityGrpc.getCreateServerTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getCreateServerTlsPolicyMethod = getCreateServerTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateServerTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("CreateServerTlsPolicy")) + .build(); + } + } + } + return getCreateServerTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateServerTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateServerTlsPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateServerTlsPolicyMethod() { + io.grpc.MethodDescriptor getUpdateServerTlsPolicyMethod; + if ((getUpdateServerTlsPolicyMethod = NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getUpdateServerTlsPolicyMethod = NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getUpdateServerTlsPolicyMethod = getUpdateServerTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateServerTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("UpdateServerTlsPolicy")) + .build(); + } + } + } + return getUpdateServerTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteServerTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteServerTlsPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteServerTlsPolicyMethod() { + io.grpc.MethodDescriptor getDeleteServerTlsPolicyMethod; + if ((getDeleteServerTlsPolicyMethod = NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getDeleteServerTlsPolicyMethod = NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getDeleteServerTlsPolicyMethod = getDeleteServerTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteServerTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("DeleteServerTlsPolicy")) + .build(); + } + } + } + return getDeleteServerTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListClientTlsPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListClientTlsPolicies", + requestType = com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.class, + responseType = com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListClientTlsPoliciesMethod() { + io.grpc.MethodDescriptor getListClientTlsPoliciesMethod; + if ((getListClientTlsPoliciesMethod = NetworkSecurityGrpc.getListClientTlsPoliciesMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getListClientTlsPoliciesMethod = NetworkSecurityGrpc.getListClientTlsPoliciesMethod) == null) { + NetworkSecurityGrpc.getListClientTlsPoliciesMethod = getListClientTlsPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClientTlsPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("ListClientTlsPolicies")) + .build(); + } + } + } + return getListClientTlsPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetClientTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetClientTlsPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.class, + responseType = com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetClientTlsPolicyMethod() { + io.grpc.MethodDescriptor getGetClientTlsPolicyMethod; + if ((getGetClientTlsPolicyMethod = NetworkSecurityGrpc.getGetClientTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getGetClientTlsPolicyMethod = NetworkSecurityGrpc.getGetClientTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getGetClientTlsPolicyMethod = getGetClientTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClientTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("GetClientTlsPolicy")) + .build(); + } + } + } + return getGetClientTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateClientTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateClientTlsPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateClientTlsPolicyMethod() { + io.grpc.MethodDescriptor getCreateClientTlsPolicyMethod; + if ((getCreateClientTlsPolicyMethod = NetworkSecurityGrpc.getCreateClientTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getCreateClientTlsPolicyMethod = NetworkSecurityGrpc.getCreateClientTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getCreateClientTlsPolicyMethod = getCreateClientTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateClientTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("CreateClientTlsPolicy")) + .build(); + } + } + } + return getCreateClientTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateClientTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateClientTlsPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateClientTlsPolicyMethod() { + io.grpc.MethodDescriptor getUpdateClientTlsPolicyMethod; + if ((getUpdateClientTlsPolicyMethod = NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getUpdateClientTlsPolicyMethod = NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getUpdateClientTlsPolicyMethod = getUpdateClientTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateClientTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("UpdateClientTlsPolicy")) + .build(); + } + } + } + return getUpdateClientTlsPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteClientTlsPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteClientTlsPolicy", + requestType = com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteClientTlsPolicyMethod() { + io.grpc.MethodDescriptor getDeleteClientTlsPolicyMethod; + if ((getDeleteClientTlsPolicyMethod = NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod) == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getDeleteClientTlsPolicyMethod = NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod) == null) { + NetworkSecurityGrpc.getDeleteClientTlsPolicyMethod = getDeleteClientTlsPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteClientTlsPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetworkSecurityMethodDescriptorSupplier("DeleteClientTlsPolicy")) + .build(); + } + } + } + return getDeleteClientTlsPolicyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static NetworkSecurityStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NetworkSecurityStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityStub(channel, callOptions); + } + }; + return NetworkSecurityStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static NetworkSecurityBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NetworkSecurityBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityBlockingStub(channel, callOptions); + } + }; + return NetworkSecurityBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static NetworkSecurityFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NetworkSecurityFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityFutureStub(channel, callOptions); + } + }; + return NetworkSecurityFutureStub.newStub(factory, channel); + } + + /** + *
+   * Network Security API provides resources to configure authentication and
+   * authorization policies. Refer to per API resource documentation for more
+   * information.
+   * 
+ */ + public static abstract class NetworkSecurityImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists AuthorizationPolicies in a given project and location.
+     * 
+ */ + public void listAuthorizationPolicies(com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAuthorizationPoliciesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single AuthorizationPolicy.
+     * 
+ */ + public void getAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAuthorizationPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates a new AuthorizationPolicy in a given project and location.
+     * 
+ */ + public void createAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAuthorizationPolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single AuthorizationPolicy.
+     * 
+ */ + public void updateAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAuthorizationPolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes a single AuthorizationPolicy.
+     * 
+ */ + public void deleteAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAuthorizationPolicyMethod(), responseObserver); + } + + /** + *
+     * Lists ServerTlsPolicies in a given project and location.
+     * 
+ */ + public void listServerTlsPolicies(com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServerTlsPoliciesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single ServerTlsPolicy.
+     * 
+ */ + public void getServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServerTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates a new ServerTlsPolicy in a given project and location.
+     * 
+ */ + public void createServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServerTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single ServerTlsPolicy.
+     * 
+ */ + public void updateServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServerTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes a single ServerTlsPolicy.
+     * 
+ */ + public void deleteServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServerTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Lists ClientTlsPolicies in a given project and location.
+     * 
+ */ + public void listClientTlsPolicies(com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClientTlsPoliciesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single ClientTlsPolicy.
+     * 
+ */ + public void getClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClientTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates a new ClientTlsPolicy in a given project and location.
+     * 
+ */ + public void createClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClientTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single ClientTlsPolicy.
+     * 
+ */ + public void updateClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateClientTlsPolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes a single ClientTlsPolicy.
+     * 
+ */ + public void deleteClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteClientTlsPolicyMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAuthorizationPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest, + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse>( + this, METHODID_LIST_AUTHORIZATION_POLICIES))) + .addMethod( + getGetAuthorizationPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest, + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy>( + this, METHODID_GET_AUTHORIZATION_POLICY))) + .addMethod( + getCreateAuthorizationPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_AUTHORIZATION_POLICY))) + .addMethod( + getUpdateAuthorizationPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_AUTHORIZATION_POLICY))) + .addMethod( + getDeleteAuthorizationPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_AUTHORIZATION_POLICY))) + .addMethod( + getListServerTlsPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest, + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse>( + this, METHODID_LIST_SERVER_TLS_POLICIES))) + .addMethod( + getGetServerTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest, + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy>( + this, METHODID_GET_SERVER_TLS_POLICY))) + .addMethod( + getCreateServerTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SERVER_TLS_POLICY))) + .addMethod( + getUpdateServerTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SERVER_TLS_POLICY))) + .addMethod( + getDeleteServerTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SERVER_TLS_POLICY))) + .addMethod( + getListClientTlsPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest, + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse>( + this, METHODID_LIST_CLIENT_TLS_POLICIES))) + .addMethod( + getGetClientTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest, + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy>( + this, METHODID_GET_CLIENT_TLS_POLICY))) + .addMethod( + getCreateClientTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CLIENT_TLS_POLICY))) + .addMethod( + getUpdateClientTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CLIENT_TLS_POLICY))) + .addMethod( + getDeleteClientTlsPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CLIENT_TLS_POLICY))) + .build(); + } + } + + /** + *
+   * Network Security API provides resources to configure authentication and
+   * authorization policies. Refer to per API resource documentation for more
+   * information.
+   * 
+ */ + public static final class NetworkSecurityStub extends io.grpc.stub.AbstractAsyncStub { + private NetworkSecurityStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityStub(channel, callOptions); + } + + /** + *
+     * Lists AuthorizationPolicies in a given project and location.
+     * 
+ */ + public void listAuthorizationPolicies(com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single AuthorizationPolicy.
+     * 
+ */ + public void getAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new AuthorizationPolicy in a given project and location.
+     * 
+ */ + public void createAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single AuthorizationPolicy.
+     * 
+ */ + public void updateAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single AuthorizationPolicy.
+     * 
+ */ + public void deleteAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ServerTlsPolicies in a given project and location.
+     * 
+ */ + public void listServerTlsPolicies(com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single ServerTlsPolicy.
+     * 
+ */ + public void getServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new ServerTlsPolicy in a given project and location.
+     * 
+ */ + public void createServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single ServerTlsPolicy.
+     * 
+ */ + public void updateServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single ServerTlsPolicy.
+     * 
+ */ + public void deleteServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ClientTlsPolicies in a given project and location.
+     * 
+ */ + public void listClientTlsPolicies(com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single ClientTlsPolicy.
+     * 
+ */ + public void getClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new ClientTlsPolicy in a given project and location.
+     * 
+ */ + public void createClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single ClientTlsPolicy.
+     * 
+ */ + public void updateClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single ClientTlsPolicy.
+     * 
+ */ + public void deleteClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Network Security API provides resources to configure authentication and
+   * authorization policies. Refer to per API resource documentation for more
+   * information.
+   * 
+ */ + public static final class NetworkSecurityBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private NetworkSecurityBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists AuthorizationPolicies in a given project and location.
+     * 
+ */ + public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse listAuthorizationPolicies(com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single AuthorizationPolicy.
+     * 
+ */ + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new AuthorizationPolicy in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single AuthorizationPolicy.
+     * 
+ */ + public com.google.longrunning.Operation updateAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single AuthorizationPolicy.
+     * 
+ */ + public com.google.longrunning.Operation deleteAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ServerTlsPolicies in a given project and location.
+     * 
+ */ + public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse listServerTlsPolicies(com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single ServerTlsPolicy.
+     * 
+ */ + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new ServerTlsPolicy in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single ServerTlsPolicy.
+     * 
+ */ + public com.google.longrunning.Operation updateServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single ServerTlsPolicy.
+     * 
+ */ + public com.google.longrunning.Operation deleteServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ClientTlsPolicies in a given project and location.
+     * 
+ */ + public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse listClientTlsPolicies(com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single ClientTlsPolicy.
+     * 
+ */ + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new ClientTlsPolicy in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single ClientTlsPolicy.
+     * 
+ */ + public com.google.longrunning.Operation updateClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single ClientTlsPolicy.
+     * 
+ */ + public com.google.longrunning.Operation deleteClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Network Security API provides resources to configure authentication and
+   * authorization policies. Refer to per API resource documentation for more
+   * information.
+   * 
+ */ + public static final class NetworkSecurityFutureStub extends io.grpc.stub.AbstractFutureStub { + private NetworkSecurityFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityFutureStub(channel, callOptions); + } + + /** + *
+     * Lists AuthorizationPolicies in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAuthorizationPolicies( + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single AuthorizationPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAuthorizationPolicy( + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new AuthorizationPolicy in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createAuthorizationPolicy( + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single AuthorizationPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateAuthorizationPolicy( + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single AuthorizationPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteAuthorizationPolicy( + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ServerTlsPolicies in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listServerTlsPolicies( + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single ServerTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getServerTlsPolicy( + com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new ServerTlsPolicy in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createServerTlsPolicy( + com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single ServerTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateServerTlsPolicy( + com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single ServerTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteServerTlsPolicy( + com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ClientTlsPolicies in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listClientTlsPolicies( + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single ClientTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getClientTlsPolicy( + com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new ClientTlsPolicy in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createClientTlsPolicy( + com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single ClientTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateClientTlsPolicy( + com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single ClientTlsPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteClientTlsPolicy( + com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_AUTHORIZATION_POLICIES = 0; + private static final int METHODID_GET_AUTHORIZATION_POLICY = 1; + private static final int METHODID_CREATE_AUTHORIZATION_POLICY = 2; + private static final int METHODID_UPDATE_AUTHORIZATION_POLICY = 3; + private static final int METHODID_DELETE_AUTHORIZATION_POLICY = 4; + private static final int METHODID_LIST_SERVER_TLS_POLICIES = 5; + private static final int METHODID_GET_SERVER_TLS_POLICY = 6; + private static final int METHODID_CREATE_SERVER_TLS_POLICY = 7; + private static final int METHODID_UPDATE_SERVER_TLS_POLICY = 8; + private static final int METHODID_DELETE_SERVER_TLS_POLICY = 9; + private static final int METHODID_LIST_CLIENT_TLS_POLICIES = 10; + private static final int METHODID_GET_CLIENT_TLS_POLICY = 11; + private static final int METHODID_CREATE_CLIENT_TLS_POLICY = 12; + private static final int METHODID_UPDATE_CLIENT_TLS_POLICY = 13; + private static final int METHODID_DELETE_CLIENT_TLS_POLICY = 14; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final NetworkSecurityImplBase serviceImpl; + private final int methodId; + + MethodHandlers(NetworkSecurityImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_AUTHORIZATION_POLICIES: + serviceImpl.listAuthorizationPolicies((com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_AUTHORIZATION_POLICY: + serviceImpl.getAuthorizationPolicy((com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_AUTHORIZATION_POLICY: + serviceImpl.createAuthorizationPolicy((com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AUTHORIZATION_POLICY: + serviceImpl.updateAuthorizationPolicy((com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AUTHORIZATION_POLICY: + serviceImpl.deleteAuthorizationPolicy((com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SERVER_TLS_POLICIES: + serviceImpl.listServerTlsPolicies((com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVER_TLS_POLICY: + serviceImpl.getServerTlsPolicy((com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SERVER_TLS_POLICY: + serviceImpl.createServerTlsPolicy((com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SERVER_TLS_POLICY: + serviceImpl.updateServerTlsPolicy((com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SERVER_TLS_POLICY: + serviceImpl.deleteServerTlsPolicy((com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CLIENT_TLS_POLICIES: + serviceImpl.listClientTlsPolicies((com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CLIENT_TLS_POLICY: + serviceImpl.getClientTlsPolicy((com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CLIENT_TLS_POLICY: + serviceImpl.createClientTlsPolicy((com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CLIENT_TLS_POLICY: + serviceImpl.updateClientTlsPolicy((com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CLIENT_TLS_POLICY: + serviceImpl.deleteClientTlsPolicy((com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class NetworkSecurityBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + NetworkSecurityBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1beta1.NetworkSecurityOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("NetworkSecurity"); + } + } + + private static final class NetworkSecurityFileDescriptorSupplier + extends NetworkSecurityBaseDescriptorSupplier { + NetworkSecurityFileDescriptorSupplier() {} + } + + private static final class NetworkSecurityMethodDescriptorSupplier + extends NetworkSecurityBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + NetworkSecurityMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (NetworkSecurityGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NetworkSecurityFileDescriptorSupplier()) + .addMethod(getListAuthorizationPoliciesMethod()) + .addMethod(getGetAuthorizationPolicyMethod()) + .addMethod(getCreateAuthorizationPolicyMethod()) + .addMethod(getUpdateAuthorizationPolicyMethod()) + .addMethod(getDeleteAuthorizationPolicyMethod()) + .addMethod(getListServerTlsPoliciesMethod()) + .addMethod(getGetServerTlsPolicyMethod()) + .addMethod(getCreateServerTlsPolicyMethod()) + .addMethod(getUpdateServerTlsPolicyMethod()) + .addMethod(getDeleteServerTlsPolicyMethod()) + .addMethod(getListClientTlsPoliciesMethod()) + .addMethod(getGetClientTlsPolicyMethod()) + .addMethod(getCreateClientTlsPolicyMethod()) + .addMethod(getUpdateClientTlsPolicyMethod()) + .addMethod(getDeleteClientTlsPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java similarity index 58% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java index 997517ad..e5f42daa 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * AuthorizationPolicy is a resource that specifies how a server
  * should authorize incoming connections. This resource in itself does
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy}
  */
-public final class AuthorizationPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AuthorizationPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy)
     AuthorizationPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AuthorizationPolicy.newBuilder() to construct.
   private AuthorizationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AuthorizationPolicy() {
     name_ = "";
     description_ = "";
@@ -49,15 +31,16 @@ private AuthorizationPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AuthorizationPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AuthorizationPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,91 +60,79 @@ private AuthorizationPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 48:
-            {
-              int rawValue = input.readEnum();
 
-              action_ = rawValue;
-              break;
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                rules_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule>();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              rules_.add(
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.parser(),
-                      extensionRegistry));
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
+
+            action_ = rawValue;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              rules_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            rules_.add(
+                input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -169,7 +140,8 @@ private AuthorizationPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -178,46 +150,41 @@ private AuthorizationPolicy(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto
-        .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto
-        .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.class,
-            com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder.class);
+            com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Possible values that define what action to take.
    * 
* * Protobuf enum {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action} */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -226,8 +193,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Grant access.
      * 
@@ -236,8 +201,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW(1), /** - * - * *
      * Deny access.
      * Deny rules should be avoided unless they are used to provide a default
@@ -251,8 +214,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -261,8 +222,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Grant access.
      * 
@@ -271,8 +230,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_VALUE = 1; /** - * - * *
      * Deny access.
      * Deny rules should be avoided unless they are used to provide a default
@@ -283,6 +240,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DENY_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -307,51 +265,49 @@ public static Action valueOf(int 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;
+        case 0: return ACTION_UNSPECIFIED;
+        case 1: return ALLOW;
+        case 2: return DENY;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Action> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Action findValueByNumber(int number) {
+              return Action.forNumber(number);
+            }
+          };
 
-    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() {
+    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() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Action[] VALUES = values();
 
-    public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    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.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -368,199 +324,149 @@ private Action(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action)
   }
 
-  public interface RuleOrBuilder
-      extends
+  public interface RuleOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getSourcesList(); /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source getSources(int index); /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ int getSourcesCount(); /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> + java.util.List getSourcesOrBuilderList(); /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder - getSourcesOrBuilder(int index); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder( + int index); /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getDestinationsList(); /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination getDestinations( - int index); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination getDestinations(int index); /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getDestinationsCount(); /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .DestinationOrBuilder> + java.util.List getDestinationsOrBuilderList(); /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder - getDestinationsOrBuilder(int index); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder( + int index); } /** - * - * *
    * Specification of rules.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule} */ - public static final class Rule extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Rule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) RuleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Rule.newBuilder() to construct. private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Rule() { sources_ = java.util.Collections.emptyList(); destinations_ = java.util.Collections.emptyList(); @@ -568,15 +474,16 @@ private Rule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Rule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Rule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -596,45 +503,31 @@ private Rule( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .Source>(); - mutable_bitField0_ |= 0x00000001; - } - sources_.add( - input.readMessage( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - destinations_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .Destination>(); - mutable_bitField0_ |= 0x00000002; - } - destinations_.add( - input.readMessage( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .Destination.parser(), - extensionRegistry)); - break; + sources_.add( + input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + destinations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinations_.add( + input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,7 +535,8 @@ private Rule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -654,184 +548,157 @@ private Rule( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.class, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder.class); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder.class); } - public interface SourceOrBuilder - extends + public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) com.google.protobuf.MessageOrBuilder { /** - * - * *
-       * Optional. List of peer identities to match for authorization. At least one
-       * principal should match. Each peer can be an exact match, or a prefix
-       * match (example, "namespace/*") or a suffix match (example, //
-       * */service-account") or a presence match "*". Authorization based on the
-       * principal name without certificate validation (configured by
+       * Optional. List of peer identities to match for authorization. At least
+       * one principal should match. Each peer can be an exact match, or a
+       * prefix match (example, "namespace/*") or a suffix match (example,
+       * "*/service-account") or a presence match "*". Authorization based on
+       * the principal name without certificate validation (configured by
        * ServerTlsPolicy resource) is considered insecure.
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the principals. */ - java.util.List getPrincipalsList(); + java.util.List + getPrincipalsList(); /** - * - * *
-       * Optional. List of peer identities to match for authorization. At least one
-       * principal should match. Each peer can be an exact match, or a prefix
-       * match (example, "namespace/*") or a suffix match (example, //
-       * */service-account") or a presence match "*". Authorization based on the
-       * principal name without certificate validation (configured by
+       * Optional. List of peer identities to match for authorization. At least
+       * one principal should match. Each peer can be an exact match, or a
+       * prefix match (example, "namespace/*") or a suffix match (example,
+       * "*/service-account") or a presence match "*". Authorization based on
+       * the principal name without certificate validation (configured by
        * ServerTlsPolicy resource) is considered insecure.
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of principals. */ int getPrincipalsCount(); /** - * - * *
-       * Optional. List of peer identities to match for authorization. At least one
-       * principal should match. Each peer can be an exact match, or a prefix
-       * match (example, "namespace/*") or a suffix match (example, //
-       * */service-account") or a presence match "*". Authorization based on the
-       * principal name without certificate validation (configured by
+       * Optional. List of peer identities to match for authorization. At least
+       * one principal should match. Each peer can be an exact match, or a
+       * prefix match (example, "namespace/*") or a suffix match (example,
+       * "*/service-account") or a presence match "*". Authorization based on
+       * the principal name without certificate validation (configured by
        * ServerTlsPolicy resource) is considered insecure.
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The principals at the given index. */ java.lang.String getPrincipals(int index); /** - * - * *
-       * Optional. List of peer identities to match for authorization. At least one
-       * principal should match. Each peer can be an exact match, or a prefix
-       * match (example, "namespace/*") or a suffix match (example, //
-       * */service-account") or a presence match "*". Authorization based on the
-       * principal name without certificate validation (configured by
+       * Optional. List of peer identities to match for authorization. At least
+       * one principal should match. Each peer can be an exact match, or a
+       * prefix match (example, "namespace/*") or a suffix match (example,
+       * "*/service-account") or a presence match "*". Authorization based on
+       * the principal name without certificate validation (configured by
        * ServerTlsPolicy resource) is considered insecure.
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the principals at the given index. */ - com.google.protobuf.ByteString getPrincipalsBytes(int index); + com.google.protobuf.ByteString + getPrincipalsBytes(int index); /** - * - * *
-       * Optional. List of CIDR ranges to match based on source IP address. At least one
-       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-       * "1.2.3.0/24") are supported. Authorization based on source IP alone
-       * should be avoided. The IP addresses of any load balancers or proxies
-       * should be considered untrusted.
+       * Optional. List of CIDR ranges to match based on source IP address. At
+       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+       * alone should be avoided. The IP addresses of any load balancers or
+       * proxies should be considered untrusted.
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the ipBlocks. */ - java.util.List getIpBlocksList(); + java.util.List + getIpBlocksList(); /** - * - * *
-       * Optional. List of CIDR ranges to match based on source IP address. At least one
-       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-       * "1.2.3.0/24") are supported. Authorization based on source IP alone
-       * should be avoided. The IP addresses of any load balancers or proxies
-       * should be considered untrusted.
+       * Optional. List of CIDR ranges to match based on source IP address. At
+       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+       * alone should be avoided. The IP addresses of any load balancers or
+       * proxies should be considered untrusted.
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of ipBlocks. */ int getIpBlocksCount(); /** - * - * *
-       * Optional. List of CIDR ranges to match based on source IP address. At least one
-       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-       * "1.2.3.0/24") are supported. Authorization based on source IP alone
-       * should be avoided. The IP addresses of any load balancers or proxies
-       * should be considered untrusted.
+       * Optional. List of CIDR ranges to match based on source IP address. At
+       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+       * alone should be avoided. The IP addresses of any load balancers or
+       * proxies should be considered untrusted.
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The ipBlocks at the given index. */ java.lang.String getIpBlocks(int index); /** - * - * *
-       * Optional. List of CIDR ranges to match based on source IP address. At least one
-       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-       * "1.2.3.0/24") are supported. Authorization based on source IP alone
-       * should be avoided. The IP addresses of any load balancers or proxies
-       * should be considered untrusted.
+       * Optional. List of CIDR ranges to match based on source IP address. At
+       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+       * alone should be avoided. The IP addresses of any load balancers or
+       * proxies should be considered untrusted.
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the ipBlocks at the given index. */ - com.google.protobuf.ByteString getIpBlocksBytes(int index); + com.google.protobuf.ByteString + getIpBlocksBytes(int index); } /** - * - * *
      * Specification of traffic source attributes.
      * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source} */ - public static final class Source extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Source extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) SourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Source() { principals_ = com.google.protobuf.LazyStringArrayList.EMPTY; ipBlocks_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -839,15 +706,16 @@ private Source() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Source(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -867,33 +735,31 @@ private Source( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - principals_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - principals_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + principals_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - ipBlocks_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - ipBlocks_.add(s); - break; + principals_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + ipBlocks_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ipBlocks_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -901,8 +767,8 @@ private Source( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { principals_ = principals_.getUnmodifiableView(); @@ -914,77 +780,65 @@ private Source( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.class, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder - .class); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder.class); } public static final int PRINCIPALS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList principals_; /** - * - * *
-       * Optional. List of peer identities to match for authorization. At least one
-       * principal should match. Each peer can be an exact match, or a prefix
-       * match (example, "namespace/*") or a suffix match (example, //
-       * */service-account") or a presence match "*". Authorization based on the
-       * principal name without certificate validation (configured by
+       * Optional. List of peer identities to match for authorization. At least
+       * one principal should match. Each peer can be an exact match, or a
+       * prefix match (example, "namespace/*") or a suffix match (example,
+       * "*/service-account") or a presence match "*". Authorization based on
+       * the principal name without certificate validation (configured by
        * ServerTlsPolicy resource) is considered insecure.
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the principals. */ - public com.google.protobuf.ProtocolStringList getPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getPrincipalsList() { return principals_; } /** - * - * *
-       * Optional. List of peer identities to match for authorization. At least one
-       * principal should match. Each peer can be an exact match, or a prefix
-       * match (example, "namespace/*") or a suffix match (example, //
-       * */service-account") or a presence match "*". Authorization based on the
-       * principal name without certificate validation (configured by
+       * Optional. List of peer identities to match for authorization. At least
+       * one principal should match. Each peer can be an exact match, or a
+       * prefix match (example, "namespace/*") or a suffix match (example,
+       * "*/service-account") or a presence match "*". Authorization based on
+       * the principal name without certificate validation (configured by
        * ServerTlsPolicy resource) is considered insecure.
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of principals. */ public int getPrincipalsCount() { return principals_.size(); } /** - * - * *
-       * Optional. List of peer identities to match for authorization. At least one
-       * principal should match. Each peer can be an exact match, or a prefix
-       * match (example, "namespace/*") or a suffix match (example, //
-       * */service-account") or a presence match "*". Authorization based on the
-       * principal name without certificate validation (configured by
+       * Optional. List of peer identities to match for authorization. At least
+       * one principal should match. Each peer can be an exact match, or a
+       * prefix match (example, "namespace/*") or a suffix match (example,
+       * "*/service-account") or a presence match "*". Authorization based on
+       * the principal name without certificate validation (configured by
        * ServerTlsPolicy resource) is considered insecure.
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The principals at the given index. */ @@ -992,77 +846,67 @@ public java.lang.String getPrincipals(int index) { return principals_.get(index); } /** - * - * *
-       * Optional. List of peer identities to match for authorization. At least one
-       * principal should match. Each peer can be an exact match, or a prefix
-       * match (example, "namespace/*") or a suffix match (example, //
-       * */service-account") or a presence match "*". Authorization based on the
-       * principal name without certificate validation (configured by
+       * Optional. List of peer identities to match for authorization. At least
+       * one principal should match. Each peer can be an exact match, or a
+       * prefix match (example, "namespace/*") or a suffix match (example,
+       * "*/service-account") or a presence match "*". Authorization based on
+       * the principal name without certificate validation (configured by
        * ServerTlsPolicy resource) is considered insecure.
        * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the principals at the given index. */ - public com.google.protobuf.ByteString getPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getPrincipalsBytes(int index) { return principals_.getByteString(index); } public static final int IP_BLOCKS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ipBlocks_; /** - * - * *
-       * Optional. List of CIDR ranges to match based on source IP address. At least one
-       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-       * "1.2.3.0/24") are supported. Authorization based on source IP alone
-       * should be avoided. The IP addresses of any load balancers or proxies
-       * should be considered untrusted.
+       * Optional. List of CIDR ranges to match based on source IP address. At
+       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+       * alone should be avoided. The IP addresses of any load balancers or
+       * proxies should be considered untrusted.
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the ipBlocks. */ - public com.google.protobuf.ProtocolStringList getIpBlocksList() { + public com.google.protobuf.ProtocolStringList + getIpBlocksList() { return ipBlocks_; } /** - * - * *
-       * Optional. List of CIDR ranges to match based on source IP address. At least one
-       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-       * "1.2.3.0/24") are supported. Authorization based on source IP alone
-       * should be avoided. The IP addresses of any load balancers or proxies
-       * should be considered untrusted.
+       * Optional. List of CIDR ranges to match based on source IP address. At
+       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+       * alone should be avoided. The IP addresses of any load balancers or
+       * proxies should be considered untrusted.
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of ipBlocks. */ public int getIpBlocksCount() { return ipBlocks_.size(); } /** - * - * *
-       * Optional. List of CIDR ranges to match based on source IP address. At least one
-       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-       * "1.2.3.0/24") are supported. Authorization based on source IP alone
-       * should be avoided. The IP addresses of any load balancers or proxies
-       * should be considered untrusted.
+       * Optional. List of CIDR ranges to match based on source IP address. At
+       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+       * alone should be avoided. The IP addresses of any load balancers or
+       * proxies should be considered untrusted.
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The ipBlocks at the given index. */ @@ -1070,27 +914,24 @@ public java.lang.String getIpBlocks(int index) { return ipBlocks_.get(index); } /** - * - * *
-       * Optional. List of CIDR ranges to match based on source IP address. At least one
-       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-       * "1.2.3.0/24") are supported. Authorization based on source IP alone
-       * should be avoided. The IP addresses of any load balancers or proxies
-       * should be considered untrusted.
+       * Optional. List of CIDR ranges to match based on source IP address. At
+       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+       * alone should be avoided. The IP addresses of any load balancers or
+       * proxies should be considered untrusted.
        * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the ipBlocks at the given index. */ - public com.google.protobuf.ByteString getIpBlocksBytes(int index) { + public com.google.protobuf.ByteString + getIpBlocksBytes(int index) { return ipBlocks_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1102,7 +943,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < principals_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principals_.getRaw(i)); } @@ -1142,17 +984,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source other = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) obj; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source other = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) obj; - if (!getPrincipalsList().equals(other.getPrincipalsList())) return false; - if (!getIpBlocksList().equals(other.getIpBlocksList())) return false; + if (!getPrincipalsList() + .equals(other.getPrincipalsList())) return false; + if (!getIpBlocksList() + .equals(other.getIpBlocksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1177,103 +1019,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1283,50 +1110,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Specification of traffic source attributes.
        * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.class, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder - .class); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1338,22 +1159,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source build() { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1361,10 +1179,8 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - buildPartial() { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source result = - new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source(this); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source buildPartial() { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source result = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { principals_ = principals_.getUnmodifiableView(); @@ -1384,54 +1200,46 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) other); + if (other instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) { + return mergeFrom((com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source other) { - if (other - == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source other) { + if (other == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.getDefaultInstance()) return this; if (!other.principals_.isEmpty()) { if (principals_.isEmpty()) { principals_ = other.principals_; @@ -1467,14 +1275,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parsedMessage = - null; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1483,70 +1288,59 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList principals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList principals_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePrincipalsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { principals_ = new com.google.protobuf.LazyStringArrayList(principals_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the principals. */ - public com.google.protobuf.ProtocolStringList getPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getPrincipalsList() { return principals_.getUnmodifiableView(); } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of principals. */ public int getPrincipalsCount() { return principals_.size(); } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The principals at the given index. */ @@ -1554,115 +1348,105 @@ public java.lang.String getPrincipals(int index) { return principals_.get(index); } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the principals at the given index. */ - public com.google.protobuf.ByteString getPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getPrincipalsBytes(int index) { return principals_.getByteString(index); } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The principals to set. * @return This builder for chaining. */ - public Builder setPrincipals(int index, java.lang.String value) { + public Builder setPrincipals( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrincipalsIsMutable(); + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); principals_.set(index, value); onChanged(); return this; } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The principals to add. * @return This builder for chaining. */ - public Builder addPrincipals(java.lang.String value) { + public Builder addPrincipals( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrincipalsIsMutable(); + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); principals_.add(value); onChanged(); return this; } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The principals to add. * @return This builder for chaining. */ - public Builder addAllPrincipals(java.lang.Iterable values) { + public Builder addAllPrincipals( + java.lang.Iterable values) { ensurePrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, principals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, principals_); onChanged(); return this; } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrincipals() { @@ -1672,91 +1456,79 @@ public Builder clearPrincipals() { return this; } /** - * - * *
-         * Optional. List of peer identities to match for authorization. At least one
-         * principal should match. Each peer can be an exact match, or a prefix
-         * match (example, "namespace/*") or a suffix match (example, //
-         * */service-account") or a presence match "*". Authorization based on the
-         * principal name without certificate validation (configured by
+         * Optional. List of peer identities to match for authorization. At least
+         * one principal should match. Each peer can be an exact match, or a
+         * prefix match (example, "namespace/*") or a suffix match (example,
+         * "*/service-account") or a presence match "*". Authorization based on
+         * the principal name without certificate validation (configured by
          * ServerTlsPolicy resource) is considered insecure.
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the principals to add. * @return This builder for chaining. */ - public Builder addPrincipalsBytes(com.google.protobuf.ByteString value) { + public Builder addPrincipalsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePrincipalsIsMutable(); principals_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList ipBlocks_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipBlocks_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpBlocksIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ipBlocks_ = new com.google.protobuf.LazyStringArrayList(ipBlocks_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the ipBlocks. */ - public com.google.protobuf.ProtocolStringList getIpBlocksList() { + public com.google.protobuf.ProtocolStringList + getIpBlocksList() { return ipBlocks_.getUnmodifiableView(); } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of ipBlocks. */ public int getIpBlocksCount() { return ipBlocks_.size(); } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The ipBlocks at the given index. */ @@ -1764,110 +1536,100 @@ public java.lang.String getIpBlocks(int index) { return ipBlocks_.get(index); } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the ipBlocks at the given index. */ - public com.google.protobuf.ByteString getIpBlocksBytes(int index) { + public com.google.protobuf.ByteString + getIpBlocksBytes(int index) { return ipBlocks_.getByteString(index); } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The ipBlocks to set. * @return This builder for chaining. */ - public Builder setIpBlocks(int index, java.lang.String value) { + public Builder setIpBlocks( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpBlocksIsMutable(); + throw new NullPointerException(); + } + ensureIpBlocksIsMutable(); ipBlocks_.set(index, value); onChanged(); return this; } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ipBlocks to add. * @return This builder for chaining. */ - public Builder addIpBlocks(java.lang.String value) { + public Builder addIpBlocks( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpBlocksIsMutable(); + throw new NullPointerException(); + } + ensureIpBlocksIsMutable(); ipBlocks_.add(value); onChanged(); return this; } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The ipBlocks to add. * @return This builder for chaining. */ - public Builder addAllIpBlocks(java.lang.Iterable values) { + public Builder addAllIpBlocks( + java.lang.Iterable values) { ensureIpBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipBlocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipBlocks_); onChanged(); return this; } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIpBlocks() { @@ -1877,32 +1639,29 @@ public Builder clearIpBlocks() { return this; } /** - * - * *
-         * Optional. List of CIDR ranges to match based on source IP address. At least one
-         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
-         * "1.2.3.0/24") are supported. Authorization based on source IP alone
-         * should be avoided. The IP addresses of any load balancers or proxies
-         * should be considered untrusted.
+         * Optional. List of CIDR ranges to match based on source IP address. At
+         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
+         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
+         * alone should be avoided. The IP addresses of any load balancers or
+         * proxies should be considered untrusted.
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the ipBlocks to add. * @return This builder for chaining. */ - public Builder addIpBlocksBytes(com.google.protobuf.ByteString value) { + public Builder addIpBlocksBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpBlocksIsMutable(); ipBlocks_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1915,33 +1674,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source) - private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source(); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Source parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Source(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1953,249 +1709,201 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DestinationOrBuilder - extends + public interface DestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) com.google.protobuf.MessageOrBuilder { /** - * - * *
-       * Required. List of host names to match. Matched against the ":authority" header in
-       * http requests. At least one host should match. Each host can be an
-       * exact match, or a prefix match (example "mydomain.*") or a suffix
-       * match (example // *.myorg.com") or a presence(any) match "*".
+       * Required. List of host names to match. Matched against the ":authority"
+       * header in http requests. At least one host should match. Each host can
+       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+       * match (example "*.myorg.com") or a presence (any) match "*".
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the hosts. */ - java.util.List getHostsList(); + java.util.List + getHostsList(); /** - * - * *
-       * Required. List of host names to match. Matched against the ":authority" header in
-       * http requests. At least one host should match. Each host can be an
-       * exact match, or a prefix match (example "mydomain.*") or a suffix
-       * match (example // *.myorg.com") or a presence(any) match "*".
+       * Required. List of host names to match. Matched against the ":authority"
+       * header in http requests. At least one host should match. Each host can
+       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+       * match (example "*.myorg.com") or a presence (any) match "*".
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of hosts. */ int getHostsCount(); /** - * - * *
-       * Required. List of host names to match. Matched against the ":authority" header in
-       * http requests. At least one host should match. Each host can be an
-       * exact match, or a prefix match (example "mydomain.*") or a suffix
-       * match (example // *.myorg.com") or a presence(any) match "*".
+       * Required. List of host names to match. Matched against the ":authority"
+       * header in http requests. At least one host should match. Each host can
+       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+       * match (example "*.myorg.com") or a presence (any) match "*".
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The hosts at the given index. */ java.lang.String getHosts(int index); /** - * - * *
-       * Required. List of host names to match. Matched against the ":authority" header in
-       * http requests. At least one host should match. Each host can be an
-       * exact match, or a prefix match (example "mydomain.*") or a suffix
-       * match (example // *.myorg.com") or a presence(any) match "*".
+       * Required. List of host names to match. Matched against the ":authority"
+       * header in http requests. At least one host should match. Each host can
+       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+       * match (example "*.myorg.com") or a presence (any) match "*".
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the hosts at the given index. */ - com.google.protobuf.ByteString getHostsBytes(int index); + com.google.protobuf.ByteString + getHostsBytes(int index); /** - * - * *
-       * Required. List of destination ports to match. At least one port should match.
+       * Required. List of destination ports to match. At least one port should
+       * match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ports. */ java.util.List getPortsList(); /** - * - * *
-       * Required. List of destination ports to match. At least one port should match.
+       * Required. List of destination ports to match. At least one port should
+       * match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ports. */ int getPortsCount(); /** - * - * *
-       * Required. List of destination ports to match. At least one port should match.
+       * Required. List of destination ports to match. At least one port should
+       * match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ports at the given index. */ int getPorts(int index); /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the methods. */ - java.util.List getMethodsList(); + java.util.List + getMethodsList(); /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of methods. */ int getMethodsCount(); /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The methods at the given index. */ java.lang.String getMethods(int index); /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the methods at the given index. */ - com.google.protobuf.ByteString getMethodsBytes(int index); + com.google.protobuf.ByteString + getMethodsBytes(int index); /** - * - * *
-       * Optional. Match against key:value pair in http header. Provides a flexible match
-       * based on HTTP headers, for potentially advanced use cases. At least one
-       * header should match. Avoid using header matches to make authorization
-       * decisions unless there is a strong guarantee that requests arrive
-       * through a trusted client or proxy.
+       * Optional. Match against key:value pair in http header. Provides a
+       * flexible match based on HTTP headers, for potentially advanced use
+       * cases. At least one header should match. Avoid using header matches to
+       * make authorization decisions unless there is a strong guarantee that
+       * requests arrive through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpHeaderMatch field is set. */ boolean hasHttpHeaderMatch(); /** - * - * *
-       * Optional. Match against key:value pair in http header. Provides a flexible match
-       * based on HTTP headers, for potentially advanced use cases. At least one
-       * header should match. Avoid using header matches to make authorization
-       * decisions unless there is a strong guarantee that requests arrive
-       * through a trusted client or proxy.
+       * Optional. Match against key:value pair in http header. Provides a
+       * flexible match based on HTTP headers, for potentially advanced use
+       * cases. At least one header should match. Avoid using header matches to
+       * make authorization decisions unless there is a strong guarantee that
+       * requests arrive through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpHeaderMatch. */ - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch - getHttpHeaderMatch(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getHttpHeaderMatch(); /** - * - * *
-       * Optional. Match against key:value pair in http header. Provides a flexible match
-       * based on HTTP headers, for potentially advanced use cases. At least one
-       * header should match. Avoid using header matches to make authorization
-       * decisions unless there is a strong guarantee that requests arrive
-       * through a trusted client or proxy.
+       * Optional. Match against key:value pair in http header. Provides a
+       * flexible match based on HTTP headers, for potentially advanced use
+       * cases. At least one header should match. Avoid using header matches to
+       * make authorization decisions unless there is a strong guarantee that
+       * requests arrive through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder - getHttpHeaderMatchOrBuilder(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder getHttpHeaderMatchOrBuilder(); } /** - * - * *
      * Specification of traffic destination attributes.
      * 
* - * Protobuf type {@code - * google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination} + * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination} */ - public static final class Destination extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Destination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) DestinationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Destination.newBuilder() to construct. private Destination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Destination() { hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY; ports_ = emptyIntList(); @@ -2204,15 +1912,16 @@ private Destination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Destination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Destination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2232,76 +1941,65 @@ private Destination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - hosts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - hosts_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + hosts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - ports_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } + hosts_.add(s); + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + ports_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + ports_.addInt(input.readUInt32()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + ports_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { ports_.addInt(input.readUInt32()); - break; } - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - ports_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - ports_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; + input.popLimit(limit); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + methods_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - methods_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - methods_.add(s); - break; + methods_.add(s); + break; + } + case 42: { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder subBuilder = null; + if (httpHeaderMatch_ != null) { + subBuilder = httpHeaderMatch_.toBuilder(); } - case 42: - { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder - subBuilder = null; - if (httpHeaderMatch_ != null) { - subBuilder = httpHeaderMatch_.toBuilder(); - } - httpHeaderMatch_ = - input.readMessage( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .Destination.HttpHeaderMatch.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpHeaderMatch_); - httpHeaderMatch_ = subBuilder.buildPartial(); - } - - break; + httpHeaderMatch_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpHeaderMatch_); + httpHeaderMatch_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2309,8 +2007,8 @@ private Destination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { hosts_ = hosts_.getUnmodifiableView(); @@ -2325,31 +2023,24 @@ private Destination( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.class, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .Builder.class); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder.class); } - public interface HttpHeaderMatchOrBuilder - extends + public interface HttpHeaderMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2361,13 +2052,10 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the regexMatch field is set. */ boolean hasRegexMatch(); /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2379,13 +2067,10 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The regexMatch. */ java.lang.String getRegexMatch(); /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2397,14 +2082,12 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for regexMatch. */ - com.google.protobuf.ByteString getRegexMatchBytes(); + com.google.protobuf.ByteString + getRegexMatchBytes(); /** - * - * *
          * Required. The name of the HTTP header to match. For matching
          * against the HTTP request's authority, use a headerMatch
@@ -2413,13 +2096,10 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The headerName. */ java.lang.String getHeaderName(); /** - * - * *
          * Required. The name of the HTTP header to match. For matching
          * against the HTTP request's authority, use a headerMatch
@@ -2428,50 +2108,45 @@ public interface HttpHeaderMatchOrBuilder
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for headerName. */ - com.google.protobuf.ByteString getHeaderNameBytes(); + com.google.protobuf.ByteString + getHeaderNameBytes(); - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.TypeCase - getTypeCase(); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCase getTypeCase(); } /** - * - * *
-       * Specification of HTTP header match atrributes.
+       * Specification of HTTP header match attributes.
        * 
* - * Protobuf type {@code - * google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch} + * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch} */ - public static final class HttpHeaderMatch extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class HttpHeaderMatch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) HttpHeaderMatchOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HttpHeaderMatch.newBuilder() to construct. private HttpHeaderMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HttpHeaderMatch() { headerName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HttpHeaderMatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HttpHeaderMatch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2490,27 +2165,25 @@ private HttpHeaderMatch( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - headerName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - typeCase_ = 2; - type_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + headerName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + typeCase_ = 2; + type_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2518,42 +2191,34 @@ private HttpHeaderMatch( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.class, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder.class); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; - public enum TypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REGEX_MATCH(2), TYPE_NOT_SET(0); private final int value; - private TypeCase(int value) { this.value = value; } @@ -2569,28 +2234,24 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 2: - return REGEX_MATCH; - case 0: - return TYPE_NOT_SET; - default: - return null; + case 2: return REGEX_MATCH; + case 0: return TYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public static final int REGEX_MATCH_FIELD_NUMBER = 2; /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2602,15 +2263,12 @@ public TypeCase getTypeCase() {
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the regexMatch field is set. */ public boolean hasRegexMatch() { return typeCase_ == 2; } /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2622,7 +2280,6 @@ public boolean hasRegexMatch() {
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The regexMatch. */ public java.lang.String getRegexMatch() { @@ -2633,7 +2290,8 @@ public java.lang.String getRegexMatch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 2) { type_ = s; @@ -2642,8 +2300,6 @@ public java.lang.String getRegexMatch() { } } /** - * - * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2655,17 +2311,18 @@ public java.lang.String getRegexMatch() {
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for regexMatch. */ - public com.google.protobuf.ByteString getRegexMatchBytes() { + public com.google.protobuf.ByteString + getRegexMatchBytes() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (typeCase_ == 2) { type_ = b; } @@ -2678,8 +2335,6 @@ public com.google.protobuf.ByteString getRegexMatchBytes() { public static final int HEADER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object headerName_; /** - * - * *
          * Required. The name of the HTTP header to match. For matching
          * against the HTTP request's authority, use a headerMatch
@@ -2688,7 +2343,6 @@ public com.google.protobuf.ByteString getRegexMatchBytes() {
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The headerName. */ @java.lang.Override @@ -2697,15 +2351,14 @@ public java.lang.String getHeaderName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headerName_ = s; return s; } } /** - * - * *
          * Required. The name of the HTTP header to match. For matching
          * against the HTTP request's authority, use a headerMatch
@@ -2714,15 +2367,16 @@ public java.lang.String getHeaderName() {
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for headerName. */ @java.lang.Override - public com.google.protobuf.ByteString getHeaderNameBytes() { + public com.google.protobuf.ByteString + getHeaderNameBytes() { java.lang.Object ref = headerName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); headerName_ = b; return b; } else { @@ -2731,7 +2385,6 @@ public com.google.protobuf.ByteString getHeaderNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2744,7 +2397,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headerName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, headerName_); } @@ -2774,26 +2427,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - other = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch) - obj; - - if (!getHeaderName().equals(other.getHeaderName())) return false; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) obj; + + if (!getHeaderName() + .equals(other.getHeaderName())) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 2: - if (!getRegexMatch().equals(other.getRegexMatch())) return false; + if (!getRegexMatch() + .equals(other.getRegexMatch())) return false; break; case 0: default: @@ -2824,119 +2471,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2946,53 +2562,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-         * Specification of HTTP header match atrributes.
+         * Specification of HTTP header match attributes.
          * 
* - * Protobuf type {@code - * google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch} + * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.class, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder.class); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3004,26 +2611,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - build() { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - result = buildPartial(); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch build() { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3031,14 +2631,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - buildPartial() { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - result = - new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .Destination.HttpHeaderMatch(this); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch buildPartial() { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch result = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch(this); if (typeCase_ == 2) { result.type_ = type_; } @@ -3052,76 +2646,60 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch) - other); + if (other instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) { + return mergeFrom((com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - other) { - if (other - == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other) { + if (other == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance()) return this; if (!other.getHeaderName().isEmpty()) { headerName_ = other.headerName_; onChanged(); } switch (other.getTypeCase()) { - case REGEX_MATCH: - { - typeCase_ = 2; - type_ = other.type_; - onChanged(); - break; - } - case TYPE_NOT_SET: - { - break; - } + case REGEX_MATCH: { + typeCase_ = 2; + type_ = other.type_; + onChanged(); + break; + } + case TYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3138,16 +2716,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - parsedMessage = null; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3156,12 +2729,12 @@ public Builder mergeFrom( } return this; } - private int typeCase_ = 0; private java.lang.Object type_; - - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public Builder clearType() { @@ -3171,9 +2744,8 @@ public Builder clearType() { return this; } + /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3185,7 +2757,6 @@ public Builder clearType() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the regexMatch field is set. */ @java.lang.Override @@ -3193,8 +2764,6 @@ public boolean hasRegexMatch() { return typeCase_ == 2; } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3206,7 +2775,6 @@ public boolean hasRegexMatch() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The regexMatch. */ @java.lang.Override @@ -3216,7 +2784,8 @@ public java.lang.String getRegexMatch() { ref = type_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 2) { type_ = s; @@ -3227,8 +2796,6 @@ public java.lang.String getRegexMatch() { } } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3240,18 +2807,19 @@ public java.lang.String getRegexMatch() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for regexMatch. */ @java.lang.Override - public com.google.protobuf.ByteString getRegexMatchBytes() { + public com.google.protobuf.ByteString + getRegexMatchBytes() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (typeCase_ == 2) { type_ = b; } @@ -3261,8 +2829,6 @@ public com.google.protobuf.ByteString getRegexMatchBytes() { } } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3274,22 +2840,20 @@ public com.google.protobuf.ByteString getRegexMatchBytes() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The regexMatch to set. * @return This builder for chaining. */ - public Builder setRegexMatch(java.lang.String value) { + public Builder setRegexMatch( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - typeCase_ = 2; + throw new NullPointerException(); + } + typeCase_ = 2; type_ = value; onChanged(); return this; } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3301,7 +2865,6 @@ public Builder setRegexMatch(java.lang.String value) {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegexMatch() { @@ -3313,8 +2876,6 @@ public Builder clearRegexMatch() { return this; } /** - * - * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -3326,15 +2887,15 @@ public Builder clearRegexMatch() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for regexMatch to set. * @return This builder for chaining. */ - public Builder setRegexMatchBytes(com.google.protobuf.ByteString value) { + public Builder setRegexMatchBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); typeCase_ = 2; type_ = value; onChanged(); @@ -3343,8 +2904,6 @@ public Builder setRegexMatchBytes(com.google.protobuf.ByteString value) { private java.lang.Object headerName_ = ""; /** - * - * *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3353,13 +2912,13 @@ public Builder setRegexMatchBytes(com.google.protobuf.ByteString value) {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The headerName. */ public java.lang.String getHeaderName() { java.lang.Object ref = headerName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headerName_ = s; return s; @@ -3368,8 +2927,6 @@ public java.lang.String getHeaderName() { } } /** - * - * *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3378,14 +2935,15 @@ public java.lang.String getHeaderName() {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for headerName. */ - public com.google.protobuf.ByteString getHeaderNameBytes() { + public com.google.protobuf.ByteString + getHeaderNameBytes() { java.lang.Object ref = headerName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); headerName_ = b; return b; } else { @@ -3393,8 +2951,6 @@ public com.google.protobuf.ByteString getHeaderNameBytes() { } } /** - * - * *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3403,22 +2959,20 @@ public com.google.protobuf.ByteString getHeaderNameBytes() {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The headerName to set. * @return This builder for chaining. */ - public Builder setHeaderName(java.lang.String value) { + public Builder setHeaderName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + headerName_ = value; onChanged(); return this; } - /** - * - * + /** *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3427,18 +2981,15 @@ public Builder setHeaderName(java.lang.String value) {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHeaderName() { - + headerName_ = getDefaultInstance().getHeaderName(); onChanged(); return this; } /** - * - * *
            * Required. The name of the HTTP header to match. For matching
            * against the HTTP request's authority, use a headerMatch
@@ -3447,21 +2998,20 @@ public Builder clearHeaderName() {
            * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for headerName to set. * @return This builder for chaining. */ - public Builder setHeaderNameBytes(com.google.protobuf.ByteString value) { + public Builder setHeaderNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + headerName_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3474,36 +3024,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch) - private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .Destination.HttpHeaderMatch - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch(); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpHeaderMatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpHeaderMatch(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpHeaderMatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpHeaderMatch(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3515,61 +3059,52 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HOSTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList hosts_; /** - * - * *
-       * Required. List of host names to match. Matched against the ":authority" header in
-       * http requests. At least one host should match. Each host can be an
-       * exact match, or a prefix match (example "mydomain.*") or a suffix
-       * match (example // *.myorg.com") or a presence(any) match "*".
+       * Required. List of host names to match. Matched against the ":authority"
+       * header in http requests. At least one host should match. Each host can
+       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+       * match (example "*.myorg.com") or a presence (any) match "*".
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the hosts. */ - public com.google.protobuf.ProtocolStringList getHostsList() { + public com.google.protobuf.ProtocolStringList + getHostsList() { return hosts_; } /** - * - * *
-       * Required. List of host names to match. Matched against the ":authority" header in
-       * http requests. At least one host should match. Each host can be an
-       * exact match, or a prefix match (example "mydomain.*") or a suffix
-       * match (example // *.myorg.com") or a presence(any) match "*".
+       * Required. List of host names to match. Matched against the ":authority"
+       * header in http requests. At least one host should match. Each host can
+       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+       * match (example "*.myorg.com") or a presence (any) match "*".
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of hosts. */ public int getHostsCount() { return hosts_.size(); } /** - * - * *
-       * Required. List of host names to match. Matched against the ":authority" header in
-       * http requests. At least one host should match. Each host can be an
-       * exact match, or a prefix match (example "mydomain.*") or a suffix
-       * match (example // *.myorg.com") or a presence(any) match "*".
+       * Required. List of host names to match. Matched against the ":authority"
+       * header in http requests. At least one host should match. Each host can
+       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+       * match (example "*.myorg.com") or a presence (any) match "*".
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The hosts at the given index. */ @@ -3577,115 +3112,99 @@ public java.lang.String getHosts(int index) { return hosts_.get(index); } /** - * - * *
-       * Required. List of host names to match. Matched against the ":authority" header in
-       * http requests. At least one host should match. Each host can be an
-       * exact match, or a prefix match (example "mydomain.*") or a suffix
-       * match (example // *.myorg.com") or a presence(any) match "*".
+       * Required. List of host names to match. Matched against the ":authority"
+       * header in http requests. At least one host should match. Each host can
+       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+       * match (example "*.myorg.com") or a presence (any) match "*".
        * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the hosts at the given index. */ - public com.google.protobuf.ByteString getHostsBytes(int index) { + public com.google.protobuf.ByteString + getHostsBytes(int index) { return hosts_.getByteString(index); } public static final int PORTS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.IntList ports_; /** - * - * *
-       * Required. List of destination ports to match. At least one port should match.
+       * Required. List of destination ports to match. At least one port should
+       * match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ports. */ @java.lang.Override - public java.util.List getPortsList() { + public java.util.List + getPortsList() { return ports_; } /** - * - * *
-       * Required. List of destination ports to match. At least one port should match.
+       * Required. List of destination ports to match. At least one port should
+       * match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ports. */ public int getPortsCount() { return ports_.size(); } /** - * - * *
-       * Required. List of destination ports to match. At least one port should match.
+       * Required. List of destination ports to match. At least one port should
+       * match.
        * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ports at the given index. */ public int getPorts(int index) { return ports_.getInt(index); } - private int portsMemoizedSerializedSize = -1; public static final int METHODS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList methods_; /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the methods. */ - public com.google.protobuf.ProtocolStringList getMethodsList() { + public com.google.protobuf.ProtocolStringList + getMethodsList() { return methods_; } /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of methods. */ public int getMethodsCount() { return methods_.size(); } /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The methods at the given index. */ @@ -3693,41 +3212,32 @@ public java.lang.String getMethods(int index) { return methods_.get(index); } /** - * - * *
        * Optional. A list of HTTP methods to match. At least one method should
        * match. Should not be set for gRPC services.
        * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the methods at the given index. */ - public com.google.protobuf.ByteString getMethodsBytes(int index) { + public com.google.protobuf.ByteString + getMethodsBytes(int index) { return methods_.getByteString(index); } public static final int HTTP_HEADER_MATCH_FIELD_NUMBER = 5; - private com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - httpHeaderMatch_; + private com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch httpHeaderMatch_; /** - * - * *
-       * Optional. Match against key:value pair in http header. Provides a flexible match
-       * based on HTTP headers, for potentially advanced use cases. At least one
-       * header should match. Avoid using header matches to make authorization
-       * decisions unless there is a strong guarantee that requests arrive
-       * through a trusted client or proxy.
+       * Optional. Match against key:value pair in http header. Provides a
+       * flexible match based on HTTP headers, for potentially advanced use
+       * cases. At least one header should match. Avoid using header matches to
+       * make authorization decisions unless there is a strong guarantee that
+       * requests arrive through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpHeaderMatch field is set. */ @java.lang.Override @@ -3735,55 +3245,38 @@ public boolean hasHttpHeaderMatch() { return httpHeaderMatch_ != null; } /** - * - * *
-       * Optional. Match against key:value pair in http header. Provides a flexible match
-       * based on HTTP headers, for potentially advanced use cases. At least one
-       * header should match. Avoid using header matches to make authorization
-       * decisions unless there is a strong guarantee that requests arrive
-       * through a trusted client or proxy.
+       * Optional. Match against key:value pair in http header. Provides a
+       * flexible match based on HTTP headers, for potentially advanced use
+       * cases. At least one header should match. Avoid using header matches to
+       * make authorization decisions unless there is a strong guarantee that
+       * requests arrive through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpHeaderMatch. */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getHttpHeaderMatch() { - return httpHeaderMatch_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance() - : httpHeaderMatch_; + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getHttpHeaderMatch() { + return httpHeaderMatch_ == null ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance() : httpHeaderMatch_; } /** - * - * *
-       * Optional. Match against key:value pair in http header. Provides a flexible match
-       * based on HTTP headers, for potentially advanced use cases. At least one
-       * header should match. Avoid using header matches to make authorization
-       * decisions unless there is a strong guarantee that requests arrive
-       * through a trusted client or proxy.
+       * Optional. Match against key:value pair in http header. Provides a
+       * flexible match based on HTTP headers, for potentially advanced use
+       * cases. At least one header should match. Avoid using header matches to
+       * make authorization decisions unless there is a strong guarantee that
+       * requests arrive through a trusted client or proxy.
        * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder - getHttpHeaderMatchOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder getHttpHeaderMatchOrBuilder() { return getHttpHeaderMatch(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3795,7 +3288,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < hosts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hosts_.getRaw(i)); @@ -3833,13 +3327,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < ports_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(ports_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(ports_.getInt(i)); } size += dataSize; if (!getPortsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } portsMemoizedSerializedSize = dataSize; } @@ -3852,7 +3347,8 @@ public int getSerializedSize() { size += 1 * getMethodsList().size(); } if (httpHeaderMatch_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHttpHeaderMatch()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getHttpHeaderMatch()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3862,22 +3358,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination other = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) obj; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination other = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) obj; - if (!getHostsList().equals(other.getHostsList())) return false; - if (!getPortsList().equals(other.getPortsList())) return false; - if (!getMethodsList().equals(other.getMethodsList())) return false; + if (!getHostsList() + .equals(other.getHostsList())) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (!getMethodsList() + .equals(other.getMethodsList())) return false; if (hasHttpHeaderMatch() != other.hasHttpHeaderMatch()) return false; if (hasHttpHeaderMatch()) { - if (!getHttpHeaderMatch().equals(other.getHttpHeaderMatch())) return false; + if (!getHttpHeaderMatch() + .equals(other.getHttpHeaderMatch())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3911,103 +3408,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4017,52 +3499,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Specification of traffic destination attributes.
        * 
* - * Protobuf type {@code - * google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination} + * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .class, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .Builder.class); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4082,23 +3556,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - build() { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination result = - buildPartial(); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination build() { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4106,11 +3576,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - buildPartial() { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination result = - new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination( - this); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination buildPartial() { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination result = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { hosts_ = hosts_.getUnmodifiableView(); @@ -4140,56 +3607,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) - other); + if (other instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) { + return mergeFrom((com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination other) { - if (other - == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination other) { + if (other == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.getDefaultInstance()) return this; if (!other.hosts_.isEmpty()) { if (hosts_.isEmpty()) { hosts_ = other.hosts_; @@ -4238,14 +3695,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - parsedMessage = null; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4254,64 +3708,53 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList hosts_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureHostsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hosts_ = new com.google.protobuf.LazyStringArrayList(hosts_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the hosts. */ - public com.google.protobuf.ProtocolStringList getHostsList() { + public com.google.protobuf.ProtocolStringList + getHostsList() { return hosts_.getUnmodifiableView(); } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of hosts. */ public int getHostsCount() { return hosts_.size(); } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The hosts at the given index. */ @@ -4319,105 +3762,95 @@ public java.lang.String getHosts(int index) { return hosts_.get(index); } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the hosts at the given index. */ - public com.google.protobuf.ByteString getHostsBytes(int index) { + public com.google.protobuf.ByteString + getHostsBytes(int index) { return hosts_.getByteString(index); } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The hosts to set. * @return This builder for chaining. */ - public Builder setHosts(int index, java.lang.String value) { + public Builder setHosts( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureHostsIsMutable(); + throw new NullPointerException(); + } + ensureHostsIsMutable(); hosts_.set(index, value); onChanged(); return this; } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hosts to add. * @return This builder for chaining. */ - public Builder addHosts(java.lang.String value) { + public Builder addHosts( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureHostsIsMutable(); + throw new NullPointerException(); + } + ensureHostsIsMutable(); hosts_.add(value); onChanged(); return this; } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The hosts to add. * @return This builder for chaining. */ - public Builder addAllHosts(java.lang.Iterable values) { + public Builder addAllHosts( + java.lang.Iterable values) { ensureHostsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hosts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hosts_); onChanged(); return this; } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHosts() { @@ -4427,25 +3860,23 @@ public Builder clearHosts() { return this; } /** - * - * *
-         * Required. List of host names to match. Matched against the ":authority" header in
-         * http requests. At least one host should match. Each host can be an
-         * exact match, or a prefix match (example "mydomain.*") or a suffix
-         * match (example // *.myorg.com") or a presence(any) match "*".
+         * Required. List of host names to match. Matched against the ":authority"
+         * header in http requests. At least one host should match. Each host can
+         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
+         * match (example "*.myorg.com") or a presence (any) match "*".
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the hosts to add. * @return This builder for chaining. */ - public Builder addHostsBytes(com.google.protobuf.ByteString value) { + public Builder addHostsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureHostsIsMutable(); hosts_.add(value); onChanged(); @@ -4453,52 +3884,45 @@ public Builder addHostsBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.IntList ports_ = emptyIntList(); - private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ports_ = mutableCopy(ports_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
-         * Required. List of destination ports to match. At least one port should match.
+         * Required. List of destination ports to match. At least one port should
+         * match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ports. */ - public java.util.List getPortsList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(ports_) - : ports_; + public java.util.List + getPortsList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(ports_) : ports_; } /** - * - * *
-         * Required. List of destination ports to match. At least one port should match.
+         * Required. List of destination ports to match. At least one port should
+         * match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ports. */ public int getPortsCount() { return ports_.size(); } /** - * - * *
-         * Required. List of destination ports to match. At least one port should match.
+         * Required. List of destination ports to match. At least one port should
+         * match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ports at the given index. */ @@ -4506,33 +3930,30 @@ public int getPorts(int index) { return ports_.getInt(index); } /** - * - * *
-         * Required. List of destination ports to match. At least one port should match.
+         * Required. List of destination ports to match. At least one port should
+         * match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The ports to set. * @return This builder for chaining. */ - public Builder setPorts(int index, int value) { + public Builder setPorts( + int index, int value) { ensurePortsIsMutable(); ports_.setInt(index, value); onChanged(); return this; } /** - * - * *
-         * Required. List of destination ports to match. At least one port should match.
+         * Required. List of destination ports to match. At least one port should
+         * match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ports to add. * @return This builder for chaining. */ @@ -4543,32 +3964,30 @@ public Builder addPorts(int value) { return this; } /** - * - * *
-         * Required. List of destination ports to match. At least one port should match.
+         * Required. List of destination ports to match. At least one port should
+         * match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The ports to add. * @return This builder for chaining. */ - public Builder addAllPorts(java.lang.Iterable values) { + public Builder addAllPorts( + java.lang.Iterable values) { ensurePortsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); onChanged(); return this; } /** - * - * *
-         * Required. List of destination ports to match. At least one port should match.
+         * Required. List of destination ports to match. At least one port should
+         * match.
          * 
* * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPorts() { @@ -4578,55 +3997,45 @@ public Builder clearPorts() { return this; } - private com.google.protobuf.LazyStringList methods_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList methods_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMethodsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { methods_ = new com.google.protobuf.LazyStringArrayList(methods_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the methods. */ - public com.google.protobuf.ProtocolStringList getMethodsList() { + public com.google.protobuf.ProtocolStringList + getMethodsList() { return methods_.getUnmodifiableView(); } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of methods. */ public int getMethodsCount() { return methods_.size(); } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The methods at the given index. */ @@ -4634,95 +4043,85 @@ public java.lang.String getMethods(int index) { return methods_.get(index); } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the methods at the given index. */ - public com.google.protobuf.ByteString getMethodsBytes(int index) { + public com.google.protobuf.ByteString + getMethodsBytes(int index) { return methods_.getByteString(index); } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The methods to set. * @return This builder for chaining. */ - public Builder setMethods(int index, java.lang.String value) { + public Builder setMethods( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); + throw new NullPointerException(); + } + ensureMethodsIsMutable(); methods_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The methods to add. * @return This builder for chaining. */ - public Builder addMethods(java.lang.String value) { + public Builder addMethods( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); + throw new NullPointerException(); + } + ensureMethodsIsMutable(); methods_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The methods to add. * @return This builder for chaining. */ - public Builder addAllMethods(java.lang.Iterable values) { + public Builder addAllMethods( + java.lang.Iterable values) { ensureMethodsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, methods_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, methods_); onChanged(); return this; } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMethods() { @@ -4732,108 +4131,76 @@ public Builder clearMethods() { return this; } /** - * - * *
          * Optional. A list of HTTP methods to match. At least one method should
          * match. Should not be set for gRPC services.
          * 
* * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the methods to add. * @return This builder for chaining. */ - public Builder addMethodsBytes(com.google.protobuf.ByteString value) { + public Builder addMethodsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMethodsIsMutable(); methods_.add(value); onChanged(); return this; } - private com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - httpHeaderMatch_; + private com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch httpHeaderMatch_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder> - httpHeaderMatchBuilder_; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder> httpHeaderMatchBuilder_; /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpHeaderMatch field is set. */ public boolean hasHttpHeaderMatch() { return httpHeaderMatchBuilder_ != null || httpHeaderMatch_ != null; } /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpHeaderMatch. */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - getHttpHeaderMatch() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getHttpHeaderMatch() { if (httpHeaderMatchBuilder_ == null) { - return httpHeaderMatch_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance() - : httpHeaderMatch_; + return httpHeaderMatch_ == null ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance() : httpHeaderMatch_; } else { return httpHeaderMatchBuilder_.getMessage(); } } /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setHttpHeaderMatch( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - value) { + public Builder setHttpHeaderMatch(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch value) { if (httpHeaderMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4847,24 +4214,18 @@ public Builder setHttpHeaderMatch( return this; } /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHttpHeaderMatch( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder - builderForValue) { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder builderForValue) { if (httpHeaderMatchBuilder_ == null) { httpHeaderMatch_ = builderForValue.build(); onChanged(); @@ -4875,31 +4236,21 @@ public Builder setHttpHeaderMatch( return this; } /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeHttpHeaderMatch( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch - value) { + public Builder mergeHttpHeaderMatch(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch value) { if (httpHeaderMatchBuilder_ == null) { if (httpHeaderMatch_ != null) { httpHeaderMatch_ = - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.newBuilder(httpHeaderMatch_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.newBuilder(httpHeaderMatch_).mergeFrom(value).buildPartial(); } else { httpHeaderMatch_ = value; } @@ -4911,19 +4262,15 @@ public Builder mergeHttpHeaderMatch( return this; } /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHttpHeaderMatch() { if (httpHeaderMatchBuilder_ == null) { @@ -4937,92 +4284,64 @@ public Builder clearHttpHeaderMatch() { return this; } /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder - getHttpHeaderMatchBuilder() { - + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder getHttpHeaderMatchBuilder() { + onChanged(); return getHttpHeaderMatchFieldBuilder().getBuilder(); } /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder - getHttpHeaderMatchOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder getHttpHeaderMatchOrBuilder() { if (httpHeaderMatchBuilder_ != null) { return httpHeaderMatchBuilder_.getMessageOrBuilder(); } else { - return httpHeaderMatch_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.getDefaultInstance() - : httpHeaderMatch_; + return httpHeaderMatch_ == null ? + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.getDefaultInstance() : httpHeaderMatch_; } } /** - * - * *
-         * Optional. Match against key:value pair in http header. Provides a flexible match
-         * based on HTTP headers, for potentially advanced use cases. At least one
-         * header should match. Avoid using header matches to make authorization
-         * decisions unless there is a strong guarantee that requests arrive
-         * through a trusted client or proxy.
+         * Optional. Match against key:value pair in http header. Provides a
+         * flexible match based on HTTP headers, for potentially advanced use
+         * cases. At least one header should match. Avoid using header matches to
+         * make authorization decisions unless there is a strong guarantee that
+         * requests arrive through a trusted client or proxy.
          * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder> + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder> getHttpHeaderMatchFieldBuilder() { if (httpHeaderMatchBuilder_ == null) { - httpHeaderMatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatch.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .HttpHeaderMatchOrBuilder>( - getHttpHeaderMatch(), getParentForChildren(), isClean()); + httpHeaderMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder>( + getHttpHeaderMatch(), + getParentForChildren(), + isClean()); httpHeaderMatch_ = null; } return httpHeaderMatchBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5035,34 +4354,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination) - private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .Destination - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination(); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Destination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Destination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Destination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Destination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5074,222 +4389,168 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SOURCES_FIELD_NUMBER = 1; - private java.util.List - sources_; + private java.util.List sources_; /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getSourcesList() { + public java.util.List getSourcesList() { return sources_; } /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> + public java.util.List getSourcesOrBuilderList() { return sources_; } /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getSourcesCount() { return sources_.size(); } /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source getSources( - int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source getSources(int index) { return sources_.get(index); } /** - * - * *
-     * Optional. List of attributes for the traffic source. All of the sources must match.
-     * A source is a match if both principals and ip_blocks match. If not set,
-     * the action specified in the 'action' field will be applied without any
-     * rule checks for the source.
+     * Optional. List of attributes for the traffic source. All of the sources
+     * must match. A source is a match if both principals and ip_blocks match.
+     * If not set, the action specified in the 'action' field will be applied
+     * without any rule checks for the source.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder - getSourcesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder( + int index) { return sources_.get(index); } public static final int DESTINATIONS_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> - destinations_; + private java.util.List destinations_; /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> - getDestinationsList() { + public java.util.List getDestinationsList() { return destinations_; } /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .DestinationOrBuilder> + public java.util.List getDestinationsOrBuilderList() { return destinations_; } /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getDestinationsCount() { return destinations_.size(); } /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - getDestinations(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination getDestinations(int index) { return destinations_.get(index); } /** - * - * *
-     * Optional. List of attributes for the traffic destination. All of the destinations
-     * must match. A destination is a match if a request matches all the
-     * specified hosts, ports, methods and headers. If not set, the
+     * Optional. List of attributes for the traffic destination. All of the
+     * destinations must match. A destination is a match if a request matches
+     * all the specified hosts, ports, methods and headers. If not set, the
      * action specified in the 'action' field will be applied without any rule
      * checks for the destination.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder - getDestinationsOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder( + int index) { return destinations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5301,7 +4562,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } @@ -5318,10 +4580,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sources_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, destinations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, destinations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5331,16 +4595,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule other = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) obj; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule other = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) obj; - if (!getSourcesList().equals(other.getSourcesList())) return false; - if (!getDestinationsList().equals(other.getDestinationsList())) return false; + if (!getSourcesList() + .equals(other.getSourcesList())) return false; + if (!getDestinationsList() + .equals(other.getDestinationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5366,95 +4631,87 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule 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.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - 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.networksecurity.v1beta1.AuthorizationPolicy.Rule 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.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5464,52 +4721,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specification of rules.
      * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.class, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder.class); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSourcesFieldBuilder(); getDestinationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5529,16 +4780,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.getDefaultInstance(); } @java.lang.Override @@ -5552,8 +4801,7 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule build() @java.lang.Override public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule buildPartial() { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule result = - new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule(this); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule result = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5581,53 +4829,46 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.AuthorizationPolicy.Rule) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule other) { - if (other - == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule other) { + if (other == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.getDefaultInstance()) return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { @@ -5646,10 +4887,9 @@ public Builder mergeFrom( sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); - sourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSourcesFieldBuilder() - : null; + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } @@ -5673,10 +4913,9 @@ public Builder mergeFrom( destinationsBuilder_ = null; destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); - destinationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDestinationsFieldBuilder() - : null; + destinationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDestinationsFieldBuilder() : null; } else { destinationsBuilder_.addAllMessages(other.destinations_); } @@ -5701,9 +4940,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5712,46 +4949,31 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source> - sources_ = java.util.Collections.emptyList(); - + private java.util.List sources_ = + java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sources_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source>( - sources_); + sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> - sourcesBuilder_; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> sourcesBuilder_; /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source> - getSourcesList() { + public java.util.List getSourcesList() { if (sourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(sources_); } else { @@ -5759,18 +4981,14 @@ private void ensureSourcesIsMutable() { } } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getSourcesCount() { if (sourcesBuilder_ == null) { @@ -5780,21 +4998,16 @@ public int getSourcesCount() { } } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source getSources( - int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source getSources(int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { @@ -5802,22 +5015,17 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source } } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSources( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source value) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5831,23 +5039,17 @@ public Builder setSources( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSources( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder - builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.set(index, builderForValue.build()); @@ -5858,21 +5060,16 @@ public Builder setSources( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addSources( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source value) { + public Builder addSources(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5886,22 +5083,17 @@ public Builder addSources( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSources( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source value) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5915,22 +5107,17 @@ public Builder addSources( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSources( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder - builderForValue) { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(builderForValue.build()); @@ -5941,23 +5128,17 @@ public Builder addSources( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSources( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder - builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(index, builderForValue.build()); @@ -5968,27 +5149,21 @@ public Builder addSources( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllSources( - java.lang.Iterable< - ? extends - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source> - values) { + java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); @@ -5996,18 +5171,14 @@ public Builder addAllSources( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSources() { if (sourcesBuilder_ == null) { @@ -6020,18 +5191,14 @@ public Builder clearSources() { return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeSources(int index) { if (sourcesBuilder_ == null) { @@ -6044,63 +5211,48 @@ public Builder removeSources(int index) { return this; } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder - getSourcesBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder getSourcesBuilder( + int index) { return getSourcesFieldBuilder().getBuilder(index); } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder - getSourcesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder( + int index) { if (sourcesBuilder_ == null) { - return sources_.get(index); - } else { + return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> - getSourcesOrBuilderList() { + public java.util.List + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -6108,125 +5260,87 @@ public Builder removeSources(int index) { } } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder - addSourcesBuilder() { - return getSourcesFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder addSourcesBuilder() { + return getSourcesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.getDefaultInstance()); } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder - addSourcesBuilder(int index) { - return getSourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder addSourcesBuilder( + int index) { + return getSourcesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.getDefaultInstance()); } /** - * - * *
-       * Optional. List of attributes for the traffic source. All of the sources must match.
-       * A source is a match if both principals and ip_blocks match. If not set,
-       * the action specified in the 'action' field will be applied without any
-       * rule checks for the source.
+       * Optional. List of attributes for the traffic source. All of the sources
+       * must match. A source is a match if both principals and ip_blocks match.
+       * If not set, the action specified in the 'action' field will be applied
+       * without any rule checks for the source.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder> - getSourcesBuilderList() { + public java.util.List + getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { - sourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .SourceOrBuilder>( - sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder>( + sources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); sources_ = null; } return sourcesBuilder_; } - private java.util.List< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> - destinations_ = java.util.Collections.emptyList(); - + private java.util.List destinations_ = + java.util.Collections.emptyList(); private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - destinations_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination>( - destinations_); + destinations_ = new java.util.ArrayList(destinations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .DestinationOrBuilder> - destinationsBuilder_; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder> destinationsBuilder_; /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> - getDestinationsList() { + public java.util.List getDestinationsList() { if (destinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(destinations_); } else { @@ -6234,19 +5348,15 @@ private void ensureDestinationsIsMutable() { } } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getDestinationsCount() { if (destinationsBuilder_ == null) { @@ -6256,22 +5366,17 @@ public int getDestinationsCount() { } } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - getDestinations(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination getDestinations(int index) { if (destinationsBuilder_ == null) { return destinations_.get(index); } else { @@ -6279,23 +5384,18 @@ public int getDestinationsCount() { } } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDestinations( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination value) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6309,24 +5409,18 @@ public Builder setDestinations( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDestinations( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder - builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.set(index, builderForValue.build()); @@ -6337,22 +5431,17 @@ public Builder setDestinations( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addDestinations( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination value) { + public Builder addDestinations(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6366,23 +5455,18 @@ public Builder addDestinations( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addDestinations( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination value) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6396,23 +5480,18 @@ public Builder addDestinations( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addDestinations( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder - builderForValue) { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(builderForValue.build()); @@ -6423,24 +5502,18 @@ public Builder addDestinations( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addDestinations( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder - builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(index, builderForValue.build()); @@ -6451,28 +5524,22 @@ public Builder addDestinations( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllDestinations( - java.lang.Iterable< - ? extends - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> - values) { + java.lang.Iterable values) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, destinations_); onChanged(); } else { destinationsBuilder_.addAllMessages(values); @@ -6480,19 +5547,15 @@ public Builder addAllDestinations( return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDestinations() { if (destinationsBuilder_ == null) { @@ -6505,19 +5568,15 @@ public Builder clearDestinations() { return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeDestinations(int index) { if (destinationsBuilder_ == null) { @@ -6530,67 +5589,51 @@ public Builder removeDestinations(int index) { return this; } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder - getDestinationsBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder getDestinationsBuilder( + int index) { return getDestinationsFieldBuilder().getBuilder(index); } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder - getDestinationsOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder( + int index) { if (destinationsBuilder_ == null) { - return destinations_.get(index); - } else { + return destinations_.get(index); } else { return destinationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .DestinationOrBuilder> - getDestinationsOrBuilderList() { + public java.util.List + getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { @@ -6598,85 +5641,57 @@ public Builder removeDestinations(int index) { } } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder - addDestinationsBuilder() { - return getDestinationsFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder addDestinationsBuilder() { + return getDestinationsFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.getDefaultInstance()); } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder - addDestinationsBuilder(int index) { - return getDestinationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder addDestinationsBuilder( + int index) { + return getDestinationsFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.getDefaultInstance()); } /** - * - * *
-       * Optional. List of attributes for the traffic destination. All of the destinations
-       * must match. A destination is a match if a request matches all the
-       * specified hosts, ports, methods and headers. If not set, the
+       * Optional. List of attributes for the traffic destination. All of the
+       * destinations must match. A destination is a match if a request matches
+       * all the specified hosts, ports, methods and headers. If not set, the
        * action specified in the 'action' field will be applied without any rule
        * checks for the destination.
        * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder> - getDestinationsBuilderList() { + public java.util.List + getDestinationsBuilderList() { return getDestinationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .DestinationOrBuilder> + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder> getDestinationsFieldBuilder() { if (destinationsBuilder_ == null) { - destinationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination - .Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .DestinationOrBuilder>( + destinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder>( destinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6685,7 +5700,6 @@ public Builder removeDestinations(int index) { } return destinationsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6698,32 +5712,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule) - private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule(); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Rule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Rule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6735,24 +5747,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the AuthorizationPolicy resource. It matches pattern
    * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -6761,30 +5770,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the AuthorizationPolicy resource. It matches pattern
    * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6795,14 +5804,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -6811,29 +5817,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -6844,15 +5850,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -6860,15 +5862,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -6876,14 +5874,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -6893,15 +5888,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -6909,15 +5900,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -6925,14 +5912,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -6940,23 +5924,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -6965,72 +5950,74 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -7040,146 +6027,113 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int ACTION_FIELD_NUMBER = 6; private int action_; /** - * - * *
    * Required. The action to take when a rule match is found. Possible values
    * are "ALLOW" or "DENY".
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
    * Required. The action to take when a rule match is found. Possible values
    * are "ALLOW" or "DENY".
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The action. */ - @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action getAction() { + @java.lang.Override public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action result = - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.valueOf(action_); - return result == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.UNRECOGNIZED - : result; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action result = com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.valueOf(action_); + return result == null ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.UNRECOGNIZED : result; } public static final int RULES_FIELD_NUMBER = 7; private java.util.List rules_; /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getRulesList() { + public java.util.List getRulesList() { return rules_; } /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> + public java.util.List getRulesOrBuilderList() { return rules_; } - /** - * - * + /** *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getRules(int index) { return rules_.get(index); } /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder - getRulesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder getRulesOrBuilder( + int index) { return rules_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7191,7 +6145,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -7204,11 +6159,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); - if (action_ - != com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.ACTION_UNSPECIFIED - .getNumber()) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); + if (action_ != com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(6, action_); } for (int i = 0; i < rules_.size(); i++) { @@ -7230,28 +6187,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); - } - if (action_ - != com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.ACTION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); + } + if (action_ != com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, action_); } for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, rules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7261,27 +6220,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy other = - (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy) obj; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy other = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (action_ != other.action_) return false; - if (!getRulesList().equals(other.getRulesList())) return false; + if (!getRulesList() + .equals(other.getRulesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7321,104 +6285,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy 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.networksecurity.v1beta1.AuthorizationPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * AuthorizationPolicy is a resource that specifies how a server
    * should authorize incoming connections. This resource in itself does
@@ -7428,43 +6384,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1beta1.AuthorizationPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.AuthorizationPolicy)
       com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.class,
-              com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder.class);
+              com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.class, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.newBuilder()
@@ -7472,17 +6428,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getRulesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -7515,14 +6471,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy
-        getDefaultInstanceForType() {
+    public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getDefaultInstanceForType() {
       return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance();
     }
 
@@ -7537,8 +6492,7 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy buildPartial() {
-      com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy result =
-          new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy(this);
+      com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy result = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.description_ = description_;
@@ -7572,39 +6526,38 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1beta1.AuthorizationPolicy) {
-        return mergeFrom((com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -7612,9 +6565,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy other) {
-      if (other
-          == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -7629,7 +6580,8 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationP
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.action_ != 0) {
         setActionValue(other.getActionValue());
       }
@@ -7651,10 +6603,9 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationP
             rulesBuilder_ = null;
             rules_ = other.rules_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            rulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRulesFieldBuilder()
-                    : null;
+            rulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRulesFieldBuilder() : null;
           } else {
             rulesBuilder_.addAllMessages(other.rules_);
           }
@@ -7679,8 +6630,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -7689,26 +6639,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -7717,22 +6664,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7740,64 +6686,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the AuthorizationPolicy resource. It matches pattern
      * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -7805,20 +6744,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -7827,21 +6764,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -7849,61 +6785,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -7911,58 +6840,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -7978,17 +6888,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -7999,21 +6906,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -8025,15 +6928,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -8047,64 +6946,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -8112,58 +6995,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -8179,17 +7043,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -8200,21 +7061,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -8226,15 +7083,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -8248,84 +7101,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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 com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -8337,73 +7175,74 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
-     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+     * Optional. Set of label tags associated with the AuthorizationPolicy
+     * resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
-     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+     * Optional. Set of label tags associated with the AuthorizationPolicy
+     * resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
-     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+     * Optional. Set of label tags associated with the AuthorizationPolicy
+     * resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
-     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+     * Optional. Set of label tags associated with the AuthorizationPolicy
+     * resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8411,207 +7250,173 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
-     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+     * Optional. Set of label tags associated with the AuthorizationPolicy
+     * resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
-     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+     * Optional. Set of label tags associated with the AuthorizationPolicy
+     * resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
-     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+     * Optional. Set of label tags associated with the AuthorizationPolicy
+     * resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private int action_ = 0; /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @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; onChanged(); return this; } /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The action. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action result = - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.valueOf(action_); - return result == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.UNRECOGNIZED - : result; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action result = com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.valueOf(action_); + return result == null ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action.UNRECOGNIZED : result; } /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action value) { + public Builder setAction(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action value) { if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The action to take when a rule match is found. Possible values
      * are "ALLOW" or "DENY".
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; } - private java.util.List - rules_ = java.util.Collections.emptyList(); - + private java.util.List rules_ = + java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - rules_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule>(rules_); + rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> - rulesBuilder_; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> rulesBuilder_; /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getRulesList() { + public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { @@ -8619,18 +7424,15 @@ private void ensureRulesIsMutable() { } } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public int getRulesCount() { if (rulesBuilder_ == null) { @@ -8640,18 +7442,15 @@ public int getRulesCount() { } } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getRules(int index) { if (rulesBuilder_ == null) { @@ -8661,18 +7460,15 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getRule } } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRules( int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule value) { @@ -8689,22 +7485,18 @@ public Builder setRules( return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRules( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); @@ -8715,21 +7507,17 @@ public Builder setRules( return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addRules( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule value) { + public Builder addRules(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8743,18 +7531,15 @@ public Builder addRules( return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addRules( int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule value) { @@ -8771,18 +7556,15 @@ public Builder addRules( return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addRules( com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder builderForValue) { @@ -8796,22 +7578,18 @@ public Builder addRules( return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addRules( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); @@ -8822,26 +7600,22 @@ public Builder addRules( return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllRules( - java.lang.Iterable< - ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule> - values) { + java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); @@ -8849,18 +7623,15 @@ public Builder addAllRules( return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRules() { if (rulesBuilder_ == null) { @@ -8873,18 +7644,15 @@ public Builder clearRules() { return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { @@ -8897,62 +7665,51 @@ public Builder removeRules(int index) { return this; } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder - getRulesBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder getRulesBuilder( + int index) { return getRulesFieldBuilder().getBuilder(index); } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder - getRulesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder getRulesOrBuilder( + int index) { if (rulesBuilder_ == null) { - return rules_.get(index); - } else { + return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> - getRulesOrBuilderList() { + public java.util.List + getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { @@ -8960,86 +7717,68 @@ public Builder removeRules(int index) { } } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder - addRulesBuilder() { - return getRulesFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.getDefaultInstance()); } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder - addRulesBuilder(int index) { - return getRulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule - .getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.getDefaultInstance()); } /** - * - * *
-     * Optional. List of rules to match. Note that at least one of the rules must match in
-     * order for the action specified in the 'action' field to be taken. A rule is
-     * a match if there is a matching source and destination. If left blank, the
-     * action specified in the `action` field will be applied on every request.
+     * Optional. List of rules to match. Note that at least one of the rules must
+     * match in order for the action specified in the 'action' field to be taken.
+     * A rule is a match if there is a matching source and destination. If left
+     * blank, the action specified in the `action` field will be applied on every
+     * request.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getRulesBuilderList() { + public java.util.List + getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { - rulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder>( - rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder>( + rules_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); rules_ = null; } return rulesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9049,13 +7788,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.AuthorizationPolicy) - private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy(); } @@ -9064,16 +7802,16 @@ public static com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthorizationPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthorizationPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizationPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthorizationPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9088,4 +7826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java similarity index 100% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java similarity index 55% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java index fb8ebbfd..496c8b7e 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java @@ -1,321 +1,250 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface AuthorizationPolicyOrBuilder - extends +public interface AuthorizationPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.AuthorizationPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the AuthorizationPolicy resource. It matches pattern
    * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the AuthorizationPolicy resource. It matches pattern
    * `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
-   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
+   * Optional. Set of label tags associated with the AuthorizationPolicy
+   * resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. The action to take when a rule match is found. Possible values
    * are "ALLOW" or "DENY".
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * Required. The action to take when a rule match is found. Possible values
    * are "ALLOW" or "DENY".
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The action. */ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action getAction(); /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getRulesList(); + java.util.List + getRulesList(); /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getRules(int index); /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getRulesCount(); /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> + java.util.List getRulesOrBuilderList(); /** - * - * *
-   * Optional. List of rules to match. Note that at least one of the rules must match in
-   * order for the action specified in the 'action' field to be taken. A rule is
-   * a match if there is a matching source and destination. If left blank, the
-   * action specified in the `action` field will be applied on every request.
+   * Optional. List of rules to match. Note that at least one of the rules must
+   * match in order for the action specified in the 'action' field to be taken.
+   * A rule is a match if there is a matching source and destination. If left
+   * blank, the action specified in the `action` field will be applied on every
+   * request.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder getRulesOrBuilder( int index); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyProto.java new file mode 100644 index 00000000..b1a334ac --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyProto.java @@ -0,0 +1,249 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/authorization_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public final class AuthorizationPolicyProto { + private AuthorizationPolicyProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/networksecurity/v1beta1/a" + + "uthorization_policy.proto\022$google.cloud." + + "networksecurity.v1beta1\032\037google/api/fiel" + + "d_behavior.proto\032\031google/api/resource.pr" + + "oto\032 google/protobuf/field_mask.proto\032\037g" + + "oogle/protobuf/timestamp.proto\"\317\t\n\023Autho" + + "rizationPolicy\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013des" + + "cription\030\002 \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022Z\n\006labels\030\005 \003(\0132E.google.cloud.n" + + "etworksecurity.v1beta1.AuthorizationPoli" + + "cy.LabelsEntryB\003\340A\001\022U\n\006action\030\006 \001(\0162@.go" + + "ogle.cloud.networksecurity.v1beta1.Autho" + + "rizationPolicy.ActionB\003\340A\002\022R\n\005rules\030\007 \003(" + + "\0132>.google.cloud.networksecurity.v1beta1" + + ".AuthorizationPolicy.RuleB\003\340A\001\032\240\004\n\004Rule\022" + + "[\n\007sources\030\001 \003(\0132E.google.cloud.networks" + + "ecurity.v1beta1.AuthorizationPolicy.Rule" + + ".SourceB\003\340A\001\022e\n\014destinations\030\002 \003(\0132J.goo" + + "gle.cloud.networksecurity.v1beta1.Author" + + "izationPolicy.Rule.DestinationB\003\340A\001\0329\n\006S" + + "ource\022\027\n\nprincipals\030\001 \003(\tB\003\340A\001\022\026\n\tip_blo" + + "cks\030\002 \003(\tB\003\340A\001\032\230\002\n\013Destination\022\022\n\005hosts\030" + + "\001 \003(\tB\003\340A\002\022\022\n\005ports\030\002 \003(\rB\003\340A\002\022\024\n\007method" + + "s\030\004 \003(\tB\003\340A\001\022z\n\021http_header_match\030\005 \001(\0132" + + "Z.google.cloud.networksecurity.v1beta1.A" + + "uthorizationPolicy.Rule.Destination.Http" + + "HeaderMatchB\003\340A\001\032O\n\017HttpHeaderMatch\022\032\n\013r" + + "egex_match\030\002 \001(\tB\003\340A\002H\000\022\030\n\013header_name\030\001" + + " \001(\tB\003\340A\002B\006\n\004type\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\006Action\022\026\n\022AC" + + "TION_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020\002:" + + "\216\001\352A\212\001\n2networksecurity.googleapis.com/A" + + "uthorizationPolicy\022Tprojects/{project}/l" + + "ocations/{location}/authorizationPolicie" + + "s/{authorization_policy}\"\204\001\n ListAuthori" + + "zationPoliciesRequest\0229\n\006parent\030\001 \001(\tB)\340" + + "A\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\"" + + "\227\001\n!ListAuthorizationPoliciesResponse\022Y\n" + + "\026authorization_policies\030\001 \003(\01329.google.c" + + "loud.networksecurity.v1beta1.Authorizati" + + "onPolicy\022\027\n\017next_page_token\030\002 \001(\t\"i\n\035Get" + + "AuthorizationPolicyRequest\022H\n\004name\030\001 \001(\t" + + "B:\340A\002\372A4\n2networksecurity.googleapis.com" + + "/AuthorizationPolicy\"\362\001\n CreateAuthoriza" + + "tionPolicyRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A" + + "4\0222networksecurity.googleapis.com/Author" + + "izationPolicy\022$\n\027authorization_policy_id" + + "\030\002 \001(\tB\003\340A\002\022\\\n\024authorization_policy\030\003 \001(" + + "\01329.google.cloud.networksecurity.v1beta1" + + ".AuthorizationPolicyB\003\340A\002\"\266\001\n UpdateAuth" + + "orizationPolicyRequest\0224\n\013update_mask\030\001 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\\\n\024" + + "authorization_policy\030\002 \001(\01329.google.clou" + + "d.networksecurity.v1beta1.AuthorizationP" + + "olicyB\003\340A\002\"l\n DeleteAuthorizationPolicyR" + + "equest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2networksec" + + "urity.googleapis.com/AuthorizationPolicy" + + "B\223\002\n(com.google.cloud.networksecurity.v1" + + "beta1B\030AuthorizationPolicyProtoP\001ZSgoogl" + + "e.golang.org/genproto/googleapis/cloud/n" + + "etworksecurity/v1beta1;networksecurity\252\002" + + "$Google.Cloud.NetworkSecurity.V1Beta1\312\002$" + + "Google\\Cloud\\NetworkSecurity\\V1beta1\352\002\'G" + + "oogle::Cloud::NetworkSecurity::V1beta1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Labels", "Action", "Rules", }); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor = + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor, + new java.lang.String[] { "Sources", "Destinations", }); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor = + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor, + new java.lang.String[] { "Principals", "IpBlocks", }); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor = + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor, + new java.lang.String[] { "Hosts", "Ports", "Methods", "HttpHeaderMatch", }); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor = + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor, + new java.lang.String[] { "RegexMatch", "HeaderName", "Type", }); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor, + new java.lang.String[] { "AuthorizationPolicies", "NextPageToken", }); + internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor, + new java.lang.String[] { "Parent", "AuthorizationPolicyId", "AuthorizationPolicy", }); + internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor, + new java.lang.String[] { "UpdateMask", "AuthorizationPolicy", }); + internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java similarity index 65% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java index 315be8ba..674a6c70 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/tls.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Specification of certificate provider. Defines the mechanism to obtain the
  * certificate and private key for peer to peer authentication.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1beta1.CertificateProvider}
  */
-public final class CertificateProvider extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateProvider extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.CertificateProvider)
     CertificateProviderOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateProvider.newBuilder() to construct.
   private CertificateProvider(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private CertificateProvider() {}
+  private CertificateProvider() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateProvider();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateProvider(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,52 +53,41 @@ private CertificateProvider(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder subBuilder = null;
-              if (typeCase_ == 2) {
-                subBuilder =
-                    ((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 2;
-              break;
+          case 18: {
+            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder subBuilder = null;
+            if (typeCase_ == 2) {
+              subBuilder = ((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_).toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder
-                  subBuilder = null;
-              if (typeCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_)
-                        .toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 3;
-              break;
+            type_ =
+                input.readMessage(com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            typeCase_ = 2;
+            break;
+          }
+          case 26: {
+            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder subBuilder = null;
+            if (typeCase_ == 3) {
+              subBuilder = ((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_).toBuilder();
+            }
+            type_ =
+                input.readMessage(com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_);
+              type_ = subBuilder.buildPartial();
             }
+            typeCase_ = 3;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -122,40 +95,35 @@ private CertificateProvider(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1beta1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1beta1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1beta1.CertificateProvider.class,
-            com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder.class);
+            com.google.cloud.networksecurity.v1beta1.CertificateProvider.class, com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder.class);
   }
 
   private int typeCase_ = 0;
   private java.lang.Object type_;
-
   public enum TypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GRPC_ENDPOINT(2),
     CERTIFICATE_PROVIDER_INSTANCE(3),
     TYPE_NOT_SET(0);
     private final int value;
-
     private TypeCase(int value) {
       this.value = value;
     }
@@ -171,37 +139,31 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return GRPC_ENDPOINT;
-        case 3:
-          return CERTIFICATE_PROVIDER_INSTANCE;
-        case 0:
-          return TYPE_NOT_SET;
-        default:
-          return null;
+        case 2: return GRPC_ENDPOINT;
+        case 3: return CERTIFICATE_PROVIDER_INSTANCE;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase getTypeCase() {
-    return TypeCase.forNumber(typeCase_);
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
   }
 
   public static final int GRPC_ENDPOINT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
    * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ @java.lang.Override @@ -209,27 +171,22 @@ public boolean hasGrpcEndpoint() { return typeCase_ == 2; } /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
    * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint() { if (typeCase_ == 2) { - return (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_; + return (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_; } return com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance(); } /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
@@ -240,25 +197,20 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint() {
   @java.lang.Override
   public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder() {
     if (typeCase_ == 2) {
-      return (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_;
+       return (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_;
     }
     return com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance();
   }
 
   public static final int CERTIFICATE_PROVIDER_INSTANCE_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ @java.lang.Override @@ -266,54 +218,40 @@ public boolean hasCertificateProviderInstance() { return typeCase_ == 3; } /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - getCertificateProviderInstance() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getCertificateProviderInstance() { if (typeCase_ == 3) { - return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; + return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder() { if (typeCase_ == 3) { - return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; + return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,13 +263,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 2) { output.writeMessage(2, (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_); } if (typeCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_); + output.writeMessage(3, (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_); } unknownFields.writeTo(output); } @@ -343,14 +281,12 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_); } if (typeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,22 +296,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.CertificateProvider)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.CertificateProvider other = - (com.google.cloud.networksecurity.v1beta1.CertificateProvider) obj; + com.google.cloud.networksecurity.v1beta1.CertificateProvider other = (com.google.cloud.networksecurity.v1beta1.CertificateProvider) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 2: - if (!getGrpcEndpoint().equals(other.getGrpcEndpoint())) return false; + if (!getGrpcEndpoint() + .equals(other.getGrpcEndpoint())) return false; break; case 3: - if (!getCertificateProviderInstance().equals(other.getCertificateProviderInstance())) - return false; + if (!getCertificateProviderInstance() + .equals(other.getCertificateProviderInstance())) return false; break; case 0: default: @@ -409,104 +345,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider 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.networksecurity.v1beta1.CertificateProvider parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProvider parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.CertificateProvider prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.CertificateProvider prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specification of certificate provider. Defines the mechanism to obtain the
    * certificate and private key for peer to peer authentication.
@@ -514,23 +442,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1beta1.CertificateProvider}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.CertificateProvider)
       com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1beta1.CertificateProvider.class,
-              com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder.class);
+              com.google.cloud.networksecurity.v1beta1.CertificateProvider.class, com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1beta1.CertificateProvider.newBuilder()
@@ -538,15 +464,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -556,14 +483,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProvider_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networksecurity.v1beta1.CertificateProvider
-        getDefaultInstanceForType() {
+    public com.google.cloud.networksecurity.v1beta1.CertificateProvider getDefaultInstanceForType() {
       return com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance();
     }
 
@@ -578,8 +504,7 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProvider build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1beta1.CertificateProvider buildPartial() {
-      com.google.cloud.networksecurity.v1beta1.CertificateProvider result =
-          new com.google.cloud.networksecurity.v1beta1.CertificateProvider(this);
+      com.google.cloud.networksecurity.v1beta1.CertificateProvider result = new com.google.cloud.networksecurity.v1beta1.CertificateProvider(this);
       if (typeCase_ == 2) {
         if (grpcEndpointBuilder_ == null) {
           result.type_ = type_;
@@ -603,39 +528,38 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProvider buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1beta1.CertificateProvider) {
-        return mergeFrom((com.google.cloud.networksecurity.v1beta1.CertificateProvider) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1beta1.CertificateProvider)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -643,24 +567,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.CertificateProvider other) {
-      if (other
-          == com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance()) return this;
       switch (other.getTypeCase()) {
-        case GRPC_ENDPOINT:
-          {
-            mergeGrpcEndpoint(other.getGrpcEndpoint());
-            break;
-          }
-        case CERTIFICATE_PROVIDER_INSTANCE:
-          {
-            mergeCertificateProviderInstance(other.getCertificateProviderInstance());
-            break;
-          }
-        case TYPE_NOT_SET:
-          {
-            break;
-          }
+        case GRPC_ENDPOINT: {
+          mergeGrpcEndpoint(other.getGrpcEndpoint());
+          break;
+        }
+        case CERTIFICATE_PROVIDER_INSTANCE: {
+          mergeCertificateProviderInstance(other.getCertificateProviderInstance());
+          break;
+        }
+        case TYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -681,8 +600,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1beta1.CertificateProvider) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1beta1.CertificateProvider) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -691,12 +609,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int typeCase_ = 0;
     private java.lang.Object type_;
-
-    public TypeCase getTypeCase() {
-      return TypeCase.forNumber(typeCase_);
+    public TypeCase
+        getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
     }
 
     public Builder clearType() {
@@ -706,21 +624,16 @@ public Builder clearType() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint,
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder,
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder>
-        grpcEndpointBuilder_;
+        com.google.cloud.networksecurity.v1beta1.GrpcEndpoint, com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder> grpcEndpointBuilder_;
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
      * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ @java.lang.Override @@ -728,15 +641,12 @@ public boolean hasGrpcEndpoint() { return typeCase_ == 2; } /** - * - * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
      * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ @java.lang.Override @@ -754,8 +664,6 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint() { } } /** - * - * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -777,8 +685,6 @@ public Builder setGrpcEndpoint(com.google.cloud.networksecurity.v1beta1.GrpcEndp
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -798,8 +704,6 @@ public Builder setGrpcEndpoint(
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -809,14 +713,10 @@ public Builder setGrpcEndpoint(
      */
     public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1beta1.GrpcEndpoint value) {
       if (grpcEndpointBuilder_ == null) {
-        if (typeCase_ == 2
-            && type_
-                != com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance()) {
-          type_ =
-              com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.newBuilder(
-                      (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (typeCase_ == 2 &&
+            type_ != com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance()) {
+          type_ = com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.newBuilder((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_)
+              .mergeFrom(value).buildPartial();
         } else {
           type_ = value;
         }
@@ -832,8 +732,6 @@ public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1beta1.GrpcEn
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -858,8 +756,6 @@ public Builder clearGrpcEndpoint() {
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -871,8 +767,6 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder getGrpcEndp
       return getGrpcEndpointFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -881,8 +775,7 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder getGrpcEndp
      * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2;
      */
     @java.lang.Override
-    public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder
-        getGrpcEndpointOrBuilder() {
+    public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder() {
       if ((typeCase_ == 2) && (grpcEndpointBuilder_ != null)) {
         return grpcEndpointBuilder_.getMessageOrBuilder();
       } else {
@@ -893,8 +786,6 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder getGrpcEndp
       }
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -903,48 +794,34 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder getGrpcEndp
      * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint,
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder,
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder>
+        com.google.cloud.networksecurity.v1beta1.GrpcEndpoint, com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder> 
         getGrpcEndpointFieldBuilder() {
       if (grpcEndpointBuilder_ == null) {
         if (!(typeCase_ == 2)) {
           type_ = com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance();
         }
-        grpcEndpointBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.networksecurity.v1beta1.GrpcEndpoint,
-                com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder,
-                com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder>(
+        grpcEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint, com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder>(
                 (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_,
                 getParentForChildren(),
                 isClean());
         type_ = null;
       }
       typeCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return grpcEndpointBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance,
-            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder,
-            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder>
-        certificateProviderInstanceBuilder_;
+        com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder> certificateProviderInstanceBuilder_;
     /**
-     *
-     *
      * 
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ @java.lang.Override @@ -952,52 +829,39 @@ public boolean hasCertificateProviderInstance() { return typeCase_ == 3; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - getCertificateProviderInstance() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getCertificateProviderInstance() { if (certificateProviderInstanceBuilder_ == null) { if (typeCase_ == 3) { return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } else { if (typeCase_ == 3) { return certificateProviderInstanceBuilder_.getMessage(); } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ - public Builder setCertificateProviderInstance( - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance value) { + public Builder setCertificateProviderInstance(com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance value) { if (certificateProviderInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1011,21 +875,16 @@ public Builder setCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ public Builder setCertificateProviderInstance( - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder - builderForValue) { + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder builderForValue) { if (certificateProviderInstanceBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -1036,30 +895,20 @@ public Builder setCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ - public Builder mergeCertificateProviderInstance( - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance value) { + public Builder mergeCertificateProviderInstance(com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance value) { if (certificateProviderInstanceBuilder_ == null) { - if (typeCase_ == 3 - && type_ - != com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance()) { - type_ = - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.newBuilder( - (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 3 && + type_ != com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance()) { + type_ = com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.newBuilder((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1075,17 +924,13 @@ public Builder mergeCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ public Builder clearCertificateProviderInstance() { if (certificateProviderInstanceBuilder_ == null) { @@ -1104,90 +949,67 @@ public Builder clearCertificateProviderInstance() { return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder - getCertificateProviderInstanceBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder getCertificateProviderInstanceBuilder() { return getCertificateProviderInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder() { if ((typeCase_ == 3) && (certificateProviderInstanceBuilder_ != null)) { return certificateProviderInstanceBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 3) { return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder> + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder> getCertificateProviderInstanceFieldBuilder() { if (certificateProviderInstanceBuilder_ == null) { if (!(typeCase_ == 3)) { - type_ = - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + type_ = com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } - certificateProviderInstanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder>( + certificateProviderInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder>( (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; - onChanged(); - ; + onChanged();; return certificateProviderInstanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1197,13 +1019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.CertificateProvider) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.CertificateProvider) - private static final com.google.cloud.networksecurity.v1beta1.CertificateProvider - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.CertificateProvider DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.CertificateProvider(); } @@ -1212,16 +1033,16 @@ public static com.google.cloud.networksecurity.v1beta1.CertificateProvider getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateProvider parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateProvider(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateProvider(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1236,4 +1057,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.CertificateProvider getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java similarity index 62% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java index b793da92..1daa93d7 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/tls.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Specification of a TLS certificate provider instance. Workloads may have one
  * or more CertificateProvider instances (plugins) and one of them is enabled
@@ -30,31 +13,31 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1beta1.CertificateProviderInstance}
  */
-public final class CertificateProviderInstance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateProviderInstance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.CertificateProviderInstance)
     CertificateProviderInstanceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateProviderInstance.newBuilder() to construct.
   private CertificateProviderInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateProviderInstance() {
     pluginInstance_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateProviderInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateProviderInstance(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,20 +56,19 @@ private CertificateProviderInstance(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              pluginInstance_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            pluginInstance_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,41 +76,36 @@ private CertificateProviderInstance(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1beta1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1beta1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.class,
-            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder.class);
+            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.class, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder.class);
   }
 
   public static final int PLUGIN_INSTANCE_FIELD_NUMBER = 1;
   private volatile java.lang.Object pluginInstance_;
   /**
-   *
-   *
    * 
-   * Required. Plugin instance name, used to locate and load CertificateProvider instance
-   * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-   * Authority Service certificate provider instance.
+   * Required. Plugin instance name, used to locate and load CertificateProvider
+   * instance configuration. Set to "google_cloud_private_spiffe" to use
+   * Certificate Authority Service certificate provider instance.
    * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pluginInstance. */ @java.lang.Override @@ -137,31 +114,31 @@ public java.lang.String getPluginInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pluginInstance_ = s; return s; } } /** - * - * *
-   * Required. Plugin instance name, used to locate and load CertificateProvider instance
-   * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-   * Authority Service certificate provider instance.
+   * Required. Plugin instance name, used to locate and load CertificateProvider
+   * instance configuration. Set to "google_cloud_private_spiffe" to use
+   * Certificate Authority Service certificate provider instance.
    * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pluginInstance. */ @java.lang.Override - public com.google.protobuf.ByteString getPluginInstanceBytes() { + public com.google.protobuf.ByteString + getPluginInstanceBytes() { java.lang.Object ref = pluginInstance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pluginInstance_ = b; return b; } else { @@ -170,7 +147,6 @@ public com.google.protobuf.ByteString getPluginInstanceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pluginInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pluginInstance_); } @@ -206,15 +183,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance other = - (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) obj; + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance other = (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) obj; - if (!getPluginInstance().equals(other.getPluginInstance())) return false; + if (!getPluginInstance() + .equals(other.getPluginInstance())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,105 +211,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance 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.networksecurity.v1beta1.CertificateProviderInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - 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.networksecurity.v1beta1.CertificateProviderInstance 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.networksecurity.v1beta1.CertificateProviderInstance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specification of a TLS certificate provider instance. Workloads may have one
    * or more CertificateProvider instances (plugins) and one of them is enabled
@@ -342,40 +310,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1beta1.CertificateProviderInstance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.CertificateProviderInstance)
       com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.class,
-              com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder.class);
+              com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.class, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.newBuilder()
+    // Construct using com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -385,16 +351,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_CertificateProviderInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance
-        getDefaultInstanceForType() {
-      return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance
-          .getDefaultInstance();
+    public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getDefaultInstanceForType() {
+      return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -408,8 +372,7 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance buil
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance buildPartial() {
-      com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance result =
-          new com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance(this);
+      com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance result = new com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance(this);
       result.pluginInstance_ = pluginInstance_;
       onBuilt();
       return result;
@@ -419,51 +382,46 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance buil
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1beta1.CertificateProviderInstance) {
-        return mergeFrom(
-            (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance other) {
-      if (other
-          == com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance other) {
+      if (other == com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance()) return this;
       if (!other.getPluginInstance().isEmpty()) {
         pluginInstance_ = other.pluginInstance_;
         onChanged();
@@ -487,9 +445,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -501,22 +457,20 @@ public Builder mergeFrom(
 
     private java.lang.Object pluginInstance_ = "";
     /**
-     *
-     *
      * 
-     * Required. Plugin instance name, used to locate and load CertificateProvider instance
-     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-     * Authority Service certificate provider instance.
+     * Required. Plugin instance name, used to locate and load CertificateProvider
+     * instance configuration. Set to "google_cloud_private_spiffe" to use
+     * Certificate Authority Service certificate provider instance.
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pluginInstance. */ public java.lang.String getPluginInstance() { java.lang.Object ref = pluginInstance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pluginInstance_ = s; return s; @@ -525,23 +479,22 @@ public java.lang.String getPluginInstance() { } } /** - * - * *
-     * Required. Plugin instance name, used to locate and load CertificateProvider instance
-     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-     * Authority Service certificate provider instance.
+     * Required. Plugin instance name, used to locate and load CertificateProvider
+     * instance configuration. Set to "google_cloud_private_spiffe" to use
+     * Certificate Authority Service certificate provider instance.
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pluginInstance. */ - public com.google.protobuf.ByteString getPluginInstanceBytes() { + public com.google.protobuf.ByteString + getPluginInstanceBytes() { java.lang.Object ref = pluginInstance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pluginInstance_ = b; return b; } else { @@ -549,74 +502,67 @@ public com.google.protobuf.ByteString getPluginInstanceBytes() { } } /** - * - * *
-     * Required. Plugin instance name, used to locate and load CertificateProvider instance
-     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-     * Authority Service certificate provider instance.
+     * Required. Plugin instance name, used to locate and load CertificateProvider
+     * instance configuration. Set to "google_cloud_private_spiffe" to use
+     * Certificate Authority Service certificate provider instance.
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The pluginInstance to set. * @return This builder for chaining. */ - public Builder setPluginInstance(java.lang.String value) { + public Builder setPluginInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pluginInstance_ = value; onChanged(); return this; } /** - * - * *
-     * Required. Plugin instance name, used to locate and load CertificateProvider instance
-     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-     * Authority Service certificate provider instance.
+     * Required. Plugin instance name, used to locate and load CertificateProvider
+     * instance configuration. Set to "google_cloud_private_spiffe" to use
+     * Certificate Authority Service certificate provider instance.
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPluginInstance() { - + pluginInstance_ = getDefaultInstance().getPluginInstance(); onChanged(); return this; } /** - * - * *
-     * Required. Plugin instance name, used to locate and load CertificateProvider instance
-     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-     * Authority Service certificate provider instance.
+     * Required. Plugin instance name, used to locate and load CertificateProvider
+     * instance configuration. Set to "google_cloud_private_spiffe" to use
+     * Certificate Authority Service certificate provider instance.
      * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for pluginInstance to set. * @return This builder for chaining. */ - public Builder setPluginInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setPluginInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pluginInstance_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,32 +572,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.CertificateProviderInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.CertificateProviderInstance) - private static final com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance(); } - public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateProviderInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateProviderInstance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateProviderInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateProviderInstance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,8 +607,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java new file mode 100644 index 00000000..58c25d2d --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/tls.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface CertificateProviderInstanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.CertificateProviderInstance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Plugin instance name, used to locate and load CertificateProvider
+   * instance configuration. Set to "google_cloud_private_spiffe" to use
+   * Certificate Authority Service certificate provider instance.
+   * 
+ * + * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The pluginInstance. + */ + java.lang.String getPluginInstance(); + /** + *
+   * Required. Plugin instance name, used to locate and load CertificateProvider
+   * instance configuration. Set to "google_cloud_private_spiffe" to use
+   * Certificate Authority Service certificate provider instance.
+   * 
+ * + * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for pluginInstance. + */ + com.google.protobuf.ByteString + getPluginInstanceBytes(); +} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java similarity index 64% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java index 54cfe493..0392f9af 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/tls.proto package com.google.cloud.networksecurity.v1beta1; -public interface CertificateProviderOrBuilder - extends +public interface CertificateProviderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.CertificateProvider) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
    * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ boolean hasGrpcEndpoint(); /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
    * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint(); /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the cert and private key.
@@ -62,53 +38,37 @@ public interface CertificateProviderOrBuilder
   com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder();
 
   /**
-   *
-   *
    * 
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ boolean hasCertificateProviderInstance(); /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - getCertificateProviderInstance(); + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getCertificateProviderInstance(); /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder(); + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder(); public com.google.cloud.networksecurity.v1beta1.CertificateProvider.TypeCase getTypeCase(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java similarity index 61% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java index 3a9a3552..2ef44eb5 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * ClientTlsPolicy is a resource that specifies how a client should authenticate
  * connections to backends of a service. This resource itself does not affect
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1beta1.ClientTlsPolicy}
  */
-public final class ClientTlsPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ClientTlsPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ClientTlsPolicy)
     ClientTlsPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ClientTlsPolicy.newBuilder() to construct.
   private ClientTlsPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ClientTlsPolicy() {
     name_ = "";
     description_ = "";
@@ -48,15 +30,16 @@ private ClientTlsPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ClientTlsPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ClientTlsPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,109 +59,92 @@ private ClientTlsPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              sni_ = s;
-              break;
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder subBuilder =
-                  null;
-              if (clientCertificate_ != null) {
-                subBuilder = clientCertificate_.toBuilder();
-              }
-              clientCertificate_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.CertificateProvider.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(clientCertificate_);
-                clientCertificate_ = subBuilder.buildPartial();
-              }
-
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            sni_ = s;
+            break;
+          }
+          case 58: {
+            com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder subBuilder = null;
+            if (clientCertificate_ != null) {
+              subBuilder = clientCertificate_.toBuilder();
             }
-          case 66:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                serverValidationCa_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.networksecurity.v1beta1.ValidationCA>();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              serverValidationCa_.add(
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.ValidationCA.parser(),
-                      extensionRegistry));
-              break;
+            clientCertificate_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.CertificateProvider.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(clientCertificate_);
+              clientCertificate_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 66: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              serverValidationCa_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
+            }
+            serverValidationCa_.add(
+                input.readMessage(com.google.cloud.networksecurity.v1beta1.ValidationCA.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -186,7 +152,8 @@ private ClientTlsPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         serverValidationCa_ = java.util.Collections.unmodifiableList(serverValidationCa_);
@@ -195,45 +162,40 @@ private ClientTlsPolicy(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto
-        .internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto
-        .internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.class,
-            com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder.class);
+            com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.class, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -242,30 +204,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -276,14 +238,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -292,29 +251,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -325,15 +284,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -341,15 +296,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -357,14 +308,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -374,15 +322,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -390,15 +334,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -406,14 +346,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -421,23 +358,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -446,30 +384,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -477,12 +413,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -490,16 +425,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -507,11 +442,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -521,15 +457,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int SNI_FIELD_NUMBER = 6; private volatile java.lang.Object sni_; /** - * - * *
    * Optional. Server Name Indication string to present to the server during TLS
    * handshake. E.g: "secure.example.com".
    * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sni. */ @java.lang.Override @@ -538,30 +471,30 @@ public java.lang.String getSni() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sni_ = s; return s; } } /** - * - * *
    * Optional. Server Name Indication string to present to the server during TLS
    * handshake. E.g: "secure.example.com".
    * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sni. */ @java.lang.Override - public com.google.protobuf.ByteString getSniBytes() { + public com.google.protobuf.ByteString + getSniBytes() { java.lang.Object ref = sni_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sni_ = b; return b; } else { @@ -572,17 +505,13 @@ public com.google.protobuf.ByteString getSniBytes() { public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 7; private com.google.cloud.networksecurity.v1beta1.CertificateProvider clientCertificate_; /** - * - * *
-   * Optional. Defines a mechanism to provision client identity (public and private keys)
-   * for peer to peer authentication. The presence of this dictates mTLS.
+   * Optional. Defines a mechanism to provision client identity (public and
+   * private keys) for peer to peer authentication. The presence of this
+   * dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the clientCertificate field is set. */ @java.lang.Override @@ -590,136 +519,104 @@ public boolean hasClientCertificate() { return clientCertificate_ != null; } /** - * - * *
-   * Optional. Defines a mechanism to provision client identity (public and private keys)
-   * for peer to peer authentication. The presence of this dictates mTLS.
+   * Optional. Defines a mechanism to provision client identity (public and
+   * private keys) for peer to peer authentication. The presence of this
+   * dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The clientCertificate. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.CertificateProvider getClientCertificate() { - return clientCertificate_ == null - ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() - : clientCertificate_; + return clientCertificate_ == null ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() : clientCertificate_; } /** - * - * *
-   * Optional. Defines a mechanism to provision client identity (public and private keys)
-   * for peer to peer authentication. The presence of this dictates mTLS.
+   * Optional. Defines a mechanism to provision client identity (public and
+   * private keys) for peer to peer authentication. The presence of this
+   * dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder - getClientCertificateOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder getClientCertificateOrBuilder() { return getClientCertificate(); } public static final int SERVER_VALIDATION_CA_FIELD_NUMBER = 8; private java.util.List serverValidationCa_; /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getServerValidationCaList() { + public java.util.List getServerValidationCaList() { return serverValidationCa_; } /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getServerValidationCaOrBuilderList() { return serverValidationCa_; } /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getServerValidationCaCount() { return serverValidationCa_.size(); } /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ValidationCA getServerValidationCa(int index) { return serverValidationCa_.get(index); } /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder - getServerValidationCaOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder getServerValidationCaOrBuilder( + int index) { return serverValidationCa_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -731,7 +628,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -744,8 +642,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sni_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sni_); } @@ -771,30 +673,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sni_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sni_); } if (clientCertificate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getClientCertificate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getClientCertificate()); } for (int i = 0; i < serverValidationCa_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, serverValidationCa_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, serverValidationCa_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -804,31 +709,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy other = - (com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy) obj; + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy other = (com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getSni().equals(other.getSni())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getSni() + .equals(other.getSni())) return false; if (hasClientCertificate() != other.hasClientCertificate()) return false; if (hasClientCertificate()) { - if (!getClientCertificate().equals(other.getClientCertificate())) return false; + if (!getClientCertificate() + .equals(other.getClientCertificate())) return false; } - if (!getServerValidationCaList().equals(other.getServerValidationCaList())) return false; + if (!getServerValidationCaList() + .equals(other.getServerValidationCaList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -872,104 +784,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy 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.networksecurity.v1beta1.ClientTlsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ClientTlsPolicy is a resource that specifies how a client should authenticate
    * connections to backends of a service. This resource itself does not affect
@@ -978,43 +882,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1beta1.ClientTlsPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ClientTlsPolicy)
       com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.class,
-              com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder.class);
+              com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.class, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.newBuilder()
@@ -1022,17 +926,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getServerValidationCaFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1071,9 +975,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -1092,8 +996,7 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy buildPartial() {
-      com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy result =
-          new com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy(this);
+      com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy result = new com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.description_ = description_;
@@ -1132,39 +1035,38 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1beta1.ClientTlsPolicy) {
-        return mergeFrom((com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1172,8 +1074,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy other) {
-      if (other == com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1188,7 +1089,8 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ClientTlsPolic
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getSni().isEmpty()) {
         sni_ = other.sni_;
         onChanged();
@@ -1214,10 +1116,9 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ClientTlsPolic
             serverValidationCaBuilder_ = null;
             serverValidationCa_ = other.serverValidationCa_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            serverValidationCaBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getServerValidationCaFieldBuilder()
-                    : null;
+            serverValidationCaBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getServerValidationCaFieldBuilder() : null;
           } else {
             serverValidationCaBuilder_.addAllMessages(other.serverValidationCa_);
           }
@@ -1242,8 +1143,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1252,26 +1152,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1280,22 +1177,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1303,64 +1199,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the ClientTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1368,20 +1257,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1390,21 +1277,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1412,61 +1298,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. Free-text description of the resource.
      * 
* * string description = 2 [(.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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1474,58 +1353,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1541,17 +1401,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1562,21 +1419,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1588,15 +1441,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1610,64 +1459,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -1675,58 +1508,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1742,17 +1556,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1763,21 +1574,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1789,15 +1596,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1811,84 +1614,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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 com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1900,30 +1688,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
@@ -1931,12 +1717,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
@@ -1944,17 +1729,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
@@ -1962,11 +1746,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1974,81 +1759,82 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object sni_ = ""; /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sni. */ public java.lang.String getSni() { java.lang.Object ref = sni_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sni_ = s; return s; @@ -2057,22 +1843,21 @@ public java.lang.String getSni() { } } /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sni. */ - public com.google.protobuf.ByteString getSniBytes() { + public com.google.protobuf.ByteString + getSniBytes() { java.lang.Object ref = sni_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sni_ = b; return b; } else { @@ -2080,64 +1865,57 @@ public com.google.protobuf.ByteString getSniBytes() { } } /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sni to set. * @return This builder for chaining. */ - public Builder setSni(java.lang.String value) { + public Builder setSni( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sni_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSni() { - + sni_ = getDefaultInstance().getSni(); onChanged(); return this; } /** - * - * *
      * Optional. Server Name Indication string to present to the server during TLS
      * handshake. E.g: "secure.example.com".
      * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sni to set. * @return This builder for chaining. */ - public Builder setSniBytes(com.google.protobuf.ByteString value) { + public Builder setSniBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sni_ = value; onChanged(); return this; @@ -2145,64 +1923,47 @@ public Builder setSniBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networksecurity.v1beta1.CertificateProvider clientCertificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProvider, - com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder> - clientCertificateBuilder_; + com.google.cloud.networksecurity.v1beta1.CertificateProvider, com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder> clientCertificateBuilder_; /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the clientCertificate field is set. */ public boolean hasClientCertificate() { return clientCertificateBuilder_ != null || clientCertificate_ != null; } /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The clientCertificate. */ public com.google.cloud.networksecurity.v1beta1.CertificateProvider getClientCertificate() { if (clientCertificateBuilder_ == null) { - return clientCertificate_ == null - ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() - : clientCertificate_; + return clientCertificate_ == null ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() : clientCertificate_; } else { return clientCertificateBuilder_.getMessage(); } } /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setClientCertificate( - com.google.cloud.networksecurity.v1beta1.CertificateProvider value) { + public Builder setClientCertificate(com.google.cloud.networksecurity.v1beta1.CertificateProvider value) { if (clientCertificateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2216,16 +1977,13 @@ public Builder setClientCertificate( return this; } /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setClientCertificate( com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder builderForValue) { @@ -2239,26 +1997,19 @@ public Builder setClientCertificate( return this; } /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeClientCertificate( - com.google.cloud.networksecurity.v1beta1.CertificateProvider value) { + public Builder mergeClientCertificate(com.google.cloud.networksecurity.v1beta1.CertificateProvider value) { if (clientCertificateBuilder_ == null) { if (clientCertificate_ != null) { clientCertificate_ = - com.google.cloud.networksecurity.v1beta1.CertificateProvider.newBuilder( - clientCertificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.CertificateProvider.newBuilder(clientCertificate_).mergeFrom(value).buildPartial(); } else { clientCertificate_ = value; } @@ -2270,16 +2021,13 @@ public Builder mergeClientCertificate( return this; } /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearClientCertificate() { if (clientCertificateBuilder_ == null) { @@ -2293,107 +2041,81 @@ public Builder clearClientCertificate() { return this; } /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder - getClientCertificateBuilder() { - + public com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder getClientCertificateBuilder() { + onChanged(); return getClientCertificateFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder - getClientCertificateOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder getClientCertificateOrBuilder() { if (clientCertificateBuilder_ != null) { return clientCertificateBuilder_.getMessageOrBuilder(); } else { - return clientCertificate_ == null - ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() - : clientCertificate_; + return clientCertificate_ == null ? + com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() : clientCertificate_; } } /** - * - * *
-     * Optional. Defines a mechanism to provision client identity (public and private keys)
-     * for peer to peer authentication. The presence of this dictates mTLS.
+     * Optional. Defines a mechanism to provision client identity (public and
+     * private keys) for peer to peer authentication. The presence of this
+     * dictates mTLS.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProvider, - com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder> + com.google.cloud.networksecurity.v1beta1.CertificateProvider, com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder> getClientCertificateFieldBuilder() { if (clientCertificateBuilder_ == null) { - clientCertificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProvider, - com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder>( - getClientCertificate(), getParentForChildren(), isClean()); + clientCertificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.CertificateProvider, com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder>( + getClientCertificate(), + getParentForChildren(), + isClean()); clientCertificate_ = null; } return clientCertificateBuilder_; } - private java.util.List - serverValidationCa_ = java.util.Collections.emptyList(); - + private java.util.List serverValidationCa_ = + java.util.Collections.emptyList(); private void ensureServerValidationCaIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - serverValidationCa_ = - new java.util.ArrayList( - serverValidationCa_); + serverValidationCa_ = new java.util.ArrayList(serverValidationCa_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ValidationCA, - com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> - serverValidationCaBuilder_; + com.google.cloud.networksecurity.v1beta1.ValidationCA, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> serverValidationCaBuilder_; /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getServerValidationCaList() { + public java.util.List getServerValidationCaList() { if (serverValidationCaBuilder_ == null) { return java.util.Collections.unmodifiableList(serverValidationCa_); } else { @@ -2401,17 +2123,13 @@ private void ensureServerValidationCaIsMutable() { } } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public int getServerValidationCaCount() { if (serverValidationCaBuilder_ == null) { @@ -2421,17 +2139,13 @@ public int getServerValidationCaCount() { } } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.networksecurity.v1beta1.ValidationCA getServerValidationCa(int index) { if (serverValidationCaBuilder_ == null) { @@ -2441,17 +2155,13 @@ public com.google.cloud.networksecurity.v1beta1.ValidationCA getServerValidation } } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setServerValidationCa( int index, com.google.cloud.networksecurity.v1beta1.ValidationCA value) { @@ -2468,17 +2178,13 @@ public Builder setServerValidationCa( return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setServerValidationCa( int index, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { @@ -2492,20 +2198,15 @@ public Builder setServerValidationCa( return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addServerValidationCa( - com.google.cloud.networksecurity.v1beta1.ValidationCA value) { + public Builder addServerValidationCa(com.google.cloud.networksecurity.v1beta1.ValidationCA value) { if (serverValidationCaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2519,17 +2220,13 @@ public Builder addServerValidationCa( return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addServerValidationCa( int index, com.google.cloud.networksecurity.v1beta1.ValidationCA value) { @@ -2546,17 +2243,13 @@ public Builder addServerValidationCa( return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addServerValidationCa( com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { @@ -2570,17 +2263,13 @@ public Builder addServerValidationCa( return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addServerValidationCa( int index, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { @@ -2594,24 +2283,20 @@ public Builder addServerValidationCa( return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllServerValidationCa( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (serverValidationCaBuilder_ == null) { ensureServerValidationCaIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverValidationCa_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverValidationCa_); onChanged(); } else { serverValidationCaBuilder_.addAllMessages(values); @@ -2619,17 +2304,13 @@ public Builder addAllServerValidationCa( return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearServerValidationCa() { if (serverValidationCaBuilder_ == null) { @@ -2642,17 +2323,13 @@ public Builder clearServerValidationCa() { return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeServerValidationCa(int index) { if (serverValidationCaBuilder_ == null) { @@ -2665,58 +2342,45 @@ public Builder removeServerValidationCa(int index) { return this; } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder - getServerValidationCaBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder getServerValidationCaBuilder( + int index) { return getServerValidationCaFieldBuilder().getBuilder(index); } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder - getServerValidationCaOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder getServerValidationCaOrBuilder( + int index) { if (serverValidationCaBuilder_ == null) { - return serverValidationCa_.get(index); - } else { + return serverValidationCa_.get(index); } else { return serverValidationCaBuilder_.getMessageOrBuilder(index); } } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getServerValidationCaOrBuilderList() { + public java.util.List + getServerValidationCaOrBuilderList() { if (serverValidationCaBuilder_ != null) { return serverValidationCaBuilder_.getMessageOrBuilderList(); } else { @@ -2724,71 +2388,51 @@ public Builder removeServerValidationCa(int index) { } } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder - addServerValidationCaBuilder() { - return getServerValidationCaFieldBuilder() - .addBuilder(com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder addServerValidationCaBuilder() { + return getServerValidationCaFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()); } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder - addServerValidationCaBuilder(int index) { - return getServerValidationCaFieldBuilder() - .addBuilder( - index, com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder addServerValidationCaBuilder( + int index) { + return getServerValidationCaFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()); } /** - * - * *
-     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-     * validate the server certificate. If empty, client does not validate the
-     * server certificate.
+     * Optional. Defines the mechanism to obtain the Certificate Authority
+     * certificate to validate the server certificate. If empty, client does not
+     * validate the server certificate.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getServerValidationCaBuilderList() { + public java.util.List + getServerValidationCaBuilderList() { return getServerValidationCaFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ValidationCA, - com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> + com.google.cloud.networksecurity.v1beta1.ValidationCA, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> getServerValidationCaFieldBuilder() { if (serverValidationCaBuilder_ == null) { - serverValidationCaBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ValidationCA, - com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder>( + serverValidationCaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ValidationCA, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder>( serverValidationCa_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2797,9 +2441,9 @@ public Builder removeServerValidationCa(int index) { } return serverValidationCaBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2809,12 +2453,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ClientTlsPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ClientTlsPolicy) private static final com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy(); } @@ -2823,16 +2467,16 @@ public static com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientTlsPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientTlsPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientTlsPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientTlsPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2847,4 +2491,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java similarity index 100% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java similarity index 60% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java index c61b2e26..660e6832 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java @@ -1,159 +1,109 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface ClientTlsPolicyOrBuilder - extends +public interface ClientTlsPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ClientTlsPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Free-text description of the resource.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -162,31 +112,30 @@ public interface ClientTlsPolicyOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
@@ -195,162 +144,126 @@ public interface ClientTlsPolicyOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Server Name Indication string to present to the server during TLS
    * handshake. E.g: "secure.example.com".
    * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sni. */ java.lang.String getSni(); /** - * - * *
    * Optional. Server Name Indication string to present to the server during TLS
    * handshake. E.g: "secure.example.com".
    * 
* * string sni = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sni. */ - com.google.protobuf.ByteString getSniBytes(); + com.google.protobuf.ByteString + getSniBytes(); /** - * - * *
-   * Optional. Defines a mechanism to provision client identity (public and private keys)
-   * for peer to peer authentication. The presence of this dictates mTLS.
+   * Optional. Defines a mechanism to provision client identity (public and
+   * private keys) for peer to peer authentication. The presence of this
+   * dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the clientCertificate field is set. */ boolean hasClientCertificate(); /** - * - * *
-   * Optional. Defines a mechanism to provision client identity (public and private keys)
-   * for peer to peer authentication. The presence of this dictates mTLS.
+   * Optional. Defines a mechanism to provision client identity (public and
+   * private keys) for peer to peer authentication. The presence of this
+   * dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The clientCertificate. */ com.google.cloud.networksecurity.v1beta1.CertificateProvider getClientCertificate(); /** - * - * *
-   * Optional. Defines a mechanism to provision client identity (public and private keys)
-   * for peer to peer authentication. The presence of this dictates mTLS.
+   * Optional. Defines a mechanism to provision client identity (public and
+   * private keys) for peer to peer authentication. The presence of this
+   * dictates mTLS.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder - getClientCertificateOrBuilder(); + com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder getClientCertificateOrBuilder(); /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getServerValidationCaList(); + java.util.List + getServerValidationCaList(); /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1beta1.ValidationCA getServerValidationCa(int index); /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getServerValidationCaCount(); /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getServerValidationCaOrBuilderList(); /** - * - * *
-   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
-   * validate the server certificate. If empty, client does not validate the
-   * server certificate.
+   * Optional. Defines the mechanism to obtain the Certificate Authority
+   * certificate to validate the server certificate. If empty, client does not
+   * validate the server certificate.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder getServerValidationCaOrBuilder( int index); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyProto.java new file mode 100644 index 00000000..96268617 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyProto.java @@ -0,0 +1,191 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/client_tls_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public final class ClientTlsPolicyProto { + private ClientTlsPolicyProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n * Request used by the CreateAuthorizationPolicy method. *
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest} */ -public final class CreateAuthorizationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateAuthorizationPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) CreateAuthorizationPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateAuthorizationPolicyRequest.newBuilder() to construct. - private CreateAuthorizationPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateAuthorizationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAuthorizationPolicyRequest() { parent_ = ""; authorizationPolicyId_ = ""; @@ -45,15 +26,16 @@ private CreateAuthorizationPolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAuthorizationPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateAuthorizationPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,45 +54,38 @@ private CreateAuthorizationPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - authorizationPolicyId_ = s; - break; + authorizationPolicyId_ = s; + break; + } + case 26: { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder subBuilder = null; + if (authorizationPolicy_ != null) { + subBuilder = authorizationPolicy_.toBuilder(); } - case 26: - { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder subBuilder = - null; - if (authorizationPolicy_ != null) { - subBuilder = authorizationPolicy_.toBuilder(); - } - authorizationPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authorizationPolicy_); - authorizationPolicy_ = subBuilder.buildPartial(); - } - - break; + authorizationPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authorizationPolicy_); + authorizationPolicy_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,43 +93,35 @@ private CreateAuthorizationPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.Builder - .class); + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the AuthorizationPolicy. Must be in the
    * format `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -163,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the AuthorizationPolicy. Must be in the
    * format `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -199,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int AUTHORIZATION_POLICY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object authorizationPolicyId_; /** - * - * *
    * Required. Short name of the AuthorizationPolicy resource to be created.
    * This value should be 1-63 characters long, containing only
@@ -209,7 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The authorizationPolicyId. */ @java.lang.Override @@ -218,15 +180,14 @@ public java.lang.String getAuthorizationPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationPolicyId_ = s; return s; } } /** - * - * *
    * Required. Short name of the AuthorizationPolicy resource to be created.
    * This value should be 1-63 characters long, containing only
@@ -235,15 +196,16 @@ public java.lang.String getAuthorizationPolicyId() {
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for authorizationPolicyId. */ @java.lang.Override - public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() { + public com.google.protobuf.ByteString + getAuthorizationPolicyIdBytes() { java.lang.Object ref = authorizationPolicyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizationPolicyId_ = b; return b; } else { @@ -254,16 +216,11 @@ public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() { public static final int AUTHORIZATION_POLICY_FIELD_NUMBER = 3; private com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorizationPolicy_; /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ @java.lang.Override @@ -271,43 +228,30 @@ public boolean hasAuthorizationPolicy() { return authorizationPolicy_ != null; } /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy() { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder() { return getAuthorizationPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -345,7 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authorizationPolicyId_); } if (authorizationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthorizationPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAuthorizationPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -355,20 +301,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getAuthorizationPolicyId().equals(other.getAuthorizationPolicyId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getAuthorizationPolicyId() + .equals(other.getAuthorizationPolicyId())) return false; if (hasAuthorizationPolicy() != other.hasAuthorizationPolicy()) return false; if (hasAuthorizationPolicy()) { - if (!getAuthorizationPolicy().equals(other.getAuthorizationPolicy())) return false; + if (!getAuthorizationPolicy() + .equals(other.getAuthorizationPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -395,146 +342,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest 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.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - 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.networksecurity.v1beta1.CreateAuthorizationPolicyRequest 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.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the CreateAuthorizationPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.Builder - .class); + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -552,22 +487,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest build() { - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -575,10 +507,8 @@ public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - buildPartial() { - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest(this); + public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest(this); result.parent_ = parent_; result.authorizationPolicyId_ = authorizationPolicyId_; if (authorizationPolicyBuilder_ == null) { @@ -594,52 +524,46 @@ public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) other); + if (other instanceof com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -666,14 +590,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parsedMessage = - null; + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -685,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -710,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -735,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the AuthorizationPolicy. Must be in the
      * format `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -806,8 +707,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object authorizationPolicyId_ = ""; /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -816,13 +715,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The authorizationPolicyId. */ public java.lang.String getAuthorizationPolicyId() { java.lang.Object ref = authorizationPolicyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationPolicyId_ = s; return s; @@ -831,8 +730,6 @@ public java.lang.String getAuthorizationPolicyId() { } } /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -841,14 +738,15 @@ public java.lang.String getAuthorizationPolicyId() {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for authorizationPolicyId. */ - public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() { + public com.google.protobuf.ByteString + getAuthorizationPolicyIdBytes() { java.lang.Object ref = authorizationPolicyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizationPolicyId_ = b; return b; } else { @@ -856,8 +754,6 @@ public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() { } } /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -866,22 +762,20 @@ public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes() {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The authorizationPolicyId to set. * @return This builder for chaining. */ - public Builder setAuthorizationPolicyId(java.lang.String value) { + public Builder setAuthorizationPolicyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizationPolicyId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -890,18 +784,15 @@ public Builder setAuthorizationPolicyId(java.lang.String value) {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAuthorizationPolicyId() { - + authorizationPolicyId_ = getDefaultInstance().getAuthorizationPolicyId(); onChanged(); return this; } /** - * - * *
      * Required. Short name of the AuthorizationPolicy resource to be created.
      * This value should be 1-63 characters long, containing only
@@ -910,16 +801,16 @@ public Builder clearAuthorizationPolicyId() {
      * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for authorizationPolicyId to set. * @return This builder for chaining. */ - public Builder setAuthorizationPolicyIdBytes(com.google.protobuf.ByteString value) { + public Builder setAuthorizationPolicyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationPolicyId_ = value; onChanged(); return this; @@ -927,61 +818,41 @@ public Builder setAuthorizationPolicyIdBytes(com.google.protobuf.ByteString valu private com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorizationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> - authorizationPolicyBuilder_; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> authorizationPolicyBuilder_; /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ public boolean hasAuthorizationPolicy() { return authorizationPolicyBuilder_ != null || authorizationPolicy_ != null; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy() { if (authorizationPolicyBuilder_ == null) { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } else { return authorizationPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { + public Builder setAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { if (authorizationPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -995,15 +866,11 @@ public Builder setAuthorizationPolicy( return this; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAuthorizationPolicy( com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder builderForValue) { @@ -1017,25 +884,17 @@ public Builder setAuthorizationPolicy( return this; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { + public Builder mergeAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { if (authorizationPolicyBuilder_ == null) { if (authorizationPolicy_ != null) { authorizationPolicy_ = - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.newBuilder( - authorizationPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.newBuilder(authorizationPolicy_).mergeFrom(value).buildPartial(); } else { authorizationPolicy_ = value; } @@ -1047,15 +906,11 @@ public Builder mergeAuthorizationPolicy( return this; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAuthorizationPolicy() { if (authorizationPolicyBuilder_ == null) { @@ -1069,73 +924,55 @@ public Builder clearAuthorizationPolicy() { return this; } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder - getAuthorizationPolicyBuilder() { - + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder getAuthorizationPolicyBuilder() { + onChanged(); return getAuthorizationPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder() { if (authorizationPolicyBuilder_ != null) { return authorizationPolicyBuilder_.getMessageOrBuilder(); } else { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } } /** - * - * *
      * Required. AuthorizationPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> getAuthorizationPolicyFieldBuilder() { if (authorizationPolicyBuilder_ == null) { - authorizationPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder>( - getAuthorizationPolicy(), getParentForChildren(), isClean()); + authorizationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder>( + getAuthorizationPolicy(), + getParentForChildren(), + isClean()); authorizationPolicy_ = null; } return authorizationPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1145,33 +982,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAuthorizationPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAuthorizationPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAuthorizationPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAuthorizationPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1183,8 +1017,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java index b5bdc3ea..ee612707 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface CreateAuthorizationPolicyRequestOrBuilder - extends +public interface CreateAuthorizationPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the AuthorizationPolicy. Must be in the
    * format `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource of the AuthorizationPolicy. Must be in the
    * format `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Short name of the AuthorizationPolicy resource to be created.
    * This value should be 1-63 characters long, containing only
@@ -65,13 +38,10 @@ public interface CreateAuthorizationPolicyRequestOrBuilder
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The authorizationPolicyId. */ java.lang.String getAuthorizationPolicyId(); /** - * - * *
    * Required. Short name of the AuthorizationPolicy resource to be created.
    * This value should be 1-63 characters long, containing only
@@ -80,50 +50,35 @@ public interface CreateAuthorizationPolicyRequestOrBuilder
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for authorizationPolicyId. */ - com.google.protobuf.ByteString getAuthorizationPolicyIdBytes(); + com.google.protobuf.ByteString + getAuthorizationPolicyIdBytes(); /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ boolean hasAuthorizationPolicy(); /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy(); /** - * - * *
    * Required. AuthorizationPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java similarity index 61% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java index cf4acdd4..66225e43 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the CreateClientTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest} */ -public final class CreateClientTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateClientTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) CreateClientTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateClientTlsPolicyRequest.newBuilder() to construct. private CreateClientTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateClientTlsPolicyRequest() { parent_ = ""; clientTlsPolicyId_ = ""; @@ -44,15 +26,16 @@ private CreateClientTlsPolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateClientTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateClientTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateClientTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - clientTlsPolicyId_ = s; - break; + clientTlsPolicyId_ = s; + break; + } + case 26: { + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder subBuilder = null; + if (clientTlsPolicy_ != null) { + subBuilder = clientTlsPolicy_.toBuilder(); } - case 26: - { - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder subBuilder = null; - if (clientTlsPolicy_ != null) { - subBuilder = clientTlsPolicy_.toBuilder(); - } - clientTlsPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientTlsPolicy_); - clientTlsPolicy_ = subBuilder.buildPartial(); - } - - break; + clientTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientTlsPolicy_); + clientTlsPolicy_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +93,35 @@ private CreateClientTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the ClientTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the ClientTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,16 +164,14 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CLIENT_TLS_POLICY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object clientTlsPolicyId_; /** - * - * *
-   * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-   * be 1-63 characters long, containing only letters, numbers, hyphens, and
-   * underscores, and should not start with a number. E.g. "client_mtls_policy".
+   * Required. Short name of the ClientTlsPolicy resource to be created. This
+   * value should be 1-63 characters long, containing only letters, numbers,
+   * hyphens, and underscores, and should not start with a number. E.g.
+   * "client_mtls_policy".
    * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clientTlsPolicyId. */ @java.lang.Override @@ -214,31 +180,32 @@ public java.lang.String getClientTlsPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientTlsPolicyId_ = s; return s; } } /** - * - * *
-   * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-   * be 1-63 characters long, containing only letters, numbers, hyphens, and
-   * underscores, and should not start with a number. E.g. "client_mtls_policy".
+   * Required. Short name of the ClientTlsPolicy resource to be created. This
+   * value should be 1-63 characters long, containing only letters, numbers,
+   * hyphens, and underscores, and should not start with a number. E.g.
+   * "client_mtls_policy".
    * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clientTlsPolicyId. */ @java.lang.Override - public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { + public com.google.protobuf.ByteString + getClientTlsPolicyIdBytes() { java.lang.Object ref = clientTlsPolicyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientTlsPolicyId_ = b; return b; } else { @@ -249,16 +216,11 @@ public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { public static final int CLIENT_TLS_POLICY_FIELD_NUMBER = 3; private com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy clientTlsPolicy_; /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ @java.lang.Override @@ -266,43 +228,30 @@ public boolean hasClientTlsPolicy() { return clientTlsPolicy_ != null; } /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy() { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } /** - * - * *
    * Required. ClientTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder - getClientTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder() { return getClientTlsPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -340,7 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientTlsPolicyId_); } if (clientTlsPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getClientTlsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClientTlsPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,19 +301,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getClientTlsPolicyId().equals(other.getClientTlsPolicyId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getClientTlsPolicyId() + .equals(other.getClientTlsPolicyId())) return false; if (hasClientTlsPolicy() != other.hasClientTlsPolicy()) return false; if (hasClientTlsPolicy()) { - if (!getClientTlsPolicy().equals(other.getClientTlsPolicy())) return false; + if (!getClientTlsPolicy() + .equals(other.getClientTlsPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -389,145 +342,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest 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.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - 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.networksecurity.v1beta1.CreateClientTlsPolicyRequest 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.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the CreateClientTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -545,16 +487,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -568,8 +508,7 @@ public com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest bui @java.lang.Override public com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest(this); result.parent_ = parent_; result.clientTlsPolicyId_ = clientTlsPolicyId_; if (clientTlsPolicyBuilder_ == null) { @@ -585,51 +524,46 @@ public com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.CreateClientTlsPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -660,9 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -724,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ClientTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -795,22 +707,21 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object clientTlsPolicyId_ = ""; /** - * - * *
-     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "client_mtls_policy".
+     * Required. Short name of the ClientTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "client_mtls_policy".
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clientTlsPolicyId. */ public java.lang.String getClientTlsPolicyId() { java.lang.Object ref = clientTlsPolicyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientTlsPolicyId_ = s; return s; @@ -819,23 +730,23 @@ public java.lang.String getClientTlsPolicyId() { } } /** - * - * *
-     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "client_mtls_policy".
+     * Required. Short name of the ClientTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "client_mtls_policy".
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clientTlsPolicyId. */ - public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { + public com.google.protobuf.ByteString + getClientTlsPolicyIdBytes() { java.lang.Object ref = clientTlsPolicyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientTlsPolicyId_ = b; return b; } else { @@ -843,67 +754,63 @@ public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { } } /** - * - * *
-     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "client_mtls_policy".
+     * Required. Short name of the ClientTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "client_mtls_policy".
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clientTlsPolicyId to set. * @return This builder for chaining. */ - public Builder setClientTlsPolicyId(java.lang.String value) { + public Builder setClientTlsPolicyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientTlsPolicyId_ = value; onChanged(); return this; } /** - * - * *
-     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "client_mtls_policy".
+     * Required. Short name of the ClientTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "client_mtls_policy".
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClientTlsPolicyId() { - + clientTlsPolicyId_ = getDefaultInstance().getClientTlsPolicyId(); onChanged(); return this; } /** - * - * *
-     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "client_mtls_policy".
+     * Required. Short name of the ClientTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "client_mtls_policy".
      * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clientTlsPolicyId to set. * @return This builder for chaining. */ - public Builder setClientTlsPolicyIdBytes(com.google.protobuf.ByteString value) { + public Builder setClientTlsPolicyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientTlsPolicyId_ = value; onChanged(); return this; @@ -911,61 +818,41 @@ public Builder setClientTlsPolicyIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy clientTlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> - clientTlsPolicyBuilder_; + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> clientTlsPolicyBuilder_; /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ public boolean hasClientTlsPolicy() { return clientTlsPolicyBuilder_ != null || clientTlsPolicy_ != null; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy() { if (clientTlsPolicyBuilder_ == null) { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } else { return clientTlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { + public Builder setClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { if (clientTlsPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -979,15 +866,11 @@ public Builder setClientTlsPolicy( return this; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setClientTlsPolicy( com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder builderForValue) { @@ -1001,24 +884,17 @@ public Builder setClientTlsPolicy( return this; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { + public Builder mergeClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { if (clientTlsPolicyBuilder_ == null) { if (clientTlsPolicy_ != null) { clientTlsPolicy_ = - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.newBuilder(clientTlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.newBuilder(clientTlsPolicy_).mergeFrom(value).buildPartial(); } else { clientTlsPolicy_ = value; } @@ -1030,15 +906,11 @@ public Builder mergeClientTlsPolicy( return this; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearClientTlsPolicy() { if (clientTlsPolicyBuilder_ == null) { @@ -1052,73 +924,55 @@ public Builder clearClientTlsPolicy() { return this; } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder - getClientTlsPolicyBuilder() { - + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder getClientTlsPolicyBuilder() { + onChanged(); return getClientTlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder - getClientTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder() { if (clientTlsPolicyBuilder_ != null) { return clientTlsPolicyBuilder_.getMessageOrBuilder(); } else { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } } /** - * - * *
      * Required. ClientTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> getClientTlsPolicyFieldBuilder() { if (clientTlsPolicyBuilder_ == null) { - clientTlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder>( - getClientTlsPolicy(), getParentForChildren(), isClean()); + clientTlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder>( + getClientTlsPolicy(), + getParentForChildren(), + isClean()); clientTlsPolicy_ = null; } return clientTlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,32 +982,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateClientTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateClientTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClientTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateClientTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1165,8 +1017,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..3166c11a --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/client_tls_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface CreateClientTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource of the ClientTlsPolicy. Must be in
+   * the format `projects/*/locations/{location}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource of the ClientTlsPolicy. Must be in
+   * the format `projects/*/locations/{location}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Short name of the ClientTlsPolicy resource to be created. This
+   * value should be 1-63 characters long, containing only letters, numbers,
+   * hyphens, and underscores, and should not start with a number. E.g.
+   * "client_mtls_policy".
+   * 
+ * + * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The clientTlsPolicyId. + */ + java.lang.String getClientTlsPolicyId(); + /** + *
+   * Required. Short name of the ClientTlsPolicy resource to be created. This
+   * value should be 1-63 characters long, containing only letters, numbers,
+   * hyphens, and underscores, and should not start with a number. E.g.
+   * "client_mtls_policy".
+   * 
+ * + * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for clientTlsPolicyId. + */ + com.google.protobuf.ByteString + getClientTlsPolicyIdBytes(); + + /** + *
+   * Required. ClientTlsPolicy resource to be created.
+   * 
+ * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the clientTlsPolicy field is set. + */ + boolean hasClientTlsPolicy(); + /** + *
+   * Required. ClientTlsPolicy resource to be created.
+   * 
+ * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The clientTlsPolicy. + */ + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy(); + /** + *
+   * Required. ClientTlsPolicy resource to be created.
+   * 
+ * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder(); +} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java similarity index 61% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java index 918f24c6..82ae0ffa 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the CreateServerTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest} */ -public final class CreateServerTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateServerTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) CreateServerTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateServerTlsPolicyRequest.newBuilder() to construct. private CreateServerTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateServerTlsPolicyRequest() { parent_ = ""; serverTlsPolicyId_ = ""; @@ -44,15 +26,16 @@ private CreateServerTlsPolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateServerTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateServerTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateServerTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - serverTlsPolicyId_ = s; - break; + serverTlsPolicyId_ = s; + break; + } + case 26: { + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder subBuilder = null; + if (serverTlsPolicy_ != null) { + subBuilder = serverTlsPolicy_.toBuilder(); } - case 26: - { - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder subBuilder = null; - if (serverTlsPolicy_ != null) { - subBuilder = serverTlsPolicy_.toBuilder(); - } - serverTlsPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverTlsPolicy_); - serverTlsPolicy_ = subBuilder.buildPartial(); - } - - break; + serverTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serverTlsPolicy_); + serverTlsPolicy_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +93,35 @@ private CreateServerTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the ServerTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the ServerTlsPolicy. Must be in
    * the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,16 +164,14 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SERVER_TLS_POLICY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object serverTlsPolicyId_; /** - * - * *
-   * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-   * be 1-63 characters long, containing only letters, numbers, hyphens, and
-   * underscores, and should not start with a number. E.g. "server_mtls_policy".
+   * Required. Short name of the ServerTlsPolicy resource to be created. This
+   * value should be 1-63 characters long, containing only letters, numbers,
+   * hyphens, and underscores, and should not start with a number. E.g.
+   * "server_mtls_policy".
    * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serverTlsPolicyId. */ @java.lang.Override @@ -214,31 +180,32 @@ public java.lang.String getServerTlsPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serverTlsPolicyId_ = s; return s; } } /** - * - * *
-   * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-   * be 1-63 characters long, containing only letters, numbers, hyphens, and
-   * underscores, and should not start with a number. E.g. "server_mtls_policy".
+   * Required. Short name of the ServerTlsPolicy resource to be created. This
+   * value should be 1-63 characters long, containing only letters, numbers,
+   * hyphens, and underscores, and should not start with a number. E.g.
+   * "server_mtls_policy".
    * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serverTlsPolicyId. */ @java.lang.Override - public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { + public com.google.protobuf.ByteString + getServerTlsPolicyIdBytes() { java.lang.Object ref = serverTlsPolicyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serverTlsPolicyId_ = b; return b; } else { @@ -249,16 +216,11 @@ public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { public static final int SERVER_TLS_POLICY_FIELD_NUMBER = 3; private com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy serverTlsPolicy_; /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ @java.lang.Override @@ -266,43 +228,30 @@ public boolean hasServerTlsPolicy() { return serverTlsPolicy_ != null; } /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy() { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } /** - * - * *
    * Required. ServerTlsPolicy resource to be created.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder - getServerTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder() { return getServerTlsPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -340,7 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serverTlsPolicyId_); } if (serverTlsPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getServerTlsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getServerTlsPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,19 +301,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getServerTlsPolicyId().equals(other.getServerTlsPolicyId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getServerTlsPolicyId() + .equals(other.getServerTlsPolicyId())) return false; if (hasServerTlsPolicy() != other.hasServerTlsPolicy()) return false; if (hasServerTlsPolicy()) { - if (!getServerTlsPolicy().equals(other.getServerTlsPolicy())) return false; + if (!getServerTlsPolicy() + .equals(other.getServerTlsPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -389,145 +342,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest 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.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - 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.networksecurity.v1beta1.CreateServerTlsPolicyRequest 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.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the CreateServerTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -545,16 +487,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -568,8 +508,7 @@ public com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest bui @java.lang.Override public com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest(this); result.parent_ = parent_; result.serverTlsPolicyId_ = serverTlsPolicyId_; if (serverTlsPolicyBuilder_ == null) { @@ -585,51 +524,46 @@ public com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.CreateServerTlsPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -660,9 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -724,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ServerTlsPolicy. Must be in
      * the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -795,22 +707,21 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object serverTlsPolicyId_ = ""; /** - * - * *
-     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "server_mtls_policy".
+     * Required. Short name of the ServerTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "server_mtls_policy".
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serverTlsPolicyId. */ public java.lang.String getServerTlsPolicyId() { java.lang.Object ref = serverTlsPolicyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serverTlsPolicyId_ = s; return s; @@ -819,23 +730,23 @@ public java.lang.String getServerTlsPolicyId() { } } /** - * - * *
-     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "server_mtls_policy".
+     * Required. Short name of the ServerTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "server_mtls_policy".
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serverTlsPolicyId. */ - public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { + public com.google.protobuf.ByteString + getServerTlsPolicyIdBytes() { java.lang.Object ref = serverTlsPolicyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serverTlsPolicyId_ = b; return b; } else { @@ -843,67 +754,63 @@ public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { } } /** - * - * *
-     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "server_mtls_policy".
+     * Required. Short name of the ServerTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "server_mtls_policy".
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The serverTlsPolicyId to set. * @return This builder for chaining. */ - public Builder setServerTlsPolicyId(java.lang.String value) { + public Builder setServerTlsPolicyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serverTlsPolicyId_ = value; onChanged(); return this; } /** - * - * *
-     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "server_mtls_policy".
+     * Required. Short name of the ServerTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "server_mtls_policy".
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearServerTlsPolicyId() { - + serverTlsPolicyId_ = getDefaultInstance().getServerTlsPolicyId(); onChanged(); return this; } /** - * - * *
-     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-     * be 1-63 characters long, containing only letters, numbers, hyphens, and
-     * underscores, and should not start with a number. E.g. "server_mtls_policy".
+     * Required. Short name of the ServerTlsPolicy resource to be created. This
+     * value should be 1-63 characters long, containing only letters, numbers,
+     * hyphens, and underscores, and should not start with a number. E.g.
+     * "server_mtls_policy".
      * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for serverTlsPolicyId to set. * @return This builder for chaining. */ - public Builder setServerTlsPolicyIdBytes(com.google.protobuf.ByteString value) { + public Builder setServerTlsPolicyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverTlsPolicyId_ = value; onChanged(); return this; @@ -911,61 +818,41 @@ public Builder setServerTlsPolicyIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy serverTlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> - serverTlsPolicyBuilder_; + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> serverTlsPolicyBuilder_; /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ public boolean hasServerTlsPolicy() { return serverTlsPolicyBuilder_ != null || serverTlsPolicy_ != null; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy() { if (serverTlsPolicyBuilder_ == null) { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } else { return serverTlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { + public Builder setServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { if (serverTlsPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -979,15 +866,11 @@ public Builder setServerTlsPolicy( return this; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServerTlsPolicy( com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder builderForValue) { @@ -1001,24 +884,17 @@ public Builder setServerTlsPolicy( return this; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { + public Builder mergeServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { if (serverTlsPolicyBuilder_ == null) { if (serverTlsPolicy_ != null) { serverTlsPolicy_ = - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.newBuilder(serverTlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.newBuilder(serverTlsPolicy_).mergeFrom(value).buildPartial(); } else { serverTlsPolicy_ = value; } @@ -1030,15 +906,11 @@ public Builder mergeServerTlsPolicy( return this; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearServerTlsPolicy() { if (serverTlsPolicyBuilder_ == null) { @@ -1052,73 +924,55 @@ public Builder clearServerTlsPolicy() { return this; } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder - getServerTlsPolicyBuilder() { - + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder getServerTlsPolicyBuilder() { + onChanged(); return getServerTlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder - getServerTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder() { if (serverTlsPolicyBuilder_ != null) { return serverTlsPolicyBuilder_.getMessageOrBuilder(); } else { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } } /** - * - * *
      * Required. ServerTlsPolicy resource to be created.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> getServerTlsPolicyFieldBuilder() { if (serverTlsPolicyBuilder_ == null) { - serverTlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder>( - getServerTlsPolicy(), getParentForChildren(), isClean()); + serverTlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder>( + getServerTlsPolicy(), + getParentForChildren(), + isClean()); serverTlsPolicy_ = null; } return serverTlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,32 +982,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServerTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateServerTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServerTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateServerTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1165,8 +1017,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..7e8e02a6 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/server_tls_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface CreateServerTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource of the ServerTlsPolicy. Must be in
+   * the format `projects/*/locations/{location}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource of the ServerTlsPolicy. Must be in
+   * the format `projects/*/locations/{location}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Short name of the ServerTlsPolicy resource to be created. This
+   * value should be 1-63 characters long, containing only letters, numbers,
+   * hyphens, and underscores, and should not start with a number. E.g.
+   * "server_mtls_policy".
+   * 
+ * + * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The serverTlsPolicyId. + */ + java.lang.String getServerTlsPolicyId(); + /** + *
+   * Required. Short name of the ServerTlsPolicy resource to be created. This
+   * value should be 1-63 characters long, containing only letters, numbers,
+   * hyphens, and underscores, and should not start with a number. E.g.
+   * "server_mtls_policy".
+   * 
+ * + * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for serverTlsPolicyId. + */ + com.google.protobuf.ByteString + getServerTlsPolicyIdBytes(); + + /** + *
+   * Required. ServerTlsPolicy resource to be created.
+   * 
+ * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the serverTlsPolicy field is set. + */ + boolean hasServerTlsPolicy(); + /** + *
+   * Required. ServerTlsPolicy resource to be created.
+   * 
+ * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The serverTlsPolicy. + */ + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy(); + /** + *
+   * Required. ServerTlsPolicy resource to be created.
+   * 
+ * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder(); +} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java similarity index 57% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java index 648e1841..33b441d4 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the DeleteAuthorizationPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest} */ -public final class DeleteAuthorizationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAuthorizationPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) DeleteAuthorizationPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAuthorizationPolicyRequest.newBuilder() to construct. - private DeleteAuthorizationPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteAuthorizationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAuthorizationPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAuthorizationPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAuthorizationPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private DeleteAuthorizationPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,43 +73,35 @@ private DeleteAuthorizationPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.Builder - .class); + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * Required. A name of the AuthorizationPolicy to delete. Must be in the
+   * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * Required. A name of the AuthorizationPolicy to delete. Must be in the
+   * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -207,16 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,146 +206,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest 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.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - 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.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest 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.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the DeleteAuthorizationPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.Builder - .class); + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest build() { - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -408,10 +363,8 @@ public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - buildPartial() { - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest(this); + public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -421,52 +374,46 @@ public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) other); + if (other instanceof com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -486,14 +433,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parsedMessage = - null; + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -505,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+     * Required. A name of the AuthorizationPolicy to delete. Must be in the
+     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -530,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+     * Required. A name of the AuthorizationPolicy to delete. Must be in the
+     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -555,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+     * Required. A name of the AuthorizationPolicy to delete. Must be in the
+     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+     * Required. A name of the AuthorizationPolicy to delete. Must be in the
+     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+     * Required. A name of the AuthorizationPolicy to delete. Must be in the
+     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -635,33 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAuthorizationPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAuthorizationPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthorizationPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAuthorizationPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -673,8 +594,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequestOrBuilder.java new file mode 100644 index 00000000..782bb448 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/authorization_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface DeleteAuthorizationPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the AuthorizationPolicy to delete. Must be in the
+   * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the AuthorizationPolicy to delete. Must be in the
+   * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java similarity index 63% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java index 06d0bd06..1e9a3ae9 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the DeleteClientTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest} */ -public final class DeleteClientTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteClientTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) DeleteClientTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteClientTlsPolicyRequest.newBuilder() to construct. private DeleteClientTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteClientTlsPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteClientTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteClientTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteClientTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteClientTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the ClientTlsPolicy to delete. Must be in
    * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the ClientTlsPolicy to delete. Must be in
    * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest 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.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - 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.networksecurity.v1beta1.DeleteClientTlsPolicyRequest 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.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the DeleteClientTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest bui @java.lang.Override public com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the ClientTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteClientTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteClientTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClientTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteClientTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..7aae58c2 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/client_tls_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface DeleteClientTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the ClientTlsPolicy to delete. Must be in
+   * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the ClientTlsPolicy to delete. Must be in
+   * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java similarity index 63% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java index 9b68843b..ed4984e3 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the DeleteServerTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest} */ -public final class DeleteServerTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteServerTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) DeleteServerTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteServerTlsPolicyRequest.newBuilder() to construct. private DeleteServerTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteServerTlsPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteServerTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteServerTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteServerTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteServerTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the ServerTlsPolicy to delete. Must be in
    * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the ServerTlsPolicy to delete. Must be in
    * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest 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.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - 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.networksecurity.v1beta1.DeleteServerTlsPolicyRequest 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.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the DeleteServerTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest bui @java.lang.Override public com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the ServerTlsPolicy to delete. Must be in
      * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServerTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteServerTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServerTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteServerTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..f35ff214 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/server_tls_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface DeleteServerTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the ServerTlsPolicy to delete. Must be in
+   * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the ServerTlsPolicy to delete. Must be in
+   * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java similarity index 62% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java index bd7eef6a..8cd33261 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the GetAuthorizationPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest} */ -public final class GetAuthorizationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAuthorizationPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) GetAuthorizationPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAuthorizationPolicyRequest.newBuilder() to construct. private GetAuthorizationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAuthorizationPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAuthorizationPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAuthorizationPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetAuthorizationPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetAuthorizationPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the AuthorizationPolicy to get. Must be in the format
    * `projects/{project}/locations/{location}/authorizationPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the AuthorizationPolicy to get. Must be in the format
    * `projects/{project}/locations/{location}/authorizationPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest 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.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - 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.networksecurity.v1beta1.GetAuthorizationPolicyRequest 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.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the GetAuthorizationPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest build() { - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -405,8 +364,7 @@ public com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest bu @java.lang.Override public com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,51 +374,46 @@ public com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.GetAuthorizationPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -548,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the AuthorizationPolicy to get. Must be in the format
      * `projects/{project}/locations/{location}/authorizationPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAuthorizationPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAuthorizationPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthorizationPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAuthorizationPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,8 +594,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequestOrBuilder.java new file mode 100644 index 00000000..db14df61 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/authorization_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface GetAuthorizationPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the AuthorizationPolicy to get. Must be in the format
+   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the AuthorizationPolicy to get. Must be in the format
+   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java similarity index 63% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java index 72d31026..aa316b29 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the GetClientTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest} */ -public final class GetClientTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetClientTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) GetClientTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetClientTlsPolicyRequest.newBuilder() to construct. private GetClientTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetClientTlsPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetClientTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetClientTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetClientTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetClientTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the ClientTlsPolicy to get. Must be in the format
    * `projects/*/locations/{location}/clientTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the ClientTlsPolicy to get. Must be in the format
    * `projects/*/locations/{location}/clientTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest 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.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - 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.networksecurity.v1beta1.GetClientTlsPolicyRequest 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.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the GetClientTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest build( @java.lang.Override public com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.GetClientTlsPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the ClientTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/clientTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetClientTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetClientTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClientTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetClientTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..98615ee8 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/client_tls_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface GetClientTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the ClientTlsPolicy to get. Must be in the format
+   * `projects/*/locations/{location}/clientTlsPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the ClientTlsPolicy to get. Must be in the format
+   * `projects/*/locations/{location}/clientTlsPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java similarity index 63% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java index 27a58a5c..bdb91b59 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the GetServerTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest} */ -public final class GetServerTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetServerTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) GetServerTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetServerTlsPolicyRequest.newBuilder() to construct. private GetServerTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetServerTlsPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetServerTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetServerTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetServerTlsPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetServerTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the ServerTlsPolicy to get. Must be in the format
    * `projects/*/locations/{location}/serverTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the ServerTlsPolicy to get. Must be in the format
    * `projects/*/locations/{location}/serverTlsPolicies/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest 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.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - 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.networksecurity.v1beta1.GetServerTlsPolicyRequest 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.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the GetServerTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest build( @java.lang.Override public com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.GetServerTlsPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A name of the ServerTlsPolicy to get. Must be in the format
      * `projects/*/locations/{location}/serverTlsPolicies/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServerTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetServerTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServerTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetServerTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequestOrBuilder.java new file mode 100644 index 00000000..08654615 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/server_tls_policy.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface GetServerTlsPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the ServerTlsPolicy to get. Must be in the format
+   * `projects/*/locations/{location}/serverTlsPolicies/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the ServerTlsPolicy to get. Must be in the format
+   * `projects/*/locations/{location}/serverTlsPolicies/*`.
+   * 
+ * + * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java similarity index 66% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java index c8ee221a..8dea2ec3 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/tls.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Specification of the GRPC Endpoint.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.GrpcEndpoint} */ -public final class GrpcEndpoint extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GrpcEndpoint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.GrpcEndpoint) GrpcEndpointOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GrpcEndpoint.newBuilder() to construct. private GrpcEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GrpcEndpoint() { targetUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GrpcEndpoint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GrpcEndpoint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GrpcEndpoint( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - targetUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GrpcEndpoint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.TlsProto - .internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.TlsProto - .internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.class, - com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder.class); + com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.class, com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder.class); } public static final int TARGET_URI_FIELD_NUMBER = 1; private volatile java.lang.Object targetUri_; /** - * - * *
-   * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-   * should start with “unix:”.
+   * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+   * and should start with "unix:".
    * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetUri. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getTargetUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetUri_ = s; return s; } } /** - * - * *
-   * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-   * should start with “unix:”.
+   * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+   * and should start with "unix:".
    * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetUri. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetUriBytes() { + public com.google.protobuf.ByteString + getTargetUriBytes() { java.lang.Object ref = targetUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetUri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getTargetUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetUri_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.GrpcEndpoint)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.GrpcEndpoint other = - (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) obj; + com.google.cloud.networksecurity.v1beta1.GrpcEndpoint other = (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) obj; - if (!getTargetUri().equals(other.getTargetUri())) return false; + if (!getTargetUri() + .equals(other.getTargetUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint 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.networksecurity.v1beta1.GrpcEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.GrpcEndpoint prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.GrpcEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specification of the GRPC Endpoint.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.GrpcEndpoint} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.GrpcEndpoint) com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.TlsProto - .internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.TlsProto - .internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.class, - com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder.class); + com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.class, com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder.class); } // Construct using com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.TlsProto - .internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_GrpcEndpoint_descriptor; } @java.lang.Override @@ -396,8 +364,7 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint build() { @java.lang.Override public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint buildPartial() { - com.google.cloud.networksecurity.v1beta1.GrpcEndpoint result = - new com.google.cloud.networksecurity.v1beta1.GrpcEndpoint(this); + com.google.cloud.networksecurity.v1beta1.GrpcEndpoint result = new com.google.cloud.networksecurity.v1beta1.GrpcEndpoint(this); result.targetUri_ = targetUri_; onBuilt(); return result; @@ -407,39 +374,38 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.GrpcEndpoint) { - return mergeFrom((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint)other); } else { super.mergeFrom(other); return this; @@ -447,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.GrpcEndpoint other) { - if (other == com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance()) - return this; + if (other == com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance()) return this; if (!other.getTargetUri().isEmpty()) { targetUri_ = other.targetUri_; onChanged(); @@ -472,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object targetUri_ = ""; /** - * - * *
-     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-     * should start with “unix:”.
+     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+     * and should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetUri. */ public java.lang.String getTargetUri() { java.lang.Object ref = targetUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetUri_ = s; return s; @@ -508,22 +470,21 @@ public java.lang.String getTargetUri() { } } /** - * - * *
-     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-     * should start with “unix:”.
+     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+     * and should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetUri. */ - public com.google.protobuf.ByteString getTargetUriBytes() { + public com.google.protobuf.ByteString + getTargetUriBytes() { java.lang.Object ref = targetUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetUri_ = b; return b; } else { @@ -531,71 +492,64 @@ public com.google.protobuf.ByteString getTargetUriBytes() { } } /** - * - * *
-     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-     * should start with “unix:”.
+     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+     * and should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetUri to set. * @return This builder for chaining. */ - public Builder setTargetUri(java.lang.String value) { + public Builder setTargetUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetUri_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-     * should start with “unix:”.
+     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+     * and should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetUri() { - + targetUri_ = getDefaultInstance().getTargetUri(); onChanged(); return this; } /** - * - * *
-     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-     * should start with “unix:”.
+     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+     * and should start with "unix:".
      * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetUri to set. * @return This builder for chaining. */ - public Builder setTargetUriBytes(com.google.protobuf.ByteString value) { + public Builder setTargetUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.GrpcEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.GrpcEndpoint) private static final com.google.cloud.networksecurity.v1beta1.GrpcEndpoint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.GrpcEndpoint(); } @@ -619,16 +573,16 @@ public static com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GrpcEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GrpcEndpoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GrpcEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GrpcEndpoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java new file mode 100644 index 00000000..17ccef4b --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/tls.proto + +package com.google.cloud.networksecurity.v1beta1; + +public interface GrpcEndpointOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.GrpcEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+   * and should start with "unix:".
+   * 
+ * + * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The targetUri. + */ + java.lang.String getTargetUri(); + /** + *
+   * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
+   * and should start with "unix:".
+   * 
+ * + * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for targetUri. + */ + com.google.protobuf.ByteString + getTargetUriBytes(); +} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java similarity index 65% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java index e4ab0da3..44fcf9a2 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used with the ListAuthorizationPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest} */ -public final class ListAuthorizationPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAuthorizationPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) ListAuthorizationPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAuthorizationPoliciesRequest.newBuilder() to construct. - private ListAuthorizationPoliciesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAuthorizationPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAuthorizationPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +26,16 @@ private ListAuthorizationPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAuthorizationPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAuthorizationPoliciesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +54,30 @@ private ListAuthorizationPoliciesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,44 +85,36 @@ private ListAuthorizationPoliciesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.class, - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.Builder - .class); + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.class, com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location from which the AuthorizationPolicies
    * should be listed, specified in the format
    * `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -151,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location from which the AuthorizationPolicies
    * should be listed, specified in the format
    * `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,14 +158,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of AuthorizationPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -206,8 +173,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -216,7 +181,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,15 +189,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -242,15 +205,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -259,7 +223,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -294,7 +258,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -307,18 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest other = - (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) obj; + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest other = (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,146 +308,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest 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.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - 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.networksecurity.v1beta1.ListAuthorizationPoliciesRequest 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.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used with the ListAuthorizationPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.class, - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.Builder - .class); + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.class, com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,22 +449,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest build() { - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -518,10 +469,8 @@ public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - buildPartial() { - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest result = - new com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest(this); + public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest buildPartial() { + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest result = new com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -533,52 +482,46 @@ public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) other); + if (other instanceof com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -605,14 +548,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parsedMessage = - null; + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,24 +564,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -650,25 +586,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -676,88 +609,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the AuthorizationPolicies
      * should be listed, specified in the format
      * `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of AuthorizationPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -765,36 +682,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of AuthorizationPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of AuthorizationPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -802,8 +713,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -812,13 +721,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -827,8 +736,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -837,14 +744,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -852,8 +760,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -862,22 +768,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -886,18 +790,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -906,23 +807,23 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -932,33 +833,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) - private static final com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest(); } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAuthorizationPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAuthorizationPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthorizationPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAuthorizationPoliciesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -970,8 +868,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java index a296b5f5..12cf1208 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java @@ -1,77 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface ListAuthorizationPoliciesRequestOrBuilder - extends +public interface ListAuthorizationPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location from which the AuthorizationPolicies
    * should be listed, specified in the format
    * `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location from which the AuthorizationPolicies
    * should be listed, specified in the format
    * `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of AuthorizationPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -80,13 +50,10 @@ public interface ListAuthorizationPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -95,8 +62,8 @@ public interface ListAuthorizationPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java similarity index 61% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java index 20a54be1..acc0b1df 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Response returned by the ListAuthorizationPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse} */ -public final class ListAuthorizationPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAuthorizationPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) ListAuthorizationPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAuthorizationPoliciesResponse.newBuilder() to construct. - private ListAuthorizationPoliciesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAuthorizationPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAuthorizationPoliciesResponse() { authorizationPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListAuthorizationPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAuthorizationPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAuthorizationPoliciesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,34 +55,28 @@ private ListAuthorizationPoliciesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - authorizationPolicies_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy>(); - mutable_bitField0_ |= 0x00000001; - } - authorizationPolicies_.add( - input.readMessage( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + authorizationPolicies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + authorizationPolicies_.add( + input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +84,8 @@ private ListAuthorizationPoliciesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { authorizationPolicies_ = java.util.Collections.unmodifiableList(authorizationPolicies_); @@ -117,112 +94,82 @@ private ListAuthorizationPoliciesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.class, - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.Builder - .class); + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.class, com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.Builder.class); } public static final int AUTHORIZATION_POLICIES_FIELD_NUMBER = 1; - private java.util.List - authorizationPolicies_; + private java.util.List authorizationPolicies_; /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override - public java.util.List - getAuthorizationPoliciesList() { + public java.util.List getAuthorizationPoliciesList() { return authorizationPolicies_; } /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> + public java.util.List getAuthorizationPoliciesOrBuilderList() { return authorizationPolicies_; } /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override public int getAuthorizationPoliciesCount() { return authorizationPolicies_.size(); } /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicies( - int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicies(int index) { return authorizationPolicies_.get(index); } /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPoliciesOrBuilder( + int index) { return authorizationPolicies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -230,7 +177,6 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthoriza
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -239,15 +185,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -255,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -272,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < authorizationPolicies_.size(); i++) { output.writeMessage(1, authorizationPolicies_.get(i)); } @@ -301,9 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < authorizationPolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, authorizationPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, authorizationPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -316,17 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse other = - (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) obj; + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse other = (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) obj; - if (!getAuthorizationPoliciesList().equals(other.getAuthorizationPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getAuthorizationPoliciesList() + .equals(other.getAuthorizationPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,154 +294,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse 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.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse 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.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - 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.networksecurity.v1beta1.ListAuthorizationPoliciesResponse 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.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - 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.networksecurity.v1beta1.ListAuthorizationPoliciesResponse 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.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response returned by the ListAuthorizationPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.class, - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.Builder - .class); + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.class, com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAuthorizationPoliciesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -512,22 +439,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse build() { - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -535,10 +459,8 @@ public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRespons } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - buildPartial() { - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse result = - new com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse(this); + public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse buildPartial() { + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse result = new com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse(this); int from_bitField0_ = bitField0_; if (authorizationPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -558,52 +480,46 @@ public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRespons public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) other); + if (other instanceof com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) { + return mergeFrom((com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse other) { - if (other - == com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse other) { + if (other == com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse.getDefaultInstance()) return this; if (authorizationPoliciesBuilder_ == null) { if (!other.authorizationPolicies_.isEmpty()) { if (authorizationPolicies_.isEmpty()) { @@ -622,10 +538,9 @@ public Builder mergeFrom( authorizationPoliciesBuilder_ = null; authorizationPolicies_ = other.authorizationPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - authorizationPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAuthorizationPoliciesFieldBuilder() - : null; + authorizationPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAuthorizationPoliciesFieldBuilder() : null; } else { authorizationPoliciesBuilder_.addAllMessages(other.authorizationPolicies_); } @@ -650,14 +565,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parsedMessage = - null; + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,40 +578,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - authorizationPolicies_ = java.util.Collections.emptyList(); - + private java.util.List authorizationPolicies_ = + java.util.Collections.emptyList(); private void ensureAuthorizationPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - authorizationPolicies_ = - new java.util.ArrayList( - authorizationPolicies_); + authorizationPolicies_ = new java.util.ArrayList(authorizationPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> - authorizationPoliciesBuilder_; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> authorizationPoliciesBuilder_; /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public java.util.List - getAuthorizationPoliciesList() { + public java.util.List getAuthorizationPoliciesList() { if (authorizationPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(authorizationPolicies_); } else { @@ -707,15 +607,11 @@ private void ensureAuthorizationPoliciesIsMutable() { } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public int getAuthorizationPoliciesCount() { if (authorizationPoliciesBuilder_ == null) { @@ -725,18 +621,13 @@ public int getAuthorizationPoliciesCount() { } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicies( - int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicies(int index) { if (authorizationPoliciesBuilder_ == null) { return authorizationPolicies_.get(index); } else { @@ -744,15 +635,11 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthoriza } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public Builder setAuthorizationPolicies( int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { @@ -769,19 +656,14 @@ public Builder setAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public Builder setAuthorizationPolicies( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder builderForValue) { if (authorizationPoliciesBuilder_ == null) { ensureAuthorizationPoliciesIsMutable(); authorizationPolicies_.set(index, builderForValue.build()); @@ -792,18 +674,13 @@ public Builder setAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public Builder addAuthorizationPolicies( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { + public Builder addAuthorizationPolicies(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { if (authorizationPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -817,15 +694,11 @@ public Builder addAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public Builder addAuthorizationPolicies( int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { @@ -842,15 +715,11 @@ public Builder addAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public Builder addAuthorizationPolicies( com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder builderForValue) { @@ -864,19 +733,14 @@ public Builder addAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public Builder addAuthorizationPolicies( - int index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder builderForValue) { if (authorizationPoliciesBuilder_ == null) { ensureAuthorizationPoliciesIsMutable(); authorizationPolicies_.add(index, builderForValue.build()); @@ -887,22 +751,18 @@ public Builder addAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public Builder addAllAuthorizationPolicies( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (authorizationPoliciesBuilder_ == null) { ensureAuthorizationPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authorizationPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, authorizationPolicies_); onChanged(); } else { authorizationPoliciesBuilder_.addAllMessages(values); @@ -910,15 +770,11 @@ public Builder addAllAuthorizationPolicies( return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public Builder clearAuthorizationPolicies() { if (authorizationPoliciesBuilder_ == null) { @@ -931,15 +787,11 @@ public Builder clearAuthorizationPolicies() { return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ public Builder removeAuthorizationPolicies(int index) { if (authorizationPoliciesBuilder_ == null) { @@ -952,53 +804,39 @@ public Builder removeAuthorizationPolicies(int index) { return this; } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder - getAuthorizationPoliciesBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder getAuthorizationPoliciesBuilder( + int index) { return getAuthorizationPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPoliciesOrBuilder( + int index) { if (authorizationPoliciesBuilder_ == null) { - return authorizationPolicies_.get(index); - } else { + return authorizationPolicies_.get(index); } else { return authorizationPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public java.util.List< - ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> - getAuthorizationPoliciesOrBuilderList() { + public java.util.List + getAuthorizationPoliciesOrBuilderList() { if (authorizationPoliciesBuilder_ != null) { return authorizationPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -1006,67 +844,45 @@ public Builder removeAuthorizationPolicies(int index) { } } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder - addAuthorizationPoliciesBuilder() { - return getAuthorizationPoliciesFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder addAuthorizationPoliciesBuilder() { + return getAuthorizationPoliciesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance()); } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder - addAuthorizationPoliciesBuilder(int index) { - return getAuthorizationPoliciesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder addAuthorizationPoliciesBuilder( + int index) { + return getAuthorizationPoliciesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance()); } /** - * - * *
      * List of AuthorizationPolicies resources.
      * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - public java.util.List - getAuthorizationPoliciesBuilderList() { + public java.util.List + getAuthorizationPoliciesBuilderList() { return getAuthorizationPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> getAuthorizationPoliciesFieldBuilder() { if (authorizationPoliciesBuilder_ == null) { - authorizationPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder>( + authorizationPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder>( authorizationPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1078,8 +894,6 @@ public Builder removeAuthorizationPolicies(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1087,13 +901,13 @@ public Builder removeAuthorizationPolicies(int index) {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1102,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1111,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1126,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1135,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1158,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1177,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1203,33 +1009,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) - private static final com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse(); } - public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAuthorizationPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAuthorizationPoliciesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthorizationPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAuthorizationPoliciesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1241,8 +1044,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java similarity index 55% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java index 067d0a15..fb04a1bd 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java @@ -1,95 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface ListAuthorizationPoliciesResponseOrBuilder - extends +public interface ListAuthorizationPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - java.util.List + java.util.List getAuthorizationPoliciesList(); /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicies(int index); /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ int getAuthorizationPoliciesCount(); /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - java.util.List + java.util.List getAuthorizationPoliciesOrBuilderList(); /** - * - * *
    * List of AuthorizationPolicies resources.
    * 
* - * - * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policies = 1; */ - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPoliciesOrBuilder(int index); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPoliciesOrBuilder( + int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -97,13 +59,10 @@ public interface ListAuthorizationPoliciesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -111,8 +70,8 @@ public interface ListAuthorizationPoliciesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java similarity index 68% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java index 5fd5dd66..ae64153c 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the ListClientTlsPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest} */ -public final class ListClientTlsPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListClientTlsPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) ListClientTlsPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListClientTlsPoliciesRequest.newBuilder() to construct. private ListClientTlsPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListClientTlsPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListClientTlsPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListClientTlsPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListClientTlsPoliciesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListClientTlsPoliciesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListClientTlsPoliciesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.class, - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.class, com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location from which the ClientTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location from which the ClientTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of ClientTlsPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListClientTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -212,7 +179,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,15 +187,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListClientTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -238,15 +203,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -255,7 +221,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -290,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest other = - (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) obj; + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest other = (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,145 +306,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest 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.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - 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.networksecurity.v1beta1.ListClientTlsPoliciesRequest 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.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the ListClientTlsPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.class, - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.class, com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -489,16 +447,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.getDefaultInstance(); } @java.lang.Override @@ -512,8 +468,7 @@ public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest bui @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest result = - new com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest(this); + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest result = new com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -525,51 +480,46 @@ public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.ListClientTlsPoliciesRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -639,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -664,85 +605,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the ClientTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of ClientTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -750,36 +675,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of ClientTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of ClientTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -787,8 +706,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -797,13 +714,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -812,8 +729,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -822,14 +737,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -837,8 +753,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -847,22 +761,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -871,18 +783,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -891,23 +800,23 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -917,32 +826,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) - private static final com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest(); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClientTlsPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListClientTlsPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClientTlsPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClientTlsPoliciesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,8 +861,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java index 3db91799..c4f7150c 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface ListClientTlsPoliciesRequestOrBuilder - extends +public interface ListClientTlsPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location from which the ClientTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location from which the ClientTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of ClientTlsPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListClientTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -78,13 +48,10 @@ public interface ListClientTlsPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListClientTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -93,8 +60,8 @@ public interface ListClientTlsPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java similarity index 69% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java index aafa4962..b79c65ef 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Response returned by the ListClientTlsPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse} */ -public final class ListClientTlsPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListClientTlsPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) ListClientTlsPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListClientTlsPoliciesResponse.newBuilder() to construct. private ListClientTlsPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListClientTlsPoliciesResponse() { clientTlsPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListClientTlsPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListClientTlsPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListClientTlsPoliciesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListClientTlsPoliciesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientTlsPolicies_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy>(); - mutable_bitField0_ |= 0x00000001; - } - clientTlsPolicies_.add( - input.readMessage( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + clientTlsPolicies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + clientTlsPolicies_.add( + input.readMessage(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListClientTlsPoliciesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { clientTlsPolicies_ = java.util.Collections.unmodifiableList(clientTlsPolicies_); @@ -116,104 +94,82 @@ private ListClientTlsPoliciesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.class, - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.class, com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.Builder.class); } public static final int CLIENT_TLS_POLICIES_FIELD_NUMBER = 1; - private java.util.List - clientTlsPolicies_; + private java.util.List clientTlsPolicies_; /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ @java.lang.Override - public java.util.List - getClientTlsPoliciesList() { + public java.util.List getClientTlsPoliciesList() { return clientTlsPolicies_; } /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getClientTlsPoliciesOrBuilderList() { return clientTlsPolicies_; } /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ @java.lang.Override public int getClientTlsPoliciesCount() { return clientTlsPolicies_.size(); } /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicies(int index) { return clientTlsPolicies_.get(index); } /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder - getClientTlsPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPoliciesOrBuilder( + int index) { return clientTlsPolicies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -221,7 +177,6 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPoli
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -230,15 +185,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -246,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -263,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < clientTlsPolicies_.size(); i++) { output.writeMessage(1, clientTlsPolicies_.get(i)); } @@ -292,8 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < clientTlsPolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, clientTlsPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, clientTlsPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -306,16 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse other = - (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) obj; + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse other = (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) obj; - if (!getClientTlsPoliciesList().equals(other.getClientTlsPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getClientTlsPoliciesList() + .equals(other.getClientTlsPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,147 +295,135 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse 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.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - 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.networksecurity.v1beta1.ListClientTlsPoliciesResponse 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.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response returned by the ListClientTlsPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.class, - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.class, com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getClientTlsPoliciesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,22 +439,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse build() { - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -519,8 +460,7 @@ public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse bu @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse buildPartial() { - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse result = - new com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse(this); + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse result = new com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse(this); int from_bitField0_ = bitField0_; if (clientTlsPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -540,51 +480,46 @@ public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.ListClientTlsPoliciesResponse) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse other) { - if (other - == com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse other) { + if (other == com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse.getDefaultInstance()) return this; if (clientTlsPoliciesBuilder_ == null) { if (!other.clientTlsPolicies_.isEmpty()) { if (clientTlsPolicies_.isEmpty()) { @@ -603,10 +538,9 @@ public Builder mergeFrom( clientTlsPoliciesBuilder_ = null; clientTlsPolicies_ = other.clientTlsPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - clientTlsPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClientTlsPoliciesFieldBuilder() - : null; + clientTlsPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClientTlsPoliciesFieldBuilder() : null; } else { clientTlsPoliciesBuilder_.addAllMessages(other.clientTlsPolicies_); } @@ -635,9 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -646,39 +578,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - clientTlsPolicies_ = java.util.Collections.emptyList(); - + private java.util.List clientTlsPolicies_ = + java.util.Collections.emptyList(); private void ensureClientTlsPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - clientTlsPolicies_ = - new java.util.ArrayList( - clientTlsPolicies_); + clientTlsPolicies_ = new java.util.ArrayList(clientTlsPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> - clientTlsPoliciesBuilder_; + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> clientTlsPoliciesBuilder_; /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public java.util.List - getClientTlsPoliciesList() { + public java.util.List getClientTlsPoliciesList() { if (clientTlsPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(clientTlsPolicies_); } else { @@ -686,14 +607,11 @@ private void ensureClientTlsPoliciesIsMutable() { } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public int getClientTlsPoliciesCount() { if (clientTlsPoliciesBuilder_ == null) { @@ -703,17 +621,13 @@ public int getClientTlsPoliciesCount() { } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicies( - int index) { + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicies(int index) { if (clientTlsPoliciesBuilder_ == null) { return clientTlsPolicies_.get(index); } else { @@ -721,14 +635,11 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPoli } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public Builder setClientTlsPolicies( int index, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { @@ -745,18 +656,14 @@ public Builder setClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public Builder setClientTlsPolicies( - int index, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder builderForValue) { if (clientTlsPoliciesBuilder_ == null) { ensureClientTlsPoliciesIsMutable(); clientTlsPolicies_.set(index, builderForValue.build()); @@ -767,17 +674,13 @@ public Builder setClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public Builder addClientTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { + public Builder addClientTlsPolicies(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { if (clientTlsPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -791,14 +694,11 @@ public Builder addClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addClientTlsPolicies( int index, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { @@ -815,14 +715,11 @@ public Builder addClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addClientTlsPolicies( com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder builderForValue) { @@ -836,18 +733,14 @@ public Builder addClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addClientTlsPolicies( - int index, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder builderForValue) { if (clientTlsPoliciesBuilder_ == null) { ensureClientTlsPoliciesIsMutable(); clientTlsPolicies_.add(index, builderForValue.build()); @@ -858,21 +751,18 @@ public Builder addClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public Builder addAllClientTlsPolicies( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (clientTlsPoliciesBuilder_ == null) { ensureClientTlsPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientTlsPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clientTlsPolicies_); onChanged(); } else { clientTlsPoliciesBuilder_.addAllMessages(values); @@ -880,14 +770,11 @@ public Builder addAllClientTlsPolicies( return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public Builder clearClientTlsPolicies() { if (clientTlsPoliciesBuilder_ == null) { @@ -900,14 +787,11 @@ public Builder clearClientTlsPolicies() { return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ public Builder removeClientTlsPolicies(int index) { if (clientTlsPoliciesBuilder_ == null) { @@ -920,50 +804,39 @@ public Builder removeClientTlsPolicies(int index) { return this; } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder - getClientTlsPoliciesBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder getClientTlsPoliciesBuilder( + int index) { return getClientTlsPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder - getClientTlsPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPoliciesOrBuilder( + int index) { if (clientTlsPoliciesBuilder_ == null) { - return clientTlsPolicies_.get(index); - } else { + return clientTlsPolicies_.get(index); } else { return clientTlsPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public java.util.List< - ? extends com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> - getClientTlsPoliciesOrBuilderList() { + public java.util.List + getClientTlsPoliciesOrBuilderList() { if (clientTlsPoliciesBuilder_ != null) { return clientTlsPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -971,63 +844,45 @@ public Builder removeClientTlsPolicies(int index) { } } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder - addClientTlsPoliciesBuilder() { - return getClientTlsPoliciesFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder addClientTlsPoliciesBuilder() { + return getClientTlsPoliciesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance()); } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder - addClientTlsPoliciesBuilder(int index) { - return getClientTlsPoliciesFieldBuilder() - .addBuilder( - index, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder addClientTlsPoliciesBuilder( + int index) { + return getClientTlsPoliciesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance()); } /** - * - * *
      * List of ClientTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - public java.util.List - getClientTlsPoliciesBuilderList() { + public java.util.List + getClientTlsPoliciesBuilderList() { return getClientTlsPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> getClientTlsPoliciesFieldBuilder() { if (clientTlsPoliciesBuilder_ == null) { - clientTlsPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder>( + clientTlsPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder>( clientTlsPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1039,8 +894,6 @@ public Builder removeClientTlsPolicies(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1048,13 +901,13 @@ public Builder removeClientTlsPolicies(int index) {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1063,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1072,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1087,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1096,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1119,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1138,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,32 +1009,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) - private static final com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse(); } - public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClientTlsPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListClientTlsPoliciesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClientTlsPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClientTlsPoliciesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1201,8 +1044,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java index 8403079d..3d9f1fd8 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java @@ -1,90 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface ListClientTlsPoliciesResponseOrBuilder - extends +public interface ListClientTlsPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - java.util.List + java.util.List getClientTlsPoliciesList(); /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicies(int index); /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ int getClientTlsPoliciesCount(); /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ - java.util.List + java.util.List getClientTlsPoliciesOrBuilderList(); /** - * - * *
    * List of ClientTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policies = 1; */ com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPoliciesOrBuilder( int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -92,13 +59,10 @@ com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPo
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -106,8 +70,8 @@ com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPo
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java similarity index 68% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java index 8a5a67fa..8a1373ef 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by the ListServerTlsPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest} */ -public final class ListServerTlsPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServerTlsPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) ListServerTlsPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServerTlsPoliciesRequest.newBuilder() to construct. private ListServerTlsPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServerTlsPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListServerTlsPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServerTlsPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListServerTlsPoliciesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListServerTlsPoliciesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListServerTlsPoliciesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.class, - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.class, com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location from which the ServerTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location from which the ServerTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of ServerTlsPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListServerTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -212,7 +179,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,15 +187,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListServerTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -238,15 +203,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -255,7 +221,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -290,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest other = - (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) obj; + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest other = (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,145 +306,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest 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.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - 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.networksecurity.v1beta1.ListServerTlsPoliciesRequest 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.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the ListServerTlsPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.class, - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.class, com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -489,16 +447,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.getDefaultInstance(); } @java.lang.Override @@ -512,8 +468,7 @@ public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest bui @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest result = - new com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest(this); + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest result = new com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -525,51 +480,46 @@ public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.ListServerTlsPoliciesRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -639,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -664,85 +605,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location from which the ServerTlsPolicies should
      * be listed, specified in the format `projects/*/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of ServerTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -750,36 +675,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of ServerTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of ServerTlsPolicies to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -787,8 +706,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -797,13 +714,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -812,8 +729,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -822,14 +737,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -837,8 +753,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -847,22 +761,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -871,18 +783,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -891,23 +800,23 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -917,32 +826,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) - private static final com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest(); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServerTlsPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServerTlsPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServerTlsPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListServerTlsPoliciesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,8 +861,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java index 2755e2f5..2a0fd3f6 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface ListServerTlsPoliciesRequestOrBuilder - extends +public interface ListServerTlsPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location from which the ServerTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location from which the ServerTlsPolicies should
    * be listed, specified in the format `projects/*/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of ServerTlsPolicies to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListServerTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -78,13 +48,10 @@ public interface ListServerTlsPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListServerTlsPoliciesResponse`
    * Indicates that this is a continuation of a prior
@@ -93,8 +60,8 @@ public interface ListServerTlsPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java similarity index 69% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java index bb8a5f5f..3e773d3e 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Response returned by the ListServerTlsPolicies method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse} */ -public final class ListServerTlsPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServerTlsPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) ListServerTlsPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServerTlsPoliciesResponse.newBuilder() to construct. private ListServerTlsPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServerTlsPoliciesResponse() { serverTlsPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListServerTlsPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServerTlsPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListServerTlsPoliciesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListServerTlsPoliciesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serverTlsPolicies_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy>(); - mutable_bitField0_ |= 0x00000001; - } - serverTlsPolicies_.add( - input.readMessage( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + serverTlsPolicies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + serverTlsPolicies_.add( + input.readMessage(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListServerTlsPoliciesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { serverTlsPolicies_ = java.util.Collections.unmodifiableList(serverTlsPolicies_); @@ -116,104 +94,82 @@ private ListServerTlsPoliciesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.class, - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.class, com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.Builder.class); } public static final int SERVER_TLS_POLICIES_FIELD_NUMBER = 1; - private java.util.List - serverTlsPolicies_; + private java.util.List serverTlsPolicies_; /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ @java.lang.Override - public java.util.List - getServerTlsPoliciesList() { + public java.util.List getServerTlsPoliciesList() { return serverTlsPolicies_; } /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServerTlsPoliciesOrBuilderList() { return serverTlsPolicies_; } /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ @java.lang.Override public int getServerTlsPoliciesCount() { return serverTlsPolicies_.size(); } /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicies(int index) { return serverTlsPolicies_.get(index); } /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder - getServerTlsPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPoliciesOrBuilder( + int index) { return serverTlsPolicies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -221,7 +177,6 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPoli
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -230,15 +185,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -246,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -263,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < serverTlsPolicies_.size(); i++) { output.writeMessage(1, serverTlsPolicies_.get(i)); } @@ -292,8 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < serverTlsPolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, serverTlsPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, serverTlsPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -306,16 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse other = - (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) obj; + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse other = (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) obj; - if (!getServerTlsPoliciesList().equals(other.getServerTlsPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getServerTlsPoliciesList() + .equals(other.getServerTlsPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,147 +295,135 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse 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.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - 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.networksecurity.v1beta1.ListServerTlsPoliciesResponse 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.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response returned by the ListServerTlsPolicies method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.class, - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.Builder.class); + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.class, com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getServerTlsPoliciesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,22 +439,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse build() { - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -519,8 +460,7 @@ public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse bu @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse buildPartial() { - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse result = - new com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse(this); + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse result = new com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse(this); int from_bitField0_ = bitField0_; if (serverTlsPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -540,51 +480,46 @@ public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.ListServerTlsPoliciesResponse) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse other) { - if (other - == com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse other) { + if (other == com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse.getDefaultInstance()) return this; if (serverTlsPoliciesBuilder_ == null) { if (!other.serverTlsPolicies_.isEmpty()) { if (serverTlsPolicies_.isEmpty()) { @@ -603,10 +538,9 @@ public Builder mergeFrom( serverTlsPoliciesBuilder_ = null; serverTlsPolicies_ = other.serverTlsPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - serverTlsPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServerTlsPoliciesFieldBuilder() - : null; + serverTlsPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServerTlsPoliciesFieldBuilder() : null; } else { serverTlsPoliciesBuilder_.addAllMessages(other.serverTlsPolicies_); } @@ -635,9 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -646,39 +578,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - serverTlsPolicies_ = java.util.Collections.emptyList(); - + private java.util.List serverTlsPolicies_ = + java.util.Collections.emptyList(); private void ensureServerTlsPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - serverTlsPolicies_ = - new java.util.ArrayList( - serverTlsPolicies_); + serverTlsPolicies_ = new java.util.ArrayList(serverTlsPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> - serverTlsPoliciesBuilder_; + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> serverTlsPoliciesBuilder_; /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public java.util.List - getServerTlsPoliciesList() { + public java.util.List getServerTlsPoliciesList() { if (serverTlsPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(serverTlsPolicies_); } else { @@ -686,14 +607,11 @@ private void ensureServerTlsPoliciesIsMutable() { } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public int getServerTlsPoliciesCount() { if (serverTlsPoliciesBuilder_ == null) { @@ -703,17 +621,13 @@ public int getServerTlsPoliciesCount() { } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicies( - int index) { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicies(int index) { if (serverTlsPoliciesBuilder_ == null) { return serverTlsPolicies_.get(index); } else { @@ -721,14 +635,11 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPoli } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public Builder setServerTlsPolicies( int index, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { @@ -745,18 +656,14 @@ public Builder setServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public Builder setServerTlsPolicies( - int index, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder builderForValue) { if (serverTlsPoliciesBuilder_ == null) { ensureServerTlsPoliciesIsMutable(); serverTlsPolicies_.set(index, builderForValue.build()); @@ -767,17 +674,13 @@ public Builder setServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public Builder addServerTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { + public Builder addServerTlsPolicies(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { if (serverTlsPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -791,14 +694,11 @@ public Builder addServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addServerTlsPolicies( int index, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { @@ -815,14 +715,11 @@ public Builder addServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addServerTlsPolicies( com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder builderForValue) { @@ -836,18 +733,14 @@ public Builder addServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addServerTlsPolicies( - int index, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder builderForValue) { if (serverTlsPoliciesBuilder_ == null) { ensureServerTlsPoliciesIsMutable(); serverTlsPolicies_.add(index, builderForValue.build()); @@ -858,21 +751,18 @@ public Builder addServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public Builder addAllServerTlsPolicies( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (serverTlsPoliciesBuilder_ == null) { ensureServerTlsPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverTlsPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverTlsPolicies_); onChanged(); } else { serverTlsPoliciesBuilder_.addAllMessages(values); @@ -880,14 +770,11 @@ public Builder addAllServerTlsPolicies( return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public Builder clearServerTlsPolicies() { if (serverTlsPoliciesBuilder_ == null) { @@ -900,14 +787,11 @@ public Builder clearServerTlsPolicies() { return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ public Builder removeServerTlsPolicies(int index) { if (serverTlsPoliciesBuilder_ == null) { @@ -920,50 +804,39 @@ public Builder removeServerTlsPolicies(int index) { return this; } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder - getServerTlsPoliciesBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder getServerTlsPoliciesBuilder( + int index) { return getServerTlsPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder - getServerTlsPoliciesOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPoliciesOrBuilder( + int index) { if (serverTlsPoliciesBuilder_ == null) { - return serverTlsPolicies_.get(index); - } else { + return serverTlsPolicies_.get(index); } else { return serverTlsPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public java.util.List< - ? extends com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> - getServerTlsPoliciesOrBuilderList() { + public java.util.List + getServerTlsPoliciesOrBuilderList() { if (serverTlsPoliciesBuilder_ != null) { return serverTlsPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -971,63 +844,45 @@ public Builder removeServerTlsPolicies(int index) { } } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder - addServerTlsPoliciesBuilder() { - return getServerTlsPoliciesFieldBuilder() - .addBuilder( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder addServerTlsPoliciesBuilder() { + return getServerTlsPoliciesFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance()); } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder - addServerTlsPoliciesBuilder(int index) { - return getServerTlsPoliciesFieldBuilder() - .addBuilder( - index, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder addServerTlsPoliciesBuilder( + int index) { + return getServerTlsPoliciesFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance()); } /** - * - * *
      * List of ServerTlsPolicy resources.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - public java.util.List - getServerTlsPoliciesBuilderList() { + public java.util.List + getServerTlsPoliciesBuilderList() { return getServerTlsPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> getServerTlsPoliciesFieldBuilder() { if (serverTlsPoliciesBuilder_ == null) { - serverTlsPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder>( + serverTlsPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder>( serverTlsPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1039,8 +894,6 @@ public Builder removeServerTlsPolicies(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1048,13 +901,13 @@ public Builder removeServerTlsPolicies(int index) {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1063,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1072,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1087,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1096,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1119,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1138,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,32 +1009,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) - private static final com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse(); } - public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServerTlsPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServerTlsPoliciesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServerTlsPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListServerTlsPoliciesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1201,8 +1044,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java index 4d19ceb9..ba3647f0 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java @@ -1,90 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface ListServerTlsPoliciesResponseOrBuilder - extends +public interface ListServerTlsPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - java.util.List + java.util.List getServerTlsPoliciesList(); /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicies(int index); /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ int getServerTlsPoliciesCount(); /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ - java.util.List + java.util.List getServerTlsPoliciesOrBuilderList(); /** - * - * *
    * List of ServerTlsPolicy resources.
    * 
* - * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policies = 1; */ com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPoliciesOrBuilder( int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -92,13 +59,10 @@ com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPo
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -106,8 +70,8 @@ com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPo
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityOuterClass.java new file mode 100644 index 00000000..af933751 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityOuterClass.java @@ -0,0 +1,183 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1beta1/network_security.proto + +package com.google.cloud.networksecurity.v1beta1; + +public final class NetworkSecurityOuterClass { + private NetworkSecurityOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/networksecurity/v1beta1/n" + + "etwork_security.proto\022$google.cloud.netw" + + "orksecurity.v1beta1\032\034google/api/annotati" + + "ons.proto\032\027google/api/client.proto\032?goog" + + "le/cloud/networksecurity/v1beta1/authori" + + "zation_policy.proto\032/v1beta1/{paren" + + "t=projects/*/locations/*}/authorizationP" + + "olicies\332A\006parent\022\347\001\n\026GetAuthorizationPol" + + "icy\022C.google.cloud.networksecurity.v1bet" + + "a1.GetAuthorizationPolicyRequest\0329.googl" + + "e.cloud.networksecurity.v1beta1.Authoriz" + + "ationPolicy\"M\202\323\344\223\002@\022>/v1beta1/{name=proj" + + "ects/*/locations/*/authorizationPolicies" + + "/*}\332A\004name\022\347\002\n\031CreateAuthorizationPolicy" + + "\022F.google.cloud.networksecurity.v1beta1." + + "CreateAuthorizationPolicyRequest\032\035.googl" + + "e.longrunning.Operation\"\342\001\202\323\344\223\002V\">/v1bet" + + "a1/{parent=projects/*/locations/*}/autho" + + "rizationPolicies:\024authorization_policy\332A" + + "3parent,authorization_policy,authorizati" + + "on_policy_id\312AM\n\023AuthorizationPolicy\0226go" + + "ogle.cloud.networksecurity.v1beta1.Opera" + + "tionMetadata\022\351\002\n\031UpdateAuthorizationPoli" + + "cy\022F.google.cloud.networksecurity.v1beta" + + "1.UpdateAuthorizationPolicyRequest\032\035.goo" + + "gle.longrunning.Operation\"\344\001\202\323\344\223\002k2S/v1b" + + "eta1/{authorization_policy.name=projects" + + "/*/locations/*/authorizationPolicies/*}:" + + "\024authorization_policy\332A authorization_po" + + "licy,update_mask\312AM\n\023AuthorizationPolicy" + + "\0226google.cloud.networksecurity.v1beta1.O" + + "perationMetadata\022\244\002\n\031DeleteAuthorization" + + "Policy\022F.google.cloud.networksecurity.v1" + + "beta1.DeleteAuthorizationPolicyRequest\032\035" + + ".google.longrunning.Operation\"\237\001\202\323\344\223\002@*>" + + "/v1beta1/{name=projects/*/locations/*/au" + + "thorizationPolicies/*}\332A\004name\312AO\n\025google" + + ".protobuf.Empty\0226google.cloud.networksec" + + "urity.v1beta1.OperationMetadata\022\355\001\n\025List" + + "ServerTlsPolicies\022B.google.cloud.network" + + "security.v1beta1.ListServerTlsPoliciesRe" + + "quest\032C.google.cloud.networksecurity.v1b" + + "eta1.ListServerTlsPoliciesResponse\"K\202\323\344\223" + + "\002<\022:/v1beta1/{parent=projects/*/location" + + "s/*}/serverTlsPolicies\332A\006parent\022\327\001\n\022GetS" + + "erverTlsPolicy\022?.google.cloud.networksec" + + "urity.v1beta1.GetServerTlsPolicyRequest\032" + + "5.google.cloud.networksecurity.v1beta1.S" + + "erverTlsPolicy\"I\202\323\344\223\002<\022:/v1beta1/{name=p" + + "rojects/*/locations/*/serverTlsPolicies/" + + "*}\332A\004name\022\316\002\n\025CreateServerTlsPolicy\022B.go" + + "ogle.cloud.networksecurity.v1beta1.Creat" + + "eServerTlsPolicyRequest\032\035.google.longrun" + + "ning.Operation\"\321\001\202\323\344\223\002O\":/v1beta1/{paren" + + "t=projects/*/locations/*}/serverTlsPolic" + + "ies:\021server_tls_policy\332A-parent,server_t" + + "ls_policy,server_tls_policy_id\312AI\n\017Serve" + + "rTlsPolicy\0226google.cloud.networksecurity" + + ".v1beta1.OperationMetadata\022\320\002\n\025UpdateSer" + + "verTlsPolicy\022B.google.cloud.networksecur" + + "ity.v1beta1.UpdateServerTlsPolicyRequest" + + "\032\035.google.longrunning.Operation\"\323\001\202\323\344\223\002a" + + "2L/v1beta1/{server_tls_policy.name=proje" + + "cts/*/locations/*/serverTlsPolicies/*}:\021" + + "server_tls_policy\332A\035server_tls_policy,up" + + "date_mask\312AI\n\017ServerTlsPolicy\0226google.cl" + + "oud.networksecurity.v1beta1.OperationMet" + + "adata\022\230\002\n\025DeleteServerTlsPolicy\022B.google" + + ".cloud.networksecurity.v1beta1.DeleteSer" + + "verTlsPolicyRequest\032\035.google.longrunning" + + ".Operation\"\233\001\202\323\344\223\002<*:/v1beta1/{name=proj" + + "ects/*/locations/*/serverTlsPolicies/*}\332" + + "A\004name\312AO\n\025google.protobuf.Empty\0226google" + + ".cloud.networksecurity.v1beta1.Operation" + + "Metadata\022\355\001\n\025ListClientTlsPolicies\022B.goo" + + "gle.cloud.networksecurity.v1beta1.ListCl" + + "ientTlsPoliciesRequest\032C.google.cloud.ne" + + "tworksecurity.v1beta1.ListClientTlsPolic" + + "iesResponse\"K\202\323\344\223\002<\022:/v1beta1/{parent=pr" + + "ojects/*/locations/*}/clientTlsPolicies\332" + + "A\006parent\022\327\001\n\022GetClientTlsPolicy\022?.google" + + ".cloud.networksecurity.v1beta1.GetClient" + + "TlsPolicyRequest\0325.google.cloud.networks" + + "ecurity.v1beta1.ClientTlsPolicy\"I\202\323\344\223\002<\022" + + ":/v1beta1/{name=projects/*/locations/*/c" + + "lientTlsPolicies/*}\332A\004name\022\316\002\n\025CreateCli" + + "entTlsPolicy\022B.google.cloud.networksecur" + + "ity.v1beta1.CreateClientTlsPolicyRequest" + + "\032\035.google.longrunning.Operation\"\321\001\202\323\344\223\002O" + + "\":/v1beta1/{parent=projects/*/locations/" + + "*}/clientTlsPolicies:\021client_tls_policy\332" + + "A-parent,client_tls_policy,client_tls_po" + + "licy_id\312AI\n\017ClientTlsPolicy\0226google.clou" + + "d.networksecurity.v1beta1.OperationMetad" + + "ata\022\320\002\n\025UpdateClientTlsPolicy\022B.google.c" + + "loud.networksecurity.v1beta1.UpdateClien" + + "tTlsPolicyRequest\032\035.google.longrunning.O" + + "peration\"\323\001\202\323\344\223\002a2L/v1beta1/{client_tls_" + + "policy.name=projects/*/locations/*/clien" + + "tTlsPolicies/*}:\021client_tls_policy\332A\035cli" + + "ent_tls_policy,update_mask\312AI\n\017ClientTls" + + "Policy\0226google.cloud.networksecurity.v1b" + + "eta1.OperationMetadata\022\230\002\n\025DeleteClientT" + + "lsPolicy\022B.google.cloud.networksecurity." + + "v1beta1.DeleteClientTlsPolicyRequest\032\035.g" + + "oogle.longrunning.Operation\"\233\001\202\323\344\223\002<*:/v" + + "1beta1/{name=projects/*/locations/*/clie" + + "ntTlsPolicies/*}\332A\004name\312AO\n\025google.proto" + + "buf.Empty\0226google.cloud.networksecurity." + + "v1beta1.OperationMetadata\032R\312A\036networksec" + + "urity.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\371\001\n(com.go" + + "ogle.cloud.networksecurity.v1beta1P\001ZSgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/networksecurity/v1beta1;networksecurit" + + "y\252\002$Google.Cloud.NetworkSecurity.V1Beta1" + + "\312\002$Google\\Cloud\\NetworkSecurity\\V1beta1\352" + + "\002\'Google::Cloud::NetworkSecurity::V1beta" + + "1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java similarity index 70% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java index 2b549789..522a56ce 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/common.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.CommonProto - .internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.CommonProto.internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.CommonProto - .internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.CommonProto.internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.OperationMetadata.class, - com.google.cloud.networksecurity.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.networksecurity.v1beta1.OperationMetadata.class, com.google.cloud.networksecurity.v1beta1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,29 +237,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,29 +283,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -387,29 +329,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -420,17 +362,15 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. 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`.
+   * 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]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +381,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +394,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +425,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +436,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +469,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +486,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -560,27 +500,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.OperationMetadata other = - (com.google.cloud.networksecurity.v1beta1.OperationMetadata) obj; + com.google.cloud.networksecurity.v1beta1.OperationMetadata other = (com.google.cloud.networksecurity.v1beta1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +553,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -616,127 +563,117 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata 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.networksecurity.v1beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.OperationMetadata) com.google.cloud.networksecurity.v1beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.CommonProto - .internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.CommonProto.internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.CommonProto - .internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.CommonProto.internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.OperationMetadata.class, - com.google.cloud.networksecurity.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.networksecurity.v1beta1.OperationMetadata.class, com.google.cloud.networksecurity.v1beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networksecurity.v1beta1.OperationMetadata.newBuilder() @@ -744,15 +681,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -782,9 +720,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.CommonProto - .internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.CommonProto.internal_static_google_cloud_networksecurity_v1beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -803,8 +741,7 @@ public com.google.cloud.networksecurity.v1beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networksecurity.v1beta1.OperationMetadata buildPartial() { - com.google.cloud.networksecurity.v1beta1.OperationMetadata result = - new com.google.cloud.networksecurity.v1beta1.OperationMetadata(this); + com.google.cloud.networksecurity.v1beta1.OperationMetadata result = new com.google.cloud.networksecurity.v1beta1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -828,39 +765,38 @@ public com.google.cloud.networksecurity.v1beta1.OperationMetadata buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.networksecurity.v1beta1.OperationMetadata) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -868,8 +804,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.networksecurity.v1beta1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.networksecurity.v1beta1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -914,8 +849,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -927,58 +861,39 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -994,17 +909,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1015,21 +927,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1041,15 +949,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1063,64 +967,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1128,35 +1016,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1167,14 +1044,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1190,16 +1064,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1210,20 +1082,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1235,14 +1104,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1256,59 +1122,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1316,20 +1171,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1338,21 +1191,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1360,61 +1212,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1422,20 +1267,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1444,21 +1287,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1466,61 +1308,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1528,20 +1363,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1550,21 +1383,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1572,79 +1404,70 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. 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`.
+     * 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]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1652,42 +1475,38 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. 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`.
+     * 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]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. 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`.
+     * 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]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1695,20 +1514,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1717,21 +1534,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1739,68 +1555,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1810,12 +1619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.OperationMetadata) private static final com.google.cloud.networksecurity.v1beta1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.OperationMetadata(); } @@ -1824,16 +1633,16 @@ public static com.google.cloud.networksecurity.v1beta1.OperationMetadata getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1848,4 +1657,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java index 3f97707f..4e15af81 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java @@ -1,217 +1,157 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/common.proto package com.google.cloud.networksecurity.v1beta1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. 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`.
+   * 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]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java similarity index 69% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java index 9aba06b8..e627d8ca 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * ServerTlsPolicy is a resource that specifies how a server should authenticate
  * incoming requests. This resource itself does not affect configuration unless
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1beta1.ServerTlsPolicy}
  */
-public final class ServerTlsPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ServerTlsPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ServerTlsPolicy)
     ServerTlsPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ServerTlsPolicy.newBuilder() to construct.
   private ServerTlsPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ServerTlsPolicy() {
     name_ = "";
     description_ = "";
@@ -46,15 +28,16 @@ private ServerTlsPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ServerTlsPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ServerTlsPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,111 +57,95 @@ private ServerTlsPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 48:
-            {
-              allowOpen_ = input.readBool();
-              break;
+
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder subBuilder =
-                  null;
-              if (serverCertificate_ != null) {
-                subBuilder = serverCertificate_.toBuilder();
-              }
-              serverCertificate_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.CertificateProvider.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(serverCertificate_);
-                serverCertificate_ = subBuilder.buildPartial();
-              }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 48: {
 
-              break;
+            allowOpen_ = input.readBool();
+            break;
+          }
+          case 58: {
+            com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder subBuilder = null;
+            if (serverCertificate_ != null) {
+              subBuilder = serverCertificate_.toBuilder();
+            }
+            serverCertificate_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.CertificateProvider.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(serverCertificate_);
+              serverCertificate_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder
-                  subBuilder = null;
-              if (mtlsPolicy_ != null) {
-                subBuilder = mtlsPolicy_.toBuilder();
-              }
-              mtlsPolicy_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(mtlsPolicy_);
-                mtlsPolicy_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 66: {
+            com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder subBuilder = null;
+            if (mtlsPolicy_ != null) {
+              subBuilder = mtlsPolicy_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            mtlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(mtlsPolicy_);
+              mtlsPolicy_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -186,142 +153,123 @@ private ServerTlsPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto
-        .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto
-        .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.class,
-            com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder.class);
+            com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.class, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder.class);
   }
 
-  public interface MTLSPolicyOrBuilder
-      extends
+  public interface MTLSPolicyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - java.util.List + java.util.List getClientValidationCaList(); /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ com.google.cloud.networksecurity.v1beta1.ValidationCA getClientValidationCa(int index); /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ int getClientValidationCaCount(); /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - java.util.List + java.util.List getClientValidationCaOrBuilderList(); /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder getClientValidationCaOrBuilder( int index); } /** - * - * *
    * Specification of the MTLSPolicy.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy} */ - public static final class MTLSPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class MTLSPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) MTLSPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MTLSPolicy.newBuilder() to construct. private MTLSPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MTLSPolicy() { clientValidationCa_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MTLSPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MTLSPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -341,27 +289,22 @@ private MTLSPolicy( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientValidationCa_ = - new java.util.ArrayList< - com.google.cloud.networksecurity.v1beta1.ValidationCA>(); - mutable_bitField0_ |= 0x00000001; - } - clientValidationCa_.add( - input.readMessage( - com.google.cloud.networksecurity.v1beta1.ValidationCA.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + clientValidationCa_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + clientValidationCa_.add( + input.readMessage(com.google.cloud.networksecurity.v1beta1.ValidationCA.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -369,7 +312,8 @@ private MTLSPolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { clientValidationCa_ = java.util.Collections.unmodifiableList(clientValidationCa_); @@ -378,106 +322,85 @@ private MTLSPolicy( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.class, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder.class); + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.class, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder.class); } public static final int CLIENT_VALIDATION_CA_FIELD_NUMBER = 1; - private java.util.List - clientValidationCa_; + private java.util.List clientValidationCa_; /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ @java.lang.Override - public java.util.List - getClientValidationCaList() { + public java.util.List getClientValidationCaList() { return clientValidationCa_; } /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ @java.lang.Override - public java.util.List + public java.util.List getClientValidationCaOrBuilderList() { return clientValidationCa_; } /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ @java.lang.Override public int getClientValidationCaCount() { return clientValidationCa_.size(); } /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ValidationCA getClientValidationCa(int index) { return clientValidationCa_.get(index); } /** - * - * *
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
      * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder - getClientValidationCaOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder getClientValidationCaOrBuilder( + int index) { return clientValidationCa_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -489,7 +412,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < clientValidationCa_.size(); i++) { output.writeMessage(1, clientValidationCa_.get(i)); } @@ -503,8 +427,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < clientValidationCa_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, clientValidationCa_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, clientValidationCa_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -514,15 +438,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy other = - (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) obj; + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy other = (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) obj; - if (!getClientValidationCaList().equals(other.getClientValidationCaList())) return false; + if (!getClientValidationCaList() + .equals(other.getClientValidationCaList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -544,95 +468,87 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy 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.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - 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.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy 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.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -642,51 +558,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specification of the MTLSPolicy.
      * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.class, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder.class); + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.class, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getClientValidationCaFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -700,16 +610,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance(); } @java.lang.Override @@ -723,8 +631,7 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy build @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy buildPartial() { - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy result = - new com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy(this); + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy result = new com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy(this); int from_bitField0_ = bitField0_; if (clientValidationCaBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -743,53 +650,46 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy other) { - if (other - == com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy other) { + if (other == com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance()) return this; if (clientValidationCaBuilder_ == null) { if (!other.clientValidationCa_.isEmpty()) { if (clientValidationCa_.isEmpty()) { @@ -808,10 +708,9 @@ public Builder mergeFrom( clientValidationCaBuilder_ = null; clientValidationCa_ = other.clientValidationCa_; bitField0_ = (bitField0_ & ~0x00000001); - clientValidationCaBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClientValidationCaFieldBuilder() - : null; + clientValidationCaBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClientValidationCaFieldBuilder() : null; } else { clientValidationCaBuilder_.addAllMessages(other.clientValidationCa_); } @@ -836,9 +735,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -847,40 +744,29 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - clientValidationCa_ = java.util.Collections.emptyList(); - + private java.util.List clientValidationCa_ = + java.util.Collections.emptyList(); private void ensureClientValidationCaIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - clientValidationCa_ = - new java.util.ArrayList( - clientValidationCa_); + clientValidationCa_ = new java.util.ArrayList(clientValidationCa_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ValidationCA, - com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> - clientValidationCaBuilder_; + com.google.cloud.networksecurity.v1beta1.ValidationCA, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> clientValidationCaBuilder_; /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public java.util.List - getClientValidationCaList() { + public java.util.List getClientValidationCaList() { if (clientValidationCaBuilder_ == null) { return java.util.Collections.unmodifiableList(clientValidationCa_); } else { @@ -888,15 +774,12 @@ private void ensureClientValidationCaIsMutable() { } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public int getClientValidationCaCount() { if (clientValidationCaBuilder_ == null) { @@ -906,18 +789,14 @@ public int getClientValidationCaCount() { } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCA getClientValidationCa( - int index) { + public com.google.cloud.networksecurity.v1beta1.ValidationCA getClientValidationCa(int index) { if (clientValidationCaBuilder_ == null) { return clientValidationCa_.get(index); } else { @@ -925,15 +804,12 @@ public com.google.cloud.networksecurity.v1beta1.ValidationCA getClientValidation } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public Builder setClientValidationCa( int index, com.google.cloud.networksecurity.v1beta1.ValidationCA value) { @@ -950,19 +826,15 @@ public Builder setClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public Builder setClientValidationCa( - int index, - com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { if (clientValidationCaBuilder_ == null) { ensureClientValidationCaIsMutable(); clientValidationCa_.set(index, builderForValue.build()); @@ -973,18 +845,14 @@ public Builder setClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public Builder addClientValidationCa( - com.google.cloud.networksecurity.v1beta1.ValidationCA value) { + public Builder addClientValidationCa(com.google.cloud.networksecurity.v1beta1.ValidationCA value) { if (clientValidationCaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -998,15 +866,12 @@ public Builder addClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public Builder addClientValidationCa( int index, com.google.cloud.networksecurity.v1beta1.ValidationCA value) { @@ -1023,15 +888,12 @@ public Builder addClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public Builder addClientValidationCa( com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { @@ -1045,19 +907,15 @@ public Builder addClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public Builder addClientValidationCa( - int index, - com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { + int index, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { if (clientValidationCaBuilder_ == null) { ensureClientValidationCaIsMutable(); clientValidationCa_.add(index, builderForValue.build()); @@ -1068,22 +926,19 @@ public Builder addClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public Builder addAllClientValidationCa( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (clientValidationCaBuilder_ == null) { ensureClientValidationCaIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientValidationCa_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clientValidationCa_); onChanged(); } else { clientValidationCaBuilder_.addAllMessages(values); @@ -1091,15 +946,12 @@ public Builder addAllClientValidationCa( return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public Builder clearClientValidationCa() { if (clientValidationCaBuilder_ == null) { @@ -1112,15 +964,12 @@ public Builder clearClientValidationCa() { return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ public Builder removeClientValidationCa(int index) { if (clientValidationCaBuilder_ == null) { @@ -1133,53 +982,42 @@ public Builder removeClientValidationCa(int index) { return this; } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder - getClientValidationCaBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder getClientValidationCaBuilder( + int index) { return getClientValidationCaFieldBuilder().getBuilder(index); } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder - getClientValidationCaOrBuilder(int index) { + public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder getClientValidationCaOrBuilder( + int index) { if (clientValidationCaBuilder_ == null) { - return clientValidationCa_.get(index); - } else { + return clientValidationCa_.get(index); } else { return clientValidationCaBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public java.util.List< - ? extends com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> - getClientValidationCaOrBuilderList() { + public java.util.List + getClientValidationCaOrBuilderList() { if (clientValidationCaBuilder_ != null) { return clientValidationCaBuilder_.getMessageOrBuilderList(); } else { @@ -1187,65 +1025,48 @@ public Builder removeClientValidationCa(int index) { } } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder - addClientValidationCaBuilder() { - return getClientValidationCaFieldBuilder() - .addBuilder(com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder addClientValidationCaBuilder() { + return getClientValidationCaFieldBuilder().addBuilder( + com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()); } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder - addClientValidationCaBuilder(int index) { - return getClientValidationCaFieldBuilder() - .addBuilder( - index, com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()); + public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder addClientValidationCaBuilder( + int index) { + return getClientValidationCaFieldBuilder().addBuilder( + index, com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()); } /** - * - * *
        * Defines the mechanism to obtain the Certificate Authority certificate to
        * validate the client certificate.
        * 
* - * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; - * + * repeated .google.cloud.networksecurity.v1beta1.ValidationCA client_validation_ca = 1; */ - public java.util.List - getClientValidationCaBuilderList() { + public java.util.List + getClientValidationCaBuilderList() { return getClientValidationCaFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ValidationCA, - com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> + com.google.cloud.networksecurity.v1beta1.ValidationCA, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> getClientValidationCaFieldBuilder() { if (clientValidationCaBuilder_ == null) { - clientValidationCaBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ValidationCA, - com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, - com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder>( + clientValidationCaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ValidationCA, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder, com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder>( clientValidationCa_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1254,7 +1075,6 @@ public Builder removeClientValidationCa(int index) { } return clientValidationCaBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1267,32 +1087,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy) - private static final com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy(); } - public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MTLSPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MTLSPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MTLSPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MTLSPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1304,24 +1122,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the ServerTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1330,30 +1145,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the ServerTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1364,14 +1179,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Free-text description of the resource.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -1380,29 +1192,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Free-text description of the resource.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1413,15 +1225,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1429,15 +1237,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1445,14 +1249,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1462,15 +1263,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1478,15 +1275,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1494,14 +1287,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1509,23 +1299,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1534,30 +1325,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -1565,12 +1354,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -1578,16 +1366,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -1595,11 +1383,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1609,8 +1398,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int ALLOW_OPEN_FIELD_NUMBER = 6; private boolean allowOpen_; /** - * - * *
    * Determines if server allows plaintext connections. If set to true, server
    * allows plain text connections. By default, it is set to false. This setting
@@ -1618,10 +1405,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * and `mtls_policy` are set, server allows both plain text and mTLS
    * connections. See documentation of other encryption modes to confirm
    * compatibility.
+   * Consider using it if you wish to upgrade in place your deployment to TLS
+   * while having mixed TLS and non-TLS traffic reaching port :80.
    * 
* * bool allow_open = 6; - * * @return The allowOpen. */ @java.lang.Override @@ -1632,8 +1420,6 @@ public boolean getAllowOpen() { public static final int SERVER_CERTIFICATE_FIELD_NUMBER = 7; private com.google.cloud.networksecurity.v1beta1.CertificateProvider serverCertificate_; /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -1641,7 +1427,6 @@ public boolean getAllowOpen() {
    * 
* * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * * @return Whether the serverCertificate field is set. */ @java.lang.Override @@ -1649,8 +1434,6 @@ public boolean hasServerCertificate() { return serverCertificate_ != null; } /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -1658,18 +1441,13 @@ public boolean hasServerCertificate() {
    * 
* * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * * @return The serverCertificate. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.CertificateProvider getServerCertificate() { - return serverCertificate_ == null - ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() - : serverCertificate_; + return serverCertificate_ == null ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() : serverCertificate_; } /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -1679,16 +1457,13 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProvider getServerCer
    * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7;
    */
   @java.lang.Override
-  public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder
-      getServerCertificateOrBuilder() {
+  public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder getServerCertificateOrBuilder() {
     return getServerCertificate();
   }
 
   public static final int MTLS_POLICY_FIELD_NUMBER = 8;
   private com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtlsPolicy_;
   /**
-   *
-   *
    * 
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -1698,7 +1473,6 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProvider getServerCer
    * 
* * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return Whether the mtlsPolicy field is set. */ @java.lang.Override @@ -1706,8 +1480,6 @@ public boolean hasMtlsPolicy() { return mtlsPolicy_ != null; } /** - * - * *
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -1717,18 +1489,13 @@ public boolean hasMtlsPolicy() {
    * 
* * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return The mtlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy getMtlsPolicy() { - return mtlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() - : mtlsPolicy_; + return mtlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() : mtlsPolicy_; } /** - * - * *
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -1740,13 +1507,11 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy getMt
    * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
    */
   @java.lang.Override
-  public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder
-      getMtlsPolicyOrBuilder() {
+  public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder getMtlsPolicyOrBuilder() {
     return getMtlsPolicy();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1758,7 +1523,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  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_);
     }
@@ -1771,8 +1537,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (updateTime_ != null) {
       output.writeMessage(4, getUpdateTime());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        5);
     if (allowOpen_ != false) {
       output.writeBool(6, allowOpen_);
     }
@@ -1798,29 +1568,34 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getUpdateTime());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, labels__);
     }
     if (allowOpen_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowOpen_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(6, allowOpen_);
     }
     if (serverCertificate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getServerCertificate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getServerCertificate());
     }
     if (mtlsPolicy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMtlsPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getMtlsPolicy());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1830,33 +1605,40 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy)) {
       return super.equals(obj);
     }
-    com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy other =
-        (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy) obj;
+    com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy other = (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
-    if (getAllowOpen() != other.getAllowOpen()) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
+    if (getAllowOpen()
+        != other.getAllowOpen()) return false;
     if (hasServerCertificate() != other.hasServerCertificate()) return false;
     if (hasServerCertificate()) {
-      if (!getServerCertificate().equals(other.getServerCertificate())) return false;
+      if (!getServerCertificate()
+          .equals(other.getServerCertificate())) return false;
     }
     if (hasMtlsPolicy() != other.hasMtlsPolicy()) return false;
     if (hasMtlsPolicy()) {
-      if (!getMtlsPolicy().equals(other.getMtlsPolicy())) return false;
+      if (!getMtlsPolicy()
+          .equals(other.getMtlsPolicy())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1886,7 +1668,8 @@ public int hashCode() {
       hash = (53 * hash) + internalGetLabels().hashCode();
     }
     hash = (37 * hash) + ALLOW_OPEN_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowOpen());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getAllowOpen());
     if (hasServerCertificate()) {
       hash = (37 * hash) + SERVER_CERTIFICATE_FIELD_NUMBER;
       hash = (53 * hash) + getServerCertificate().hashCode();
@@ -1901,104 +1684,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy 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.networksecurity.v1beta1.ServerTlsPolicy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy prototype) {
+  public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * ServerTlsPolicy is a resource that specifies how a server should authenticate
    * incoming requests. This resource itself does not affect configuration unless
@@ -2007,43 +1782,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1beta1.ServerTlsPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ServerTlsPolicy)
       com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.class,
-              com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder.class);
+              com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.class, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.newBuilder()
@@ -2051,15 +1826,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2098,9 +1874,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -2119,8 +1895,7 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy buildPartial() {
-      com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy result =
-          new com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy(this);
+      com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy result = new com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.description_ = description_;
@@ -2155,39 +1930,38 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1beta1.ServerTlsPolicy) {
-        return mergeFrom((com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2195,8 +1969,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy other) {
-      if (other == com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2211,7 +1984,8 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ServerTlsPolic
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.getAllowOpen() != false) {
         setAllowOpen(other.getAllowOpen());
       }
@@ -2240,8 +2014,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2250,26 +2023,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2278,22 +2048,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2301,64 +2070,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the ServerTlsPolicy resource. It matches the pattern
      * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2366,20 +2128,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2388,21 +2148,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2410,61 +2169,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Free-text description of the resource.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2472,58 +2224,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2539,17 +2272,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2560,21 +2290,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2586,15 +2312,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2608,64 +2330,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -2673,58 +2379,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2740,17 +2427,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2761,21 +2445,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2787,15 +2467,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2809,84 +2485,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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 com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2898,30 +2559,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Set of label tags associated with the resource.
      * 
@@ -2929,12 +2588,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Set of label tags associated with the resource.
      * 
@@ -2942,17 +2600,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Set of label tags associated with the resource.
      * 
@@ -2960,11 +2617,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2972,68 +2630,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Set of label tags associated with the resource.
      * 
* * map<string, string> labels = 5; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private boolean allowOpen_; + private boolean allowOpen_ ; /** - * - * *
      * Determines if server allows plaintext connections. If set to true, server
      * allows plain text connections. By default, it is set to false. This setting
@@ -3041,10 +2700,11 @@ public Builder putAllLabels(java.util.Map va
      * and `mtls_policy` are set, server allows both plain text and mTLS
      * connections. See documentation of other encryption modes to confirm
      * compatibility.
+     * Consider using it if you wish to upgrade in place your deployment to TLS
+     * while having mixed TLS and non-TLS traffic reaching port :80.
      * 
* * bool allow_open = 6; - * * @return The allowOpen. */ @java.lang.Override @@ -3052,8 +2712,6 @@ public boolean getAllowOpen() { return allowOpen_; } /** - * - * *
      * Determines if server allows plaintext connections. If set to true, server
      * allows plain text connections. By default, it is set to false. This setting
@@ -3061,22 +2719,21 @@ public boolean getAllowOpen() {
      * and `mtls_policy` are set, server allows both plain text and mTLS
      * connections. See documentation of other encryption modes to confirm
      * compatibility.
+     * Consider using it if you wish to upgrade in place your deployment to TLS
+     * while having mixed TLS and non-TLS traffic reaching port :80.
      * 
* * bool allow_open = 6; - * * @param value The allowOpen to set. * @return This builder for chaining. */ public Builder setAllowOpen(boolean value) { - + allowOpen_ = value; onChanged(); return this; } /** - * - * *
      * Determines if server allows plaintext connections. If set to true, server
      * allows plain text connections. By default, it is set to false. This setting
@@ -3084,14 +2741,15 @@ public Builder setAllowOpen(boolean value) {
      * and `mtls_policy` are set, server allows both plain text and mTLS
      * connections. See documentation of other encryption modes to confirm
      * compatibility.
+     * Consider using it if you wish to upgrade in place your deployment to TLS
+     * while having mixed TLS and non-TLS traffic reaching port :80.
      * 
* * bool allow_open = 6; - * * @return This builder for chaining. */ public Builder clearAllowOpen() { - + allowOpen_ = false; onChanged(); return this; @@ -3099,64 +2757,47 @@ public Builder clearAllowOpen() { private com.google.cloud.networksecurity.v1beta1.CertificateProvider serverCertificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProvider, - com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder> - serverCertificateBuilder_; + com.google.cloud.networksecurity.v1beta1.CertificateProvider, com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder> serverCertificateBuilder_; /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; * @return Whether the serverCertificate field is set. */ public boolean hasServerCertificate() { return serverCertificateBuilder_ != null || serverCertificate_ != null; } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; * @return The serverCertificate. */ public com.google.cloud.networksecurity.v1beta1.CertificateProvider getServerCertificate() { if (serverCertificateBuilder_ == null) { - return serverCertificate_ == null - ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() - : serverCertificate_; + return serverCertificate_ == null ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() : serverCertificate_; } else { return serverCertificateBuilder_.getMessage(); } } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; */ - public Builder setServerCertificate( - com.google.cloud.networksecurity.v1beta1.CertificateProvider value) { + public Builder setServerCertificate(com.google.cloud.networksecurity.v1beta1.CertificateProvider value) { if (serverCertificateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3170,16 +2811,13 @@ public Builder setServerCertificate( return this; } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; */ public Builder setServerCertificate( com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder builderForValue) { @@ -3193,26 +2831,19 @@ public Builder setServerCertificate( return this; } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; */ - public Builder mergeServerCertificate( - com.google.cloud.networksecurity.v1beta1.CertificateProvider value) { + public Builder mergeServerCertificate(com.google.cloud.networksecurity.v1beta1.CertificateProvider value) { if (serverCertificateBuilder_ == null) { if (serverCertificate_ != null) { serverCertificate_ = - com.google.cloud.networksecurity.v1beta1.CertificateProvider.newBuilder( - serverCertificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.CertificateProvider.newBuilder(serverCertificate_).mergeFrom(value).buildPartial(); } else { serverCertificate_ = value; } @@ -3224,16 +2855,13 @@ public Builder mergeServerCertificate( return this; } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; */ public Builder clearServerCertificate() { if (serverCertificateBuilder_ == null) { @@ -3247,69 +2875,54 @@ public Builder clearServerCertificate() { return this; } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; */ - public com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder - getServerCertificateBuilder() { - + public com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder getServerCertificateBuilder() { + onChanged(); return getServerCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; */ - public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder - getServerCertificateOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder getServerCertificateOrBuilder() { if (serverCertificateBuilder_ != null) { return serverCertificateBuilder_.getMessageOrBuilder(); } else { - return serverCertificate_ == null - ? com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() - : serverCertificate_; + return serverCertificate_ == null ? + com.google.cloud.networksecurity.v1beta1.CertificateProvider.getDefaultInstance() : serverCertificate_; } } /** - * - * *
      * Defines a mechanism to provision server identity (public and private keys).
      * Cannot be combined with `allow_open` as a permissive mode that allows both
      * plain text and TLS is not supported.
      * 
* - * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * + * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProvider, - com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder> + com.google.cloud.networksecurity.v1beta1.CertificateProvider, com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder> getServerCertificateFieldBuilder() { if (serverCertificateBuilder_ == null) { - serverCertificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProvider, - com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder>( - getServerCertificate(), getParentForChildren(), isClean()); + serverCertificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.CertificateProvider, com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder>( + getServerCertificate(), + getParentForChildren(), + isClean()); serverCertificate_ = null; } return serverCertificateBuilder_; @@ -3317,13 +2930,8 @@ public Builder clearServerCertificate() { private com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder> - mtlsPolicyBuilder_; + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder> mtlsPolicyBuilder_; /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3332,17 +2940,13 @@ public Builder clearServerCertificate() {
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; * @return Whether the mtlsPolicy field is set. */ public boolean hasMtlsPolicy() { return mtlsPolicyBuilder_ != null || mtlsPolicy_ != null; } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3351,24 +2955,17 @@ public boolean hasMtlsPolicy() {
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; * @return The mtlsPolicy. */ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy getMtlsPolicy() { if (mtlsPolicyBuilder_ == null) { - return mtlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - .getDefaultInstance() - : mtlsPolicy_; + return mtlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() : mtlsPolicy_; } else { return mtlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3377,11 +2974,9 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy getMt
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; */ - public Builder setMtlsPolicy( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy value) { + public Builder setMtlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy value) { if (mtlsPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3395,8 +2990,6 @@ public Builder setMtlsPolicy( return this; } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3405,12 +2998,10 @@ public Builder setMtlsPolicy(
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; */ public Builder setMtlsPolicy( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder - builderForValue) { + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder builderForValue) { if (mtlsPolicyBuilder_ == null) { mtlsPolicy_ = builderForValue.build(); onChanged(); @@ -3421,8 +3012,6 @@ public Builder setMtlsPolicy( return this; } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3431,18 +3020,13 @@ public Builder setMtlsPolicy(
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; */ - public Builder mergeMtlsPolicy( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy value) { + public Builder mergeMtlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy value) { if (mtlsPolicyBuilder_ == null) { if (mtlsPolicy_ != null) { mtlsPolicy_ = - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.newBuilder( - mtlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.newBuilder(mtlsPolicy_).mergeFrom(value).buildPartial(); } else { mtlsPolicy_ = value; } @@ -3454,8 +3038,6 @@ public Builder mergeMtlsPolicy( return this; } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3464,8 +3046,7 @@ public Builder mergeMtlsPolicy(
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; */ public Builder clearMtlsPolicy() { if (mtlsPolicyBuilder_ == null) { @@ -3479,8 +3060,6 @@ public Builder clearMtlsPolicy() { return this; } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3489,18 +3068,14 @@ public Builder clearMtlsPolicy() {
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder - getMtlsPolicyBuilder() { - + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder getMtlsPolicyBuilder() { + onChanged(); return getMtlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3509,23 +3084,17 @@ public Builder clearMtlsPolicy() {
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder - getMtlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder getMtlsPolicyOrBuilder() { if (mtlsPolicyBuilder_ != null) { return mtlsPolicyBuilder_.getMessageOrBuilder(); } else { - return mtlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy - .getDefaultInstance() - : mtlsPolicy_; + return mtlsPolicy_ == null ? + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance() : mtlsPolicy_; } } /** - * - * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3534,28 +3103,24 @@ public Builder clearMtlsPolicy() {
      * text and mTLS connections.
      * 
* - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder> getMtlsPolicyFieldBuilder() { if (mtlsPolicyBuilder_ == null) { - mtlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder>( - getMtlsPolicy(), getParentForChildren(), isClean()); + mtlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder>( + getMtlsPolicy(), + getParentForChildren(), + isClean()); mtlsPolicy_ = null; } return mtlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3565,12 +3130,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ServerTlsPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ServerTlsPolicy) private static final com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy(); } @@ -3579,16 +3144,16 @@ public static com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerTlsPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerTlsPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerTlsPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerTlsPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3603,4 +3168,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java similarity index 100% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java similarity index 80% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java index fb4dbe6f..255d9441 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java @@ -1,159 +1,109 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface ServerTlsPolicyOrBuilder - extends +public interface ServerTlsPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ServerTlsPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the ServerTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the ServerTlsPolicy resource. It matches the pattern
    * `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Free-text description of the resource.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Free-text description of the resource.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -162,31 +112,30 @@ public interface ServerTlsPolicyOrBuilder */ int getLabelsCount(); /** - * - * *
    * Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Set of label tags associated with the resource.
    * 
@@ -195,24 +144,22 @@ public interface ServerTlsPolicyOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Set of label tags associated with the resource.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Determines if server allows plaintext connections. If set to true, server
    * allows plain text connections. By default, it is set to false. This setting
@@ -220,17 +167,16 @@ java.lang.String getLabelsOrDefault(
    * and `mtls_policy` are set, server allows both plain text and mTLS
    * connections. See documentation of other encryption modes to confirm
    * compatibility.
+   * Consider using it if you wish to upgrade in place your deployment to TLS
+   * while having mixed TLS and non-TLS traffic reaching port :80.
    * 
* * bool allow_open = 6; - * * @return The allowOpen. */ boolean getAllowOpen(); /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -238,13 +184,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * * @return Whether the serverCertificate field is set. */ boolean hasServerCertificate(); /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -252,13 +195,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; - * * @return The serverCertificate. */ com.google.cloud.networksecurity.v1beta1.CertificateProvider getServerCertificate(); /** - * - * *
    * Defines a mechanism to provision server identity (public and private keys).
    * Cannot be combined with `allow_open` as a permissive mode that allows both
@@ -267,12 +207,9 @@ java.lang.String getLabelsOrDefault(
    *
    * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7;
    */
-  com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder
-      getServerCertificateOrBuilder();
+  com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder getServerCertificateOrBuilder();
 
   /**
-   *
-   *
    * 
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -282,13 +219,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return Whether the mtlsPolicy field is set. */ boolean hasMtlsPolicy(); /** - * - * *
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -298,13 +232,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; - * * @return The mtlsPolicy. */ com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy getMtlsPolicy(); /** - * - * *
    * Defines a mechanism to provision peer validation certificates for peer to
    * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -315,6 +246,5 @@ java.lang.String getLabelsOrDefault(
    *
    * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
    */
-  com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder
-      getMtlsPolicyOrBuilder();
+  com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuilder getMtlsPolicyOrBuilder();
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyProto.java
new file mode 100644
index 00000000..d2d4da66
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyProto.java
@@ -0,0 +1,204 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networksecurity/v1beta1/server_tls_policy.proto
+
+package com.google.cloud.networksecurity.v1beta1;
+
+public final class ServerTlsPolicyProto {
+  private ServerTlsPolicyProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n
  * Request used by the UpdateAuthorizationPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest} */ -public final class UpdateAuthorizationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateAuthorizationPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) UpdateAuthorizationPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateAuthorizationPolicyRequest.newBuilder() to construct. - private UpdateAuthorizationPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateAuthorizationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateAuthorizationPolicyRequest() {} + private UpdateAuthorizationPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateAuthorizationPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateAuthorizationPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,46 +52,39 @@ private UpdateAuthorizationPolicyRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder subBuilder = - null; - if (authorizationPolicy_ != null) { - subBuilder = authorizationPolicy_.toBuilder(); - } - authorizationPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authorizationPolicy_); - authorizationPolicy_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder subBuilder = null; + if (authorizationPolicy_ != null) { + subBuilder = authorizationPolicy_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authorizationPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authorizationPolicy_); + authorizationPolicy_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,34 +92,29 @@ private UpdateAuthorizationPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.Builder - .class); + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -152,9 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -162,8 +131,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -172,9 +139,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -182,8 +147,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -192,8 +155,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -203,16 +165,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int AUTHORIZATION_POLICY_FIELD_NUMBER = 2; private com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorizationPolicy_; /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ @java.lang.Override @@ -220,43 +177,30 @@ public boolean hasAuthorizationPolicy() { return authorizationPolicy_ != null; } /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy() { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder() { return getAuthorizationPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -285,10 +230,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (authorizationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthorizationPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAuthorizationPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -298,22 +245,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest)) { + if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasAuthorizationPolicy() != other.hasAuthorizationPolicy()) return false; if (hasAuthorizationPolicy()) { - if (!getAuthorizationPolicy().equals(other.getAuthorizationPolicy())) return false; + if (!getAuthorizationPolicy() + .equals(other.getAuthorizationPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -340,146 +287,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest 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.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - 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.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest 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.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by the UpdateAuthorizationPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.Builder - .class); + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,22 +434,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest build() { - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest result = - buildPartial(); + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -522,10 +454,8 @@ public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - buildPartial() { - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest(this); + public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -544,52 +474,46 @@ public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) other); + if (other instanceof com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -611,14 +535,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parsedMessage = - null; + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,13 +551,8 @@ public Builder mergeFrom( 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -645,17 +561,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -664,23 +576,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -689,8 +595,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -706,8 +611,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -716,10 +619,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -730,8 +633,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -740,14 +641,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -759,8 +659,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -769,8 +667,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -784,8 +681,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -794,17 +689,14 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -813,21 +705,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -836,21 +724,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -858,61 +742,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorizationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> - authorizationPolicyBuilder_; + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> authorizationPolicyBuilder_; /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ public boolean hasAuthorizationPolicy() { return authorizationPolicyBuilder_ != null || authorizationPolicy_ != null; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy() { if (authorizationPolicyBuilder_ == null) { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } else { return authorizationPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { + public Builder setAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { if (authorizationPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -926,15 +790,11 @@ public Builder setAuthorizationPolicy( return this; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAuthorizationPolicy( com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder builderForValue) { @@ -948,25 +808,17 @@ public Builder setAuthorizationPolicy( return this; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { + public Builder mergeAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy value) { if (authorizationPolicyBuilder_ == null) { if (authorizationPolicy_ != null) { authorizationPolicy_ = - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.newBuilder( - authorizationPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.newBuilder(authorizationPolicy_).mergeFrom(value).buildPartial(); } else { authorizationPolicy_ = value; } @@ -978,15 +830,11 @@ public Builder mergeAuthorizationPolicy( return this; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAuthorizationPolicy() { if (authorizationPolicyBuilder_ == null) { @@ -1000,73 +848,55 @@ public Builder clearAuthorizationPolicy() { return this; } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder - getAuthorizationPolicyBuilder() { - + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder getAuthorizationPolicyBuilder() { + onChanged(); return getAuthorizationPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder() { if (authorizationPolicyBuilder_ != null) { return authorizationPolicyBuilder_.getMessageOrBuilder(); } else { - return authorizationPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() - : authorizationPolicy_; + return authorizationPolicy_ == null ? + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.getDefaultInstance() : authorizationPolicy_; } } /** - * - * *
      * Required. Updated AuthorizationPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> getAuthorizationPolicyFieldBuilder() { if (authorizationPolicyBuilder_ == null) { - authorizationPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder>( - getAuthorizationPolicy(), getParentForChildren(), isClean()); + authorizationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder, com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder>( + getAuthorizationPolicy(), + getParentForChildren(), + isClean()); authorizationPolicy_ = null; } return authorizationPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,33 +906,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest(); + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAuthorizationPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAuthorizationPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAuthorizationPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAuthorizationPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1114,8 +941,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java index 0c27974e..2e25df6b 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface UpdateAuthorizationPolicyRequestOrBuilder - extends +public interface UpdateAuthorizationPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * AuthorizationPolicy resource by the update.
@@ -68,50 +42,34 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the authorizationPolicy field is set. */ boolean hasAuthorizationPolicy(); /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The authorizationPolicy. */ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy(); /** - * - * *
    * Required. Updated AuthorizationPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder - getAuthorizationPolicyOrBuilder(); + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java similarity index 66% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java index 6f029f3f..c65e84c7 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by UpdateClientTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest} */ -public final class UpdateClientTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateClientTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) UpdateClientTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateClientTlsPolicyRequest.newBuilder() to construct. private UpdateClientTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateClientTlsPolicyRequest() {} + private UpdateClientTlsPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateClientTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateClientTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateClientTlsPolicyRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder subBuilder = null; - if (clientTlsPolicy_ != null) { - subBuilder = clientTlsPolicy_.toBuilder(); - } - clientTlsPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientTlsPolicy_); - clientTlsPolicy_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder subBuilder = null; + if (clientTlsPolicy_ != null) { + subBuilder = clientTlsPolicy_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + clientTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientTlsPolicy_); + clientTlsPolicy_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +92,29 @@ private UpdateClientTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -150,9 +124,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -160,8 +132,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -171,9 +141,7 @@ public boolean hasUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -181,8 +149,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -192,8 +158,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -203,16 +168,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CLIENT_TLS_POLICY_FIELD_NUMBER = 2; private com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy clientTlsPolicy_; /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ @java.lang.Override @@ -220,43 +180,30 @@ public boolean hasClientTlsPolicy() { return clientTlsPolicy_ != null; } /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy() { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder - getClientTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder() { return getClientTlsPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -285,10 +233,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (clientTlsPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientTlsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClientTlsPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -298,21 +248,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasClientTlsPolicy() != other.hasClientTlsPolicy()) return false; if (hasClientTlsPolicy()) { - if (!getClientTlsPolicy().equals(other.getClientTlsPolicy())) return false; + if (!getClientTlsPolicy() + .equals(other.getClientTlsPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,145 +290,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest 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.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - 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.networksecurity.v1beta1.UpdateClientTlsPolicyRequest 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.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by UpdateClientTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -497,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -520,8 +458,7 @@ public com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest bui @java.lang.Override public com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -540,51 +477,46 @@ public com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -610,9 +542,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,13 +554,8 @@ public Builder mergeFrom( 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -640,17 +565,13 @@ public Builder mergeFrom(
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -660,23 +581,17 @@ public boolean hasUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -686,8 +601,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -703,8 +617,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -714,10 +626,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -728,8 +640,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -739,14 +649,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -758,8 +667,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -769,8 +676,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -784,8 +690,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -795,17 +699,14 @@ public Builder clearUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -815,21 +716,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -839,21 +736,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -861,61 +754,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy clientTlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> - clientTlsPolicyBuilder_; + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> clientTlsPolicyBuilder_; /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ public boolean hasClientTlsPolicy() { return clientTlsPolicyBuilder_ != null || clientTlsPolicy_ != null; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy() { if (clientTlsPolicyBuilder_ == null) { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } else { return clientTlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { + public Builder setClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { if (clientTlsPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -929,15 +802,11 @@ public Builder setClientTlsPolicy( return this; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setClientTlsPolicy( com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder builderForValue) { @@ -951,24 +820,17 @@ public Builder setClientTlsPolicy( return this; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { + public Builder mergeClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy value) { if (clientTlsPolicyBuilder_ == null) { if (clientTlsPolicy_ != null) { clientTlsPolicy_ = - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.newBuilder(clientTlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.newBuilder(clientTlsPolicy_).mergeFrom(value).buildPartial(); } else { clientTlsPolicy_ = value; } @@ -980,15 +842,11 @@ public Builder mergeClientTlsPolicy( return this; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearClientTlsPolicy() { if (clientTlsPolicyBuilder_ == null) { @@ -1002,73 +860,55 @@ public Builder clearClientTlsPolicy() { return this; } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder - getClientTlsPolicyBuilder() { - + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder getClientTlsPolicyBuilder() { + onChanged(); return getClientTlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder - getClientTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder() { if (clientTlsPolicyBuilder_ != null) { return clientTlsPolicyBuilder_.getMessageOrBuilder(); } else { - return clientTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() - : clientTlsPolicy_; + return clientTlsPolicy_ == null ? + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.getDefaultInstance() : clientTlsPolicy_; } } /** - * - * *
      * Required. Updated ClientTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> getClientTlsPolicyFieldBuilder() { if (clientTlsPolicyBuilder_ == null) { - clientTlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder>( - getClientTlsPolicy(), getParentForChildren(), isClean()); + clientTlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder>( + getClientTlsPolicy(), + getParentForChildren(), + isClean()); clientTlsPolicy_ = null; } return clientTlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1078,32 +918,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateClientTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateClientTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClientTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateClientTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1115,8 +953,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java index e823e478..f8d176dd 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface UpdateClientTlsPolicyRequestOrBuilder - extends +public interface UpdateClientTlsPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -35,15 +17,11 @@ public interface UpdateClientTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -53,15 +31,11 @@ public interface UpdateClientTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ClientTlsPolicy resource by the update.  The fields
@@ -71,49 +45,34 @@ public interface UpdateClientTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the clientTlsPolicy field is set. */ boolean hasClientTlsPolicy(); /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The clientTlsPolicy. */ com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy(); /** - * - * *
    * Required. Updated ClientTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java similarity index 66% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java index 9decce52..ee814d1a 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Request used by UpdateServerTlsPolicy method.
  * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest} */ -public final class UpdateServerTlsPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateServerTlsPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) UpdateServerTlsPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateServerTlsPolicyRequest.newBuilder() to construct. private UpdateServerTlsPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateServerTlsPolicyRequest() {} + private UpdateServerTlsPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateServerTlsPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateServerTlsPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateServerTlsPolicyRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder subBuilder = null; - if (serverTlsPolicy_ != null) { - subBuilder = serverTlsPolicy_.toBuilder(); - } - serverTlsPolicy_ = - input.readMessage( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverTlsPolicy_); - serverTlsPolicy_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder subBuilder = null; + if (serverTlsPolicy_ != null) { + subBuilder = serverTlsPolicy_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + serverTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serverTlsPolicy_); + serverTlsPolicy_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +92,29 @@ private UpdateServerTlsPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -150,9 +124,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -160,8 +132,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -171,9 +141,7 @@ public boolean hasUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -181,8 +149,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -192,8 +158,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -203,16 +168,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SERVER_TLS_POLICY_FIELD_NUMBER = 2; private com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy serverTlsPolicy_; /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ @java.lang.Override @@ -220,43 +180,30 @@ public boolean hasServerTlsPolicy() { return serverTlsPolicy_ != null; } /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy() { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder - getServerTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder() { return getServerTlsPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -285,10 +233,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (serverTlsPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServerTlsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getServerTlsPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -298,21 +248,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest other = - (com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) obj; + com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest other = (com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasServerTlsPolicy() != other.hasServerTlsPolicy()) return false; if (hasServerTlsPolicy()) { - if (!getServerTlsPolicy().equals(other.getServerTlsPolicy())) return false; + if (!getServerTlsPolicy() + .equals(other.getServerTlsPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,145 +290,134 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest 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.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - 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.networksecurity.v1beta1.UpdateServerTlsPolicyRequest 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.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request used by UpdateServerTlsPolicy method.
    * 
* * Protobuf type {@code google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_fieldAccessorTable + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.class, - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.Builder.class); + com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.class, com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.newBuilder() + // Construct using com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -497,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto - .internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - .getDefaultInstance(); + public com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -520,8 +458,7 @@ public com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest bui @java.lang.Override public com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest buildPartial() { - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest result = - new com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest(this); + com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest result = new com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -540,51 +477,46 @@ public com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) { - return mergeFrom( - (com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) other); + return mergeFrom((com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest other) { - if (other - == com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -610,9 +542,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,13 +554,8 @@ public Builder mergeFrom( 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -640,17 +565,13 @@ public Builder mergeFrom(
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -660,23 +581,17 @@ public boolean hasUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -686,8 +601,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -703,8 +617,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -714,10 +626,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -728,8 +640,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -739,14 +649,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -758,8 +667,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -769,8 +676,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -784,8 +690,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -795,17 +699,14 @@ public Builder clearUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -815,21 +716,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -839,21 +736,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -861,61 +754,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy serverTlsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> - serverTlsPolicyBuilder_; + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> serverTlsPolicyBuilder_; /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ public boolean hasServerTlsPolicy() { return serverTlsPolicyBuilder_ != null || serverTlsPolicy_ != null; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy() { if (serverTlsPolicyBuilder_ == null) { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } else { return serverTlsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { + public Builder setServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { if (serverTlsPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -929,15 +802,11 @@ public Builder setServerTlsPolicy( return this; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServerTlsPolicy( com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder builderForValue) { @@ -951,24 +820,17 @@ public Builder setServerTlsPolicy( return this; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { + public Builder mergeServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy value) { if (serverTlsPolicyBuilder_ == null) { if (serverTlsPolicy_ != null) { serverTlsPolicy_ = - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.newBuilder(serverTlsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.newBuilder(serverTlsPolicy_).mergeFrom(value).buildPartial(); } else { serverTlsPolicy_ = value; } @@ -980,15 +842,11 @@ public Builder mergeServerTlsPolicy( return this; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearServerTlsPolicy() { if (serverTlsPolicyBuilder_ == null) { @@ -1002,73 +860,55 @@ public Builder clearServerTlsPolicy() { return this; } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder - getServerTlsPolicyBuilder() { - + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder getServerTlsPolicyBuilder() { + onChanged(); return getServerTlsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder - getServerTlsPolicyOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder() { if (serverTlsPolicyBuilder_ != null) { return serverTlsPolicyBuilder_.getMessageOrBuilder(); } else { - return serverTlsPolicy_ == null - ? com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() - : serverTlsPolicy_; + return serverTlsPolicy_ == null ? + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.getDefaultInstance() : serverTlsPolicy_; } } /** - * - * *
      * Required. Updated ServerTlsPolicy resource.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> getServerTlsPolicyFieldBuilder() { if (serverTlsPolicyBuilder_ == null) { - serverTlsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder>( - getServerTlsPolicy(), getParentForChildren(), isClean()); + serverTlsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder, com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder>( + getServerTlsPolicy(), + getParentForChildren(), + isClean()); serverTlsPolicy_ = null; } return serverTlsPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1078,32 +918,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) - private static final com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest(); } - public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - getDefaultInstance() { + public static com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateServerTlsPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateServerTlsPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServerTlsPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateServerTlsPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1115,8 +953,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java index 3c39b0ab..2c4702cf 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto package com.google.cloud.networksecurity.v1beta1; -public interface UpdateServerTlsPolicyRequestOrBuilder - extends +public interface UpdateServerTlsPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -35,15 +17,11 @@ public interface UpdateServerTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -53,15 +31,11 @@ public interface UpdateServerTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ServerTlsPolicy resource by the update.  The fields
@@ -71,49 +45,34 @@ public interface UpdateServerTlsPolicyRequestOrBuilder
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serverTlsPolicy field is set. */ boolean hasServerTlsPolicy(); /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serverTlsPolicy. */ com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy(); /** - * - * *
    * Required. Updated ServerTlsPolicy resource.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java similarity index 65% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java index fe4f04c8..a70a35df 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/tls.proto package com.google.cloud.networksecurity.v1beta1; /** - * - * *
  * Specification of ValidationCA. Defines the mechanism to obtain the
  * Certificate Authority certificate to validate the peer certificate.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.networksecurity.v1beta1.ValidationCA}
  */
-public final class ValidationCA extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ValidationCA extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1beta1.ValidationCA)
     ValidationCAOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ValidationCA.newBuilder() to construct.
   private ValidationCA(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ValidationCA() {}
+  private ValidationCA() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ValidationCA();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ValidationCA(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,52 +53,41 @@ private ValidationCA(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder subBuilder = null;
-              if (typeCase_ == 2) {
-                subBuilder =
-                    ((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 2;
-              break;
+          case 18: {
+            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder subBuilder = null;
+            if (typeCase_ == 2) {
+              subBuilder = ((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_).toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder
-                  subBuilder = null;
-              if (typeCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_)
-                        .toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 3;
-              break;
+            type_ =
+                input.readMessage(com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            typeCase_ = 2;
+            break;
+          }
+          case 26: {
+            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder subBuilder = null;
+            if (typeCase_ == 3) {
+              subBuilder = ((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_).toBuilder();
+            }
+            type_ =
+                input.readMessage(com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_);
+              type_ = subBuilder.buildPartial();
             }
+            typeCase_ = 3;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -122,40 +95,35 @@ private ValidationCA(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networksecurity.v1beta1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networksecurity.v1beta1.TlsProto
-        .internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_fieldAccessorTable
+    return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networksecurity.v1beta1.ValidationCA.class,
-            com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder.class);
+            com.google.cloud.networksecurity.v1beta1.ValidationCA.class, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder.class);
   }
 
   private int typeCase_ = 0;
   private java.lang.Object type_;
-
   public enum TypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GRPC_ENDPOINT(2),
     CERTIFICATE_PROVIDER_INSTANCE(3),
     TYPE_NOT_SET(0);
     private final int value;
-
     private TypeCase(int value) {
       this.value = value;
     }
@@ -171,37 +139,31 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return GRPC_ENDPOINT;
-        case 3:
-          return CERTIFICATE_PROVIDER_INSTANCE;
-        case 0:
-          return TYPE_NOT_SET;
-        default:
-          return null;
+        case 2: return GRPC_ENDPOINT;
+        case 3: return CERTIFICATE_PROVIDER_INSTANCE;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase getTypeCase() {
-    return TypeCase.forNumber(typeCase_);
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
   }
 
   public static final int GRPC_ENDPOINT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
    * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ @java.lang.Override @@ -209,27 +171,22 @@ public boolean hasGrpcEndpoint() { return typeCase_ == 2; } /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
    * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ @java.lang.Override public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint() { if (typeCase_ == 2) { - return (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_; + return (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_; } return com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance(); } /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
@@ -240,25 +197,20 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint() {
   @java.lang.Override
   public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder() {
     if (typeCase_ == 2) {
-      return (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_;
+       return (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_;
     }
     return com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance();
   }
 
   public static final int CERTIFICATE_PROVIDER_INSTANCE_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ @java.lang.Override @@ -266,54 +218,40 @@ public boolean hasCertificateProviderInstance() { return typeCase_ == 3; } /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - getCertificateProviderInstance() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getCertificateProviderInstance() { if (typeCase_ == 3) { - return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; + return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder() { if (typeCase_ == 3) { - return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; + return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,13 +263,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 2) { output.writeMessage(2, (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_); } if (typeCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_); + output.writeMessage(3, (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_); } unknownFields.writeTo(output); } @@ -343,14 +281,12 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_); } if (typeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,22 +296,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networksecurity.v1beta1.ValidationCA)) { return super.equals(obj); } - com.google.cloud.networksecurity.v1beta1.ValidationCA other = - (com.google.cloud.networksecurity.v1beta1.ValidationCA) obj; + com.google.cloud.networksecurity.v1beta1.ValidationCA other = (com.google.cloud.networksecurity.v1beta1.ValidationCA) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 2: - if (!getGrpcEndpoint().equals(other.getGrpcEndpoint())) return false; + if (!getGrpcEndpoint() + .equals(other.getGrpcEndpoint())) return false; break; case 3: - if (!getCertificateProviderInstance().equals(other.getCertificateProviderInstance())) - return false; + if (!getCertificateProviderInstance() + .equals(other.getCertificateProviderInstance())) return false; break; case 0: default: @@ -409,104 +345,96 @@ public int hashCode() { } public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ValidationCA 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.networksecurity.v1beta1.ValidationCA parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networksecurity.v1beta1.ValidationCA parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networksecurity.v1beta1.ValidationCA prototype) { + public static Builder newBuilder(com.google.cloud.networksecurity.v1beta1.ValidationCA prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specification of ValidationCA. Defines the mechanism to obtain the
    * Certificate Authority certificate to validate the peer certificate.
@@ -514,23 +442,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networksecurity.v1beta1.ValidationCA}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1beta1.ValidationCA)
       com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_fieldAccessorTable
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networksecurity.v1beta1.ValidationCA.class,
-              com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder.class);
+              com.google.cloud.networksecurity.v1beta1.ValidationCA.class, com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder.class);
     }
 
     // Construct using com.google.cloud.networksecurity.v1beta1.ValidationCA.newBuilder()
@@ -538,15 +464,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -556,9 +483,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networksecurity.v1beta1.TlsProto
-          .internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networksecurity.v1beta1.TlsProto.internal_static_google_cloud_networksecurity_v1beta1_ValidationCA_descriptor;
     }
 
     @java.lang.Override
@@ -577,8 +504,7 @@ public com.google.cloud.networksecurity.v1beta1.ValidationCA build() {
 
     @java.lang.Override
     public com.google.cloud.networksecurity.v1beta1.ValidationCA buildPartial() {
-      com.google.cloud.networksecurity.v1beta1.ValidationCA result =
-          new com.google.cloud.networksecurity.v1beta1.ValidationCA(this);
+      com.google.cloud.networksecurity.v1beta1.ValidationCA result = new com.google.cloud.networksecurity.v1beta1.ValidationCA(this);
       if (typeCase_ == 2) {
         if (grpcEndpointBuilder_ == null) {
           result.type_ = type_;
@@ -602,39 +528,38 @@ public com.google.cloud.networksecurity.v1beta1.ValidationCA buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.networksecurity.v1beta1.ValidationCA) {
-        return mergeFrom((com.google.cloud.networksecurity.v1beta1.ValidationCA) other);
+        return mergeFrom((com.google.cloud.networksecurity.v1beta1.ValidationCA)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -642,23 +567,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ValidationCA other) {
-      if (other == com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networksecurity.v1beta1.ValidationCA.getDefaultInstance()) return this;
       switch (other.getTypeCase()) {
-        case GRPC_ENDPOINT:
-          {
-            mergeGrpcEndpoint(other.getGrpcEndpoint());
-            break;
-          }
-        case CERTIFICATE_PROVIDER_INSTANCE:
-          {
-            mergeCertificateProviderInstance(other.getCertificateProviderInstance());
-            break;
-          }
-        case TYPE_NOT_SET:
-          {
-            break;
-          }
+        case GRPC_ENDPOINT: {
+          mergeGrpcEndpoint(other.getGrpcEndpoint());
+          break;
+        }
+        case CERTIFICATE_PROVIDER_INSTANCE: {
+          mergeCertificateProviderInstance(other.getCertificateProviderInstance());
+          break;
+        }
+        case TYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -679,8 +600,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.networksecurity.v1beta1.ValidationCA) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.networksecurity.v1beta1.ValidationCA) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -689,12 +609,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int typeCase_ = 0;
     private java.lang.Object type_;
-
-    public TypeCase getTypeCase() {
-      return TypeCase.forNumber(typeCase_);
+    public TypeCase
+        getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
     }
 
     public Builder clearType() {
@@ -704,21 +624,16 @@ public Builder clearType() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint,
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder,
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder>
-        grpcEndpointBuilder_;
+        com.google.cloud.networksecurity.v1beta1.GrpcEndpoint, com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder> grpcEndpointBuilder_;
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
      * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ @java.lang.Override @@ -726,15 +641,12 @@ public boolean hasGrpcEndpoint() { return typeCase_ == 2; } /** - * - * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
      * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ @java.lang.Override @@ -752,8 +664,6 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint() { } } /** - * - * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -775,8 +685,6 @@ public Builder setGrpcEndpoint(com.google.cloud.networksecurity.v1beta1.GrpcEndp
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -796,8 +704,6 @@ public Builder setGrpcEndpoint(
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -807,14 +713,10 @@ public Builder setGrpcEndpoint(
      */
     public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1beta1.GrpcEndpoint value) {
       if (grpcEndpointBuilder_ == null) {
-        if (typeCase_ == 2
-            && type_
-                != com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance()) {
-          type_ =
-              com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.newBuilder(
-                      (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (typeCase_ == 2 &&
+            type_ != com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance()) {
+          type_ = com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.newBuilder((com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_)
+              .mergeFrom(value).buildPartial();
         } else {
           type_ = value;
         }
@@ -830,8 +732,6 @@ public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1beta1.GrpcEn
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -856,8 +756,6 @@ public Builder clearGrpcEndpoint() {
       return this;
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -869,8 +767,6 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder getGrpcEndp
       return getGrpcEndpointFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -879,8 +775,7 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder getGrpcEndp
      * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2;
      */
     @java.lang.Override
-    public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder
-        getGrpcEndpointOrBuilder() {
+    public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder() {
       if ((typeCase_ == 2) && (grpcEndpointBuilder_ != null)) {
         return grpcEndpointBuilder_.getMessageOrBuilder();
       } else {
@@ -891,8 +786,6 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder getGrpcEndp
       }
     }
     /**
-     *
-     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -901,48 +794,34 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder getGrpcEndp
      * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint,
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder,
-            com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder>
+        com.google.cloud.networksecurity.v1beta1.GrpcEndpoint, com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder> 
         getGrpcEndpointFieldBuilder() {
       if (grpcEndpointBuilder_ == null) {
         if (!(typeCase_ == 2)) {
           type_ = com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.getDefaultInstance();
         }
-        grpcEndpointBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.networksecurity.v1beta1.GrpcEndpoint,
-                com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder,
-                com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder>(
+        grpcEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.networksecurity.v1beta1.GrpcEndpoint, com.google.cloud.networksecurity.v1beta1.GrpcEndpoint.Builder, com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder>(
                 (com.google.cloud.networksecurity.v1beta1.GrpcEndpoint) type_,
                 getParentForChildren(),
                 isClean());
         type_ = null;
       }
       typeCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return grpcEndpointBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance,
-            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder,
-            com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder>
-        certificateProviderInstanceBuilder_;
+        com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder> certificateProviderInstanceBuilder_;
     /**
-     *
-     *
      * 
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ @java.lang.Override @@ -950,52 +829,39 @@ public boolean hasCertificateProviderInstance() { return typeCase_ == 3; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - getCertificateProviderInstance() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getCertificateProviderInstance() { if (certificateProviderInstanceBuilder_ == null) { if (typeCase_ == 3) { return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } else { if (typeCase_ == 3) { return certificateProviderInstanceBuilder_.getMessage(); } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ - public Builder setCertificateProviderInstance( - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance value) { + public Builder setCertificateProviderInstance(com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance value) { if (certificateProviderInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1009,21 +875,16 @@ public Builder setCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ public Builder setCertificateProviderInstance( - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder - builderForValue) { + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder builderForValue) { if (certificateProviderInstanceBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -1034,30 +895,20 @@ public Builder setCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ - public Builder mergeCertificateProviderInstance( - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance value) { + public Builder mergeCertificateProviderInstance(com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance value) { if (certificateProviderInstanceBuilder_ == null) { - if (typeCase_ == 3 - && type_ - != com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance()) { - type_ = - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.newBuilder( - (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 3 && + type_ != com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance()) { + type_ = com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.newBuilder((com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1073,17 +924,13 @@ public Builder mergeCertificateProviderInstance( return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ public Builder clearCertificateProviderInstance() { if (certificateProviderInstanceBuilder_ == null) { @@ -1102,90 +949,67 @@ public Builder clearCertificateProviderInstance() { return this; } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder - getCertificateProviderInstanceBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder getCertificateProviderInstanceBuilder() { return getCertificateProviderInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ @java.lang.Override - public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder() { + public com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder() { if ((typeCase_ == 3) && (certificateProviderInstanceBuilder_ != null)) { return certificateProviderInstanceBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 3) { return (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_; } - return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + return com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } } /** - * - * *
      * The certificate provider instance specification that will be passed to
      * the data plane, which will be used to load necessary credential
      * information.
      * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder> + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder> getCertificateProviderInstanceFieldBuilder() { if (certificateProviderInstanceBuilder_ == null) { if (!(typeCase_ == 3)) { - type_ = - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - .getDefaultInstance(); + type_ = com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.getDefaultInstance(); } - certificateProviderInstanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder>( + certificateProviderInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance.Builder, com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder>( (com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; - onChanged(); - ; + onChanged();; return certificateProviderInstanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1195,12 +1019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1beta1.ValidationCA) } // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1beta1.ValidationCA) private static final com.google.cloud.networksecurity.v1beta1.ValidationCA DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1beta1.ValidationCA(); } @@ -1209,16 +1033,16 @@ public static com.google.cloud.networksecurity.v1beta1.ValidationCA getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidationCA parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidationCA(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidationCA parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidationCA(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1233,4 +1057,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.ValidationCA getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java similarity index 64% rename from proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java index 5c2a6223..bf5f9701 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/tls.proto package com.google.cloud.networksecurity.v1beta1; -public interface ValidationCAOrBuilder - extends +public interface ValidationCAOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.ValidationCA) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
    * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return Whether the grpcEndpoint field is set. */ boolean hasGrpcEndpoint(); /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
    * 
* * .google.cloud.networksecurity.v1beta1.GrpcEndpoint grpc_endpoint = 2; - * * @return The grpcEndpoint. */ com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint(); /** - * - * *
    * gRPC specific configuration to access the gRPC server to
    * obtain the CA certificate.
@@ -62,53 +38,37 @@ public interface ValidationCAOrBuilder
   com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEndpointOrBuilder();
 
   /**
-   *
-   *
    * 
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return Whether the certificateProviderInstance field is set. */ boolean hasCertificateProviderInstance(); /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; * @return The certificateProviderInstance. */ - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance - getCertificateProviderInstance(); + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstance getCertificateProviderInstance(); /** - * - * *
    * The certificate provider instance specification that will be passed to
    * the data plane, which will be used to load necessary credential
    * information.
    * 
* - * - * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; - * + * .google.cloud.networksecurity.v1beta1.CertificateProviderInstance certificate_provider_instance = 3; */ - com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder - getCertificateProviderInstanceOrBuilder(); + com.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceOrBuilder getCertificateProviderInstanceOrBuilder(); public com.google.cloud.networksecurity.v1beta1.ValidationCA.TypeCase getTypeCase(); } diff --git a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto similarity index 75% rename from proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto index f14dedf6..afae9ba5 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; @@ -44,25 +43,25 @@ message AuthorizationPolicy { message Rule { // Specification of traffic source attributes. message Source { - // Optional. List of peer identities to match for authorization. At least one - // principal should match. Each peer can be an exact match, or a prefix - // match (example, "namespace/*") or a suffix match (example, // - // */service-account") or a presence match "*". Authorization based on the - // principal name without certificate validation (configured by + // Optional. List of peer identities to match for authorization. At least + // one principal should match. Each peer can be an exact match, or a + // prefix match (example, "namespace/*") or a suffix match (example, + // "*/service-account") or a presence match "*". Authorization based on + // the principal name without certificate validation (configured by // ServerTlsPolicy resource) is considered insecure. repeated string principals = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of CIDR ranges to match based on source IP address. At least one - // IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g., - // "1.2.3.0/24") are supported. Authorization based on source IP alone - // should be avoided. The IP addresses of any load balancers or proxies - // should be considered untrusted. + // Optional. List of CIDR ranges to match based on source IP address. At + // least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR + // (e.g., "1.2.3.0/24") are supported. Authorization based on source IP + // alone should be avoided. The IP addresses of any load balancers or + // proxies should be considered untrusted. repeated string ip_blocks = 2 [(google.api.field_behavior) = OPTIONAL]; } // Specification of traffic destination attributes. message Destination { - // Specification of HTTP header match atrributes. + // Specification of HTTP header match attributes. message HttpHeaderMatch { oneof type { // Required. The value of the header must match the regular expression @@ -82,39 +81,42 @@ message AuthorizationPolicy { string header_name = 1 [(google.api.field_behavior) = REQUIRED]; } - // Required. List of host names to match. Matched against the ":authority" header in - // http requests. At least one host should match. Each host can be an - // exact match, or a prefix match (example "mydomain.*") or a suffix - // match (example // *.myorg.com") or a presence(any) match "*". + // Required. List of host names to match. Matched against the ":authority" + // header in http requests. At least one host should match. Each host can + // be an exact match, or a prefix match (example "mydomain.*") or a suffix + // match (example "*.myorg.com") or a presence (any) match "*". repeated string hosts = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. List of destination ports to match. At least one port should match. + // Required. List of destination ports to match. At least one port should + // match. repeated uint32 ports = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. A list of HTTP methods to match. At least one method should // match. Should not be set for gRPC services. repeated string methods = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Match against key:value pair in http header. Provides a flexible match - // based on HTTP headers, for potentially advanced use cases. At least one - // header should match. Avoid using header matches to make authorization - // decisions unless there is a strong guarantee that requests arrive - // through a trusted client or proxy. - HttpHeaderMatch http_header_match = 5 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Match against key:value pair in http header. Provides a + // flexible match based on HTTP headers, for potentially advanced use + // cases. At least one header should match. Avoid using header matches to + // make authorization decisions unless there is a strong guarantee that + // requests arrive through a trusted client or proxy. + HttpHeaderMatch http_header_match = 5 + [(google.api.field_behavior) = OPTIONAL]; } - // Optional. List of attributes for the traffic source. All of the sources must match. - // A source is a match if both principals and ip_blocks match. If not set, - // the action specified in the 'action' field will be applied without any - // rule checks for the source. + // Optional. List of attributes for the traffic source. All of the sources + // must match. A source is a match if both principals and ip_blocks match. + // If not set, the action specified in the 'action' field will be applied + // without any rule checks for the source. repeated Source sources = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of attributes for the traffic destination. All of the destinations - // must match. A destination is a match if a request matches all the - // specified hosts, ports, methods and headers. If not set, the + // Optional. List of attributes for the traffic destination. All of the + // destinations must match. A destination is a match if a request matches + // all the specified hosts, ports, methods and headers. If not set, the // action specified in the 'action' field will be applied without any rule // checks for the destination. - repeated Destination destinations = 2 [(google.api.field_behavior) = OPTIONAL]; + repeated Destination destinations = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Possible values that define what action to take. @@ -139,22 +141,26 @@ message AuthorizationPolicy { string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. The timestamp when the resource was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The timestamp when the resource was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Set of label tags associated with the AuthorizationPolicy resource. + // Optional. Set of label tags associated with the AuthorizationPolicy + // resource. map labels = 5 [(google.api.field_behavior) = OPTIONAL]; // Required. The action to take when a rule match is found. Possible values // are "ALLOW" or "DENY". Action action = 6 [(google.api.field_behavior) = REQUIRED]; - // Optional. List of rules to match. Note that at least one of the rules must match in - // order for the action specified in the 'action' field to be taken. A rule is - // a match if there is a matching source and destination. If left blank, the - // action specified in the `action` field will be applied on every request. + // Optional. List of rules to match. Note that at least one of the rules must + // match in order for the action specified in the 'action' field to be taken. + // A rule is a match if there is a matching source and destination. If left + // blank, the action specified in the `action` field will be applied on every + // request. repeated Rule rules = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -210,7 +216,7 @@ message CreateAuthorizationPolicyRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "networksecurity.googleapis.com/AuthorizationPolicy" + child_type: "networksecurity.googleapis.com/AuthorizationPolicy" } ]; @@ -221,7 +227,8 @@ message CreateAuthorizationPolicyRequest { string authorization_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. AuthorizationPolicy resource to be created. - AuthorizationPolicy authorization_policy = 3 [(google.api.field_behavior) = REQUIRED]; + AuthorizationPolicy authorization_policy = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request used by the UpdateAuthorizationPolicy method. @@ -231,16 +238,18 @@ message UpdateAuthorizationPolicyRequest { // 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) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. Updated AuthorizationPolicy resource. - AuthorizationPolicy authorization_policy = 2 [(google.api.field_behavior) = REQUIRED]; + AuthorizationPolicy authorization_policy = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request used by the DeleteAuthorizationPolicy method. message DeleteAuthorizationPolicyRequest { - // Required. A name of the AuthorizationPolicy to delete. Must be in the format - // `projects/{project}/locations/{location}/authorizationPolicies/*`. + // Required. A name of the AuthorizationPolicy to delete. Must be in the + // format `projects/{project}/locations/{location}/authorizationPolicies/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto similarity index 83% rename from proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto index 6cc0c228..8f10ad7f 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto @@ -21,7 +21,6 @@ import "google/api/resource.proto"; import "google/cloud/networksecurity/v1beta1/tls.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; @@ -48,10 +47,12 @@ message ClientTlsPolicy { string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. The timestamp when the resource was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The timestamp when the resource was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Set of label tags associated with the resource. map labels = 5 [(google.api.field_behavior) = OPTIONAL]; @@ -60,14 +61,17 @@ message ClientTlsPolicy { // handshake. E.g: "secure.example.com". string sni = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Defines a mechanism to provision client identity (public and private keys) - // for peer to peer authentication. The presence of this dictates mTLS. - CertificateProvider client_certificate = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Defines the mechanism to obtain the Certificate Authority certificate to - // validate the server certificate. If empty, client does not validate the - // server certificate. - repeated ValidationCA server_validation_ca = 8 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Defines a mechanism to provision client identity (public and + // private keys) for peer to peer authentication. The presence of this + // dictates mTLS. + CertificateProvider client_certificate = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines the mechanism to obtain the Certificate Authority + // certificate to validate the server certificate. If empty, client does not + // validate the server certificate. + repeated ValidationCA server_validation_ca = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Request used by the ListClientTlsPolicies method. @@ -121,17 +125,19 @@ message CreateClientTlsPolicyRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "networksecurity.googleapis.com/ClientTlsPolicy" + child_type: "networksecurity.googleapis.com/ClientTlsPolicy" } ]; - // Required. Short name of the ClientTlsPolicy resource to be created. This value should - // be 1-63 characters long, containing only letters, numbers, hyphens, and - // underscores, and should not start with a number. E.g. "client_mtls_policy". + // Required. Short name of the ClientTlsPolicy resource to be created. This + // value should be 1-63 characters long, containing only letters, numbers, + // hyphens, and underscores, and should not start with a number. E.g. + // "client_mtls_policy". string client_tls_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ClientTlsPolicy resource to be created. - ClientTlsPolicy client_tls_policy = 3 [(google.api.field_behavior) = REQUIRED]; + ClientTlsPolicy client_tls_policy = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request used by UpdateClientTlsPolicy method. @@ -142,10 +148,12 @@ message UpdateClientTlsPolicyRequest { // 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) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. Updated ClientTlsPolicy resource. - ClientTlsPolicy client_tls_policy = 2 [(google.api.field_behavior) = REQUIRED]; + ClientTlsPolicy client_tls_policy = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request used by the DeleteClientTlsPolicy method. diff --git a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto similarity index 85% rename from proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto index 4a85f652..7aa715d5 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto @@ -18,7 +18,6 @@ package google.cloud.networksecurity.v1beta1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; @@ -31,10 +30,12 @@ option ruby_package = "Google::Cloud::NetworkSecurity::V1beta1"; // 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]; + 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]; + 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]; @@ -47,8 +48,9 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. 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`. + // 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. diff --git a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/network_security.proto b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/network_security.proto similarity index 100% rename from proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/network_security.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/network_security.proto diff --git a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto similarity index 88% rename from proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto index d3c52121..ce92cfce 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto @@ -21,7 +21,6 @@ import "google/api/resource.proto"; import "google/cloud/networksecurity/v1beta1/tls.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; @@ -34,7 +33,6 @@ option ruby_package = "Google::Cloud::NetworkSecurity::V1beta1"; // ServerTlsPolicy is a resource that specifies how a server should authenticate // incoming requests. This resource itself does not affect configuration unless // it is attached to a target https proxy or endpoint config selector resource. -// message ServerTlsPolicy { option (google.api.resource) = { type: "networksecurity.googleapis.com/ServerTlsPolicy" @@ -57,10 +55,12 @@ message ServerTlsPolicy { string description = 2; // Output only. The timestamp when the resource was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The timestamp when the resource was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of label tags associated with the resource. map labels = 5; @@ -72,6 +72,9 @@ message ServerTlsPolicy { // and `mtls_policy` are set, server allows both plain text and mTLS // connections. See documentation of other encryption modes to confirm // compatibility. + // + // Consider using it if you wish to upgrade in place your deployment to TLS + // while having mixed TLS and non-TLS traffic reaching port :80. bool allow_open = 6; // @@ -140,17 +143,19 @@ message CreateServerTlsPolicyRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "networksecurity.googleapis.com/ServerTlsPolicy" + child_type: "networksecurity.googleapis.com/ServerTlsPolicy" } ]; - // Required. Short name of the ServerTlsPolicy resource to be created. This value should - // be 1-63 characters long, containing only letters, numbers, hyphens, and - // underscores, and should not start with a number. E.g. "server_mtls_policy". + // Required. Short name of the ServerTlsPolicy resource to be created. This + // value should be 1-63 characters long, containing only letters, numbers, + // hyphens, and underscores, and should not start with a number. E.g. + // "server_mtls_policy". string server_tls_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ServerTlsPolicy resource to be created. - ServerTlsPolicy server_tls_policy = 3 [(google.api.field_behavior) = REQUIRED]; + ServerTlsPolicy server_tls_policy = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request used by UpdateServerTlsPolicy method. @@ -161,10 +166,12 @@ message UpdateServerTlsPolicyRequest { // 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) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. Updated ServerTlsPolicy resource. - ServerTlsPolicy server_tls_policy = 2 [(google.api.field_behavior) = REQUIRED]; + ServerTlsPolicy server_tls_policy = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request used by the DeleteServerTlsPolicy method. diff --git a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto similarity index 92% rename from proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto index 740c785c..3addee9f 100644 --- a/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto +++ b/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.networksecurity.v1beta1; import "google/api/field_behavior.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; @@ -29,8 +28,8 @@ option ruby_package = "Google::Cloud::NetworkSecurity::V1beta1"; // Specification of the GRPC Endpoint. message GrpcEndpoint { - // Required. The target URI of the gRPC endpoint. Only UDS path is supported, and - // should start with “unix:”. + // Required. The target URI of the gRPC endpoint. Only UDS path is supported, + // and should start with "unix:". string target_uri = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -55,9 +54,9 @@ message ValidationCA { // and configured by specifying this message. Workloads use the values from this // message to locate and load the CertificateProvider instance configuration. message CertificateProviderInstance { - // Required. Plugin instance name, used to locate and load CertificateProvider instance - // configuration. Set to "google_cloud_private_spiffe" to use Certificate - // Authority Service certificate provider instance. + // Required. Plugin instance name, used to locate and load CertificateProvider + // instance configuration. Set to "google_cloud_private_spiffe" to use + // Certificate Authority Service certificate provider instance. string plugin_instance = 1 [(google.api.field_behavior) = REQUIRED]; } diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..6b436f37 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_create_setcredentialsprovider1_sync] +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1beta1.NetworkSecuritySettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NetworkSecuritySettings networkSecuritySettings = + NetworkSecuritySettings.newBuilder() + .setTransportChannelProvider( + NetworkSecuritySettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + NetworkSecurityClient networkSecurityClient = + NetworkSecurityClient.create(networkSecuritySettings); + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java similarity index 90% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java index 491de0b9..21139726 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java @@ -19,8 +19,8 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createauthorizationpolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; -import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; import com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.longrunning.Operation; @@ -36,9 +36,7 @@ public static void asyncCreateAuthorizationPolicy() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateAuthorizationPolicyRequest request = CreateAuthorizationPolicyRequest.newBuilder() - .setParent( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAuthorizationPolicyId("authorizationPolicyId1314252166") .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java similarity index 90% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java index 68a87363..7c00d5e8 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java @@ -19,8 +19,8 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createauthorizationpolicy_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; -import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; import com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.cloud.networksecurity.v1beta1.OperationMetadata; @@ -36,9 +36,7 @@ public static void asyncCreateAuthorizationPolicyLRO() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateAuthorizationPolicyRequest request = CreateAuthorizationPolicyRequest.newBuilder() - .setParent( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAuthorizationPolicyId("authorizationPolicyId1314252166") .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java similarity index 89% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java index d1c6244f..828f3195 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java @@ -18,8 +18,8 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createauthorizationpolicy_sync] import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; -import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; import com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; public class SyncCreateAuthorizationPolicy { @@ -34,9 +34,7 @@ public static void syncCreateAuthorizationPolicy() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateAuthorizationPolicyRequest request = CreateAuthorizationPolicyRequest.newBuilder() - .setParent( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAuthorizationPolicyId("authorizationPolicyId1314252166") .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyAuthorizationpolicynameAuthorizationpolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java similarity index 71% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyAuthorizationpolicynameAuthorizationpolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java index e6bacdff..d70559ae 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyAuthorizationpolicynameAuthorizationpolicyString.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java @@ -16,24 +16,23 @@ package com.google.cloud.networksecurity.v1beta1.samples; -// [START networksecurity_v1beta1_generated_networksecurityclient_createauthorizationpolicy_authorizationpolicynameauthorizationpolicystring_sync] +// [START networksecurity_v1beta1_generated_networksecurityclient_createauthorizationpolicy_locationnameauthorizationpolicystring_sync] import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; -import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; -public class SyncCreateAuthorizationPolicyAuthorizationpolicynameAuthorizationpolicyString { +public class SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString { public static void main(String[] args) throws Exception { - syncCreateAuthorizationPolicyAuthorizationpolicynameAuthorizationpolicyString(); + syncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString(); } - public static void syncCreateAuthorizationPolicyAuthorizationpolicynameAuthorizationpolicyString() + public static void syncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString() throws Exception { // This snippet has been automatically generated for illustrative purposes only. // It may require modifications to work in your environment. try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - AuthorizationPolicyName parent = - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); String authorizationPolicyId = "authorizationPolicyId1314252166"; AuthorizationPolicy response = @@ -43,4 +42,4 @@ public static void syncCreateAuthorizationPolicyAuthorizationpolicynameAuthoriza } } } -// [END networksecurity_v1beta1_generated_networksecurityclient_createauthorizationpolicy_authorizationpolicynameauthorizationpolicystring_sync] +// [END networksecurity_v1beta1_generated_networksecurityclient_createauthorizationpolicy_locationnameauthorizationpolicystring_sync] diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java similarity index 90% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java index 9a6ac78c..41d7ce7b 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java @@ -18,7 +18,7 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createauthorizationpolicy_stringauthorizationpolicystring_sync] import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy; -import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; public class SyncCreateAuthorizationPolicyStringAuthorizationpolicyString { @@ -32,9 +32,7 @@ public static void syncCreateAuthorizationPolicyStringAuthorizationpolicyString( // This snippet has been automatically generated for illustrative purposes only. // It may require modifications to work in your environment. try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - String parent = - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - .toString(); + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); String authorizationPolicyId = "authorizationPolicyId1314252166"; AuthorizationPolicy response = diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java similarity index 90% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java index a48741df..00cc0937 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java @@ -19,8 +19,8 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createclienttlspolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyName; import com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.longrunning.Operation; @@ -36,9 +36,7 @@ public static void asyncCreateClientTlsPolicy() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() - .setParent( - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setClientTlsPolicyId("clientTlsPolicyId-188933315") .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java similarity index 90% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java index 69b8176c..b424c0ab 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java @@ -19,8 +19,8 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createclienttlspolicy_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyName; import com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.cloud.networksecurity.v1beta1.OperationMetadata; @@ -36,9 +36,7 @@ public static void asyncCreateClientTlsPolicyLRO() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() - .setParent( - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setClientTlsPolicyId("clientTlsPolicyId-188933315") .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java similarity index 89% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java index 21e917d1..8bde4306 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java @@ -18,8 +18,8 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createclienttlspolicy_sync] import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyName; import com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; public class SyncCreateClientTlsPolicy { @@ -34,9 +34,7 @@ public static void syncCreateClientTlsPolicy() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() - .setParent( - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setClientTlsPolicyId("clientTlsPolicyId-188933315") .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyClienttlspolicynameClienttlspolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java similarity index 72% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyClienttlspolicynameClienttlspolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java index eb78ff27..64e8a29c 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyClienttlspolicynameClienttlspolicyString.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java @@ -16,24 +16,22 @@ package com.google.cloud.networksecurity.v1beta1.samples; -// [START networksecurity_v1beta1_generated_networksecurityclient_createclienttlspolicy_clienttlspolicynameclienttlspolicystring_sync] +// [START networksecurity_v1beta1_generated_networksecurityclient_createclienttlspolicy_locationnameclienttlspolicystring_sync] import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyName; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; -public class SyncCreateClientTlsPolicyClienttlspolicynameClienttlspolicyString { +public class SyncCreateClientTlsPolicyLocationnameClienttlspolicyString { public static void main(String[] args) throws Exception { - syncCreateClientTlsPolicyClienttlspolicynameClienttlspolicyString(); + syncCreateClientTlsPolicyLocationnameClienttlspolicyString(); } - public static void syncCreateClientTlsPolicyClienttlspolicynameClienttlspolicyString() - throws Exception { + public static void syncCreateClientTlsPolicyLocationnameClienttlspolicyString() throws Exception { // This snippet has been automatically generated for illustrative purposes only. // It may require modifications to work in your environment. try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - ClientTlsPolicyName parent = - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); String clientTlsPolicyId = "clientTlsPolicyId-188933315"; ClientTlsPolicy response = @@ -43,4 +41,4 @@ public static void syncCreateClientTlsPolicyClienttlspolicynameClienttlspolicySt } } } -// [END networksecurity_v1beta1_generated_networksecurityclient_createclienttlspolicy_clienttlspolicynameclienttlspolicystring_sync] +// [END networksecurity_v1beta1_generated_networksecurityclient_createclienttlspolicy_locationnameclienttlspolicystring_sync] diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java similarity index 91% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java index ba6aa2b9..2cd2a43f 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java @@ -18,7 +18,7 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createclienttlspolicy_stringclienttlspolicystring_sync] import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyName; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; public class SyncCreateClientTlsPolicyStringClienttlspolicyString { @@ -31,8 +31,7 @@ public static void syncCreateClientTlsPolicyStringClienttlspolicyString() throws // This snippet has been automatically generated for illustrative purposes only. // It may require modifications to work in your environment. try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - String parent = - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); String clientTlsPolicyId = "clientTlsPolicyId-188933315"; ClientTlsPolicy response = diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java similarity index 90% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java index 50130540..0dafd358 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java @@ -19,9 +19,9 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createservertlspolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyName; import com.google.longrunning.Operation; public class AsyncCreateServerTlsPolicy { @@ -36,9 +36,7 @@ public static void asyncCreateServerTlsPolicy() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() - .setParent( - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setServerTlsPolicyId("serverTlsPolicyId-1966046011") .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java similarity index 90% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java index 1c96d17b..81f6283f 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java @@ -19,10 +19,10 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createservertlspolicy_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.cloud.networksecurity.v1beta1.OperationMetadata; import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyName; public class AsyncCreateServerTlsPolicyLRO { @@ -36,9 +36,7 @@ public static void asyncCreateServerTlsPolicyLRO() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() - .setParent( - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setServerTlsPolicyId("serverTlsPolicyId-1966046011") .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java similarity index 89% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java index 5aada445..abfa3359 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java @@ -18,9 +18,9 @@ // [START networksecurity_v1beta1_generated_networksecurityclient_createservertlspolicy_sync] import com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyName; public class SyncCreateServerTlsPolicy { @@ -34,9 +34,7 @@ public static void syncCreateServerTlsPolicy() throws Exception { try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() - .setParent( - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setServerTlsPolicyId("serverTlsPolicyId-1966046011") .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) .build(); diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyServertlspolicynameServertlspolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java similarity index 72% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyServertlspolicynameServertlspolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java index f84fd060..99011883 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyServertlspolicynameServertlspolicyString.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java @@ -16,24 +16,22 @@ package com.google.cloud.networksecurity.v1beta1.samples; -// [START networksecurity_v1beta1_generated_networksecurityclient_createservertlspolicy_servertlspolicynameservertlspolicystring_sync] +// [START networksecurity_v1beta1_generated_networksecurityclient_createservertlspolicy_locationnameservertlspolicystring_sync] +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyName; -public class SyncCreateServerTlsPolicyServertlspolicynameServertlspolicyString { +public class SyncCreateServerTlsPolicyLocationnameServertlspolicyString { public static void main(String[] args) throws Exception { - syncCreateServerTlsPolicyServertlspolicynameServertlspolicyString(); + syncCreateServerTlsPolicyLocationnameServertlspolicyString(); } - public static void syncCreateServerTlsPolicyServertlspolicynameServertlspolicyString() - throws Exception { + public static void syncCreateServerTlsPolicyLocationnameServertlspolicyString() throws Exception { // This snippet has been automatically generated for illustrative purposes only. // It may require modifications to work in your environment. try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - ServerTlsPolicyName parent = - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; ServerTlsPolicy response = @@ -43,4 +41,4 @@ public static void syncCreateServerTlsPolicyServertlspolicynameServertlspolicySt } } } -// [END networksecurity_v1beta1_generated_networksecurityclient_createservertlspolicy_servertlspolicynameservertlspolicystring_sync] +// [END networksecurity_v1beta1_generated_networksecurityclient_createservertlspolicy_locationnameservertlspolicystring_sync] diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java similarity index 91% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java index de5873a4..778fc498 100644 --- a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java @@ -17,9 +17,9 @@ package com.google.cloud.networksecurity.v1beta1.samples; // [START networksecurity_v1beta1_generated_networksecurityclient_createservertlspolicy_stringservertlspolicystring_sync] +import com.google.cloud.networksecurity.v1beta1.LocationName; import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy; -import com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyName; public class SyncCreateServerTlsPolicyStringServertlspolicyString { @@ -31,8 +31,7 @@ public static void syncCreateServerTlsPolicyStringServertlspolicyString() throws // This snippet has been automatically generated for illustrative purposes only. // It may require modifications to work in your environment. try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - String parent = - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; ServerTlsPolicy response = diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 00000000..9dc29e2f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = networkSecurityClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_getiampolicy_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 00000000..deb52a06 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_getiampolicy_sync] +import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = networkSecurityClient.getIamPolicy(request); + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_getiampolicy_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java new file mode 100644 index 00000000..b4ee9eae --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_getlocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = networkSecurityClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_getlocation_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java new file mode 100644 index 00000000..b8e22b31 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_getlocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = networkSecurityClient.getLocation(request); + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_getlocation_sync] diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java new file mode 100644 index 00000000..dc382319 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_listlocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + networkSecurityClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_listlocations_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 00000000..5157ef85 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_listlocations_paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + networkSecurityClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_listlocations_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java new file mode 100644 index 00000000..9cd01181 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_listlocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : networkSecurityClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_listlocations_sync] diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 00000000..94670d43 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = networkSecurityClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_setiampolicy_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 00000000..d23430c8 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_setiampolicy_sync] +import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = networkSecurityClient.setIamPolicy(request); + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_setiampolicy_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 00000000..dbd9629b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + networkSecurityClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_testiampermissions_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 00000000..a3d3d3cf --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_networksecurityclient_testiampermissions_sync] +import com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = networkSecurityClient.testIamPermissions(request); + } + } +} +// [END networksecurity_v1beta1_generated_networksecurityclient_testiampermissions_sync] diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyProto.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyProto.java deleted file mode 100644 index 69802dea..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyProto.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto - -package com.google.cloud.networksecurity.v1; - -public final class AuthorizationPolicyProto { - private AuthorizationPolicyProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/networksecurity/v1/author" - + "ization_policy.proto\022\037google.cloud.netwo" - + "rksecurity.v1\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\032 googl" - + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\"\261\t\n\023AuthorizationPo" - + "licy\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002" - + " \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" - + "\006labels\030\005 \003(\0132@.google.cloud.networksecu" - + "rity.v1.AuthorizationPolicy.LabelsEntryB" - + "\003\340A\001\022P\n\006action\030\006 \001(\0162;.google.cloud.netw" - + "orksecurity.v1.AuthorizationPolicy.Actio" - + "nB\003\340A\002\022M\n\005rules\030\007 \003(\01329.google.cloud.net" - + "worksecurity.v1.AuthorizationPolicy.Rule" - + "B\003\340A\001\032\221\004\n\004Rule\022V\n\007sources\030\001 \003(\0132@.google" - + ".cloud.networksecurity.v1.AuthorizationP" - + "olicy.Rule.SourceB\003\340A\001\022`\n\014destinations\030\002" - + " \003(\0132E.google.cloud.networksecurity.v1.A" - + "uthorizationPolicy.Rule.DestinationB\003\340A\001" - + "\0329\n\006Source\022\027\n\nprincipals\030\001 \003(\tB\003\340A\001\022\026\n\ti" - + "p_blocks\030\002 \003(\tB\003\340A\001\032\223\002\n\013Destination\022\022\n\005h" - + "osts\030\001 \003(\tB\003\340A\002\022\022\n\005ports\030\002 \003(\rB\003\340A\002\022\024\n\007m" - + "ethods\030\004 \003(\tB\003\340A\001\022u\n\021http_header_match\030\005" - + " \001(\0132U.google.cloud.networksecurity.v1.A" - + "uthorizationPolicy.Rule.Destination.Http" - + "HeaderMatchB\003\340A\001\032O\n\017HttpHeaderMatch\022\032\n\013r" - + "egex_match\030\002 \001(\tB\003\340A\002H\000\022\030\n\013header_name\030\001" - + " \001(\tB\003\340A\002B\006\n\004type\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\006Action\022\026\n\022AC" - + "TION_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020\002:" - + "\216\001\352A\212\001\n2networksecurity.googleapis.com/A" - + "uthorizationPolicy\022Tprojects/{project}/l" - + "ocations/{location}/authorizationPolicie" - + "s/{authorization_policy}\"\204\001\n ListAuthori" - + "zationPoliciesRequest\0229\n\006parent\030\001 \001(\tB)\340" - + "A\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\"" - + "\222\001\n!ListAuthorizationPoliciesResponse\022T\n" - + "\026authorization_policies\030\001 \003(\01324.google.c" - + "loud.networksecurity.v1.AuthorizationPol" - + "icy\022\027\n\017next_page_token\030\002 \001(\t\"i\n\035GetAutho" - + "rizationPolicyRequest\022H\n\004name\030\001 \001(\tB:\340A\002" - + "\372A4\n2networksecurity.googleapis.com/Auth" - + "orizationPolicy\"\355\001\n CreateAuthorizationP" - + "olicyRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222ne" - + "tworksecurity.googleapis.com/Authorizati" - + "onPolicy\022$\n\027authorization_policy_id\030\002 \001(" - + "\tB\003\340A\002\022W\n\024authorization_policy\030\003 \001(\01324.g" - + "oogle.cloud.networksecurity.v1.Authoriza" - + "tionPolicyB\003\340A\002\"\261\001\n UpdateAuthorizationP" - + "olicyRequest\0224\n\013update_mask\030\001 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\001\022W\n\024authorizat" - + "ion_policy\030\002 \001(\01324.google.cloud.networks" - + "ecurity.v1.AuthorizationPolicyB\003\340A\002\"l\n D" - + "eleteAuthorizationPolicyRequest\022H\n\004name\030" - + "\001 \001(\tB:\340A\002\372A4\n2networksecurity.googleapi" - + "s.com/AuthorizationPolicyB\372\001\n#com.google" - + ".cloud.networksecurity.v1B\030Authorization" - + "PolicyProtoP\001ZNgoogle.golang.org/genprot" - + "o/googleapis/cloud/networksecurity/v1;ne" - + "tworksecurity\252\002\037Google.Cloud.NetworkSecu" - + "rity.V1\312\002\037Google\\Cloud\\NetworkSecurity\\V" - + "1\352\002\"Google::Cloud::NetworkSecurity::V1b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor, - new java.lang.String[] { - "Name", "Description", "CreateTime", "UpdateTime", "Labels", "Action", "Rules", - }); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor = - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor, - new java.lang.String[] { - "Sources", "Destinations", - }); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor = - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Source_descriptor, - new java.lang.String[] { - "Principals", "IpBlocks", - }); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor = - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor, - new java.lang.String[] { - "Hosts", "Ports", "Methods", "HttpHeaderMatch", - }); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor = - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor, - new java.lang.String[] { - "RegexMatch", "HeaderName", "Type", - }); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_descriptor = - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_AuthorizationPolicy_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ListAuthorizationPoliciesResponse_descriptor, - new java.lang.String[] { - "AuthorizationPolicies", "NextPageToken", - }); - internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_GetAuthorizationPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_CreateAuthorizationPolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "AuthorizationPolicyId", "AuthorizationPolicy", - }); - internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_UpdateAuthorizationPolicyRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "AuthorizationPolicy", - }); - internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_DeleteAuthorizationPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyProto.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyProto.java deleted file mode 100644 index d9e96d38..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyProto.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto - -package com.google.cloud.networksecurity.v1; - -public final class ClientTlsPolicyProto { - private ClientTlsPolicyProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/networksecurity/v1/client" - + "_tls_policy.proto\022\037google.cloud.networks" - + "ecurity.v1\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032)google/c" - + "loud/networksecurity/v1/tls.proto\032 googl" - + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\"\354\004\n\017ClientTlsPolicy" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\t" - + "B\003\340A\001\0224\n\013create_time\030\003 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022Q\n\006lab" - + "els\030\005 \003(\0132<.google.cloud.networksecurity" - + ".v1.ClientTlsPolicy.LabelsEntryB\003\340A\001\022\020\n\003" - + "sni\030\006 \001(\tB\003\340A\001\022U\n\022client_certificate\030\007 \001" - + "(\01324.google.cloud.networksecurity.v1.Cer" - + "tificateProviderB\003\340A\001\022P\n\024server_validati" - + "on_ca\030\010 \003(\0132-.google.cloud.networksecuri" - + "ty.v1.ValidationCAB\003\340A\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n.ne" - + "tworksecurity.googleapis.com/ClientTlsPo" - + "licy\022Mprojects/{project}/locations/{loca" - + "tion}/clientTlsPolicies/{client_tls_poli" - + "cy}\"\200\001\n\034ListClientTlsPoliciesRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\"\207\001\n\035ListClientTlsPolicies" - + "Response\022M\n\023client_tls_policies\030\001 \003(\01320." - + "google.cloud.networksecurity.v1.ClientTl" - + "sPolicy\022\027\n\017next_page_token\030\002 \001(\t\"a\n\031GetC" - + "lientTlsPolicyRequest\022D\n\004name\030\001 \001(\tB6\340A\002" - + "\372A0\n.networksecurity.googleapis.com/Clie" - + "ntTlsPolicy\"\333\001\n\034CreateClientTlsPolicyReq" - + "uest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.networksec" - + "urity.googleapis.com/ClientTlsPolicy\022!\n\024" - + "client_tls_policy_id\030\002 \001(\tB\003\340A\002\022P\n\021clien" - + "t_tls_policy\030\003 \001(\01320.google.cloud.networ" - + "ksecurity.v1.ClientTlsPolicyB\003\340A\002\"\246\001\n\034Up" - + "dateClientTlsPolicyRequest\0224\n\013update_mas" - + "k\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001" - + "\022P\n\021client_tls_policy\030\002 \001(\01320.google.clo" - + "ud.networksecurity.v1.ClientTlsPolicyB\003\340" - + "A\002\"d\n\034DeleteClientTlsPolicyRequest\022D\n\004na" - + "me\030\001 \001(\tB6\340A\002\372A0\n.networksecurity.google" - + "apis.com/ClientTlsPolicyB\366\001\n#com.google." - + "cloud.networksecurity.v1B\024ClientTlsPolic" - + "yProtoP\001ZNgoogle.golang.org/genproto/goo" - + "gleapis/cloud/networksecurity/v1;network" - + "security\252\002\037Google.Cloud.NetworkSecurity." - + "V1\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"G" - + "oogle::Cloud::NetworkSecurity::V1b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.networksecurity.v1.TlsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor, - new java.lang.String[] { - "Name", - "Description", - "CreateTime", - "UpdateTime", - "Labels", - "Sni", - "ClientCertificate", - "ServerValidationCa", - }); - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_descriptor = - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ClientTlsPolicy_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ListClientTlsPoliciesResponse_descriptor, - new java.lang.String[] { - "ClientTlsPolicies", "NextPageToken", - }); - internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_GetClientTlsPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_CreateClientTlsPolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "ClientTlsPolicyId", "ClientTlsPolicy", - }); - internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_UpdateClientTlsPolicyRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "ClientTlsPolicy", - }); - internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_DeleteClientTlsPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.networksecurity.v1.TlsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CommonProto.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CommonProto.java deleted file mode 100644 index e1e36d32..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CommonProto.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/common.proto - -package com.google.cloud.networksecurity.v1; - -public final class CommonProto { - private CommonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/networksecurity/v1/common" - + ".proto\022\037google.cloud.networksecurity.v1\032" - + "\037google/api/field_behavior.proto\032\037google" - + "/protobuf/timestamp.proto\"\200\002\n\021OperationM" - + "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006targ" - + "et\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016stat" - + "us_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cance" - + "llation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB" - + "\003\340A\003B\355\001\n#com.google.cloud.networksecurit" - + "y.v1B\013CommonProtoP\001ZNgoogle.golang.org/g" - + "enproto/googleapis/cloud/networksecurity" - + "/v1;networksecurity\252\002\037Google.Cloud.Netwo" - + "rkSecurity.V1\312\002\037Google\\Cloud\\NetworkSecu" - + "rity\\V1\352\002\"Google::Cloud::NetworkSecurity" - + "::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networksecurity_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java deleted file mode 100644 index a062a361..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto - -package com.google.cloud.networksecurity.v1; - -public interface DeleteAuthorizationPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequestOrBuilder.java deleted file mode 100644 index a06bb173..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto - -package com.google.cloud.networksecurity.v1; - -public interface DeleteClientTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the ClientTlsPolicy to delete. Must be in
-   * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the ClientTlsPolicy to delete. Must be in
-   * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequestOrBuilder.java deleted file mode 100644 index c88a2557..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto - -package com.google.cloud.networksecurity.v1; - -public interface DeleteServerTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the ServerTlsPolicy to delete. Must be in
-   * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the ServerTlsPolicy to delete. Must be in
-   * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequestOrBuilder.java deleted file mode 100644 index 44b182db..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/authorization_policy.proto - -package com.google.cloud.networksecurity.v1; - -public interface GetAuthorizationPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the AuthorizationPolicy to get. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the AuthorizationPolicy to get. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequestOrBuilder.java deleted file mode 100644 index bfdec696..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/client_tls_policy.proto - -package com.google.cloud.networksecurity.v1; - -public interface GetClientTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetClientTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the ClientTlsPolicy to get. Must be in the format
-   * `projects/*/locations/{location}/clientTlsPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the ClientTlsPolicy to get. Must be in the format
-   * `projects/*/locations/{location}/clientTlsPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequestOrBuilder.java deleted file mode 100644 index 26a41eba..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto - -package com.google.cloud.networksecurity.v1; - -public interface GetServerTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetServerTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the ServerTlsPolicy to get. Must be in the format
-   * `projects/*/locations/{location}/serverTlsPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the ServerTlsPolicy to get. Must be in the format
-   * `projects/*/locations/{location}/serverTlsPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java deleted file mode 100644 index 6ff59866..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/network_security.proto - -package com.google.cloud.networksecurity.v1; - -public final class NetworkSecurityOuterClass { - private NetworkSecurityOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/networksecurity/v1/networ" - + "k_security.proto\022\037google.cloud.networkse" - + "curity.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032:google/cloud/n" - + "etworksecurity/v1/authorization_policy.p" - + "roto\0327google/cloud/networksecurity/v1/cl" - + "ient_tls_policy.proto\0327google/cloud/netw" - + "orksecurity/v1/server_tls_policy.proto\032#" - + "google/longrunning/operations.proto2\375 \n\017" - + "NetworkSecurity\022\356\001\n\031ListAuthorizationPol" - + "icies\022A.google.cloud.networksecurity.v1." - + "ListAuthorizationPoliciesRequest\032B.googl" - + "e.cloud.networksecurity.v1.ListAuthoriza" - + "tionPoliciesResponse\"J\202\323\344\223\002;\0229/v1/{paren" - + "t=projects/*/locations/*}/authorizationP" - + "olicies\332A\006parent\022\330\001\n\026GetAuthorizationPol" - + "icy\022>.google.cloud.networksecurity.v1.Ge" - + "tAuthorizationPolicyRequest\0324.google.clo" - + "ud.networksecurity.v1.AuthorizationPolic" - + "y\"H\202\323\344\223\002;\0229/v1/{name=projects/*/location" - + "s/*/authorizationPolicies/*}\332A\004name\022\330\002\n\031" - + "CreateAuthorizationPolicy\022A.google.cloud" - + ".networksecurity.v1.CreateAuthorizationP" - + "olicyRequest\032\035.google.longrunning.Operat" - + "ion\"\330\001\202\323\344\223\002Q\"9/v1/{parent=projects/*/loc" - + "ations/*}/authorizationPolicies:\024authori" - + "zation_policy\332A3parent,authorization_pol" - + "icy,authorization_policy_id\312AH\n\023Authoriz" - + "ationPolicy\0221google.cloud.networksecurit" - + "y.v1.OperationMetadata\022\332\002\n\031UpdateAuthori" - + "zationPolicy\022A.google.cloud.networksecur" - + "ity.v1.UpdateAuthorizationPolicyRequest\032" - + "\035.google.longrunning.Operation\"\332\001\202\323\344\223\002f2" - + "N/v1/{authorization_policy.name=projects" - + "/*/locations/*/authorizationPolicies/*}:" - + "\024authorization_policy\332A authorization_po" - + "licy,update_mask\312AH\n\023AuthorizationPolicy" - + "\0221google.cloud.networksecurity.v1.Operat" - + "ionMetadata\022\225\002\n\031DeleteAuthorizationPolic" - + "y\022A.google.cloud.networksecurity.v1.Dele" - + "teAuthorizationPolicyRequest\032\035.google.lo" - + "ngrunning.Operation\"\225\001\202\323\344\223\002;*9/v1/{name=" - + "projects/*/locations/*/authorizationPoli" - + "cies/*}\332A\004name\312AJ\n\025google.protobuf.Empty" - + "\0221google.cloud.networksecurity.v1.Operat" - + "ionMetadata\022\336\001\n\025ListServerTlsPolicies\022=." - + "google.cloud.networksecurity.v1.ListServ" - + "erTlsPoliciesRequest\032>.google.cloud.netw" - + "orksecurity.v1.ListServerTlsPoliciesResp" - + "onse\"F\202\323\344\223\0027\0225/v1/{parent=projects/*/loc" - + "ations/*}/serverTlsPolicies\332A\006parent\022\310\001\n" - + "\022GetServerTlsPolicy\022:.google.cloud.netwo" - + "rksecurity.v1.GetServerTlsPolicyRequest\032" - + "0.google.cloud.networksecurity.v1.Server" - + "TlsPolicy\"D\202\323\344\223\0027\0225/v1/{name=projects/*/" - + "locations/*/serverTlsPolicies/*}\332A\004name\022" - + "\277\002\n\025CreateServerTlsPolicy\022=.google.cloud" - + ".networksecurity.v1.CreateServerTlsPolic" - + "yRequest\032\035.google.longrunning.Operation\"" - + "\307\001\202\323\344\223\002J\"5/v1/{parent=projects/*/locatio" - + "ns/*}/serverTlsPolicies:\021server_tls_poli" - + "cy\332A-parent,server_tls_policy,server_tls" - + "_policy_id\312AD\n\017ServerTlsPolicy\0221google.c" - + "loud.networksecurity.v1.OperationMetadat" - + "a\022\301\002\n\025UpdateServerTlsPolicy\022=.google.clo" - + "ud.networksecurity.v1.UpdateServerTlsPol" - + "icyRequest\032\035.google.longrunning.Operatio" - + "n\"\311\001\202\323\344\223\002\\2G/v1/{server_tls_policy.name=" - + "projects/*/locations/*/serverTlsPolicies" - + "/*}:\021server_tls_policy\332A\035server_tls_poli" - + "cy,update_mask\312AD\n\017ServerTlsPolicy\0221goog" - + "le.cloud.networksecurity.v1.OperationMet" - + "adata\022\211\002\n\025DeleteServerTlsPolicy\022=.google" - + ".cloud.networksecurity.v1.DeleteServerTl" - + "sPolicyRequest\032\035.google.longrunning.Oper" - + "ation\"\221\001\202\323\344\223\0027*5/v1/{name=projects/*/loc" - + "ations/*/serverTlsPolicies/*}\332A\004name\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.net" - + "worksecurity.v1.OperationMetadata\022\336\001\n\025Li" - + "stClientTlsPolicies\022=.google.cloud.netwo" - + "rksecurity.v1.ListClientTlsPoliciesReque" - + "st\032>.google.cloud.networksecurity.v1.Lis" - + "tClientTlsPoliciesResponse\"F\202\323\344\223\0027\0225/v1/" - + "{parent=projects/*/locations/*}/clientTl" - + "sPolicies\332A\006parent\022\310\001\n\022GetClientTlsPolic" - + "y\022:.google.cloud.networksecurity.v1.GetC" - + "lientTlsPolicyRequest\0320.google.cloud.net" - + "worksecurity.v1.ClientTlsPolicy\"D\202\323\344\223\0027\022" - + "5/v1/{name=projects/*/locations/*/client" - + "TlsPolicies/*}\332A\004name\022\277\002\n\025CreateClientTl" - + "sPolicy\022=.google.cloud.networksecurity.v" - + "1.CreateClientTlsPolicyRequest\032\035.google." - + "longrunning.Operation\"\307\001\202\323\344\223\002J\"5/v1/{par" - + "ent=projects/*/locations/*}/clientTlsPol" - + "icies:\021client_tls_policy\332A-parent,client" - + "_tls_policy,client_tls_policy_id\312AD\n\017Cli" - + "entTlsPolicy\0221google.cloud.networksecuri" - + "ty.v1.OperationMetadata\022\301\002\n\025UpdateClient" - + "TlsPolicy\022=.google.cloud.networksecurity" - + ".v1.UpdateClientTlsPolicyRequest\032\035.googl" - + "e.longrunning.Operation\"\311\001\202\323\344\223\002\\2G/v1/{c" - + "lient_tls_policy.name=projects/*/locatio" - + "ns/*/clientTlsPolicies/*}:\021client_tls_po" - + "licy\332A\035client_tls_policy,update_mask\312AD\n" - + "\017ClientTlsPolicy\0221google.cloud.networkse" - + "curity.v1.OperationMetadata\022\211\002\n\025DeleteCl" - + "ientTlsPolicy\022=.google.cloud.networksecu" - + "rity.v1.DeleteClientTlsPolicyRequest\032\035.g" - + "oogle.longrunning.Operation\"\221\001\202\323\344\223\0027*5/v" - + "1/{name=projects/*/locations/*/clientTls" - + "Policies/*}\332A\004name\312AJ\n\025google.protobuf.E" - + "mpty\0221google.cloud.networksecurity.v1.Op" - + "erationMetadata\032R\312A\036networksecurity.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\340\001\n#com.google.cloud" - + ".networksecurity.v1P\001ZNgoogle.golang.org" - + "/genproto/googleapis/cloud/networksecuri" - + "ty/v1;networksecurity\252\002\037Google.Cloud.Net" - + "workSecurity.V1\312\002\037Google\\Cloud\\NetworkSe" - + "curity\\V1\352\002\"Google::Cloud::NetworkSecuri" - + "ty::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.getDescriptor(), - com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.getDescriptor(), - com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.getDescriptor(); - com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.getDescriptor(); - com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java deleted file mode 100644 index 5c41d6a4..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/server_tls_policy.proto - -package com.google.cloud.networksecurity.v1; - -public final class ServerTlsPolicyProto { - private ServerTlsPolicyProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/networksecurity/v1/server" - + "_tls_policy.proto\022\037google.cloud.networks" - + "ecurity.v1\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032)google/c" - + "loud/networksecurity/v1/tls.proto\032 googl" - + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\"\272\005\n\017ServerTlsPolicy" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013description\030\002 \001(\t" - + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022L\n\006labels\030\005" - + " \003(\0132<.google.cloud.networksecurity.v1.S" - + "erverTlsPolicy.LabelsEntry\022\022\n\nallow_open" - + "\030\006 \001(\010\022P\n\022server_certificate\030\007 \001(\01324.goo" - + "gle.cloud.networksecurity.v1.Certificate" - + "Provider\022P\n\013mtls_policy\030\010 \001(\0132;.google.c" - + "loud.networksecurity.v1.ServerTlsPolicy." - + "MTLSPolicy\032Y\n\nMTLSPolicy\022K\n\024client_valid" - + "ation_ca\030\001 \003(\0132-.google.cloud.networksec" - + "urity.v1.ValidationCA\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n.netw" - + "orksecurity.googleapis.com/ServerTlsPoli" - + "cy\022Mprojects/{project}/locations/{locati" - + "on}/serverTlsPolicies/{server_tls_policy" - + "}\"\200\001\n\034ListServerTlsPoliciesRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\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\"\207\001\n\035ListServerTlsPoliciesRe" - + "sponse\022M\n\023server_tls_policies\030\001 \003(\01320.go" - + "ogle.cloud.networksecurity.v1.ServerTlsP" - + "olicy\022\027\n\017next_page_token\030\002 \001(\t\"a\n\031GetSer" - + "verTlsPolicyRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A" - + "0\n.networksecurity.googleapis.com/Server" - + "TlsPolicy\"\333\001\n\034CreateServerTlsPolicyReque" - + "st\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.networksecur" - + "ity.googleapis.com/ServerTlsPolicy\022!\n\024se" - + "rver_tls_policy_id\030\002 \001(\tB\003\340A\002\022P\n\021server_" - + "tls_policy\030\003 \001(\01320.google.cloud.networks" - + "ecurity.v1.ServerTlsPolicyB\003\340A\002\"\246\001\n\034Upda" - + "teServerTlsPolicyRequest\0224\n\013update_mask\030" - + "\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022P" - + "\n\021server_tls_policy\030\002 \001(\01320.google.cloud" - + ".networksecurity.v1.ServerTlsPolicyB\003\340A\002" - + "\"d\n\034DeleteServerTlsPolicyRequest\022D\n\004name" - + "\030\001 \001(\tB6\340A\002\372A0\n.networksecurity.googleap" - + "is.com/ServerTlsPolicyB\366\001\n#com.google.cl" - + "oud.networksecurity.v1B\024ServerTlsPolicyP" - + "rotoP\001ZNgoogle.golang.org/genproto/googl" - + "eapis/cloud/networksecurity/v1;networkse" - + "curity\252\002\037Google.Cloud.NetworkSecurity.V1" - + "\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Goo" - + "gle::Cloud::NetworkSecurity::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.networksecurity.v1.TlsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor, - new java.lang.String[] { - "Name", - "Description", - "CreateTime", - "UpdateTime", - "Labels", - "AllowOpen", - "ServerCertificate", - "MtlsPolicy", - }); - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor = - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor, - new java.lang.String[] { - "ClientValidationCa", - }); - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor = - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor, - new java.lang.String[] { - "ServerTlsPolicies", "NextPageToken", - }); - internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_CreateServerTlsPolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "ServerTlsPolicyId", "ServerTlsPolicy", - }); - internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_UpdateServerTlsPolicyRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "ServerTlsPolicy", - }); - internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_DeleteServerTlsPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.networksecurity.v1.TlsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsProto.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsProto.java deleted file mode 100644 index 97115bdd..00000000 --- a/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsProto.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1/tls.proto - -package com.google.cloud.networksecurity.v1; - -public final class TlsProto { - private TlsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_ValidationCA_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1_CertificateProvider_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/networksecurity/v1/tls.pr" - + "oto\022\037google.cloud.networksecurity.v1\032\037go" - + "ogle/api/field_behavior.proto\"\'\n\014GrpcEnd" - + "point\022\027\n\ntarget_uri\030\001 \001(\tB\003\340A\002\"\305\001\n\014Valid" - + "ationCA\022F\n\rgrpc_endpoint\030\002 \001(\0132-.google." - + "cloud.networksecurity.v1.GrpcEndpointH\000\022" - + "e\n\035certificate_provider_instance\030\003 \001(\0132<" - + ".google.cloud.networksecurity.v1.Certifi" - + "cateProviderInstanceH\000B\006\n\004type\";\n\033Certif" - + "icateProviderInstance\022\034\n\017plugin_instance" - + "\030\001 \001(\tB\003\340A\002\"\314\001\n\023CertificateProvider\022F\n\rg" - + "rpc_endpoint\030\002 \001(\0132-.google.cloud.networ" - + "ksecurity.v1.GrpcEndpointH\000\022e\n\035certifica" - + "te_provider_instance\030\003 \001(\0132<.google.clou" - + "d.networksecurity.v1.CertificateProvider" - + "InstanceH\000B\006\n\004typeB\352\001\n#com.google.cloud." - + "networksecurity.v1B\010TlsProtoP\001ZNgoogle.g" - + "olang.org/genproto/googleapis/cloud/netw" - + "orksecurity/v1;networksecurity\252\002\037Google." - + "Cloud.NetworkSecurity.V1\312\002\037Google\\Cloud\\" - + "NetworkSecurity\\V1\352\002\"Google::Cloud::Netw" - + "orkSecurity::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_GrpcEndpoint_descriptor, - new java.lang.String[] { - "TargetUri", - }); - internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_networksecurity_v1_ValidationCA_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_ValidationCA_descriptor, - new java.lang.String[] { - "GrpcEndpoint", "CertificateProviderInstance", "Type", - }); - internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_CertificateProviderInstance_descriptor, - new java.lang.String[] { - "PluginInstance", - }); - internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_networksecurity_v1_CertificateProvider_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1_CertificateProvider_descriptor, - new java.lang.String[] { - "GrpcEndpoint", "CertificateProviderInstance", "Type", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyProto.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyProto.java deleted file mode 100644 index f365aff7..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyProto.java +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public final class AuthorizationPolicyProto { - private AuthorizationPolicyProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/networksecurity/v1beta1/a" - + "uthorization_policy.proto\022$google.cloud." - + "networksecurity.v1beta1\032\037google/api/fiel" - + "d_behavior.proto\032\031google/api/resource.pr" - + "oto\032 google/protobuf/field_mask.proto\032\037g" - + "oogle/protobuf/timestamp.proto\032\034google/a" - + "pi/annotations.proto\"\317\t\n\023AuthorizationPo" - + "licy\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002" - + " \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Z\n" - + "\006labels\030\005 \003(\0132E.google.cloud.networksecu" - + "rity.v1beta1.AuthorizationPolicy.LabelsE" - + "ntryB\003\340A\001\022U\n\006action\030\006 \001(\0162@.google.cloud" - + ".networksecurity.v1beta1.AuthorizationPo" - + "licy.ActionB\003\340A\002\022R\n\005rules\030\007 \003(\0132>.google" - + ".cloud.networksecurity.v1beta1.Authoriza" - + "tionPolicy.RuleB\003\340A\001\032\240\004\n\004Rule\022[\n\007sources" - + "\030\001 \003(\0132E.google.cloud.networksecurity.v1" - + "beta1.AuthorizationPolicy.Rule.SourceB\003\340" - + "A\001\022e\n\014destinations\030\002 \003(\0132J.google.cloud." - + "networksecurity.v1beta1.AuthorizationPol" - + "icy.Rule.DestinationB\003\340A\001\0329\n\006Source\022\027\n\np" - + "rincipals\030\001 \003(\tB\003\340A\001\022\026\n\tip_blocks\030\002 \003(\tB" - + "\003\340A\001\032\230\002\n\013Destination\022\022\n\005hosts\030\001 \003(\tB\003\340A\002" - + "\022\022\n\005ports\030\002 \003(\rB\003\340A\002\022\024\n\007methods\030\004 \003(\tB\003\340" - + "A\001\022z\n\021http_header_match\030\005 \001(\0132Z.google.c" - + "loud.networksecurity.v1beta1.Authorizati" - + "onPolicy.Rule.Destination.HttpHeaderMatc" - + "hB\003\340A\001\032O\n\017HttpHeaderMatch\022\032\n\013regex_match" - + "\030\002 \001(\tB\003\340A\002H\000\022\030\n\013header_name\030\001 \001(\tB\003\340A\002B" - + "\006\n\004type\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"5\n\006Action\022\026\n\022ACTION_UNSPE" - + "CIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020\002:\216\001\352A\212\001\n2ne" - + "tworksecurity.googleapis.com/Authorizati" - + "onPolicy\022Tprojects/{project}/locations/{" - + "location}/authorizationPolicies/{authori" - + "zation_policy}\"\204\001\n ListAuthorizationPoli" - + "ciesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" - + "ations.googleapis.com/Location\022\021\n\tpage_s" - + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\227\001\n!ListAu" - + "thorizationPoliciesResponse\022Y\n\026authoriza" - + "tion_policies\030\001 \003(\01329.google.cloud.netwo" - + "rksecurity.v1beta1.AuthorizationPolicy\022\027" - + "\n\017next_page_token\030\002 \001(\t\"i\n\035GetAuthorizat" - + "ionPolicyRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2" - + "networksecurity.googleapis.com/Authoriza" - + "tionPolicy\"\362\001\n CreateAuthorizationPolicy" - + "Request\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\n2network" - + "security.googleapis.com/AuthorizationPol" - + "icy\022$\n\027authorization_policy_id\030\002 \001(\tB\003\340A" - + "\002\022\\\n\024authorization_policy\030\003 \001(\01329.google" - + ".cloud.networksecurity.v1beta1.Authoriza" - + "tionPolicyB\003\340A\002\"\266\001\n UpdateAuthorizationP" - + "olicyRequest\0224\n\013update_mask\030\001 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\001\022\\\n\024authorizat" - + "ion_policy\030\002 \001(\01329.google.cloud.networks" - + "ecurity.v1beta1.AuthorizationPolicyB\003\340A\002" - + "\"l\n DeleteAuthorizationPolicyRequest\022H\n\004" - + "name\030\001 \001(\tB:\340A\002\372A4\n2networksecurity.goog" - + "leapis.com/AuthorizationPolicyB\223\002\n(com.g" - + "oogle.cloud.networksecurity.v1beta1B\030Aut" - + "horizationPolicyProtoP\001ZSgoogle.golang.o" - + "rg/genproto/googleapis/cloud/networksecu" - + "rity/v1beta1;networksecurity\252\002$Google.Cl" - + "oud.NetworkSecurity.V1Beta1\312\002$Google\\Clo" - + "ud\\NetworkSecurity\\V1beta1\352\002\'Google::Clo" - + "ud::NetworkSecurity::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor, - new java.lang.String[] { - "Name", "Description", "CreateTime", "UpdateTime", "Labels", "Action", "Rules", - }); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor = - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor, - new java.lang.String[] { - "Sources", "Destinations", - }); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor = - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Source_descriptor, - new java.lang.String[] { - "Principals", "IpBlocks", - }); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor = - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor, - new java.lang.String[] { - "Hosts", "Ports", "Methods", "HttpHeaderMatch", - }); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor = - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_descriptor, - new java.lang.String[] { - "RegexMatch", "HeaderName", "Type", - }); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_descriptor = - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_AuthorizationPolicy_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_ListAuthorizationPoliciesResponse_descriptor, - new java.lang.String[] { - "AuthorizationPolicies", "NextPageToken", - }); - internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_GetAuthorizationPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_CreateAuthorizationPolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "AuthorizationPolicyId", "AuthorizationPolicy", - }); - internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_UpdateAuthorizationPolicyRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "AuthorizationPolicy", - }); - internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networksecurity_v1beta1_DeleteAuthorizationPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java deleted file mode 100644 index dd8cae13..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/tls.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface CertificateProviderInstanceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.CertificateProviderInstance) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Plugin instance name, used to locate and load CertificateProvider instance
-   * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-   * Authority Service certificate provider instance.
-   * 
- * - * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The pluginInstance. - */ - java.lang.String getPluginInstance(); - /** - * - * - *
-   * Required. Plugin instance name, used to locate and load CertificateProvider instance
-   * configuration. Set to "google_cloud_private_spiffe" to use Certificate
-   * Authority Service certificate provider instance.
-   * 
- * - * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for pluginInstance. - */ - com.google.protobuf.ByteString getPluginInstanceBytes(); -} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyProto.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyProto.java deleted file mode 100644 index e6209856..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyProto.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public final class ClientTlsPolicyProto { - private ClientTlsPolicyProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ClientTlsPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ListClientTlsPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_GetClientTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_CreateClientTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_UpdateClientTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_DeleteClientTlsPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n - * Required. The parent resource of the ClientTlsPolicy. Must be in - * the format `projects/*/locations/{location}`. - *
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the ClientTlsPolicy. Must be in
-   * the format `projects/*/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-   * be 1-63 characters long, containing only letters, numbers, hyphens, and
-   * underscores, and should not start with a number. E.g. "client_mtls_policy".
-   * 
- * - * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clientTlsPolicyId. - */ - java.lang.String getClientTlsPolicyId(); - /** - * - * - *
-   * Required. Short name of the ClientTlsPolicy resource to be created. This value should
-   * be 1-63 characters long, containing only letters, numbers, hyphens, and
-   * underscores, and should not start with a number. E.g. "client_mtls_policy".
-   * 
- * - * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clientTlsPolicyId. - */ - com.google.protobuf.ByteString getClientTlsPolicyIdBytes(); - - /** - * - * - *
-   * Required. ClientTlsPolicy resource to be created.
-   * 
- * - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the clientTlsPolicy field is set. - */ - boolean hasClientTlsPolicy(); - /** - * - * - *
-   * Required. ClientTlsPolicy resource to be created.
-   * 
- * - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The clientTlsPolicy. - */ - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy(); - /** - * - * - *
-   * Required. ClientTlsPolicy resource to be created.
-   * 
- * - * - * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder(); -} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java deleted file mode 100644 index e78ad0b7..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface CreateServerTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource of the ServerTlsPolicy. Must be in
-   * the format `projects/*/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the ServerTlsPolicy. Must be in
-   * the format `projects/*/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-   * be 1-63 characters long, containing only letters, numbers, hyphens, and
-   * underscores, and should not start with a number. E.g. "server_mtls_policy".
-   * 
- * - * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The serverTlsPolicyId. - */ - java.lang.String getServerTlsPolicyId(); - /** - * - * - *
-   * Required. Short name of the ServerTlsPolicy resource to be created. This value should
-   * be 1-63 characters long, containing only letters, numbers, hyphens, and
-   * underscores, and should not start with a number. E.g. "server_mtls_policy".
-   * 
- * - * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for serverTlsPolicyId. - */ - com.google.protobuf.ByteString getServerTlsPolicyIdBytes(); - - /** - * - * - *
-   * Required. ServerTlsPolicy resource to be created.
-   * 
- * - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the serverTlsPolicy field is set. - */ - boolean hasServerTlsPolicy(); - /** - * - * - *
-   * Required. ServerTlsPolicy resource to be created.
-   * 
- * - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The serverTlsPolicy. - */ - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy(); - /** - * - * - *
-   * Required. ServerTlsPolicy resource to be created.
-   * 
- * - * - * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder(); -} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequestOrBuilder.java deleted file mode 100644 index ca7a1977..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface DeleteAuthorizationPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequestOrBuilder.java deleted file mode 100644 index e1ebc93c..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface DeleteClientTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the ClientTlsPolicy to delete. Must be in
-   * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the ClientTlsPolicy to delete. Must be in
-   * the format `projects/*/locations/{location}/clientTlsPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequestOrBuilder.java deleted file mode 100644 index ca5aab59..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface DeleteServerTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the ServerTlsPolicy to delete. Must be in
-   * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the ServerTlsPolicy to delete. Must be in
-   * the format `projects/*/locations/{location}/serverTlsPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequestOrBuilder.java deleted file mode 100644 index b8f174d5..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/authorization_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface GetAuthorizationPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the AuthorizationPolicy to get. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the AuthorizationPolicy to get. Must be in the format
-   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequestOrBuilder.java deleted file mode 100644 index 03b2e397..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/client_tls_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface GetClientTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the ClientTlsPolicy to get. Must be in the format
-   * `projects/*/locations/{location}/clientTlsPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the ClientTlsPolicy to get. Must be in the format
-   * `projects/*/locations/{location}/clientTlsPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequestOrBuilder.java deleted file mode 100644 index 51309572..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface GetServerTlsPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the ServerTlsPolicy to get. Must be in the format
-   * `projects/*/locations/{location}/serverTlsPolicies/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the ServerTlsPolicy to get. Must be in the format
-   * `projects/*/locations/{location}/serverTlsPolicies/*`.
-   * 
- * - * - * 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java deleted file mode 100644 index e90cc417..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/tls.proto - -package com.google.cloud.networksecurity.v1beta1; - -public interface GrpcEndpointOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1beta1.GrpcEndpoint) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-   * should start with “unix:”.
-   * 
- * - * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The targetUri. - */ - java.lang.String getTargetUri(); - /** - * - * - *
-   * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
-   * should start with “unix:”.
-   * 
- * - * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for targetUri. - */ - com.google.protobuf.ByteString getTargetUriBytes(); -} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityOuterClass.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityOuterClass.java deleted file mode 100644 index 1f5a7b86..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityOuterClass.java +++ /dev/null @@ -1,196 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/network_security.proto - -package com.google.cloud.networksecurity.v1beta1; - -public final class NetworkSecurityOuterClass { - private NetworkSecurityOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/networksecurity/v1beta1/n" - + "etwork_security.proto\022$google.cloud.netw" - + "orksecurity.v1beta1\032\034google/api/annotati" - + "ons.proto\032\027google/api/client.proto\032?goog" - + "le/cloud/networksecurity/v1beta1/authori" - + "zation_policy.proto\032/v1beta1/{paren" - + "t=projects/*/locations/*}/authorizationP" - + "olicies\332A\006parent\022\347\001\n\026GetAuthorizationPol" - + "icy\022C.google.cloud.networksecurity.v1bet" - + "a1.GetAuthorizationPolicyRequest\0329.googl" - + "e.cloud.networksecurity.v1beta1.Authoriz" - + "ationPolicy\"M\202\323\344\223\002@\022>/v1beta1/{name=proj" - + "ects/*/locations/*/authorizationPolicies" - + "/*}\332A\004name\022\347\002\n\031CreateAuthorizationPolicy" - + "\022F.google.cloud.networksecurity.v1beta1." - + "CreateAuthorizationPolicyRequest\032\035.googl" - + "e.longrunning.Operation\"\342\001\202\323\344\223\002V\">/v1bet" - + "a1/{parent=projects/*/locations/*}/autho" - + "rizationPolicies:\024authorization_policy\332A" - + "3parent,authorization_policy,authorizati" - + "on_policy_id\312AM\n\023AuthorizationPolicy\0226go" - + "ogle.cloud.networksecurity.v1beta1.Opera" - + "tionMetadata\022\351\002\n\031UpdateAuthorizationPoli" - + "cy\022F.google.cloud.networksecurity.v1beta" - + "1.UpdateAuthorizationPolicyRequest\032\035.goo" - + "gle.longrunning.Operation\"\344\001\202\323\344\223\002k2S/v1b" - + "eta1/{authorization_policy.name=projects" - + "/*/locations/*/authorizationPolicies/*}:" - + "\024authorization_policy\332A authorization_po" - + "licy,update_mask\312AM\n\023AuthorizationPolicy" - + "\0226google.cloud.networksecurity.v1beta1.O" - + "perationMetadata\022\244\002\n\031DeleteAuthorization" - + "Policy\022F.google.cloud.networksecurity.v1" - + "beta1.DeleteAuthorizationPolicyRequest\032\035" - + ".google.longrunning.Operation\"\237\001\202\323\344\223\002@*>" - + "/v1beta1/{name=projects/*/locations/*/au" - + "thorizationPolicies/*}\332A\004name\312AO\n\025google" - + ".protobuf.Empty\0226google.cloud.networksec" - + "urity.v1beta1.OperationMetadata\022\355\001\n\025List" - + "ServerTlsPolicies\022B.google.cloud.network" - + "security.v1beta1.ListServerTlsPoliciesRe" - + "quest\032C.google.cloud.networksecurity.v1b" - + "eta1.ListServerTlsPoliciesResponse\"K\202\323\344\223" - + "\002<\022:/v1beta1/{parent=projects/*/location" - + "s/*}/serverTlsPolicies\332A\006parent\022\327\001\n\022GetS" - + "erverTlsPolicy\022?.google.cloud.networksec" - + "urity.v1beta1.GetServerTlsPolicyRequest\032" - + "5.google.cloud.networksecurity.v1beta1.S" - + "erverTlsPolicy\"I\202\323\344\223\002<\022:/v1beta1/{name=p" - + "rojects/*/locations/*/serverTlsPolicies/" - + "*}\332A\004name\022\316\002\n\025CreateServerTlsPolicy\022B.go" - + "ogle.cloud.networksecurity.v1beta1.Creat" - + "eServerTlsPolicyRequest\032\035.google.longrun" - + "ning.Operation\"\321\001\202\323\344\223\002O\":/v1beta1/{paren" - + "t=projects/*/locations/*}/serverTlsPolic" - + "ies:\021server_tls_policy\332A-parent,server_t" - + "ls_policy,server_tls_policy_id\312AI\n\017Serve" - + "rTlsPolicy\0226google.cloud.networksecurity" - + ".v1beta1.OperationMetadata\022\320\002\n\025UpdateSer" - + "verTlsPolicy\022B.google.cloud.networksecur" - + "ity.v1beta1.UpdateServerTlsPolicyRequest" - + "\032\035.google.longrunning.Operation\"\323\001\202\323\344\223\002a" - + "2L/v1beta1/{server_tls_policy.name=proje" - + "cts/*/locations/*/serverTlsPolicies/*}:\021" - + "server_tls_policy\332A\035server_tls_policy,up" - + "date_mask\312AI\n\017ServerTlsPolicy\0226google.cl" - + "oud.networksecurity.v1beta1.OperationMet" - + "adata\022\230\002\n\025DeleteServerTlsPolicy\022B.google" - + ".cloud.networksecurity.v1beta1.DeleteSer" - + "verTlsPolicyRequest\032\035.google.longrunning" - + ".Operation\"\233\001\202\323\344\223\002<*:/v1beta1/{name=proj" - + "ects/*/locations/*/serverTlsPolicies/*}\332" - + "A\004name\312AO\n\025google.protobuf.Empty\0226google" - + ".cloud.networksecurity.v1beta1.Operation" - + "Metadata\022\355\001\n\025ListClientTlsPolicies\022B.goo" - + "gle.cloud.networksecurity.v1beta1.ListCl" - + "ientTlsPoliciesRequest\032C.google.cloud.ne" - + "tworksecurity.v1beta1.ListClientTlsPolic" - + "iesResponse\"K\202\323\344\223\002<\022:/v1beta1/{parent=pr" - + "ojects/*/locations/*}/clientTlsPolicies\332" - + "A\006parent\022\327\001\n\022GetClientTlsPolicy\022?.google" - + ".cloud.networksecurity.v1beta1.GetClient" - + "TlsPolicyRequest\0325.google.cloud.networks" - + "ecurity.v1beta1.ClientTlsPolicy\"I\202\323\344\223\002<\022" - + ":/v1beta1/{name=projects/*/locations/*/c" - + "lientTlsPolicies/*}\332A\004name\022\316\002\n\025CreateCli" - + "entTlsPolicy\022B.google.cloud.networksecur" - + "ity.v1beta1.CreateClientTlsPolicyRequest" - + "\032\035.google.longrunning.Operation\"\321\001\202\323\344\223\002O" - + "\":/v1beta1/{parent=projects/*/locations/" - + "*}/clientTlsPolicies:\021client_tls_policy\332" - + "A-parent,client_tls_policy,client_tls_po" - + "licy_id\312AI\n\017ClientTlsPolicy\0226google.clou" - + "d.networksecurity.v1beta1.OperationMetad" - + "ata\022\320\002\n\025UpdateClientTlsPolicy\022B.google.c" - + "loud.networksecurity.v1beta1.UpdateClien" - + "tTlsPolicyRequest\032\035.google.longrunning.O" - + "peration\"\323\001\202\323\344\223\002a2L/v1beta1/{client_tls_" - + "policy.name=projects/*/locations/*/clien" - + "tTlsPolicies/*}:\021client_tls_policy\332A\035cli" - + "ent_tls_policy,update_mask\312AI\n\017ClientTls" - + "Policy\0226google.cloud.networksecurity.v1b" - + "eta1.OperationMetadata\022\230\002\n\025DeleteClientT" - + "lsPolicy\022B.google.cloud.networksecurity." - + "v1beta1.DeleteClientTlsPolicyRequest\032\035.g" - + "oogle.longrunning.Operation\"\233\001\202\323\344\223\002<*:/v" - + "1beta1/{name=projects/*/locations/*/clie" - + "ntTlsPolicies/*}\332A\004name\312AO\n\025google.proto" - + "buf.Empty\0226google.cloud.networksecurity." - + "v1beta1.OperationMetadata\032R\312A\036networksec" - + "urity.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\371\001\n(com.go" - + "ogle.cloud.networksecurity.v1beta1P\001ZSgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/networksecurity/v1beta1;networksecurit" - + "y\252\002$Google.Cloud.NetworkSecurity.V1Beta1" - + "\312\002$Google\\Cloud\\NetworkSecurity\\V1beta1\352" - + "\002\'Google::Cloud::NetworkSecurity::V1beta" - + "1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.getDescriptor(), - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.getDescriptor(), - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyProto.getDescriptor(); - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyProto.getDescriptor(); - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyProto.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyProto.java deleted file mode 100644 index e7323b8a..00000000 --- a/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyProto.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/networksecurity/v1beta1/server_tls_policy.proto - -package com.google.cloud.networksecurity.v1beta1; - -public final class ServerTlsPolicyProto { - private ServerTlsPolicyProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_MTLSPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ServerTlsPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_ListServerTlsPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_GetServerTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_CreateServerTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_UpdateServerTlsPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networksecurity_v1beta1_DeleteServerTlsPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n