diff --git a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java index f815e56a..0a1fe58f 100644 --- a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java +++ b/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,12 +2261,16 @@ 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) { @@ -2285,12 +2289,15 @@ 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) { @@ -2304,7 +2311,8 @@ private static ListAuthorizationPoliciesPage createEmptyPage() { @Override protected ListAuthorizationPoliciesPage createPage( PageContext< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ListAuthorizationPoliciesResponse response) { @@ -2314,7 +2322,8 @@ protected ListAuthorizationPoliciesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ApiFuture futureResponse) { @@ -2324,8 +2333,11 @@ 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) { @@ -2345,8 +2357,11 @@ protected ListAuthorizationPoliciesFixedSizeCollection createCollection( public static class ListServerTlsPoliciesPagedResponse extends AbstractPagedListResponse< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, - ListServerTlsPoliciesPage, ListServerTlsPoliciesFixedSizeCollection> { + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, + ServerTlsPolicy, + ListServerTlsPoliciesPage, + ListServerTlsPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2367,7 +2382,9 @@ private ListServerTlsPoliciesPagedResponse(ListServerTlsPoliciesPage page) { public static class ListServerTlsPoliciesPage extends AbstractPage< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, + ServerTlsPolicy, ListServerTlsPoliciesPage> { private ListServerTlsPoliciesPage( @@ -2400,8 +2417,11 @@ 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) { @@ -2421,8 +2441,11 @@ protected ListServerTlsPoliciesFixedSizeCollection createCollection( public static class ListClientTlsPoliciesPagedResponse extends AbstractPagedListResponse< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, - ListClientTlsPoliciesPage, ListClientTlsPoliciesFixedSizeCollection> { + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, + ClientTlsPolicy, + ListClientTlsPoliciesPage, + ListClientTlsPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2443,7 +2466,9 @@ private ListClientTlsPoliciesPagedResponse(ListClientTlsPoliciesPage page) { public static class ListClientTlsPoliciesPage extends AbstractPage< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, + ClientTlsPolicy, ListClientTlsPoliciesPage> { private ListClientTlsPoliciesPage( @@ -2476,8 +2501,11 @@ 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/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java index a9b1c9ce..5dce47f8 100644 --- a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java +++ b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java @@ -30,7 +30,6 @@ 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; @@ -47,10 +46,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,7 +79,8 @@ public class NetworkSecuritySettings extends ClientSettings listAuthorizationPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listAuthorizationPoliciesSettings(); @@ -135,7 +135,8 @@ public class NetworkSecuritySettings extends ClientSettings listServerTlsPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listServerTlsPoliciesSettings(); @@ -188,7 +189,8 @@ public class NetworkSecuritySettings extends ClientSettings listClientTlsPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listClientTlsPoliciesSettings(); @@ -338,7 +340,8 @@ 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(); @@ -390,7 +393,8 @@ 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(); @@ -442,7 +446,8 @@ 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/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityCallableFactory.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityCallableFactory.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java index af24a3e8..87af37d4 100644 --- a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java +++ b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java @@ -56,7 +56,6 @@ 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/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java diff --git a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java index 4c07d764..d9c8897c 100644 --- a/owl-bot-staging/v1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java +++ b/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,7 +121,8 @@ 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 @@ -141,7 +142,8 @@ public class NetworkSecurityStubSettings extends StubSettings deleteAuthorizationPolicyOperationSettings; private final PagedCallSettings< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings; private final UnaryCallSettings @@ -161,7 +163,8 @@ public class NetworkSecurityStubSettings extends StubSettings deleteServerTlsPolicyOperationSettings; private final PagedCallSettings< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings; private final UnaryCallSettings @@ -185,7 +188,8 @@ public class NetworkSecurityStubSettings extends StubSettings LIST_AUTHORIZATION_POLICIES_PAGE_STR_DESC = new PagedListDescriptor< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, AuthorizationPolicy>() { @Override public String emptyToken() { @@ -310,11 +314,13 @@ 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( @@ -324,7 +330,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, AuthorizationPolicy> pageContext = PageContext.create( @@ -335,11 +342,13 @@ 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( @@ -357,11 +366,13 @@ 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( @@ -380,7 +391,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listAuthorizationPolicies. */ public PagedCallSettings< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings() { return listAuthorizationPoliciesSettings; @@ -432,7 +444,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings() { return listServerTlsPoliciesSettings; @@ -482,7 +495,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listClientTlsPolicies. */ public PagedCallSettings< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings() { return listClientTlsPoliciesSettings; @@ -644,7 +658,8 @@ 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 @@ -665,7 +680,8 @@ public static class Builder extends StubSettings.Builder deleteAuthorizationPolicyOperationSettings; private final PagedCallSettings.Builder< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings; private final UnaryCallSettings.Builder @@ -686,7 +702,8 @@ public static class Builder extends StubSettings.Builder deleteServerTlsPolicyOperationSettings; private final PagedCallSettings.Builder< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings; private final UnaryCallSettings.Builder @@ -1172,7 +1189,8 @@ 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; @@ -1230,7 +1248,8 @@ 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; @@ -1288,7 +1307,8 @@ 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/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java index f0b7b323..cf60672e 100644 --- a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java +++ b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java @@ -74,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. *
* @@ -2627,12 +2627,16 @@ 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) { @@ -2651,12 +2655,15 @@ 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) { @@ -2670,7 +2677,8 @@ private static ListAuthorizationPoliciesPage createEmptyPage() { @Override protected ListAuthorizationPoliciesPage createPage( PageContext< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ListAuthorizationPoliciesResponse response) { @@ -2680,7 +2688,8 @@ protected ListAuthorizationPoliciesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, ApiFuture futureResponse) { @@ -2690,8 +2699,11 @@ 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) { @@ -2711,8 +2723,11 @@ protected ListAuthorizationPoliciesFixedSizeCollection createCollection( public static class ListServerTlsPoliciesPagedResponse extends AbstractPagedListResponse< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, - ListServerTlsPoliciesPage, ListServerTlsPoliciesFixedSizeCollection> { + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, + ServerTlsPolicy, + ListServerTlsPoliciesPage, + ListServerTlsPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2733,7 +2748,9 @@ private ListServerTlsPoliciesPagedResponse(ListServerTlsPoliciesPage page) { public static class ListServerTlsPoliciesPage extends AbstractPage< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy, + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, + ServerTlsPolicy, ListServerTlsPoliciesPage> { private ListServerTlsPoliciesPage( @@ -2766,8 +2783,11 @@ 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) { @@ -2787,8 +2807,11 @@ protected ListServerTlsPoliciesFixedSizeCollection createCollection( public static class ListClientTlsPoliciesPagedResponse extends AbstractPagedListResponse< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, - ListClientTlsPoliciesPage, ListClientTlsPoliciesFixedSizeCollection> { + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, + ClientTlsPolicy, + ListClientTlsPoliciesPage, + ListClientTlsPoliciesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2809,7 +2832,9 @@ private ListClientTlsPoliciesPagedResponse(ListClientTlsPoliciesPage page) { public static class ListClientTlsPoliciesPage extends AbstractPage< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy, + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, + ClientTlsPolicy, ListClientTlsPoliciesPage> { private ListClientTlsPoliciesPage( @@ -2842,8 +2867,11 @@ 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) { @@ -2863,7 +2891,10 @@ protected ListClientTlsPoliciesFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2913,7 +2944,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java index a8061a25..9d121096 100644 --- a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java +++ b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java @@ -32,7 +32,6 @@ 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; @@ -58,10 +57,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 @@ -92,7 +91,8 @@ public class NetworkSecuritySettings extends ClientSettings listAuthorizationPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listAuthorizationPoliciesSettings(); @@ -147,7 +147,8 @@ public class NetworkSecuritySettings extends ClientSettings listServerTlsPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listServerTlsPoliciesSettings(); @@ -200,7 +201,8 @@ public class NetworkSecuritySettings extends ClientSettings listClientTlsPoliciesSettings() { return ((NetworkSecurityStubSettings) getStubSettings()).listClientTlsPoliciesSettings(); @@ -395,7 +397,8 @@ 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(); @@ -447,7 +450,8 @@ 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(); @@ -499,7 +503,8 @@ 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/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityCallableFactory.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityCallableFactory.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java index 9854d3e3..5f7fb26b 100644 --- a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java +++ b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java @@ -67,7 +67,6 @@ 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/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityCallableFactory.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityCallableFactory.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java index 9790b0dd..8a129fbd 100644 --- a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java +++ b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java @@ -33,7 +33,6 @@ 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; diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java rename to google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java index bda22884..1541921e 100644 --- a/owl-bot-staging/v1beta1/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java +++ b/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java @@ -99,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 @@ -135,7 +135,8 @@ 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 @@ -155,7 +156,8 @@ public class NetworkSecurityStubSettings extends StubSettings deleteAuthorizationPolicyOperationSettings; private final PagedCallSettings< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings; private final UnaryCallSettings @@ -175,7 +177,8 @@ public class NetworkSecurityStubSettings extends StubSettings deleteServerTlsPolicyOperationSettings; private final PagedCallSettings< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings; private final UnaryCallSettings @@ -207,7 +210,8 @@ public class NetworkSecurityStubSettings extends StubSettings LIST_AUTHORIZATION_POLICIES_PAGE_STR_DESC = new PagedListDescriptor< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, AuthorizationPolicy>() { @Override public String emptyToken() { @@ -368,11 +372,13 @@ public Iterable extractResources(ListLocationsResponse payload) { }; 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( @@ -382,7 +388,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, AuthorizationPolicy> pageContext = PageContext.create( @@ -393,11 +400,13 @@ 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( @@ -415,11 +424,13 @@ 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( @@ -455,7 +466,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listAuthorizationPolicies. */ public PagedCallSettings< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, + ListAuthorizationPoliciesRequest, + ListAuthorizationPoliciesResponse, ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings() { return listAuthorizationPoliciesSettings; @@ -507,7 +519,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings() { return listServerTlsPoliciesSettings; @@ -557,7 +570,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listClientTlsPolicies. */ public PagedCallSettings< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings() { return listClientTlsPoliciesSettings; @@ -782,7 +796,8 @@ 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 @@ -803,7 +818,8 @@ public static class Builder extends StubSettings.Builder deleteAuthorizationPolicyOperationSettings; private final PagedCallSettings.Builder< - ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings; private final UnaryCallSettings.Builder @@ -824,7 +840,8 @@ public static class Builder extends StubSettings.Builder deleteServerTlsPolicyOperationSettings; private final PagedCallSettings.Builder< - ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, + ListClientTlsPoliciesRequest, + ListClientTlsPoliciesResponse, ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings; private final UnaryCallSettings.Builder @@ -1376,7 +1393,8 @@ 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; @@ -1434,7 +1452,8 @@ 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; @@ -1492,7 +1511,8 @@ 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/owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurity.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurity.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurity.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurity.java diff --git a/owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java diff --git a/owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicy.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicy.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicy.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicyImpl.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicyImpl.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocations.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocations.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocations.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocations.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocationsImpl.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocationsImpl.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockLocationsImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurity.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurity.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurity.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurity.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurityImpl.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurityImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/MockNetworkSecurityImpl.java rename to 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/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientHttpJsonTest.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java b/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java rename to google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClientTest.java 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 new file mode 100644 index 00000000..d32cae5f --- /dev/null +++ b/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java @@ -0,0 +1,2088 @@ +/* + * 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 new file mode 100644 index 00000000..ef56ee68 --- /dev/null +++ b/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java @@ -0,0 +1,2097 @@ +/* + * 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/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 deleted file mode 100644 index 376371f1..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java +++ /dev/null @@ -1,1517 +0,0 @@ -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/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 deleted file mode 100644 index e727bf99..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyProto.java +++ /dev/null @@ -1,247 +0,0 @@ -// 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/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 deleted file mode 100644 index 3ea3bd92..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyProto.java +++ /dev/null @@ -1,190 +0,0 @@ -// 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 deleted file mode 100644 index dad8653b..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CommonProto.java +++ /dev/null @@ -1,71 +0,0 @@ -// 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/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 deleted file mode 100644 index 638b438c..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index 9d71c224..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index 08202d9c..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index 99e4fbe6..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index 812d55b1..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index a0a87b11..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index c9a775e0..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java +++ /dev/null @@ -1,176 +0,0 @@ -// 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/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 deleted file mode 100644 index 46c7baa8..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java +++ /dev/null @@ -1,202 +0,0 @@ -// 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 deleted file mode 100644 index d62ff275..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsProto.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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/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 deleted file mode 100644 index d9d67eaa..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java +++ /dev/null @@ -1,1517 +0,0 @@ -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/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 deleted file mode 100644 index b1a334ac..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyProto.java +++ /dev/null @@ -1,249 +0,0 @@ -// 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/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 deleted file mode 100644 index 96268617..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyProto.java +++ /dev/null @@ -1,191 +0,0 @@ -// 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. 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/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 deleted file mode 100644 index 7aae58c2..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index f35ff214..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index db14df61..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index 98615ee8..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index 08654615..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index af933751..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityOuterClass.java +++ /dev/null @@ -1,183 +0,0 @@ -// 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/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 deleted file mode 100644 index d2d4da66..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyProto.java +++ /dev/null @@ -1,204 +0,0 @@ -// 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 * AuthorizationPolicy is a resource that specifies how a server * should authorize incoming connections. This resource in itself does @@ -13,15 +30,16 @@ * * 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_ = ""; @@ -31,16 +49,15 @@ 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) @@ -60,79 +77,91 @@ 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; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + description_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + 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; } + 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; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + 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; } + case 48: + { + int rawValue = input.readEnum(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + action_ = rawValue; + 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; + 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; } - rules_.add( - input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -140,8 +169,7 @@ 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_); @@ -150,41 +178,46 @@ 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.
      * 
@@ -193,6 +226,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Grant access.
      * 
@@ -201,6 +236,8 @@ public enum Action */ ALLOW(1), /** + * + * *
      * Deny access.
      * Deny rules should be avoided unless they are used to provide a default
@@ -214,6 +251,8 @@ public enum Action
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -222,6 +261,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Grant access.
      * 
@@ -230,6 +271,8 @@ public enum Action */ public static final int ALLOW_VALUE = 1; /** + * + * *
      * Deny access.
      * Deny rules should be avoided unless they are used to provide a default
@@ -240,7 +283,6 @@ public enum Action
      */
     public static final int DENY_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -265,49 +307,51 @@ 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);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Action findValueByNumber(int number) {
+            return Action.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    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;
@@ -324,11 +368,14 @@ 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,
@@ -336,11 +383,15 @@ public interface RuleOrBuilder extends
      * 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,
@@ -348,10 +399,14 @@ public interface RuleOrBuilder extends
      * 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,
@@ -359,10 +414,14 @@ public interface RuleOrBuilder extends
      * 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,
@@ -370,11 +429,16 @@ public interface RuleOrBuilder extends
      * 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< + ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> 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,
@@ -382,12 +446,16 @@ public interface RuleOrBuilder extends
      * 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
@@ -396,11 +464,15 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder get
      * 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
@@ -409,10 +481,15 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder get
      * 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
@@ -421,10 +498,14 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder get
      * 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
@@ -433,11 +514,17 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder get
      * 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< + ? extends + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> 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
@@ -446,27 +533,32 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder get
      * 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(); @@ -474,16 +566,15 @@ 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) @@ -503,31 +594,44 @@ private Rule( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - 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; + 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; } - destinations_.add( - input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,8 +639,7 @@ 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_); @@ -548,24 +651,30 @@ 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
@@ -576,11 +685,13 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -591,10 +702,13 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -605,11 +719,14 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -620,13 +737,15 @@ public interface SourceOrBuilder extends
        * 
* * 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.,
@@ -636,11 +755,13 @@ public interface SourceOrBuilder extends
        * 
* * 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.,
@@ -650,10 +771,13 @@ public interface SourceOrBuilder extends
        * 
* * 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.,
@@ -663,11 +787,14 @@ public interface SourceOrBuilder extends
        * 
* * 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.,
@@ -677,28 +804,31 @@ public interface SourceOrBuilder extends
        * 
* * 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; @@ -706,16 +836,15 @@ 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) @@ -735,31 +864,33 @@ 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; + 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; } - 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; + 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; } - ipBlocks_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -767,8 +898,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(); @@ -780,22 +911,27 @@ 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
@@ -806,13 +942,15 @@ private Source(
        * 
* * 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
@@ -823,12 +961,15 @@ private Source(
        * 
* * 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
@@ -839,6 +980,7 @@ 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. */ @@ -846,6 +988,8 @@ 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
@@ -856,17 +1000,19 @@ 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.,
@@ -876,13 +1022,15 @@ public java.lang.String getPrincipals(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.,
@@ -892,12 +1040,15 @@ public java.lang.String getPrincipals(int index) {
        * 
* * 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.,
@@ -907,6 +1058,7 @@ 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. */ @@ -914,6 +1066,8 @@ 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.,
@@ -923,15 +1077,16 @@ 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; @@ -943,8 +1098,7 @@ 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)); } @@ -984,17 +1138,16 @@ 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; } @@ -1020,87 +1173,96 @@ 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 @@ -1110,44 +1272,50 @@ 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(); @@ -1159,19 +1327,22 @@ 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); } @@ -1180,7 +1351,8 @@ 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(); @@ -1200,46 +1372,54 @@ 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_; @@ -1279,7 +1459,9 @@ 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) { @@ -1288,16 +1470,21 @@ 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
@@ -1308,13 +1495,15 @@ 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
@@ -1325,12 +1514,15 @@ private void ensurePrincipalsIsMutable() {
          * 
* * 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
@@ -1341,6 +1533,7 @@ 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. */ @@ -1348,6 +1541,8 @@ 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
@@ -1358,14 +1553,16 @@ 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
@@ -1376,21 +1573,23 @@ public java.lang.String getPrincipals(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
@@ -1401,20 +1600,22 @@ public Builder setPrincipals(
          * 
* * 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
@@ -1425,18 +1626,19 @@ public Builder addPrincipals(
          * 
* * 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
@@ -1447,6 +1649,7 @@ public Builder addAllPrincipals(
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrincipals() { @@ -1456,6 +1659,8 @@ 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
@@ -1466,29 +1671,33 @@ 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.,
@@ -1498,13 +1707,15 @@ 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.,
@@ -1514,12 +1725,15 @@ private void ensureIpBlocksIsMutable() {
          * 
* * 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.,
@@ -1529,6 +1743,7 @@ 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. */ @@ -1536,6 +1751,8 @@ 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.,
@@ -1545,14 +1762,16 @@ 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.,
@@ -1562,21 +1781,23 @@ public java.lang.String getIpBlocks(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.,
@@ -1586,20 +1807,22 @@ public Builder setIpBlocks(
          * 
* * 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.,
@@ -1609,18 +1832,19 @@ public Builder addIpBlocks(
          * 
* * 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.,
@@ -1630,6 +1854,7 @@ public Builder addAllIpBlocks(
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIpBlocks() { @@ -1639,6 +1864,8 @@ 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.,
@@ -1648,20 +1875,21 @@ 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) { @@ -1674,30 +1902,33 @@ 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; @@ -1709,17 +1940,20 @@ 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
@@ -1728,11 +1962,13 @@ public interface DestinationOrBuilder extends
        * 
* * 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
@@ -1741,10 +1977,13 @@ public interface DestinationOrBuilder extends
        * 
* * 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
@@ -1753,11 +1992,14 @@ public interface DestinationOrBuilder extends
        * 
* * 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
@@ -1766,87 +2008,108 @@ public interface DestinationOrBuilder extends
        * 
* * 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
@@ -1855,11 +2118,16 @@ public interface DestinationOrBuilder extends
        * 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
@@ -1868,11 +2136,17 @@ public interface DestinationOrBuilder extends
        * 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
@@ -1881,26 +2155,33 @@ public interface DestinationOrBuilder extends
        * 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(); @@ -1909,16 +2190,15 @@ 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) @@ -1938,65 +2218,76 @@ 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 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; + 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; } - while (input.getBytesUntilLimit() > 0) { + case 16: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + ports_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } ports_.addInt(input.readUInt32()); + 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; - } - 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 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; } - httpHeaderMatch_ = input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpHeaderMatch_); - httpHeaderMatch_ = subBuilder.buildPartial(); + 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; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2004,8 +2295,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(); @@ -2020,24 +2311,31 @@ 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,
@@ -2049,10 +2347,13 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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,
@@ -2064,10 +2365,13 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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,
@@ -2079,12 +2383,14 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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
@@ -2093,10 +2399,13 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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
@@ -2105,45 +2414,50 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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) @@ -2162,25 +2476,27 @@ 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; + 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; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2188,34 +2504,42 @@ 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; } @@ -2231,24 +2555,28 @@ 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,
@@ -2260,12 +2588,15 @@ public int getNumber() {
          * 
* * 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,
@@ -2277,6 +2608,7 @@ public boolean hasRegexMatch() {
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The regexMatch. */ public java.lang.String getRegexMatch() { @@ -2287,8 +2619,7 @@ 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; @@ -2297,6 +2628,8 @@ public java.lang.String getRegexMatch() { } } /** + * + * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2308,18 +2641,17 @@ 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; } @@ -2332,6 +2664,8 @@ public java.lang.String getRegexMatch() { 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
@@ -2340,6 +2674,7 @@ public java.lang.String getRegexMatch() {
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The headerName. */ @java.lang.Override @@ -2348,14 +2683,15 @@ 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
@@ -2364,16 +2700,15 @@ 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 { @@ -2382,6 +2717,7 @@ public java.lang.String getHeaderName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2394,7 +2730,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_); } @@ -2424,20 +2760,25 @@ 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: @@ -2468,88 +2809,118 @@ 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 @@ -2559,44 +2930,53 @@ 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(); @@ -2608,19 +2988,25 @@ 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); } @@ -2628,8 +3014,13 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination. } @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_; } @@ -2643,60 +3034,76 @@ 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.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(); @@ -2713,11 +3120,15 @@ 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) { @@ -2726,12 +3137,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() { @@ -2741,8 +3152,9 @@ public Builder clearType() { return this; } - /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2754,6 +3166,7 @@ public Builder clearType() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the regexMatch field is set. */ @java.lang.Override @@ -2761,6 +3174,8 @@ public boolean hasRegexMatch() { return typeCase_ == 2; } /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2772,6 +3187,7 @@ public boolean hasRegexMatch() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The regexMatch. */ @java.lang.Override @@ -2781,8 +3197,7 @@ 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; @@ -2793,6 +3208,8 @@ public java.lang.String getRegexMatch() { } } /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2804,19 +3221,18 @@ 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; } @@ -2826,6 +3242,8 @@ public java.lang.String getRegexMatch() { } } /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2837,20 +3255,22 @@ public java.lang.String getRegexMatch() {
            * 
* * 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,
@@ -2862,6 +3282,7 @@ public Builder setRegexMatch(
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegexMatch() { @@ -2873,6 +3294,8 @@ public Builder clearRegexMatch() { return this; } /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2884,15 +3307,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(); @@ -2901,6 +3324,8 @@ public Builder setRegexMatchBytes( 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
@@ -2909,13 +3334,13 @@ public Builder setRegexMatchBytes(
            * 
* * 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; @@ -2924,6 +3349,8 @@ 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
@@ -2932,15 +3359,14 @@ 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 { @@ -2948,6 +3374,8 @@ 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
@@ -2956,20 +3384,22 @@ public java.lang.String getHeaderName() {
            * 
* * 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
@@ -2978,15 +3408,18 @@ public Builder setHeaderName(
            * 
* * 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
@@ -2995,20 +3428,21 @@ 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) { @@ -3021,30 +3455,36 @@ 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; @@ -3056,15 +3496,18 @@ 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
@@ -3073,13 +3516,15 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.
        * 
* * 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
@@ -3088,12 +3533,15 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.
        * 
* * 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
@@ -3102,6 +3550,7 @@ 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. */ @@ -3109,6 +3558,8 @@ 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
@@ -3117,88 +3568,105 @@ 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. */ @@ -3206,23 +3674,29 @@ 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
@@ -3231,7 +3705,10 @@ public java.lang.String getMethods(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 @@ -3239,6 +3716,8 @@ 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
@@ -3247,14 +3726,24 @@ 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
@@ -3263,14 +3752,19 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.
        * 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; @@ -3282,8 +3776,7 @@ 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)); @@ -3321,14 +3814,13 @@ 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; } @@ -3341,8 +3833,7 @@ 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; @@ -3352,23 +3843,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.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; @@ -3402,88 +3891,103 @@ 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 @@ -3493,44 +3997,50 @@ 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(); @@ -3550,19 +4060,22 @@ 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); } @@ -3570,8 +4083,10 @@ 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(); @@ -3601,46 +4116,54 @@ 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_; @@ -3689,11 +4212,14 @@ 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) { @@ -3702,16 +4228,21 @@ 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
@@ -3720,13 +4251,15 @@ 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
@@ -3735,12 +4268,15 @@ private void ensureHostsIsMutable() {
          * 
* * 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
@@ -3749,6 +4285,7 @@ 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. */ @@ -3756,6 +4293,8 @@ 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
@@ -3764,14 +4303,16 @@ 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
@@ -3780,21 +4321,23 @@ public java.lang.String getHosts(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
@@ -3803,20 +4346,22 @@ public Builder setHosts(
          * 
* * 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
@@ -3825,18 +4370,19 @@ public Builder addHosts(
          * 
* * 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
@@ -3845,6 +4391,7 @@ public Builder addAllHosts(
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHosts() { @@ -3854,6 +4401,8 @@ 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
@@ -3862,15 +4411,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(); @@ -3878,42 +4427,52 @@ public Builder addHostsBytes( } 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. */ @@ -3921,28 +4480,33 @@ 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. */ @@ -3953,28 +4517,32 @@ 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() { @@ -3984,45 +4552,55 @@ 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. */ @@ -4030,85 +4608,95 @@ 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() { @@ -4118,31 +4706,43 @@ 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
@@ -4151,13 +4751,18 @@ public Builder addMethodsBytes(
          * 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
@@ -4166,17 +4771,27 @@ 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
@@ -4185,9 +4800,13 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.
          * 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(); @@ -4201,6 +4820,8 @@ public Builder setHttpHeaderMatch(com.google.cloud.networksecurity.v1.Authorizat 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
@@ -4209,10 +4830,14 @@ public Builder setHttpHeaderMatch(com.google.cloud.networksecurity.v1.Authorizat
          * 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(); @@ -4223,6 +4848,8 @@ 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
@@ -4231,13 +4858,20 @@ 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; } @@ -4249,6 +4883,8 @@ public Builder mergeHttpHeaderMatch(com.google.cloud.networksecurity.v1.Authoriz 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
@@ -4257,7 +4893,9 @@ public Builder mergeHttpHeaderMatch(com.google.cloud.networksecurity.v1.Authoriz
          * 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) { @@ -4271,6 +4909,8 @@ 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
@@ -4279,14 +4919,20 @@ 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
@@ -4295,17 +4941,25 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.
          * 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
@@ -4314,21 +4968,33 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.
          * 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) { @@ -4341,30 +5007,33 @@ 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; @@ -4376,15 +5045,18 @@ 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,
@@ -4392,13 +5064,18 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination
      * 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,
@@ -4406,14 +5083,19 @@ public java.util.List
      *
-     * 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 
+    public java.util.List<
+            ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder>
         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,
@@ -4421,13 +5103,17 @@ public java.util.List
      *
-     * 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,
@@ -4435,13 +5121,18 @@ 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,
@@ -4449,17 +5140,22 @@ 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
@@ -4468,13 +5164,18 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuil
      * 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
@@ -4483,14 +5184,20 @@ public java.util.List
      *
-     * 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 
+    public java.util.List<
+            ? extends
+                com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder>
         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
@@ -4499,13 +5206,17 @@ public java.util.List
      *
-     * 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
@@ -4514,13 +5225,18 @@ 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
@@ -4529,15 +5245,18 @@ 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; @@ -4549,8 +5268,7 @@ 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)); } @@ -4567,12 +5285,10 @@ 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; @@ -4582,17 +5298,16 @@ 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; } @@ -4618,87 +5333,94 @@ 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 @@ -4708,27 +5430,32 @@ 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() @@ -4736,18 +5463,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(); @@ -4767,13 +5494,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_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(); } @@ -4788,7 +5516,8 @@ 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)) { @@ -4816,38 +5545,41 @@ 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; @@ -4855,7 +5587,9 @@ 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()) { @@ -4874,9 +5608,10 @@ 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_); } @@ -4900,9 +5635,10 @@ 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_); } @@ -4927,7 +5663,9 @@ 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) { @@ -4936,21 +5674,30 @@ 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(sources_); + sources_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source>(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,
@@ -4958,9 +5705,12 @@ 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 { @@ -4968,6 +5718,8 @@ public java.util.List * 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, @@ -4975,7 +5727,9 @@ public java.util.List * - * 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) { @@ -4985,6 +5739,8 @@ 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,
@@ -4992,9 +5748,12 @@ 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 { @@ -5002,6 +5761,8 @@ 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,
@@ -5009,7 +5770,9 @@ 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) { @@ -5026,6 +5789,8 @@ 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,
@@ -5033,10 +5798,14 @@ 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()); @@ -5047,6 +5816,8 @@ 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,
@@ -5054,9 +5825,12 @@ 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(); @@ -5070,6 +5844,8 @@ public Builder addSources(com.google.cloud.networksecurity.v1.AuthorizationPolic 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,
@@ -5077,7 +5853,9 @@ public Builder addSources(com.google.cloud.networksecurity.v1.AuthorizationPolic
        * 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) { @@ -5094,6 +5872,8 @@ 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,
@@ -5101,10 +5881,13 @@ 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()); @@ -5115,6 +5898,8 @@ 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,
@@ -5122,10 +5907,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 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()); @@ -5136,6 +5925,8 @@ 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,
@@ -5143,14 +5934,17 @@ 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 values) { + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source> + 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); @@ -5158,6 +5952,8 @@ 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,
@@ -5165,7 +5961,9 @@ 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) { @@ -5178,6 +5976,8 @@ 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,
@@ -5185,7 +5985,9 @@ 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) { @@ -5198,6 +6000,8 @@ 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,
@@ -5205,13 +6009,17 @@ 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,
@@ -5219,16 +6027,21 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Build
        * 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,
@@ -5236,10 +6049,14 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuil
        * 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 - getSourcesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -5247,6 +6064,8 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuil } } /** + * + * *
        * 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,
@@ -5254,13 +6073,20 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuil
        * 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,
@@ -5268,14 +6094,21 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Build
        * 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,
@@ -5283,40 +6116,56 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Build
        * 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 - getSourcesBuilderList() { + public java.util.List< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source.Builder> + 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 destinations_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination> + destinations_ = java.util.Collections.emptyList(); + private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - destinations_ = new java.util.ArrayList(destinations_); + destinations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination>( + 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
@@ -5325,9 +6174,13 @@ 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 getDestinationsList() { + public java.util.List< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination> + getDestinationsList() { if (destinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(destinations_); } else { @@ -5335,6 +6188,8 @@ public java.util.List * 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 @@ -5343,7 +6198,9 @@ public java.util.List * - * 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) { @@ -5353,6 +6210,8 @@ 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
@@ -5361,9 +6220,12 @@ 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 { @@ -5371,6 +6233,8 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination } } /** + * + * *
        * 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
@@ -5379,10 +6243,13 @@ 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]; + * */ 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(); @@ -5396,6 +6263,8 @@ 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
@@ -5404,10 +6273,14 @@ 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()); @@ -5418,6 +6291,8 @@ 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
@@ -5426,9 +6301,12 @@ 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(); @@ -5442,6 +6320,8 @@ public Builder addDestinations(com.google.cloud.networksecurity.v1.Authorization 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
@@ -5450,10 +6330,13 @@ public Builder addDestinations(com.google.cloud.networksecurity.v1.Authorization
        * 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(); @@ -5467,6 +6350,8 @@ 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
@@ -5475,10 +6360,13 @@ 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()); @@ -5489,6 +6377,8 @@ 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
@@ -5497,10 +6387,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 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()); @@ -5511,6 +6405,8 @@ 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
@@ -5519,14 +6415,18 @@ 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 values) { + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination> + 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); @@ -5534,6 +6434,8 @@ 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
@@ -5542,7 +6444,9 @@ 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) { @@ -5555,6 +6459,8 @@ 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
@@ -5563,7 +6469,9 @@ 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) { @@ -5576,6 +6484,8 @@ 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
@@ -5584,13 +6494,17 @@ 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
@@ -5599,16 +6513,21 @@ 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]; + * */ - 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
@@ -5617,10 +6536,14 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationO
        * 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 - getDestinationsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> + getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { @@ -5628,6 +6551,8 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationO } } /** + * + * *
        * 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
@@ -5636,13 +6561,20 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationO
        * 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
@@ -5651,14 +6583,21 @@ 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]; + * */ - 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
@@ -5667,18 +6606,28 @@ 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]; + * */ - public java.util.List - getDestinationsBuilderList() { + public java.util.List< + com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.Builder> + 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(), @@ -5687,6 +6636,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination. } return destinationsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5699,30 +6649,32 @@ 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; @@ -5734,21 +6686,24 @@ 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 @@ -5757,30 +6712,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 { @@ -5791,11 +6746,14 @@ public java.lang.String getName() { 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 @@ -5804,29 +6762,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 { @@ -5837,11 +6795,15 @@ public java.lang.String getDescription() { 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 @@ -5849,11 +6811,15 @@ 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 @@ -5861,11 +6827,14 @@ 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() { @@ -5875,11 +6844,15 @@ 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 @@ -5887,11 +6860,15 @@ 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 @@ -5899,11 +6876,14 @@ 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() { @@ -5911,24 +6891,23 @@ 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< - 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, - ""); + 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, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField 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_; } @@ -5937,28 +6916,30 @@ 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.
    * 
@@ -5966,11 +6947,12 @@ 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.
    * 
@@ -5978,16 +6960,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.
    * 
@@ -5995,12 +6977,11 @@ 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(); } @@ -6010,35 +6991,52 @@ public java.lang.String getLabelsOrThrow( 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
@@ -6046,13 +7044,18 @@ public java.lang.String getLabelsOrThrow(
    * 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
@@ -6060,14 +7063,19 @@ public java.util.List
    *
-   * 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 
+  public java.util.List<
+          ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder>
       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
@@ -6075,13 +7083,17 @@ public java.util.List
    *
-   * 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
@@ -6089,13 +7101,17 @@ 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
@@ -6103,7 +7119,9 @@ 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( @@ -6112,6 +7130,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder get } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6123,8 +7142,7 @@ 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_); } @@ -6137,13 +7155,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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++) { @@ -6165,30 +7181,28 @@ 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; @@ -6198,32 +7212,27 @@ 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; } @@ -6263,96 +7272,104 @@ 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
@@ -6362,43 +7379,43 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -6406,17 +7423,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();
@@ -6449,9 +7466,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
@@ -6470,7 +7487,8 @@ 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_;
@@ -6504,38 +7522,39 @@ 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;
@@ -6543,7 +7562,8 @@ 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();
@@ -6558,8 +7578,7 @@ 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());
       }
@@ -6581,9 +7600,10 @@ 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_);
           }
@@ -6608,7 +7628,8 @@ 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) {
@@ -6617,23 +7638,26 @@ 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; @@ -6642,21 +7666,22 @@ 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 { @@ -6664,57 +7689,64 @@ 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]; + * * @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; @@ -6722,18 +7754,20 @@ public Builder setNameBytes( 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; @@ -6742,20 +7776,21 @@ 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 { @@ -6763,54 +7798,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * 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; @@ -6818,39 +7860,58 @@ public Builder setDescriptionBytes( 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) { @@ -6866,14 +7927,17 @@ 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(); @@ -6884,17 +7948,21 @@ public Builder setCreateTime( 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; } @@ -6906,11 +7974,15 @@ 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) { @@ -6924,48 +7996,64 @@ 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_; @@ -6973,39 +8061,58 @@ 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) { @@ -7021,14 +8128,17 @@ 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(); @@ -7039,17 +8149,21 @@ public Builder setUpdateTime( 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; } @@ -7061,11 +8175,15 @@ 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) { @@ -7079,69 +8197,84 @@ 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< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField 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(); @@ -7153,28 +8286,30 @@ 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.
      * 
@@ -7182,11 +8317,12 @@ 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.
      * 
@@ -7194,16 +8330,17 @@ 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.
      * 
@@ -7211,12 +8348,11 @@ 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(); } @@ -7224,118 +8360,139 @@ public java.lang.String getLabelsOrThrow( } 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. */ @@ -7343,40 +8500,53 @@ 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
@@ -7384,9 +8554,12 @@ 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 { @@ -7394,6 +8567,8 @@ public java.util.List * 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 @@ -7401,7 +8576,9 @@ public java.util.List * - * 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) { @@ -7411,6 +8588,8 @@ 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
@@ -7418,7 +8597,9 @@ 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) { @@ -7428,6 +8609,8 @@ 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
@@ -7435,7 +8618,9 @@ 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) { @@ -7452,6 +8637,8 @@ 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
@@ -7459,10 +8646,13 @@ 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()); @@ -7473,6 +8663,8 @@ 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
@@ -7480,7 +8672,9 @@ 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) { @@ -7496,6 +8690,8 @@ 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
@@ -7503,7 +8699,9 @@ 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) { @@ -7520,6 +8718,8 @@ 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
@@ -7527,7 +8727,9 @@ 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) { @@ -7541,6 +8743,8 @@ 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
@@ -7548,10 +8752,13 @@ 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()); @@ -7562,6 +8769,8 @@ 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
@@ -7569,14 +8778,16 @@ 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); @@ -7584,6 +8795,8 @@ 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
@@ -7591,7 +8804,9 @@ 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) { @@ -7604,6 +8819,8 @@ 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
@@ -7611,7 +8828,9 @@ 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) { @@ -7624,6 +8843,8 @@ 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
@@ -7631,13 +8852,17 @@ 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
@@ -7645,16 +8870,21 @@ 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
@@ -7662,10 +8892,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 java.util.List - getRulesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder> + getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { @@ -7673,6 +8906,8 @@ 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
@@ -7680,13 +8915,18 @@ 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
@@ -7694,14 +8934,20 @@ 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
@@ -7709,29 +8955,34 @@ 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); } @@ -7741,12 +8992,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(); } @@ -7755,16 +9006,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; @@ -7779,6 +9030,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.AuthorizationPolicy 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/AuthorizationPolicyName.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java index a4752b00..84897b0a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java @@ -1,109 +1,159 @@ +/* + * 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.
    * 
@@ -112,30 +162,31 @@ public interface AuthorizationPolicyOrBuilder extends */ 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.
    * 
@@ -144,43 +195,55 @@ boolean containsLabels( */ /* 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
@@ -188,11 +251,14 @@ java.lang.String getLabelsOrThrow(
    * 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
@@ -200,10 +266,14 @@ java.lang.String getLabelsOrThrow(
    * 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
@@ -211,10 +281,14 @@ java.lang.String getLabelsOrThrow(
    * 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
@@ -222,11 +296,15 @@ java.lang.String getLabelsOrThrow(
    * 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
@@ -234,7 +312,9 @@ java.lang.String getLabelsOrThrow(
    * 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/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 new file mode 100644 index 00000000..69802dea --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyProto.java @@ -0,0 +1,283 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java index ba4536d9..487a0ef0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProvider.java @@ -1,9 +1,26 @@ +/* + * 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.
@@ -11,30 +28,29 @@
  *
  * 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)
@@ -53,41 +69,50 @@ 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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            typeCase_ = 3;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,35 +120,40 @@ 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;
     }
@@ -139,31 +169,37 @@ 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 @@ -171,22 +207,27 @@ 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.
@@ -197,20 +238,25 @@ 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 @@ -218,40 +264,52 @@ 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; @@ -263,13 +321,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); } @@ -281,12 +339,14 @@ 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; @@ -296,22 +356,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: @@ -345,96 +405,104 @@ 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.
@@ -442,21 +510,23 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -464,16 +534,15 @@ 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();
@@ -483,9 +552,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
@@ -504,7 +573,8 @@ 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_;
@@ -528,38 +598,39 @@ 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;
@@ -567,19 +638,23 @@ 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();
@@ -600,7 +675,8 @@ 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) {
@@ -609,12 +685,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() {
@@ -624,16 +700,21 @@ 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 @@ -641,12 +722,15 @@ 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 @@ -664,6 +748,8 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint() { } } /** + * + * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -685,6 +771,8 @@ 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.
@@ -704,6 +792,8 @@ public Builder setGrpcEndpoint(
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -713,10 +803,13 @@ 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;
         }
@@ -732,6 +825,8 @@ 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.
@@ -756,6 +851,8 @@ public Builder clearGrpcEndpoint() {
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -767,6 +864,8 @@ 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.
@@ -786,6 +885,8 @@ public com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpoint
       }
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -794,34 +895,48 @@ 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 @@ -829,17 +944,23 @@ 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_; @@ -853,15 +974,20 @@ public com.google.cloud.networksecurity.v1.CertificateProviderInstance getCertif } } /** + * + * *
      * 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(); @@ -875,13 +1001,17 @@ public Builder setCertificateProviderInstance(com.google.cloud.networksecurity.v 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) { @@ -895,20 +1025,30 @@ 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; } @@ -924,13 +1064,17 @@ public Builder mergeCertificateProviderInstance(com.google.cloud.networksecurity 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) { @@ -949,28 +1093,38 @@ 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 { @@ -981,35 +1135,46 @@ public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder } } /** + * + * *
      * 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); } @@ -1019,12 +1184,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(); } @@ -1033,16 +1198,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; @@ -1057,6 +1222,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.CertificateProvider 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/CertificateProviderInstance.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java index 1d42cf64..5c6552b1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java @@ -1,9 +1,26 @@ +/* + * 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
@@ -13,31 +30,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)
@@ -56,19 +73,20 @@ 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;
+              pluginInstance_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -76,29 +94,33 @@ 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
@@ -106,6 +128,7 @@ private CertificateProviderInstance(
    * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pluginInstance. */ @java.lang.Override @@ -114,14 +137,15 @@ 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
@@ -129,16 +153,15 @@ 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 { @@ -147,6 +170,7 @@ public java.lang.String getPluginInstance() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +182,7 @@ 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_); } @@ -183,15 +206,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; } @@ -211,96 +234,104 @@ 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
@@ -310,21 +341,23 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -332,16 +365,15 @@ 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();
@@ -351,13 +383,14 @@ 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();
     }
 
@@ -372,7 +405,8 @@ 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;
@@ -382,46 +416,50 @@ 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();
@@ -445,7 +483,9 @@ 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) {
@@ -457,6 +497,8 @@ 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
@@ -464,13 +506,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; @@ -479,6 +521,8 @@ 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
@@ -486,15 +530,14 @@ 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 { @@ -502,6 +545,8 @@ 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
@@ -509,20 +554,22 @@ public java.lang.String getPluginInstance() {
      * 
* * 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
@@ -530,15 +577,18 @@ public Builder setPluginInstance(
      * 
* * 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
@@ -546,23 +596,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); } @@ -572,30 +622,32 @@ 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; @@ -607,9 +659,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java index b32932cb..4bfde71f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java @@ -1,13 +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 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
@@ -15,10 +33,13 @@ public interface CertificateProviderInstanceOrBuilder extends
    * 
* * 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
@@ -26,8 +47,8 @@ public interface CertificateProviderInstanceOrBuilder extends
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java index b63f5d22..e62cd941 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderOrBuilder.java @@ -1,33 +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/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.
@@ -38,37 +62,52 @@ public interface CertificateProviderOrBuilder extends
   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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java index 3a975e5a..ced1a724 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java @@ -1,9 +1,26 @@ +/* + * 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
@@ -12,15 +29,16 @@
  *
  * 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_ = "";
@@ -30,16 +48,15 @@ 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)
@@ -59,92 +76,107 @@ 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;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          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;
             }
-
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          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;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          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;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              sni_ = s;
+              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 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;
             }
-            clientCertificate_ = input.readMessage(com.google.cloud.networksecurity.v1.CertificateProvider.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(clientCertificate_);
-              clientCertificate_ = subBuilder.buildPartial();
+          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;
             }
-
-            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;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -152,8 +184,7 @@ 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_);
@@ -162,40 +193,45 @@ 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 @@ -204,30 +240,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 { @@ -238,11 +274,14 @@ public java.lang.String getName() { 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 @@ -251,29 +290,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 { @@ -284,11 +323,15 @@ public java.lang.String getDescription() { 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 @@ -296,11 +339,15 @@ 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 @@ -308,11 +355,14 @@ 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() { @@ -322,11 +372,15 @@ 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 @@ -334,11 +388,15 @@ 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 @@ -346,11 +404,14 @@ 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() { @@ -358,24 +419,23 @@ 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< - 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() { + 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() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -384,28 +444,30 @@ 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.
    * 
@@ -413,11 +475,12 @@ 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.
    * 
@@ -425,16 +488,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.
    * 
@@ -442,12 +505,11 @@ 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(); } @@ -457,12 +519,15 @@ public java.lang.String getLabelsOrThrow( 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 @@ -471,30 +536,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 { @@ -505,12 +570,17 @@ public java.lang.String getSni() { 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 @@ -518,94 +588,127 @@ 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( @@ -614,6 +717,7 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getServerValida } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -625,8 +729,7 @@ 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_); } @@ -639,12 +742,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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_); } @@ -670,33 +769,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__); + 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; @@ -706,38 +802,31 @@ 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; } @@ -781,96 +870,103 @@ 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
@@ -879,43 +975,43 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -923,17 +1019,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();
@@ -972,9 +1068,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
@@ -993,7 +1089,8 @@ 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_;
@@ -1032,38 +1129,39 @@ 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;
@@ -1071,7 +1169,8 @@ 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();
@@ -1086,8 +1185,7 @@ 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();
@@ -1113,9 +1211,10 @@ 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_);
           }
@@ -1140,7 +1239,8 @@ 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) {
@@ -1149,23 +1249,26 @@ 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; @@ -1174,21 +1277,22 @@ 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 { @@ -1196,57 +1300,64 @@ 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]; + * * @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; @@ -1254,18 +1365,20 @@ public Builder setNameBytes( 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; @@ -1274,20 +1387,21 @@ 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 { @@ -1295,54 +1409,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * 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; @@ -1350,39 +1471,58 @@ public Builder setDescriptionBytes( 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) { @@ -1398,14 +1538,17 @@ 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(); @@ -1416,17 +1559,21 @@ public Builder setCreateTime( 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; } @@ -1438,11 +1585,15 @@ 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) { @@ -1456,48 +1607,64 @@ 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_; @@ -1505,39 +1672,58 @@ 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) { @@ -1553,14 +1739,17 @@ 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(); @@ -1571,17 +1760,21 @@ public Builder setUpdateTime( 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; } @@ -1593,11 +1786,15 @@ 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) { @@ -1611,69 +1808,84 @@ 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< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField 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(); @@ -1685,28 +1897,30 @@ 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.
      * 
@@ -1714,11 +1928,12 @@ 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.
      * 
@@ -1726,16 +1941,17 @@ 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.
      * 
@@ -1743,12 +1959,11 @@ 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(); } @@ -1756,82 +1971,81 @@ public java.lang.String getLabelsOrThrow( } 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; @@ -1840,21 +2054,22 @@ 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 { @@ -1862,57 +2077,64 @@ 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]; + * * @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; @@ -1920,44 +2142,64 @@ public Builder setSniBytes( 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(); @@ -1971,12 +2213,16 @@ public Builder setClientCertificate(com.google.cloud.networksecurity.v1.Certific 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) { @@ -1990,18 +2236,25 @@ 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; } @@ -2013,12 +2266,16 @@ public Builder mergeClientCertificate(com.google.cloud.networksecurity.v1.Certif 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) { @@ -2032,78 +2289,107 @@ 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 { @@ -2111,13 +2397,17 @@ public java.util.List getServe } } /** + * + * *
      * 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) { @@ -2127,13 +2417,17 @@ 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) { @@ -2143,13 +2437,17 @@ 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) { @@ -2166,13 +2464,17 @@ 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) { @@ -2186,13 +2488,17 @@ 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) { @@ -2208,13 +2514,17 @@ 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) { @@ -2231,13 +2541,17 @@ 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) { @@ -2251,13 +2565,17 @@ 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) { @@ -2271,20 +2589,23 @@ 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); @@ -2292,13 +2613,17 @@ 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) { @@ -2311,13 +2636,17 @@ 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) { @@ -2330,45 +2659,58 @@ 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 { @@ -2376,51 +2718,69 @@ 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(), @@ -2429,9 +2789,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); } @@ -2441,12 +2801,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(); } @@ -2455,16 +2815,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; @@ -2479,6 +2839,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.ClientTlsPolicy 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/ClientTlsPolicyName.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java index 36cb30f7..e1aeee81 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java @@ -1,109 +1,159 @@ +/* + * 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.
    * 
@@ -112,30 +162,31 @@ public interface ClientTlsPolicyOrBuilder extends */ 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.
    * 
@@ -144,123 +195,161 @@ boolean containsLabels( */ /* 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/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 new file mode 100644 index 00000000..d9e96d38 --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyProto.java @@ -0,0 +1,221 @@ +/* + * 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 new file mode 100644 index 00000000..e1e36d32 --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CommonProto.java @@ -0,0 +1,92 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java index 0621ca26..f611460e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequest.java @@ -1,24 +1,43 @@ +/* + * 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_ = ""; @@ -26,16 +45,15 @@ 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) @@ -54,38 +72,44 @@ private CreateAuthorizationPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - authorizationPolicyId_ = s; - break; - } - case 26: { - com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder subBuilder = null; - if (authorizationPolicy_ != null) { - subBuilder = authorizationPolicy_.toBuilder(); + parent_ = s; + break; } - authorizationPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authorizationPolicy_); - authorizationPolicy_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + authorizationPolicyId_ = s; + break; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +117,42 @@ 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 @@ -130,30 +161,32 @@ 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 { @@ -164,6 +197,8 @@ public java.lang.String getParent() { 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
@@ -172,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The authorizationPolicyId. */ @java.lang.Override @@ -180,14 +216,15 @@ 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
@@ -196,16 +233,15 @@ 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 { @@ -216,11 +252,16 @@ public java.lang.String getAuthorizationPolicyId() { 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 @@ -228,30 +269,43 @@ 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; @@ -263,8 +317,7 @@ 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,8 +343,7 @@ 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; @@ -301,21 +353,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.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; @@ -342,134 +392,145 @@ 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(); @@ -487,14 +548,16 @@ 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 @@ -508,7 +571,8 @@ 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) { @@ -524,46 +588,51 @@ 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(); @@ -594,7 +663,9 @@ 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) { @@ -606,19 +677,23 @@ 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; @@ -627,21 +702,24 @@ 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 { @@ -649,57 +727,70 @@ 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) = { ... } + * + * * @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; @@ -707,6 +798,8 @@ public Builder setParentBytes( 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
@@ -715,13 +808,13 @@ public Builder setParentBytes(
      * 
* * 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; @@ -730,6 +823,8 @@ 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
@@ -738,15 +833,14 @@ 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 { @@ -754,6 +848,8 @@ 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
@@ -762,20 +858,22 @@ public java.lang.String getAuthorizationPolicyId() {
      * 
* * 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
@@ -784,15 +882,18 @@ public Builder setAuthorizationPolicyId(
      * 
* * 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
@@ -801,16 +902,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; @@ -818,41 +919,61 @@ public Builder setAuthorizationPolicyIdBytes( 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(); @@ -866,11 +987,15 @@ public Builder setAuthorizationPolicy(com.google.cloud.networksecurity.v1.Author 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) { @@ -884,17 +1009,25 @@ 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; } @@ -906,11 +1039,15 @@ public Builder mergeAuthorizationPolicy(com.google.cloud.networksecurity.v1.Auth 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) { @@ -924,55 +1061,73 @@ 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); } @@ -982,30 +1137,32 @@ 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; @@ -1017,9 +1174,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java index 817a145c..f1b33cd9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthorizationPolicyRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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
@@ -38,10 +65,13 @@ public interface CreateAuthorizationPolicyRequestOrBuilder extends
    * 
* * 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
@@ -50,35 +80,50 @@ public interface CreateAuthorizationPolicyRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java index 211d5b85..5f353edd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -54,38 +71,44 @@ private CreateClientTlsPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clientTlsPolicyId_ = s; - break; - } - case 26: { - com.google.cloud.networksecurity.v1.ClientTlsPolicy.Builder subBuilder = null; - if (clientTlsPolicy_ != null) { - subBuilder = clientTlsPolicy_.toBuilder(); + parent_ = s; + break; } - clientTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.ClientTlsPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientTlsPolicy_); - clientTlsPolicy_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + clientTlsPolicyId_ = s; + break; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +116,42 @@ 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 @@ -130,30 +160,32 @@ 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 { @@ -164,6 +196,8 @@ public java.lang.String getParent() { 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
@@ -171,6 +205,7 @@ public java.lang.String getParent() {
    * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clientTlsPolicyId. */ @java.lang.Override @@ -179,14 +214,15 @@ 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
@@ -194,16 +230,15 @@ 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 { @@ -214,11 +249,16 @@ public java.lang.String getClientTlsPolicyId() { 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 @@ -226,30 +266,43 @@ 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; @@ -261,8 +314,7 @@ 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_); } @@ -288,8 +340,7 @@ 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; @@ -299,21 +350,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.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; @@ -340,117 +389,127 @@ 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() @@ -458,16 +517,15 @@ 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(); @@ -485,13 +543,14 @@ 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(); } @@ -506,7 +565,8 @@ 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) { @@ -522,46 +582,50 @@ 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(); @@ -592,7 +656,9 @@ 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) { @@ -604,19 +670,23 @@ 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; @@ -625,21 +695,24 @@ 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 { @@ -647,57 +720,70 @@ 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) = { ... } + * + * * @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; @@ -705,6 +791,8 @@ public Builder setParentBytes( 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
@@ -712,13 +800,13 @@ public Builder setParentBytes(
      * 
* * 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; @@ -727,6 +815,8 @@ 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
@@ -734,15 +824,14 @@ 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 { @@ -750,6 +839,8 @@ 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
@@ -757,20 +848,22 @@ public java.lang.String getClientTlsPolicyId() {
      * 
* * 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
@@ -778,15 +871,18 @@ public Builder setClientTlsPolicyId(
      * 
* * 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
@@ -794,16 +890,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; @@ -811,39 +907,58 @@ public Builder setClientTlsPolicyIdBytes( 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) { @@ -859,11 +974,15 @@ 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) { @@ -877,17 +996,23 @@ 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; } @@ -899,11 +1024,15 @@ 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) { @@ -917,55 +1046,72 @@ 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); } @@ -975,30 +1121,32 @@ 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; @@ -1010,9 +1158,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java index fac847f4..00ae92f0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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
@@ -37,10 +64,13 @@ public interface CreateClientTlsPolicyRequestOrBuilder extends
    * 
* * 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
@@ -48,35 +78,49 @@ public interface CreateClientTlsPolicyRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java index cce84aad..c95be1a2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -54,38 +71,44 @@ private CreateServerTlsPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - serverTlsPolicyId_ = s; - break; - } - case 26: { - com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder subBuilder = null; - if (serverTlsPolicy_ != null) { - subBuilder = serverTlsPolicy_.toBuilder(); + parent_ = s; + break; } - serverTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.ServerTlsPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverTlsPolicy_); - serverTlsPolicy_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + serverTlsPolicyId_ = s; + break; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +116,42 @@ 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 @@ -130,30 +160,32 @@ 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 { @@ -164,6 +196,8 @@ public java.lang.String getParent() { 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
@@ -171,6 +205,7 @@ public java.lang.String getParent() {
    * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The serverTlsPolicyId. */ @java.lang.Override @@ -179,14 +214,15 @@ 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
@@ -194,16 +230,15 @@ 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 { @@ -214,11 +249,16 @@ public java.lang.String getServerTlsPolicyId() { 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 @@ -226,30 +266,43 @@ 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; @@ -261,8 +314,7 @@ 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_); } @@ -288,8 +340,7 @@ 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; @@ -299,21 +350,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.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; @@ -340,117 +389,127 @@ 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() @@ -458,16 +517,15 @@ 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(); @@ -485,13 +543,14 @@ 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(); } @@ -506,7 +565,8 @@ 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) { @@ -522,46 +582,50 @@ 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(); @@ -592,7 +656,9 @@ 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) { @@ -604,19 +670,23 @@ 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; @@ -625,21 +695,24 @@ 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 { @@ -647,57 +720,70 @@ 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) = { ... } + * + * * @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; @@ -705,6 +791,8 @@ public Builder setParentBytes( 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
@@ -712,13 +800,13 @@ public Builder setParentBytes(
      * 
* * 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; @@ -727,6 +815,8 @@ 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
@@ -734,15 +824,14 @@ 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 { @@ -750,6 +839,8 @@ 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
@@ -757,20 +848,22 @@ public java.lang.String getServerTlsPolicyId() {
      * 
* * 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
@@ -778,15 +871,18 @@ public Builder setServerTlsPolicyId(
      * 
* * 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
@@ -794,16 +890,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; @@ -811,39 +907,58 @@ public Builder setServerTlsPolicyIdBytes( 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) { @@ -859,11 +974,15 @@ 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) { @@ -877,17 +996,23 @@ 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; } @@ -899,11 +1024,15 @@ 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) { @@ -917,55 +1046,72 @@ 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); } @@ -975,30 +1121,32 @@ 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; @@ -1010,9 +1158,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java index 04911aac..c052b6e4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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
@@ -37,10 +64,13 @@ public interface CreateServerTlsPolicyRequestOrBuilder extends
    * 
* * 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
@@ -48,35 +78,49 @@ public interface CreateServerTlsPolicyRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java index 978c9ba7..61c8eedc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java @@ -1,40 +1,58 @@ +/* + * 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) @@ -53,19 +71,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,42 @@ 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 @@ -110,30 +136,32 @@ 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 { @@ -142,6 +170,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +182,7 @@ 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_); } @@ -178,15 +206,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; } @@ -206,134 +234,145 @@ 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(); @@ -343,14 +382,16 @@ 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 @@ -364,7 +405,8 @@ 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; @@ -374,46 +416,51 @@ 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(); @@ -437,7 +484,9 @@ 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) { @@ -449,19 +498,23 @@ 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; @@ -470,21 +523,24 @@ 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 { @@ -492,64 +548,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +628,32 @@ 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; @@ -594,9 +665,8 @@ 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/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 new file mode 100644 index 00000000..a062a361 --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java index 6083de6c..890ab458 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequest.java @@ -1,40 +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/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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,117 +233,127 @@ 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() @@ -324,16 +361,15 @@ 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(); @@ -343,13 +379,14 @@ 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(); } @@ -364,7 +401,8 @@ 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; @@ -374,46 +412,50 @@ 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(); @@ -437,7 +479,9 @@ 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) { @@ -449,19 +493,23 @@ 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; @@ -470,21 +518,24 @@ 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 { @@ -492,64 +543,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +623,32 @@ 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; @@ -594,9 +660,8 @@ 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/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 new file mode 100644 index 00000000..a06bb173 --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java index 694e2fa7..04a27ec1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequest.java @@ -1,40 +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/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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,117 +233,127 @@ 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() @@ -324,16 +361,15 @@ 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(); @@ -343,13 +379,14 @@ 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(); } @@ -364,7 +401,8 @@ 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; @@ -374,46 +412,50 @@ 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(); @@ -437,7 +479,9 @@ 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) { @@ -449,19 +493,23 @@ 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; @@ -470,21 +518,24 @@ 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 { @@ -492,64 +543,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +623,32 @@ 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; @@ -594,9 +660,8 @@ 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/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 new file mode 100644 index 00000000..c88a2557 --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java index 12f105aa..3cd2d4c5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequest.java @@ -1,40 +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; /** + * + * *
  * 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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,134 +233,145 @@ 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(); @@ -343,13 +381,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_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(); } @@ -364,7 +403,8 @@ 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; @@ -374,46 +414,50 @@ 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(); @@ -437,7 +481,9 @@ 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) { @@ -449,19 +495,23 @@ 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; @@ -470,21 +520,24 @@ 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 { @@ -492,64 +545,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +625,32 @@ 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; @@ -594,9 +662,8 @@ 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/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 new file mode 100644 index 00000000..44b182db --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthorizationPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java index 9ab68147..2687c1ab 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequest.java @@ -1,40 +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/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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,117 +233,127 @@ 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() @@ -324,16 +361,15 @@ 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(); @@ -343,13 +379,14 @@ 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(); } @@ -364,7 +401,8 @@ 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; @@ -374,38 +412,39 @@ 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; @@ -413,7 +452,9 @@ 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(); @@ -437,7 +478,9 @@ 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) { @@ -449,19 +492,23 @@ 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; @@ -470,21 +517,24 @@ 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 { @@ -492,64 +542,77 @@ 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) = { ... } + * + * * @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); } @@ -559,12 +622,13 @@ 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(); } @@ -573,16 +637,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; @@ -597,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 00000000..bfdec696 --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java index d66bb0cf..572501dc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequest.java @@ -1,40 +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/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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,117 +233,127 @@ 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() @@ -324,16 +361,15 @@ 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(); @@ -343,13 +379,14 @@ 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(); } @@ -364,7 +401,8 @@ 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; @@ -374,38 +412,39 @@ 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; @@ -413,7 +452,9 @@ 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(); @@ -437,7 +478,9 @@ 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) { @@ -449,19 +492,23 @@ 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; @@ -470,21 +517,24 @@ 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 { @@ -492,64 +542,77 @@ 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) = { ... } + * + * * @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); } @@ -559,12 +622,13 @@ 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(); } @@ -573,16 +637,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; @@ -597,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 00000000..26a41eba --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java index 6ecdc061..6b60c6ca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java @@ -1,40 +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/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) @@ -53,19 +70,20 @@ 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; + targetUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ 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 @@ -110,30 +133,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 { @@ -142,6 +165,7 @@ public java.lang.String getTargetUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ 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_); } @@ -178,15 +201,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; } @@ -205,118 +228,127 @@ 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() @@ -324,16 +356,15 @@ 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(); @@ -343,9 +374,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 @@ -364,7 +395,8 @@ 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; @@ -374,38 +406,39 @@ 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; @@ -413,7 +446,8 @@ 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(); @@ -449,19 +483,21 @@ 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; @@ -470,21 +506,22 @@ 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 { @@ -492,64 +529,71 @@ 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]; + * * @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); } @@ -559,12 +603,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(); } @@ -573,16 +617,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; @@ -597,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.GrpcEndpoint 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/GrpcEndpointOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java index eb2ddddc..e8bf20fe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java @@ -1,31 +1,52 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java index a6491e4b..e291fa07 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequest.java @@ -1,24 +1,43 @@ +/* + * 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_ = ""; @@ -26,16 +45,15 @@ 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) @@ -54,30 +72,32 @@ 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: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +105,43 @@ 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 @@ -123,31 +150,33 @@ 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 { @@ -158,11 +187,14 @@ public java.lang.String getParent() { 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 @@ -173,6 +205,8 @@ 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
@@ -181,6 +215,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -189,14 +224,15 @@ 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
@@ -205,16 +241,15 @@ 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 { @@ -223,6 +258,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +270,7 @@ 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_); } @@ -258,8 +293,7 @@ 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_); @@ -272,19 +306,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.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; } @@ -308,134 +340,145 @@ 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(); @@ -449,14 +492,16 @@ 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 @@ -470,7 +515,8 @@ 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_; @@ -482,46 +528,51 @@ 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(); @@ -552,7 +603,9 @@ 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) { @@ -564,20 +617,24 @@ 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; @@ -586,22 +643,25 @@ 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 { @@ -609,72 +669,88 @@ 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) = { ... } + * + * * @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 @@ -682,30 +758,36 @@ 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; @@ -713,6 +795,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -721,13 +805,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; @@ -736,6 +820,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -744,15 +830,14 @@ 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 { @@ -760,6 +845,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -768,20 +855,22 @@ public java.lang.String getPageToken() {
      * 
* * 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
@@ -790,15 +879,18 @@ public Builder setPageToken(
      * 
* * 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
@@ -807,23 +899,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); } @@ -833,30 +925,32 @@ 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; @@ -868,9 +962,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java index d6cf839b..01979f77 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesRequestOrBuilder.java @@ -1,47 +1,77 @@ +/* + * 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
@@ -50,10 +80,13 @@ public interface ListAuthorizationPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -62,8 +95,8 @@ public interface ListAuthorizationPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java index cd2a1e36..a52da94c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponse.java @@ -1,24 +1,43 @@ +/* + * 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_ = ""; @@ -26,16 +45,15 @@ 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) @@ -55,28 +73,34 @@ private ListAuthorizationPoliciesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - authorizationPolicies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - authorizationPolicies_.add( - input.readMessage(com.google.cloud.networksecurity.v1.AuthorizationPolicy.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +108,7 @@ 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_); @@ -94,82 +117,105 @@ 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
@@ -177,6 +223,7 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAutho
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +232,15 @@ 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
@@ -200,16 +248,15 @@ 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 { @@ -218,6 +265,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +277,7 @@ 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)); } @@ -247,8 +294,9 @@ 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_); @@ -261,17 +309,16 @@ 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; } @@ -295,135 +342,147 @@ 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(); @@ -439,14 +498,16 @@ 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 @@ -460,7 +521,8 @@ 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)) { @@ -480,46 +542,51 @@ 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()) { @@ -538,9 +605,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListAuthorizationPo 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_); } @@ -569,7 +637,9 @@ 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) { @@ -578,28 +648,40 @@ 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 { @@ -607,11 +689,15 @@ public java.util.List g } } /** + * + * *
      * 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) { @@ -621,13 +707,18 @@ 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 { @@ -635,11 +726,15 @@ 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) { @@ -656,14 +751,19 @@ 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()); @@ -674,13 +774,18 @@ 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(); @@ -694,11 +799,15 @@ public Builder addAuthorizationPolicies(com.google.cloud.networksecurity.v1.Auth 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) { @@ -715,11 +824,15 @@ 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) { @@ -733,14 +846,19 @@ 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()); @@ -751,18 +869,22 @@ 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); @@ -770,11 +892,15 @@ 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) { @@ -787,11 +913,15 @@ 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) { @@ -804,39 +934,53 @@ 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 - getAuthorizationPoliciesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder> + getAuthorizationPoliciesOrBuilderList() { if (authorizationPoliciesBuilder_ != null) { return authorizationPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -844,45 +988,65 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAutho } } /** + * + * *
      * 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(), @@ -894,6 +1058,8 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder addAuthor 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
@@ -901,13 +1067,13 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Builder addAuthor
      * 
* * 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; @@ -916,6 +1082,8 @@ 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
@@ -923,15 +1091,14 @@ 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 { @@ -939,6 +1106,8 @@ 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
@@ -946,20 +1115,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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
@@ -967,15 +1138,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1157,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); } @@ -1009,30 +1183,32 @@ 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; @@ -1044,9 +1220,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java index ef6b3941..eb3926a8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthorizationPoliciesResponseOrBuilder.java @@ -1,57 +1,90 @@ +/* + * 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
@@ -59,10 +92,13 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizatio
    * 
* * 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
@@ -70,8 +106,8 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicyOrBuilder getAuthorizatio
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java index d9747494..0864b1ed 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -54,30 +71,32 @@ private ListClientTlsPoliciesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ 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 @@ -122,30 +148,32 @@ 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 { @@ -156,11 +184,14 @@ public java.lang.String getParent() { 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 @@ -171,6 +202,8 @@ 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
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,15 @@ 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
@@ -203,16 +238,15 @@ 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 { @@ -221,6 +255,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ 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_); } @@ -256,8 +290,7 @@ 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_); @@ -270,19 +303,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.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; } @@ -306,117 +337,127 @@ 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() @@ -424,16 +465,15 @@ 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(); @@ -447,13 +487,14 @@ 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(); } @@ -468,7 +509,8 @@ 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_; @@ -480,46 +522,50 @@ 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(); @@ -550,7 +596,9 @@ 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) { @@ -562,19 +610,23 @@ 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; @@ -583,21 +635,24 @@ 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 { @@ -605,69 +660,85 @@ 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) = { ... } + * + * * @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 @@ -675,30 +746,36 @@ 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; @@ -706,6 +783,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -714,13 +793,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; @@ -729,6 +808,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -737,15 +818,14 @@ 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 { @@ -753,6 +833,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -761,20 +843,22 @@ public java.lang.String getPageToken() {
      * 
* * 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
@@ -783,15 +867,18 @@ public Builder setPageToken(
      * 
* * 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
@@ -800,23 +887,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); } @@ -826,30 +913,32 @@ 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; @@ -861,9 +950,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java index 525bbce3..f880f4db 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesRequestOrBuilder.java @@ -1,45 +1,75 @@ +/* + * 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
@@ -48,10 +78,13 @@ public interface ListClientTlsPoliciesRequestOrBuilder extends
    * 
* * 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
@@ -60,8 +93,8 @@ public interface ListClientTlsPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java index 147f8acf..5e9125fb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponse.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -55,28 +72,33 @@ private ListClientTlsPoliciesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientTlsPolicies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - clientTlsPolicies_.add( - input.readMessage(com.google.cloud.networksecurity.v1.ClientTlsPolicy.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ 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_); @@ -94,22 +115,27 @@ 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.
    * 
@@ -117,10 +143,13 @@ private ListClientTlsPoliciesResponse( * 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.
    * 
@@ -128,11 +157,13 @@ public java.util.List getCl * 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.
    * 
@@ -144,6 +175,8 @@ public int getClientTlsPoliciesCount() { return clientTlsPolicies_.size(); } /** + * + * *
    * List of ClientTlsPolicy resources.
    * 
@@ -155,6 +188,8 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicies( return clientTlsPolicies_.get(index); } /** + * + * *
    * List of ClientTlsPolicy resources.
    * 
@@ -170,6 +205,8 @@ 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
@@ -177,6 +214,7 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTls
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +223,15 @@ 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
@@ -200,16 +239,15 @@ 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 { @@ -218,6 +256,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +268,7 @@ 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)); } @@ -247,8 +285,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_); @@ -261,17 +299,16 @@ 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; } @@ -295,135 +332,147 @@ 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(); @@ -439,13 +488,14 @@ 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(); } @@ -460,7 +510,8 @@ 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)) { @@ -480,46 +531,50 @@ 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()) { @@ -538,9 +593,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListClientTlsPolici 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_); } @@ -569,7 +625,9 @@ 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) { @@ -578,28 +636,39 @@ 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 { @@ -607,11 +676,14 @@ public java.util.List getCl } } /** + * + * *
      * 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) { @@ -621,11 +693,14 @@ 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) { @@ -635,11 +710,14 @@ 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) { @@ -656,11 +734,14 @@ 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) { @@ -674,11 +755,14 @@ 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) { @@ -694,11 +778,14 @@ 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) { @@ -715,11 +802,14 @@ 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) { @@ -733,11 +823,14 @@ 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) { @@ -751,18 +844,20 @@ 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); @@ -770,11 +865,14 @@ 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) { @@ -787,11 +885,14 @@ 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) { @@ -804,39 +905,49 @@ 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 { @@ -844,45 +955,62 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicyOrBuilder getClientTls } } /** + * + * *
      * 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(), @@ -894,6 +1022,8 @@ 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
@@ -901,13 +1031,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; @@ -916,6 +1046,8 @@ 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
@@ -923,15 +1055,14 @@ 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 { @@ -939,6 +1070,8 @@ 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
@@ -946,20 +1079,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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
@@ -967,15 +1102,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1121,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); } @@ -1009,30 +1147,32 @@ 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; @@ -1044,9 +1184,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java index 043f89cb..d72ad348 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListClientTlsPoliciesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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.
    * 
@@ -25,6 +44,8 @@ public interface ListClientTlsPoliciesResponseOrBuilder extends */ com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicies(int index); /** + * + * *
    * List of ClientTlsPolicy resources.
    * 
@@ -33,15 +54,19 @@ public interface ListClientTlsPoliciesResponseOrBuilder extends */ 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.
    * 
@@ -52,6 +77,8 @@ 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
@@ -59,10 +86,13 @@ 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
@@ -70,8 +100,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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java index 0513d195..6a908414 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -54,30 +71,32 @@ private ListServerTlsPoliciesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ 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 @@ -122,30 +148,32 @@ 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 { @@ -156,11 +184,14 @@ public java.lang.String getParent() { 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 @@ -171,6 +202,8 @@ 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
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,15 @@ 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
@@ -203,16 +238,15 @@ 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 { @@ -221,6 +255,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ 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_); } @@ -256,8 +290,7 @@ 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_); @@ -270,19 +303,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.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; } @@ -306,117 +337,127 @@ 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() @@ -424,16 +465,15 @@ 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(); @@ -447,13 +487,14 @@ 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(); } @@ -468,7 +509,8 @@ 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_; @@ -480,46 +522,50 @@ 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(); @@ -550,7 +596,9 @@ 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) { @@ -562,19 +610,23 @@ 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; @@ -583,21 +635,24 @@ 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 { @@ -605,69 +660,85 @@ 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) = { ... } + * + * * @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 @@ -675,30 +746,36 @@ 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; @@ -706,6 +783,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -714,13 +793,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; @@ -729,6 +808,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -737,15 +818,14 @@ 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 { @@ -753,6 +833,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -761,20 +843,22 @@ public java.lang.String getPageToken() {
      * 
* * 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
@@ -783,15 +867,18 @@ public Builder setPageToken(
      * 
* * 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
@@ -800,23 +887,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); } @@ -826,30 +913,32 @@ 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; @@ -861,9 +950,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java index 186b5e4e..8558be24 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java @@ -1,45 +1,75 @@ +/* + * 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
@@ -48,10 +78,13 @@ public interface ListServerTlsPoliciesRequestOrBuilder extends
    * 
* * 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
@@ -60,8 +93,8 @@ public interface ListServerTlsPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java index be26e374..318d90ab 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -55,28 +72,33 @@ private ListServerTlsPoliciesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serverTlsPolicies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - serverTlsPolicies_.add( - input.readMessage(com.google.cloud.networksecurity.v1.ServerTlsPolicy.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ 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_); @@ -94,22 +115,27 @@ 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.
    * 
@@ -117,10 +143,13 @@ private ListServerTlsPoliciesResponse( * 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.
    * 
@@ -128,11 +157,13 @@ public java.util.List getSe * 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.
    * 
@@ -144,6 +175,8 @@ public int getServerTlsPoliciesCount() { return serverTlsPolicies_.size(); } /** + * + * *
    * List of ServerTlsPolicy resources.
    * 
@@ -155,6 +188,8 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicies( return serverTlsPolicies_.get(index); } /** + * + * *
    * List of ServerTlsPolicy resources.
    * 
@@ -170,6 +205,8 @@ 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
@@ -177,6 +214,7 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTls
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +223,15 @@ 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
@@ -200,16 +239,15 @@ 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 { @@ -218,6 +256,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +268,7 @@ 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)); } @@ -247,8 +285,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_); @@ -261,17 +299,16 @@ 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; } @@ -295,135 +332,147 @@ 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(); @@ -439,13 +488,14 @@ 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(); } @@ -460,7 +510,8 @@ 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)) { @@ -480,46 +531,50 @@ 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()) { @@ -538,9 +593,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListServerTlsPolici 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_); } @@ -569,7 +625,9 @@ 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) { @@ -578,28 +636,39 @@ 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 { @@ -607,11 +676,14 @@ public java.util.List getSe } } /** + * + * *
      * 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) { @@ -621,11 +693,14 @@ 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) { @@ -635,11 +710,14 @@ 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) { @@ -656,11 +734,14 @@ 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) { @@ -674,11 +755,14 @@ 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) { @@ -694,11 +778,14 @@ 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) { @@ -715,11 +802,14 @@ 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) { @@ -733,11 +823,14 @@ 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) { @@ -751,18 +844,20 @@ 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); @@ -770,11 +865,14 @@ 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) { @@ -787,11 +885,14 @@ 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) { @@ -804,39 +905,49 @@ 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 { @@ -844,45 +955,62 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTls } } /** + * + * *
      * 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(), @@ -894,6 +1022,8 @@ 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
@@ -901,13 +1031,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; @@ -916,6 +1046,8 @@ 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
@@ -923,15 +1055,14 @@ 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 { @@ -939,6 +1070,8 @@ 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
@@ -946,20 +1079,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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
@@ -967,15 +1102,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1121,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); } @@ -1009,30 +1147,32 @@ 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; @@ -1044,9 +1184,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java index a2b1b046..b3f1d3fc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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.
    * 
@@ -25,6 +44,8 @@ public interface ListServerTlsPoliciesResponseOrBuilder extends */ com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicies(int index); /** + * + * *
    * List of ServerTlsPolicy resources.
    * 
@@ -33,15 +54,19 @@ public interface ListServerTlsPoliciesResponseOrBuilder extends */ 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.
    * 
@@ -52,6 +77,8 @@ 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
@@ -59,10 +86,13 @@ 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
@@ -70,8 +100,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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java 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 new file mode 100644 index 00000000..6ff59866 --- /dev/null +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java @@ -0,0 +1,189 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java index 320009c8..832bc7a2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -28,16 +46,15 @@ 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) @@ -56,68 +73,76 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + 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; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + 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; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - 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; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,40 @@ 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 @@ -160,11 +191,15 @@ 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 @@ -172,11 +207,14 @@ 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() { @@ -186,11 +224,15 @@ 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 @@ -198,11 +240,15 @@ 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 @@ -210,11 +256,14 @@ 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() { @@ -224,11 +273,14 @@ 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 @@ -237,29 +289,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 { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { 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 @@ -283,29 +338,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 { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { 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 @@ -329,29 +387,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 { @@ -362,6 +420,8 @@ public java.lang.String getStatusMessage() { 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
@@ -370,6 +430,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -380,11 +441,14 @@ 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 @@ -393,29 +457,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 { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +500,7 @@ 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()); } @@ -468,12 +532,10 @@ 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_); @@ -485,8 +547,7 @@ 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_); @@ -499,33 +560,27 @@ 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; } @@ -552,8 +607,7 @@ 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(); @@ -562,117 +616,127 @@ 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() @@ -680,16 +744,15 @@ 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(); @@ -719,9 +782,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 @@ -740,7 +803,8 @@ 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 { @@ -764,38 +828,39 @@ 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; @@ -803,7 +868,8 @@ 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()); } @@ -848,7 +914,8 @@ 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) { @@ -860,39 +927,58 @@ 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) { @@ -908,14 +994,17 @@ 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(); @@ -926,17 +1015,21 @@ public Builder setCreateTime( 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; } @@ -948,11 +1041,15 @@ 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) { @@ -966,48 +1063,64 @@ 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_; @@ -1015,24 +1128,35 @@ 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() { @@ -1043,11 +1167,14 @@ 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) { @@ -1063,14 +1190,16 @@ 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(); @@ -1081,17 +1210,20 @@ public Builder setEndTime( 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; } @@ -1103,11 +1235,14 @@ 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) { @@ -1121,48 +1256,59 @@ 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_; @@ -1170,18 +1316,20 @@ 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; @@ -1190,20 +1338,21 @@ 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 { @@ -1211,54 +1360,61 @@ 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]; + * * @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; @@ -1266,18 +1422,20 @@ public Builder setTargetBytes( 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; @@ -1286,20 +1444,21 @@ 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 { @@ -1307,54 +1466,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * 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; @@ -1362,18 +1528,20 @@ public Builder setVerbBytes( 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; @@ -1382,20 +1550,21 @@ 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 { @@ -1403,61 +1572,70 @@ 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]; + * * @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
@@ -1466,6 +1644,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1473,6 +1652,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1481,16 +1662,19 @@ 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
@@ -1499,10 +1683,11 @@ 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; @@ -1510,18 +1695,20 @@ 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; @@ -1530,20 +1717,21 @@ 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 { @@ -1551,61 +1739,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * 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); } @@ -1615,12 +1810,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(); } @@ -1629,16 +1824,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; @@ -1653,6 +1848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.OperationMetadata 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/OperationMetadataOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java index 5ae30e9e..29dbebc5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * 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
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java index d30ae13e..d7dc77eb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java @@ -1,9 +1,26 @@ +/* + * 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
@@ -12,15 +29,16 @@
  *
  * 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_ = "";
@@ -28,16 +46,15 @@ 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)
@@ -57,95 +74,110 @@ private ServerTlsPolicy(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          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();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          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();
+              description_ = s;
+              break;
             }
+          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;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 48: {
+          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();
+              }
 
-            allowOpen_ = input.readBool();
-            break;
-          }
-          case 58: {
-            com.google.cloud.networksecurity.v1.CertificateProvider.Builder subBuilder = null;
-            if (serverCertificate_ != null) {
-              subBuilder = serverCertificate_.toBuilder();
+              break;
             }
-            serverCertificate_ = input.readMessage(com.google.cloud.networksecurity.v1.CertificateProvider.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(serverCertificate_);
-              serverCertificate_ = subBuilder.buildPartial();
+          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;
             }
-
-            break;
-          }
-          case 66: {
-            com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder subBuilder = null;
-            if (mtlsPolicy_ != null) {
-              subBuilder = mtlsPolicy_.toBuilder();
+          case 48:
+            {
+              allowOpen_ = input.readBool();
+              break;
             }
-            mtlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(mtlsPolicy_);
-              mtlsPolicy_ = subBuilder.buildPartial();
+          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();
+              }
+
+              break;
             }
+          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;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -153,43 +185,47 @@ 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.
@@ -197,9 +233,10 @@ public interface MTLSPolicyOrBuilder extends
      *
      * 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.
@@ -209,6 +246,8 @@ public interface MTLSPolicyOrBuilder extends
      */
     com.google.cloud.networksecurity.v1.ValidationCA getClientValidationCa(int index);
     /**
+     *
+     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -218,6 +257,8 @@ public interface MTLSPolicyOrBuilder extends
      */
     int getClientValidationCaCount();
     /**
+     *
+     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -225,9 +266,11 @@ public interface MTLSPolicyOrBuilder extends
      *
      * 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.
@@ -239,37 +282,39 @@ 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) @@ -289,22 +334,26 @@ private MTLSPolicy( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientValidationCa_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - clientValidationCa_.add( - input.readMessage(com.google.cloud.networksecurity.v1.ValidationCA.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -312,8 +361,7 @@ 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_); @@ -322,22 +370,27 @@ 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.
@@ -346,10 +399,13 @@ private MTLSPolicy(
      * 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.
@@ -358,11 +414,13 @@ public java.util.List getClien
      * 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.
@@ -375,6 +433,8 @@ public int getClientValidationCaCount() {
       return clientValidationCa_.size();
     }
     /**
+     *
+     *
      * 
      * Defines the mechanism to obtain the Certificate Authority certificate to
      * validate the client certificate.
@@ -387,6 +447,8 @@ 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.
@@ -401,6 +463,7 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getClientValida
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -412,8 +475,7 @@ 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));
       }
@@ -427,8 +489,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;
@@ -438,15 +500,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;
     }
@@ -468,87 +530,94 @@ 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
@@ -558,27 +627,32 @@ 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() @@ -586,17 +660,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(); @@ -610,13 +684,14 @@ 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(); } @@ -631,7 +706,8 @@ 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)) { @@ -650,46 +726,52 @@ 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()) { @@ -708,9 +790,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTL 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_); } @@ -735,7 +818,9 @@ 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) { @@ -744,29 +829,40 @@ 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 { @@ -774,12 +870,15 @@ public java.util.List getClien } } /** + * + * *
        * 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) { @@ -789,12 +888,15 @@ 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) { @@ -804,12 +906,15 @@ 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) { @@ -826,12 +931,15 @@ 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) { @@ -845,12 +953,15 @@ 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) { @@ -866,12 +977,15 @@ 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) { @@ -888,12 +1002,15 @@ 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) { @@ -907,12 +1024,15 @@ 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) { @@ -926,19 +1046,21 @@ 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); @@ -946,12 +1068,15 @@ 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) { @@ -964,12 +1089,15 @@ 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) { @@ -982,42 +1110,52 @@ 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 { @@ -1025,48 +1163,65 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getClientValida } } /** + * + * *
        * 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(), @@ -1075,6 +1230,7 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addClientValidat } return clientValidationCaBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1087,30 +1243,32 @@ 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; @@ -1122,21 +1280,24 @@ 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 @@ -1145,30 +1306,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 { @@ -1179,11 +1340,14 @@ public java.lang.String getName() { 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 @@ -1192,29 +1356,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 { @@ -1225,11 +1389,15 @@ public java.lang.String getDescription() { 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 @@ -1237,11 +1405,15 @@ 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 @@ -1249,11 +1421,14 @@ 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() { @@ -1263,11 +1438,15 @@ 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 @@ -1275,11 +1454,15 @@ 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 @@ -1287,11 +1470,14 @@ 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() { @@ -1299,24 +1485,23 @@ 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< - 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, - ""); + 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, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField 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_; } @@ -1325,28 +1510,30 @@ 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.
    * 
@@ -1354,11 +1541,12 @@ 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.
    * 
@@ -1366,16 +1554,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.
    * 
@@ -1383,12 +1571,11 @@ 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(); } @@ -1398,6 +1585,8 @@ public java.lang.String getLabelsOrThrow( 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
@@ -1410,6 +1599,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * bool allow_open = 6; + * * @return The allowOpen. */ @java.lang.Override @@ -1420,6 +1610,8 @@ 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
@@ -1427,6 +1619,7 @@ public boolean getAllowOpen() {
    * 
* * .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7; + * * @return Whether the serverCertificate field is set. */ @java.lang.Override @@ -1434,6 +1627,8 @@ 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
@@ -1441,13 +1636,18 @@ 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
@@ -1457,13 +1657,16 @@ 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
@@ -1473,6 +1676,7 @@ public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getServe
    * 
* * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; + * * @return Whether the mtlsPolicy field is set. */ @java.lang.Override @@ -1480,6 +1684,8 @@ 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
@@ -1489,13 +1695,18 @@ 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
@@ -1507,11 +1718,13 @@ 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;
@@ -1523,8 +1736,7 @@ 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_);
     }
@@ -1537,12 +1749,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     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_);
     }
@@ -1568,34 +1776,29 @@ 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;
@@ -1605,40 +1808,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.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;
@@ -1668,8 +1864,7 @@ 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();
@@ -1684,96 +1879,103 @@ 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
@@ -1782,43 +1984,43 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -1826,16 +2028,15 @@ 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();
@@ -1874,9 +2075,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
@@ -1895,7 +2096,8 @@ 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_;
@@ -1930,38 +2132,39 @@ 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;
@@ -1969,7 +2172,8 @@ 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();
@@ -1984,8 +2188,7 @@ 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());
       }
@@ -2014,7 +2217,8 @@ 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) {
@@ -2023,23 +2227,26 @@ 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; @@ -2048,21 +2255,22 @@ 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 { @@ -2070,57 +2278,64 @@ 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]; + * * @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; @@ -2128,18 +2343,20 @@ public Builder setNameBytes( 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; @@ -2148,20 +2365,21 @@ 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 { @@ -2169,54 +2387,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * 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; @@ -2224,39 +2449,58 @@ public Builder setDescriptionBytes( 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) { @@ -2272,14 +2516,17 @@ 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(); @@ -2290,17 +2537,21 @@ public Builder setCreateTime( 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; } @@ -2312,11 +2563,15 @@ 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) { @@ -2330,48 +2585,64 @@ 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_; @@ -2379,39 +2650,58 @@ 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) { @@ -2427,14 +2717,17 @@ 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(); @@ -2445,17 +2738,21 @@ public Builder setUpdateTime( 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; } @@ -2467,11 +2764,15 @@ 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) { @@ -2485,69 +2786,84 @@ 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< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField 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(); @@ -2559,28 +2875,30 @@ 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.
      * 
@@ -2588,11 +2906,12 @@ 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.
      * 
@@ -2600,16 +2919,17 @@ 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.
      * 
@@ -2617,12 +2937,11 @@ 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(); } @@ -2630,69 +2949,68 @@ public java.lang.String getLabelsOrThrow( } 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
@@ -2705,6 +3023,7 @@ public Builder putAllLabels(
      * 
* * bool allow_open = 6; + * * @return The allowOpen. */ @java.lang.Override @@ -2712,6 +3031,8 @@ 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
@@ -2724,16 +3045,19 @@ 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
@@ -2746,10 +3070,11 @@ public Builder setAllowOpen(boolean value) {
      * 
* * bool allow_open = 6; + * * @return This builder for chaining. */ public Builder clearAllowOpen() { - + allowOpen_ = false; onChanged(); return this; @@ -2757,8 +3082,13 @@ 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
@@ -2766,12 +3096,15 @@ 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
@@ -2779,16 +3112,21 @@ 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
@@ -2797,7 +3135,8 @@ 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();
@@ -2811,6 +3150,8 @@ public Builder setServerCertificate(com.google.cloud.networksecurity.v1.Certific
       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
@@ -2831,6 +3172,8 @@ 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
@@ -2839,11 +3182,14 @@ 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;
         }
@@ -2855,6 +3201,8 @@ public Builder mergeServerCertificate(com.google.cloud.networksecurity.v1.Certif
       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
@@ -2875,6 +3223,8 @@ 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
@@ -2883,12 +3233,15 @@ 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
@@ -2897,15 +3250,19 @@ public com.google.cloud.networksecurity.v1.CertificateProvider.Builder getServer
      *
      * .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
@@ -2915,14 +3272,17 @@ public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getServe
      * .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_;
@@ -2930,8 +3290,13 @@ public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getServe
 
     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
@@ -2941,12 +3306,15 @@ public com.google.cloud.networksecurity.v1.CertificateProviderOrBuilder getServe
      * 
* * .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
@@ -2956,16 +3324,21 @@ 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
@@ -2976,7 +3349,8 @@ 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();
@@ -2990,6 +3364,8 @@ public Builder setMtlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsPolicy
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3012,6 +3388,8 @@ 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
@@ -3022,11 +3400,14 @@ 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;
         }
@@ -3038,6 +3419,8 @@ public Builder mergeMtlsPolicy(com.google.cloud.networksecurity.v1.ServerTlsPoli
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3060,6 +3443,8 @@ 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
@@ -3070,12 +3455,15 @@ 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
@@ -3086,15 +3474,19 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder ge
      *
      * .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
@@ -3106,21 +3498,24 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicyOrBuilder g
      * .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);
     }
 
@@ -3130,12 +3525,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();
   }
@@ -3144,16 +3539,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;
@@ -3168,6 +3563,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.networksecurity.v1.ServerTlsPolicy 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/ServerTlsPolicyName.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java
rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
index 76781d7f..7552b879 100644
--- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
+++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
@@ -1,109 +1,159 @@
+/*
+ * 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.
    * 
@@ -112,30 +162,31 @@ public interface ServerTlsPolicyOrBuilder extends */ 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.
    * 
@@ -144,22 +195,24 @@ boolean containsLabels( */ /* 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
@@ -172,11 +225,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * 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
@@ -184,10 +240,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -195,10 +254,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -210,6 +272,8 @@ java.lang.String getLabelsOrThrow(
   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
@@ -219,10 +283,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -232,10 +299,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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/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
new file mode 100644
index 00000000..5c41d6a4
--- /dev/null
+++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java
@@ -0,0 +1,236 @@
+/*
+ * 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
new file mode 100644
index 00000000..97115bdd
--- /dev/null
+++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsProto.java
@@ -0,0 +1,125 @@
+/*
+ * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
similarity index 64%
rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
index a50e521d..bdccb634 100644
--- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
+++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequest.java
@@ -1,39 +1,56 @@
+/*
+ * 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) @@ -52,39 +69,45 @@ 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(); - } + 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 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; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +115,33 @@ 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.
@@ -123,7 +150,9 @@ private UpdateAuthorizationPolicyRequest(
    * 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 @@ -131,6 +160,8 @@ 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.
@@ -139,7 +170,9 @@ 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 @@ -147,6 +180,8 @@ 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.
@@ -155,7 +190,8 @@ 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() { @@ -165,11 +201,16 @@ 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 @@ -177,30 +218,43 @@ 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; @@ -212,8 +266,7 @@ 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()); } @@ -230,12 +283,10 @@ 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; @@ -245,22 +296,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.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; @@ -287,134 +337,145 @@ 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(); @@ -434,14 +495,16 @@ 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 @@ -455,7 +518,8 @@ 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 { @@ -474,46 +538,51 @@ 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()); } @@ -539,7 +608,9 @@ 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) { @@ -551,8 +622,13 @@ 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.
@@ -561,13 +637,17 @@ 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.
@@ -576,17 +656,23 @@ 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.
@@ -595,7 +681,8 @@ 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) { @@ -611,6 +698,8 @@ 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.
@@ -619,10 +708,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(); @@ -633,6 +722,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -641,13 +732,14 @@ public Builder setUpdateMask(
      * 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; } @@ -659,6 +751,8 @@ 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.
@@ -667,7 +761,8 @@ 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) { @@ -681,6 +776,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -689,14 +786,17 @@ 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.
@@ -705,17 +805,21 @@ 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.
@@ -724,17 +828,21 @@ 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_; @@ -742,41 +850,61 @@ 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(); @@ -790,11 +918,15 @@ public Builder setAuthorizationPolicy(com.google.cloud.networksecurity.v1.Author 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) { @@ -808,17 +940,25 @@ 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; } @@ -830,11 +970,15 @@ public Builder mergeAuthorizationPolicy(com.google.cloud.networksecurity.v1.Auth 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) { @@ -848,55 +992,73 @@ 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); } @@ -906,30 +1068,32 @@ 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; @@ -941,9 +1105,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java index bddf5988..b0ec7b74 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthorizationPolicyRequestOrBuilder.java @@ -1,13 +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/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.
@@ -16,11 +34,15 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder extends
    * 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.
@@ -29,11 +51,15 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder extends
    * 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.
@@ -42,34 +68,50 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder extends
    * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java index 2ad305af..184c7e44 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequest.java @@ -1,39 +1,55 @@ +/* + * 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) @@ -52,39 +68,45 @@ 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(); - } + 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 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; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +114,33 @@ 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
@@ -124,7 +150,9 @@ private UpdateClientTlsPolicyRequest(
    * 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 @@ -132,6 +160,8 @@ 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
@@ -141,7 +171,9 @@ 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 @@ -149,6 +181,8 @@ 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
@@ -158,7 +192,8 @@ 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() { @@ -168,11 +203,16 @@ 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 @@ -180,30 +220,43 @@ 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; @@ -215,8 +268,7 @@ 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()); } @@ -233,12 +285,10 @@ 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; @@ -248,22 +298,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.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; @@ -290,117 +339,127 @@ 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() @@ -408,16 +467,15 @@ 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(); @@ -437,13 +495,14 @@ 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(); } @@ -458,7 +517,8 @@ 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 { @@ -477,46 +537,50 @@ 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()); } @@ -542,7 +606,9 @@ 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) { @@ -554,8 +620,13 @@ 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
@@ -565,13 +636,17 @@ 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
@@ -581,17 +656,23 @@ 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
@@ -601,7 +682,8 @@ 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) { @@ -617,6 +699,8 @@ 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
@@ -626,10 +710,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(); @@ -640,6 +724,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -649,13 +735,14 @@ public Builder setUpdateMask(
      * 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; } @@ -667,6 +754,8 @@ 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
@@ -676,7 +765,8 @@ 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) { @@ -690,6 +780,8 @@ 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
@@ -699,14 +791,17 @@ 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
@@ -716,17 +811,21 @@ 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
@@ -736,17 +835,21 @@ 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_; @@ -754,39 +857,58 @@ 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) { @@ -802,11 +924,15 @@ 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) { @@ -820,17 +946,23 @@ 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; } @@ -842,11 +974,15 @@ 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) { @@ -860,55 +996,72 @@ 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); } @@ -918,30 +1071,32 @@ 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; @@ -953,9 +1108,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java index 3b1aae75..6563573b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateClientTlsPolicyRequestOrBuilder.java @@ -1,13 +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/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
@@ -17,11 +35,15 @@ public interface UpdateClientTlsPolicyRequestOrBuilder extends
    * 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
@@ -31,11 +53,15 @@ public interface UpdateClientTlsPolicyRequestOrBuilder extends
    * 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
@@ -45,34 +71,49 @@ public interface UpdateClientTlsPolicyRequestOrBuilder extends
    * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java index 1cb16a1a..203c52f8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequest.java @@ -1,39 +1,55 @@ +/* + * 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) @@ -52,39 +68,45 @@ 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(); - } + 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 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; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +114,33 @@ 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
@@ -124,7 +150,9 @@ private UpdateServerTlsPolicyRequest(
    * 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 @@ -132,6 +160,8 @@ 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
@@ -141,7 +171,9 @@ 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 @@ -149,6 +181,8 @@ 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
@@ -158,7 +192,8 @@ 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() { @@ -168,11 +203,16 @@ 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 @@ -180,30 +220,43 @@ 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; @@ -215,8 +268,7 @@ 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()); } @@ -233,12 +285,10 @@ 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; @@ -248,22 +298,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.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; @@ -290,117 +339,127 @@ 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() @@ -408,16 +467,15 @@ 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(); @@ -437,13 +495,14 @@ 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(); } @@ -458,7 +517,8 @@ 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 { @@ -477,46 +537,50 @@ 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()); } @@ -542,7 +606,9 @@ 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) { @@ -554,8 +620,13 @@ 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
@@ -565,13 +636,17 @@ 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
@@ -581,17 +656,23 @@ 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
@@ -601,7 +682,8 @@ 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) { @@ -617,6 +699,8 @@ 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
@@ -626,10 +710,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(); @@ -640,6 +724,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -649,13 +735,14 @@ public Builder setUpdateMask(
      * 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; } @@ -667,6 +754,8 @@ 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
@@ -676,7 +765,8 @@ 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) { @@ -690,6 +780,8 @@ 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
@@ -699,14 +791,17 @@ 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
@@ -716,17 +811,21 @@ 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
@@ -736,17 +835,21 @@ 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_; @@ -754,39 +857,58 @@ 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) { @@ -802,11 +924,15 @@ 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) { @@ -820,17 +946,23 @@ 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; } @@ -842,11 +974,15 @@ 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) { @@ -860,55 +996,72 @@ 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); } @@ -918,30 +1071,32 @@ 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; @@ -953,9 +1108,8 @@ 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java index 8ce749c1..78314da0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateServerTlsPolicyRequestOrBuilder.java @@ -1,13 +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/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
@@ -17,11 +35,15 @@ public interface UpdateServerTlsPolicyRequestOrBuilder extends
    * 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
@@ -31,11 +53,15 @@ public interface UpdateServerTlsPolicyRequestOrBuilder extends
    * 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
@@ -45,34 +71,49 @@ public interface UpdateServerTlsPolicyRequestOrBuilder extends
    * 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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java index 5f45208b..734ab616 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCA.java @@ -1,9 +1,26 @@ +/* + * 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.
@@ -11,30 +28,29 @@
  *
  * 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)
@@ -53,41 +69,50 @@ 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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            typeCase_ = 3;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,35 +120,40 @@ 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;
     }
@@ -139,31 +169,37 @@ 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 @@ -171,22 +207,27 @@ 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.
@@ -197,20 +238,25 @@ 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 @@ -218,40 +264,52 @@ 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; @@ -263,13 +321,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); } @@ -281,12 +339,14 @@ 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; @@ -296,22 +356,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: @@ -344,97 +404,104 @@ 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.
@@ -442,21 +509,23 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -464,16 +533,15 @@ 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();
@@ -483,9 +551,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
@@ -504,7 +572,8 @@ 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_;
@@ -528,38 +597,39 @@ 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;
@@ -567,19 +637,23 @@ 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();
@@ -609,12 +683,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() {
@@ -624,16 +698,21 @@ 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 @@ -641,12 +720,15 @@ 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 @@ -664,6 +746,8 @@ public com.google.cloud.networksecurity.v1.GrpcEndpoint getGrpcEndpoint() { } } /** + * + * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -685,6 +769,8 @@ public Builder setGrpcEndpoint(com.google.cloud.networksecurity.v1.GrpcEndpoint
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -704,6 +790,8 @@ public Builder setGrpcEndpoint(
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -713,10 +801,13 @@ 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;
         }
@@ -732,6 +823,8 @@ public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1.GrpcEndpoin
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -756,6 +849,8 @@ public Builder clearGrpcEndpoint() {
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -767,6 +862,8 @@ 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.
@@ -786,6 +883,8 @@ public com.google.cloud.networksecurity.v1.GrpcEndpointOrBuilder getGrpcEndpoint
       }
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -794,34 +893,48 @@ 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 @@ -829,17 +942,23 @@ 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_; @@ -853,15 +972,20 @@ public com.google.cloud.networksecurity.v1.CertificateProviderInstance getCertif } } /** + * + * *
      * 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(); @@ -875,13 +999,17 @@ public Builder setCertificateProviderInstance(com.google.cloud.networksecurity.v 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) { @@ -895,20 +1023,30 @@ 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; } @@ -924,13 +1062,17 @@ public Builder mergeCertificateProviderInstance(com.google.cloud.networksecurity 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) { @@ -949,28 +1091,38 @@ 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 { @@ -981,35 +1133,46 @@ public com.google.cloud.networksecurity.v1.CertificateProviderInstanceOrBuilder } } /** + * + * *
      * 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); } @@ -1019,12 +1182,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(); } @@ -1033,16 +1196,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; @@ -1057,6 +1220,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1.ValidationCA 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/ValidationCAOrBuilder.java b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java rename to proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java index 73674f91..6d2d2d80 100644 --- a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java +++ b/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ValidationCAOrBuilder.java @@ -1,33 +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/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.
@@ -38,37 +62,52 @@ public interface ValidationCAOrBuilder extends
   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/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto b/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto rename to proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto b/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto rename to proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto b/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto rename to proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto b/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto rename to proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto b/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto rename to proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto b/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto rename to proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java index e5f42daa..a74cec82 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicy.java @@ -1,9 +1,26 @@ +/* + * 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
@@ -13,15 +30,16 @@
  *
  * 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_ = "";
@@ -31,16 +49,15 @@ 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)
@@ -60,79 +77,91 @@ 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;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          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;
             }
+          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;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          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;
             }
+          case 48:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              action_ = rawValue;
+              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;
+          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;
             }
-            rules_.add(
-                input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -140,8 +169,7 @@ 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_);
@@ -150,41 +178,46 @@ 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.
      * 
@@ -193,6 +226,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Grant access.
      * 
@@ -201,6 +236,8 @@ public enum Action */ ALLOW(1), /** + * + * *
      * Deny access.
      * Deny rules should be avoided unless they are used to provide a default
@@ -214,6 +251,8 @@ public enum Action
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -222,6 +261,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Grant access.
      * 
@@ -230,6 +271,8 @@ public enum Action */ public static final int ALLOW_VALUE = 1; /** + * + * *
      * Deny access.
      * Deny rules should be avoided unless they are used to provide a default
@@ -240,7 +283,6 @@ public enum Action
      */
     public static final int DENY_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -265,49 +307,51 @@ 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);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Action findValueByNumber(int number) {
+            return Action.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    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;
@@ -324,11 +368,14 @@ 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.
@@ -336,11 +383,15 @@ public interface RuleOrBuilder extends
      * 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.
@@ -348,10 +399,14 @@ public interface RuleOrBuilder extends
      * 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.
@@ -359,10 +414,14 @@ public interface RuleOrBuilder extends
      * 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.
@@ -370,11 +429,17 @@ public interface RuleOrBuilder extends
      * 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< + ? extends + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> 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.
@@ -382,12 +447,16 @@ public interface RuleOrBuilder extends
      * 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
@@ -396,11 +465,15 @@ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilde
      * 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
@@ -409,10 +482,15 @@ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilde
      * 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
@@ -421,10 +499,14 @@ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilde
      * 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
@@ -433,11 +515,18 @@ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilde
      * 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< + ? extends + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule + .DestinationOrBuilder> getDestinationsOrBuilderList(); /** + * + * *
      * Optional. List of attributes for the traffic destination. All of the
      * destinations must match. A destination is a match if a request matches
@@ -446,27 +535,32 @@ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilde
      * 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(); @@ -474,16 +568,15 @@ 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) @@ -503,31 +596,45 @@ private Rule( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - 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; + 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; } - destinations_.add( - input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,8 +642,7 @@ 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_); @@ -548,24 +654,30 @@ 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
@@ -576,11 +688,13 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -591,10 +705,13 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -605,11 +722,14 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -620,13 +740,15 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -636,11 +758,13 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -650,10 +774,13 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -663,11 +790,14 @@ public interface SourceOrBuilder extends
        * 
* * 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
@@ -677,28 +807,31 @@ public interface SourceOrBuilder extends
        * 
* * 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; @@ -706,16 +839,15 @@ 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) @@ -735,31 +867,33 @@ 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; + 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; } - 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; + 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; } - ipBlocks_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -767,8 +901,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(); @@ -780,22 +914,28 @@ 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
@@ -806,13 +946,15 @@ private Source(
        * 
* * 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
@@ -823,12 +965,15 @@ private Source(
        * 
* * 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
@@ -839,6 +984,7 @@ 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. */ @@ -846,6 +992,8 @@ 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
@@ -856,17 +1004,19 @@ 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
@@ -876,13 +1026,15 @@ public java.lang.String getPrincipals(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
@@ -892,12 +1044,15 @@ public java.lang.String getPrincipals(int index) {
        * 
* * 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
@@ -907,6 +1062,7 @@ 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. */ @@ -914,6 +1070,8 @@ 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
@@ -923,15 +1081,16 @@ 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; @@ -943,8 +1102,7 @@ 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)); } @@ -984,17 +1142,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; } @@ -1019,88 +1177,103 @@ 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 @@ -1110,44 +1283,50 @@ 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(); @@ -1159,19 +1338,22 @@ 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); } @@ -1179,8 +1361,10 @@ 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(); @@ -1200,46 +1384,54 @@ 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_; @@ -1275,11 +1467,14 @@ 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) { @@ -1288,16 +1483,21 @@ 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
@@ -1308,13 +1508,15 @@ 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
@@ -1325,12 +1527,15 @@ private void ensurePrincipalsIsMutable() {
          * 
* * 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
@@ -1341,6 +1546,7 @@ 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. */ @@ -1348,6 +1554,8 @@ 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
@@ -1358,14 +1566,16 @@ 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
@@ -1376,21 +1586,23 @@ public java.lang.String getPrincipals(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
@@ -1401,20 +1613,22 @@ public Builder setPrincipals(
          * 
* * 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
@@ -1425,18 +1639,19 @@ public Builder addPrincipals(
          * 
* * 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
@@ -1447,6 +1662,7 @@ public Builder addAllPrincipals(
          * 
* * repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrincipals() { @@ -1456,6 +1672,8 @@ 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
@@ -1466,29 +1684,33 @@ 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
@@ -1498,13 +1720,15 @@ 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
@@ -1514,12 +1738,15 @@ private void ensureIpBlocksIsMutable() {
          * 
* * 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
@@ -1529,6 +1756,7 @@ 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. */ @@ -1536,6 +1764,8 @@ 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
@@ -1545,14 +1775,16 @@ 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
@@ -1562,21 +1794,23 @@ public java.lang.String getIpBlocks(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
@@ -1586,20 +1820,22 @@ public Builder setIpBlocks(
          * 
* * 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
@@ -1609,18 +1845,19 @@ public Builder addIpBlocks(
          * 
* * 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
@@ -1630,6 +1867,7 @@ public Builder addAllIpBlocks(
          * 
* * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIpBlocks() { @@ -1639,6 +1877,8 @@ 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
@@ -1648,20 +1888,21 @@ 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) { @@ -1674,30 +1915,33 @@ 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; @@ -1709,17 +1953,20 @@ 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
@@ -1728,11 +1975,13 @@ public interface DestinationOrBuilder extends
        * 
* * 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
@@ -1741,10 +1990,13 @@ public interface DestinationOrBuilder extends
        * 
* * 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
@@ -1753,11 +2005,14 @@ public interface DestinationOrBuilder extends
        * 
* * 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
@@ -1766,90 +2021,111 @@ public interface DestinationOrBuilder extends
        * 
* * 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
@@ -1858,11 +2134,16 @@ public interface DestinationOrBuilder extends
        * 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
@@ -1871,11 +2152,17 @@ public interface DestinationOrBuilder extends
        * 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
@@ -1884,26 +2171,34 @@ public interface DestinationOrBuilder extends
        * 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(); @@ -1912,16 +2207,15 @@ 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) @@ -1941,65 +2235,76 @@ 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 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; + 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; } - while (input.getBytesUntilLimit() > 0) { + case 16: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + ports_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } ports_.addInt(input.readUInt32()); + 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; - } - 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 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; } - httpHeaderMatch_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpHeaderMatch_); - httpHeaderMatch_ = subBuilder.buildPartial(); + 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; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2007,8 +2312,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(); @@ -2023,24 +2328,31 @@ 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,
@@ -2052,10 +2364,13 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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,
@@ -2067,10 +2382,13 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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,
@@ -2082,12 +2400,14 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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
@@ -2096,10 +2416,13 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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
@@ -2108,45 +2431,50 @@ public interface HttpHeaderMatchOrBuilder extends
          * 
* * 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 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) @@ -2165,25 +2493,27 @@ 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; + 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; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2191,34 +2521,42 @@ 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; } @@ -2234,24 +2572,28 @@ 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,
@@ -2263,12 +2605,15 @@ public int getNumber() {
          * 
* * 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,
@@ -2280,6 +2625,7 @@ public boolean hasRegexMatch() {
          * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The regexMatch. */ public java.lang.String getRegexMatch() { @@ -2290,8 +2636,7 @@ 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; @@ -2300,6 +2645,8 @@ public java.lang.String getRegexMatch() { } } /** + * + * *
          * Required. The value of the header must match the regular expression
          * specified in regexMatch. For regular expression grammar,
@@ -2311,18 +2658,17 @@ 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; } @@ -2335,6 +2681,8 @@ public java.lang.String getRegexMatch() { 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
@@ -2343,6 +2691,7 @@ public java.lang.String getRegexMatch() {
          * 
* * string header_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The headerName. */ @java.lang.Override @@ -2351,14 +2700,15 @@ 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
@@ -2367,16 +2717,15 @@ 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 { @@ -2385,6 +2734,7 @@ public java.lang.String getHeaderName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2397,7 +2747,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_); } @@ -2427,20 +2777,26 @@ 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: @@ -2471,88 +2827,119 @@ 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 @@ -2562,44 +2949,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * 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(); @@ -2611,19 +3007,26 @@ 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); } @@ -2631,8 +3034,14 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina } @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_; } @@ -2646,60 +3055,76 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina 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(); @@ -2716,11 +3141,16 @@ 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) { @@ -2729,12 +3159,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() { @@ -2744,8 +3174,9 @@ public Builder clearType() { return this; } - /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2757,6 +3188,7 @@ public Builder clearType() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the regexMatch field is set. */ @java.lang.Override @@ -2764,6 +3196,8 @@ public boolean hasRegexMatch() { return typeCase_ == 2; } /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2775,6 +3209,7 @@ public boolean hasRegexMatch() {
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The regexMatch. */ @java.lang.Override @@ -2784,8 +3219,7 @@ 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; @@ -2796,6 +3230,8 @@ public java.lang.String getRegexMatch() { } } /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2807,19 +3243,18 @@ 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; } @@ -2829,6 +3264,8 @@ public java.lang.String getRegexMatch() { } } /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2840,20 +3277,22 @@ public java.lang.String getRegexMatch() {
            * 
* * 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,
@@ -2865,6 +3304,7 @@ public Builder setRegexMatch(
            * 
* * string regex_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegexMatch() { @@ -2876,6 +3316,8 @@ public Builder clearRegexMatch() { return this; } /** + * + * *
            * Required. The value of the header must match the regular expression
            * specified in regexMatch. For regular expression grammar,
@@ -2887,15 +3329,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(); @@ -2904,6 +3346,8 @@ public Builder setRegexMatchBytes( 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
@@ -2912,13 +3356,13 @@ public Builder setRegexMatchBytes(
            * 
* * 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; @@ -2927,6 +3371,8 @@ 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
@@ -2935,15 +3381,14 @@ 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 { @@ -2951,6 +3396,8 @@ 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
@@ -2959,20 +3406,22 @@ public java.lang.String getHeaderName() {
            * 
* * 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
@@ -2981,15 +3430,18 @@ public Builder setHeaderName(
            * 
* * 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
@@ -2998,20 +3450,21 @@ 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) { @@ -3024,30 +3477,36 @@ 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; @@ -3059,15 +3518,18 @@ 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
@@ -3076,13 +3538,15 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 
* * 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
@@ -3091,12 +3555,15 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 
* * 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
@@ -3105,6 +3572,7 @@ 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. */ @@ -3112,6 +3580,8 @@ 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
@@ -3120,91 +3590,108 @@ 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. */ @@ -3212,23 +3699,29 @@ 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
@@ -3237,7 +3730,10 @@ public java.lang.String getMethods(int index) {
        * 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 @@ -3245,6 +3741,8 @@ 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
@@ -3253,14 +3751,24 @@ public boolean hasHttpHeaderMatch() {
        * 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
@@ -3269,14 +3777,19 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 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; @@ -3288,8 +3801,7 @@ 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)); @@ -3327,14 +3839,13 @@ 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; } @@ -3347,8 +3858,7 @@ 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; @@ -3358,23 +3868,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.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; @@ -3408,88 +3917,103 @@ 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 @@ -3499,44 +4023,52 @@ 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(); @@ -3556,19 +4088,23 @@ 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); } @@ -3576,8 +4112,11 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina } @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(); @@ -3607,46 +4146,56 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina 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_; @@ -3695,11 +4244,14 @@ 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) { @@ -3708,16 +4260,21 @@ 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
@@ -3726,13 +4283,15 @@ 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
@@ -3741,12 +4300,15 @@ private void ensureHostsIsMutable() {
          * 
* * 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
@@ -3755,6 +4317,7 @@ 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. */ @@ -3762,6 +4325,8 @@ 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
@@ -3770,14 +4335,16 @@ 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
@@ -3786,21 +4353,23 @@ public java.lang.String getHosts(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
@@ -3809,20 +4378,22 @@ public Builder setHosts(
          * 
* * 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
@@ -3831,18 +4402,19 @@ public Builder addHosts(
          * 
* * 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
@@ -3851,6 +4423,7 @@ public Builder addAllHosts(
          * 
* * repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHosts() { @@ -3860,6 +4433,8 @@ 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
@@ -3868,15 +4443,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(); @@ -3884,45 +4459,55 @@ public Builder addHostsBytes( } 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. */ @@ -3930,30 +4515,35 @@ 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. */ @@ -3964,30 +4554,34 @@ 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() { @@ -3997,45 +4591,55 @@ 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. */ @@ -4043,85 +4647,95 @@ 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() { @@ -4131,31 +4745,43 @@ 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
@@ -4164,13 +4790,18 @@ public Builder addMethodsBytes(
          * 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
@@ -4179,17 +4810,27 @@ public boolean hasHttpHeaderMatch() {
          * 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
@@ -4198,9 +4839,14 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
          * 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(); @@ -4214,6 +4860,8 @@ public Builder setHttpHeaderMatch(com.google.cloud.networksecurity.v1beta1.Autho return this; } /** + * + * *
          * Optional. Match against key:value pair in http header. Provides a
          * flexible match based on HTTP headers, for potentially advanced use
@@ -4222,10 +4870,14 @@ public Builder setHttpHeaderMatch(com.google.cloud.networksecurity.v1beta1.Autho
          * 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(); @@ -4236,6 +4888,8 @@ 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
@@ -4244,13 +4898,21 @@ public Builder setHttpHeaderMatch(
          * 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; } @@ -4262,6 +4924,8 @@ public Builder mergeHttpHeaderMatch(com.google.cloud.networksecurity.v1beta1.Aut return this; } /** + * + * *
          * Optional. Match against key:value pair in http header. Provides a
          * flexible match based on HTTP headers, for potentially advanced use
@@ -4270,7 +4934,9 @@ public Builder mergeHttpHeaderMatch(com.google.cloud.networksecurity.v1beta1.Aut
          * 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) { @@ -4284,6 +4950,8 @@ 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
@@ -4292,14 +4960,20 @@ public Builder clearHttpHeaderMatch() {
          * 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
@@ -4308,17 +4982,25 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
          * 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
@@ -4327,21 +5009,33 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
          * 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) { @@ -4354,30 +5048,34 @@ 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; @@ -4389,15 +5087,18 @@ 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.
@@ -4405,13 +5106,18 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
      * 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.
@@ -4419,14 +5125,20 @@ public java.util.List
      *
-     * 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 
+    public java.util.List<
+            ? extends
+                com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder>
         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.
@@ -4434,13 +5146,17 @@ public java.util.List
      *
-     * 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.
@@ -4448,13 +5164,18 @@ public int getSourcesCount() {
      * 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.
@@ -4462,17 +5183,23 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source
      * 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 destinations_; + private java.util.List< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> + destinations_; /** + * + * *
      * Optional. List of attributes for the traffic destination. All of the
      * destinations must match. A destination is a match if a request matches
@@ -4481,13 +5208,19 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceO
      * 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 getDestinationsList() { + public java.util.List< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> + 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
@@ -4496,14 +5229,21 @@ public java.util.List
      *
-     * 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 
+    public java.util.List<
+            ? extends
+                com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule
+                    .DestinationOrBuilder>
         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
@@ -4512,13 +5252,17 @@ public java.util.List
      *
-     * 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
@@ -4527,13 +5271,18 @@ public int getDestinationsCount() {
      * 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
@@ -4542,15 +5291,18 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
      * 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; @@ -4562,8 +5314,7 @@ 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)); } @@ -4580,12 +5331,10 @@ 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; @@ -4595,17 +5344,16 @@ 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; } @@ -4631,87 +5379,95 @@ 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 @@ -4721,46 +5477,52 @@ 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(); @@ -4780,14 +5542,16 @@ 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 @@ -4801,7 +5565,8 @@ 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)) { @@ -4829,46 +5594,53 @@ 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()) { @@ -4887,9 +5659,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationP 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_); } @@ -4913,9 +5686,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.AuthorizationP 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_); } @@ -4940,7 +5714,9 @@ 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) { @@ -4949,21 +5725,32 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List sources_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source> + sources_ = java.util.Collections.emptyList(); + private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(sources_); + sources_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source>( + 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.
@@ -4971,9 +5758,13 @@ private void ensureSourcesIsMutable() {
        * 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 getSourcesList() { + public java.util.List< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source> + getSourcesList() { if (sourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(sources_); } else { @@ -4981,6 +5772,8 @@ public java.util.List * 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. @@ -4988,7 +5781,9 @@ public java.util.List * - * 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) { @@ -4998,6 +5793,8 @@ 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.
@@ -5005,9 +5802,12 @@ public int getSourcesCount() {
        * 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 { @@ -5015,6 +5815,8 @@ 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.
@@ -5022,10 +5824,13 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source
        * 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(); @@ -5039,6 +5844,8 @@ 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.
@@ -5046,10 +5853,14 @@ public Builder setSources(
        * 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()); @@ -5060,6 +5871,8 @@ 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.
@@ -5067,9 +5880,12 @@ public Builder setSources(
        * 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(); @@ -5083,6 +5899,8 @@ public Builder addSources(com.google.cloud.networksecurity.v1beta1.Authorization 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.
@@ -5090,10 +5908,13 @@ public Builder addSources(com.google.cloud.networksecurity.v1beta1.Authorization
        * 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(); @@ -5107,6 +5928,8 @@ 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.
@@ -5114,10 +5937,13 @@ public Builder addSources(
        * 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()); @@ -5128,6 +5954,8 @@ 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.
@@ -5135,10 +5963,14 @@ public Builder addSources(
        * 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()); @@ -5149,6 +5981,8 @@ 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.
@@ -5156,14 +5990,18 @@ public Builder addSources(
        * 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 values) { + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source> + 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); @@ -5171,6 +6009,8 @@ 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.
@@ -5178,7 +6018,9 @@ public Builder addAllSources(
        * 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) { @@ -5191,6 +6033,8 @@ 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.
@@ -5198,7 +6042,9 @@ public Builder clearSources() {
        * 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) { @@ -5211,6 +6057,8 @@ 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.
@@ -5218,13 +6066,17 @@ public Builder removeSources(int index) {
        * 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.
@@ -5232,16 +6084,21 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.
        * 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.
@@ -5249,10 +6106,14 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceO
        * 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 - getSourcesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -5260,6 +6121,8 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceO } } /** + * + * *
        * 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.
@@ -5267,13 +6130,20 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceO
        * 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.
@@ -5281,14 +6151,21 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.
        * 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.
@@ -5296,40 +6173,58 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.
        * 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 - getSourcesBuilderList() { + public java.util.List< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source.Builder> + 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 destinations_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> + destinations_ = java.util.Collections.emptyList(); + private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - destinations_ = new java.util.ArrayList(destinations_); + destinations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination>( + 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
@@ -5338,9 +6233,13 @@ private void ensureDestinationsIsMutable() {
        * 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 getDestinationsList() { + public java.util.List< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> + getDestinationsList() { if (destinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(destinations_); } else { @@ -5348,6 +6247,8 @@ public java.util.List * Optional. List of attributes for the traffic destination. All of the * destinations must match. A destination is a match if a request matches @@ -5356,7 +6257,9 @@ public java.util.List * - * 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) { @@ -5366,6 +6269,8 @@ 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
@@ -5374,9 +6279,12 @@ public int getDestinationsCount() {
        * 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 { @@ -5384,6 +6292,8 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina } } /** + * + * *
        * Optional. List of attributes for the traffic destination. All of the
        * destinations must match. A destination is a match if a request matches
@@ -5392,10 +6302,13 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 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(); @@ -5409,6 +6322,8 @@ 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
@@ -5417,10 +6332,14 @@ public Builder setDestinations(
        * 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()); @@ -5431,6 +6350,8 @@ 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
@@ -5439,9 +6360,12 @@ public Builder setDestinations(
        * 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(); @@ -5455,6 +6379,8 @@ public Builder addDestinations(com.google.cloud.networksecurity.v1beta1.Authoriz 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
@@ -5463,10 +6389,13 @@ public Builder addDestinations(com.google.cloud.networksecurity.v1beta1.Authoriz
        * 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(); @@ -5480,6 +6409,8 @@ 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
@@ -5488,10 +6419,13 @@ public Builder addDestinations(
        * 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()); @@ -5502,6 +6436,8 @@ 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
@@ -5510,10 +6446,14 @@ public Builder addDestinations(
        * 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()); @@ -5524,6 +6464,8 @@ 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
@@ -5532,14 +6474,18 @@ public Builder addDestinations(
        * 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 values) { + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination> + 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); @@ -5547,6 +6493,8 @@ 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
@@ -5555,7 +6503,9 @@ public Builder addAllDestinations(
        * 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) { @@ -5568,6 +6518,8 @@ 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
@@ -5576,7 +6528,9 @@ public Builder clearDestinations() {
        * 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) { @@ -5589,6 +6543,8 @@ 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
@@ -5597,13 +6553,17 @@ public Builder removeDestinations(int index) {
        * 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
@@ -5612,16 +6572,21 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 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
@@ -5630,10 +6595,15 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 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 - getDestinationsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule + .DestinationOrBuilder> + getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { @@ -5641,6 +6611,8 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina } } /** + * + * *
        * Optional. List of attributes for the traffic destination. All of the
        * destinations must match. A destination is a match if a request matches
@@ -5649,13 +6621,20 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 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
@@ -5664,14 +6643,21 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 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
@@ -5680,18 +6666,30 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina
        * 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 - getDestinationsBuilderList() { + public java.util.List< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.Builder> + 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(), @@ -5700,6 +6698,7 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destina } return destinationsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5712,30 +6711,32 @@ 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; @@ -5747,21 +6748,24 @@ 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 @@ -5770,30 +6774,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 { @@ -5804,11 +6808,14 @@ public java.lang.String getName() { 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 @@ -5817,29 +6824,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 { @@ -5850,11 +6857,15 @@ public java.lang.String getDescription() { 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 @@ -5862,11 +6873,15 @@ 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 @@ -5874,11 +6889,14 @@ 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() { @@ -5888,11 +6906,15 @@ 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 @@ -5900,11 +6922,15 @@ 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 @@ -5912,11 +6938,14 @@ 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() { @@ -5924,24 +6953,23 @@ 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< - 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, - ""); + 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, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField 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_; } @@ -5950,6 +6978,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Set of label tags associated with the AuthorizationPolicy
    * resource.
@@ -5957,22 +6987,22 @@ public int getLabelsCount() {
    *
    * 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.
@@ -5981,11 +7011,12 @@ 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.
@@ -5994,16 +7025,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.
@@ -6012,12 +7043,11 @@ 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();
     }
@@ -6027,35 +7057,52 @@ public java.lang.String getLabelsOrThrow(
   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.
@@ -6064,13 +7111,18 @@ public java.lang.String getLabelsOrThrow(
    * 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.
@@ -6079,14 +7131,19 @@ public java.util.List
    *
-   * 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 
+  public java.util.List<
+          ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder>
       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.
@@ -6095,13 +7152,17 @@ public java.util.List
    *
-   * 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.
@@ -6110,13 +7171,17 @@ public int getRulesCount() {
    * 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.
@@ -6125,15 +7190,18 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getRule
    * 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; @@ -6145,8 +7213,7 @@ 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_); } @@ -6159,13 +7226,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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++) { @@ -6187,30 +7252,28 @@ 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; @@ -6220,32 +7283,27 @@ 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; } @@ -6285,96 +7343,104 @@ 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
@@ -6384,43 +7450,43 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -6428,17 +7494,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();
@@ -6471,13 +7537,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_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();
     }
 
@@ -6492,7 +7559,8 @@ 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_;
@@ -6526,38 +7594,39 @@ 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;
@@ -6565,7 +7634,9 @@ 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();
@@ -6580,8 +7651,7 @@ 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());
       }
@@ -6603,9 +7673,10 @@ 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_);
           }
@@ -6630,7 +7701,8 @@ 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) {
@@ -6639,23 +7711,26 @@ 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; @@ -6664,21 +7739,22 @@ 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 { @@ -6686,57 +7762,64 @@ 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]; + * * @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; @@ -6744,18 +7827,20 @@ public Builder setNameBytes( 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; @@ -6764,20 +7849,21 @@ 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 { @@ -6785,54 +7871,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * 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; @@ -6840,39 +7933,58 @@ public Builder setDescriptionBytes( 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) { @@ -6888,14 +8000,17 @@ 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(); @@ -6906,17 +8021,21 @@ public Builder setCreateTime( 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; } @@ -6928,11 +8047,15 @@ 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) { @@ -6946,48 +8069,64 @@ 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_; @@ -6995,39 +8134,58 @@ 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) { @@ -7043,14 +8201,17 @@ 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(); @@ -7061,17 +8222,21 @@ public Builder setUpdateTime( 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; } @@ -7083,11 +8248,15 @@ 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) { @@ -7101,69 +8270,84 @@ 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< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField 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(); @@ -7175,6 +8359,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Set of label tags associated with the AuthorizationPolicy
      * resource.
@@ -7182,22 +8368,22 @@ public int getLabelsCount() {
      *
      * 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.
@@ -7206,11 +8392,12 @@ 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.
@@ -7219,16 +8406,17 @@ 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.
@@ -7237,12 +8425,11 @@ 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();
       }
@@ -7250,11 +8437,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Set of label tags associated with the AuthorizationPolicy
      * resource.
@@ -7262,23 +8450,21 @@ public Builder clearLabels() {
      *
      * 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.
@@ -7286,19 +8472,20 @@ public Builder removeLabels(
      *
      * 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.
@@ -7306,106 +8493,141 @@ public Builder putLabels(
      *
      * 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(rules_); + rules_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule>(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.
@@ -7414,9 +8636,12 @@ private void ensureRulesIsMutable() {
      * 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 { @@ -7424,6 +8649,8 @@ public java.util.List * 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. @@ -7432,7 +8659,9 @@ public java.util.List * - * 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) { @@ -7442,6 +8671,8 @@ 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.
@@ -7450,7 +8681,9 @@ public int getRulesCount() {
      * 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) { @@ -7460,6 +8693,8 @@ 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.
@@ -7468,7 +8703,9 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule getRule
      * 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) { @@ -7485,6 +8722,8 @@ 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.
@@ -7493,10 +8732,13 @@ public Builder setRules(
      * 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()); @@ -7507,6 +8749,8 @@ 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.
@@ -7515,9 +8759,12 @@ public Builder setRules(
      * 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(); @@ -7531,6 +8778,8 @@ public Builder addRules(com.google.cloud.networksecurity.v1beta1.AuthorizationPo 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.
@@ -7539,7 +8788,9 @@ public Builder addRules(com.google.cloud.networksecurity.v1beta1.AuthorizationPo
      * 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) { @@ -7556,6 +8807,8 @@ 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.
@@ -7564,7 +8817,9 @@ public Builder addRules(
      * 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) { @@ -7578,6 +8833,8 @@ 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.
@@ -7586,10 +8843,13 @@ public Builder addRules(
      * 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()); @@ -7600,6 +8860,8 @@ 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.
@@ -7608,14 +8870,17 @@ public Builder addRules(
      * 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 values) { + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule> + 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); @@ -7623,6 +8888,8 @@ 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.
@@ -7631,7 +8898,9 @@ public Builder addAllRules(
      * 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) { @@ -7644,6 +8913,8 @@ 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.
@@ -7652,7 +8923,9 @@ public Builder clearRules() {
      * 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) { @@ -7665,6 +8938,8 @@ 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.
@@ -7673,13 +8948,17 @@ public Builder removeRules(int index) {
      * 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.
@@ -7688,16 +8967,21 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder
      * 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.
@@ -7706,10 +8990,13 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilde
      * 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 - getRulesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> + getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { @@ -7717,6 +9004,8 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilde } } /** + * + * *
      * 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.
@@ -7725,13 +9014,20 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilde
      * 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.
@@ -7740,14 +9036,21 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder
      * 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.
@@ -7756,29 +9059,34 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Builder
      * 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); } @@ -7788,12 +9096,13 @@ 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(); } @@ -7802,16 +9111,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; @@ -7826,6 +9135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy 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/AuthorizationPolicyName.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java index 496c8b7e..b4af2d77 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyOrBuilder.java @@ -1,109 +1,159 @@ +/* + * 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.
@@ -113,6 +163,8 @@ public interface AuthorizationPolicyOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. Set of label tags associated with the AuthorizationPolicy
    * resource.
@@ -120,15 +172,13 @@ public interface AuthorizationPolicyOrBuilder extends
    *
    * 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.
@@ -136,9 +186,10 @@ boolean containsLabels(
    *
    * 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.
@@ -148,11 +199,13 @@ boolean containsLabels(
    */
 
   /* 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.
@@ -160,32 +213,42 @@ java.lang.String getLabelsOrDefault(
    *
    * 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.
@@ -194,11 +257,14 @@ java.lang.String getLabelsOrThrow(
    * 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.
@@ -207,10 +273,14 @@ java.lang.String getLabelsOrThrow(
    * 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.
@@ -219,10 +289,14 @@ java.lang.String getLabelsOrThrow(
    * 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.
@@ -231,11 +305,16 @@ java.lang.String getLabelsOrThrow(
    * 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 + java.util.List< + ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleOrBuilder> 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.
@@ -244,7 +323,9 @@ java.lang.String getLabelsOrThrow(
    * 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/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 new file mode 100644 index 00000000..ac66c7a9 --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyProto.java @@ -0,0 +1,285 @@ +/* + * 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\"\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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java index 674a6c70..315be8ba 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProvider.java @@ -1,9 +1,26 @@ +/* + * 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.
@@ -11,30 +28,29 @@
  *
  * 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)
@@ -53,41 +69,52 @@ 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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            typeCase_ = 3;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,35 +122,40 @@ 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;
     }
@@ -139,31 +171,37 @@ 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 @@ -171,22 +209,27 @@ 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.
@@ -197,20 +240,25 @@ 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 @@ -218,40 +266,54 @@ 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; @@ -263,13 +325,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); } @@ -281,12 +343,14 @@ 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; @@ -296,22 +360,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: @@ -345,96 +409,104 @@ 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.
@@ -442,21 +514,23 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -464,16 +538,15 @@ 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();
@@ -483,13 +556,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_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();
     }
 
@@ -504,7 +578,8 @@ 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_;
@@ -528,38 +603,39 @@ 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;
@@ -567,19 +643,24 @@ 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();
@@ -600,7 +681,8 @@ 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) {
@@ -609,12 +691,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() {
@@ -624,16 +706,21 @@ 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 @@ -641,12 +728,15 @@ 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 @@ -664,6 +754,8 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint() { } } /** + * + * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -685,6 +777,8 @@ 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.
@@ -704,6 +798,8 @@ public Builder setGrpcEndpoint(
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -713,10 +809,14 @@ 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;
         }
@@ -732,6 +832,8 @@ 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.
@@ -756,6 +858,8 @@ public Builder clearGrpcEndpoint() {
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -767,6 +871,8 @@ 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.
@@ -775,7 +881,8 @@ 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 {
@@ -786,6 +893,8 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEnd
       }
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the cert and private key.
@@ -794,34 +903,48 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEnd
      * .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 @@ -829,39 +952,52 @@ 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(); @@ -875,16 +1011,21 @@ public Builder setCertificateProviderInstance(com.google.cloud.networksecurity.v 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(); @@ -895,20 +1036,30 @@ 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; } @@ -924,13 +1075,17 @@ public Builder mergeCertificateProviderInstance(com.google.cloud.networksecurity 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) { @@ -949,67 +1104,90 @@ 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); } @@ -1019,12 +1197,13 @@ 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(); } @@ -1033,16 +1212,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; @@ -1057,6 +1236,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.CertificateProvider 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/CertificateProviderInstance.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java index 1daa93d7..d455e8ab 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstance.java @@ -1,9 +1,26 @@ +/* + * 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
@@ -13,31 +30,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)
@@ -56,19 +73,20 @@ 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;
+              pluginInstance_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -76,29 +94,33 @@ 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
@@ -106,6 +128,7 @@ private CertificateProviderInstance(
    * 
* * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pluginInstance. */ @java.lang.Override @@ -114,14 +137,15 @@ 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
@@ -129,16 +153,15 @@ 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 { @@ -147,6 +170,7 @@ public java.lang.String getPluginInstance() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +182,7 @@ 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_); } @@ -183,15 +206,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; } @@ -211,96 +234,105 @@ 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
@@ -310,38 +342,40 @@ protected Builder newBuilderForType(
    *
    * 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();
@@ -351,14 +385,16 @@ 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
@@ -372,7 +408,8 @@ 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;
@@ -382,46 +419,51 @@ 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();
@@ -445,7 +487,9 @@ 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) {
@@ -457,6 +501,8 @@ 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
@@ -464,13 +510,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; @@ -479,6 +525,8 @@ 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
@@ -486,15 +534,14 @@ 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 { @@ -502,6 +549,8 @@ 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
@@ -509,20 +558,22 @@ public java.lang.String getPluginInstance() {
      * 
* * 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
@@ -530,15 +581,18 @@ public Builder setPluginInstance(
      * 
* * 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
@@ -546,23 +600,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); } @@ -572,30 +626,32 @@ 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; @@ -607,9 +663,8 @@ 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderInstanceOrBuilder.java index 58c25d2d..f419fa1e 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,13 +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/v1beta1/tls.proto package com.google.cloud.networksecurity.v1beta1; -public interface CertificateProviderInstanceOrBuilder extends +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
@@ -15,10 +33,13 @@ public interface CertificateProviderInstanceOrBuilder extends
    * 
* * 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
@@ -26,8 +47,8 @@ public interface CertificateProviderInstanceOrBuilder extends
    * 
* * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java index 0392f9af..54cfe493 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CertificateProviderOrBuilder.java @@ -1,33 +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/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.
@@ -38,37 +62,53 @@ public interface CertificateProviderOrBuilder extends
   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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java index 2ef44eb5..61e7d0ae 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicy.java @@ -1,9 +1,26 @@ +/* + * 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
@@ -12,15 +29,16 @@
  *
  * 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_ = "";
@@ -30,16 +48,15 @@ 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)
@@ -59,92 +76,109 @@ 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;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          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;
             }
-
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          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;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          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;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              sni_ = s;
+              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 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;
             }
-            clientCertificate_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.CertificateProvider.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(clientCertificate_);
-              clientCertificate_ = subBuilder.buildPartial();
+          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;
             }
-
-            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;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -152,8 +186,7 @@ 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_);
@@ -162,40 +195,45 @@ 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 @@ -204,30 +242,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 { @@ -238,11 +276,14 @@ public java.lang.String getName() { 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 @@ -251,29 +292,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 { @@ -284,11 +325,15 @@ public java.lang.String getDescription() { 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 @@ -296,11 +341,15 @@ 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 @@ -308,11 +357,14 @@ 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() { @@ -322,11 +374,15 @@ 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 @@ -334,11 +390,15 @@ 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 @@ -346,11 +406,14 @@ 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() { @@ -358,24 +421,23 @@ 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< - 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() { + 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() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -384,28 +446,30 @@ 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.
    * 
@@ -413,11 +477,12 @@ 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.
    * 
@@ -425,16 +490,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.
    * 
@@ -442,12 +507,11 @@ 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(); } @@ -457,12 +521,15 @@ public java.lang.String getLabelsOrThrow( 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 @@ -471,30 +538,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 { @@ -505,13 +572,18 @@ public java.lang.String getSni() { 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.
    * 
* - * .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 @@ -519,104 +591,138 @@ 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.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.
    * 
* - * .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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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; @@ -628,8 +734,7 @@ 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_); } @@ -642,12 +747,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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_); } @@ -673,33 +774,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__); + 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; @@ -709,38 +807,31 @@ 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; } @@ -784,96 +875,104 @@ 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
@@ -882,43 +981,43 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -926,17 +1025,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();
@@ -975,9 +1074,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
@@ -996,7 +1095,8 @@ 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_;
@@ -1035,38 +1135,39 @@ 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;
@@ -1074,7 +1175,8 @@ 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();
@@ -1089,8 +1191,7 @@ 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();
@@ -1116,9 +1217,10 @@ 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_);
           }
@@ -1143,7 +1245,8 @@ 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) {
@@ -1152,23 +1255,26 @@ 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; @@ -1177,21 +1283,22 @@ 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 { @@ -1199,57 +1306,64 @@ 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]; + * * @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; @@ -1257,18 +1371,20 @@ public Builder setNameBytes( 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; @@ -1277,20 +1393,21 @@ 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 { @@ -1298,54 +1415,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * 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; @@ -1353,39 +1477,58 @@ public Builder setDescriptionBytes( 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) { @@ -1401,14 +1544,17 @@ 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(); @@ -1419,17 +1565,21 @@ public Builder setCreateTime( 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; } @@ -1441,11 +1591,15 @@ 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) { @@ -1459,48 +1613,64 @@ 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_; @@ -1508,39 +1678,58 @@ 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) { @@ -1556,14 +1745,17 @@ 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(); @@ -1574,17 +1766,21 @@ public Builder setUpdateTime( 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; } @@ -1596,11 +1792,15 @@ 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) { @@ -1614,69 +1814,84 @@ 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< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField 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(); @@ -1688,28 +1903,30 @@ 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.
      * 
@@ -1717,11 +1934,12 @@ 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.
      * 
@@ -1729,16 +1947,17 @@ 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.
      * 
@@ -1746,12 +1965,11 @@ 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(); } @@ -1759,82 +1977,81 @@ public java.lang.String getLabelsOrThrow( } 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; @@ -1843,21 +2060,22 @@ 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 { @@ -1865,57 +2083,64 @@ 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]; + * * @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; @@ -1923,47 +2148,67 @@ public Builder setSniBytes( 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.
      * 
* - * .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.
      * 
* - * .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.
      * 
* - * .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(); @@ -1977,13 +2222,17 @@ public Builder setClientCertificate(com.google.cloud.networksecurity.v1beta1.Cer 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.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) { @@ -1997,19 +2246,27 @@ 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.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; } @@ -2021,13 +2278,17 @@ public Builder mergeClientCertificate(com.google.cloud.networksecurity.v1beta1.C 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.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) { @@ -2041,81 +2302,110 @@ 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.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.
      * 
* - * .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.
      * 
* - * .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.
      * 
* - * 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 { @@ -2123,13 +2413,17 @@ public java.util.List get } } /** + * + * *
      * 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) { @@ -2139,13 +2433,17 @@ 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.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) { @@ -2155,13 +2453,17 @@ 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.
      * 
* - * 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) { @@ -2178,13 +2480,17 @@ 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.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) { @@ -2198,15 +2504,20 @@ 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.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(); @@ -2220,13 +2531,17 @@ public Builder addServerValidationCa(com.google.cloud.networksecurity.v1beta1.Va 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.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) { @@ -2243,13 +2558,17 @@ 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.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) { @@ -2263,13 +2582,17 @@ 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.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) { @@ -2283,20 +2606,24 @@ 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.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); @@ -2304,13 +2631,17 @@ 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.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) { @@ -2323,13 +2654,17 @@ 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.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) { @@ -2342,45 +2677,58 @@ 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.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.
      * 
* - * 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.
      * 
* - * 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 { @@ -2388,51 +2736,71 @@ public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder getServerV } } /** + * + * *
      * 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.
      * 
* - * 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.
      * 
* - * 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(), @@ -2441,9 +2809,9 @@ public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder addServerVa } 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); } @@ -2453,12 +2821,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(); } @@ -2467,16 +2835,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; @@ -2491,6 +2859,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy 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/ClientTlsPolicyName.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java index 660e6832..0e06dc59 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyOrBuilder.java @@ -1,109 +1,159 @@ +/* + * 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.
    * 
@@ -112,30 +162,31 @@ public interface ClientTlsPolicyOrBuilder extends */ 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.
    * 
@@ -144,126 +195,165 @@ boolean containsLabels( */ /* 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.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.
    * 
* - * .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.
    * 
* - * .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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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/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 new file mode 100644 index 00000000..141a069d --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyProto.java @@ -0,0 +1,222 @@ +/* + * 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 * 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_ = ""; @@ -26,16 +45,15 @@ 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) @@ -54,38 +72,45 @@ private CreateAuthorizationPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - authorizationPolicyId_ = s; - break; - } - case 26: { - com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder subBuilder = null; - if (authorizationPolicy_ != null) { - subBuilder = authorizationPolicy_.toBuilder(); + parent_ = s; + break; } - authorizationPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authorizationPolicy_); - authorizationPolicy_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + authorizationPolicyId_ = s; + break; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +118,43 @@ 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 @@ -130,30 +163,32 @@ 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 { @@ -164,6 +199,8 @@ public java.lang.String getParent() { 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
@@ -172,6 +209,7 @@ public java.lang.String getParent() {
    * 
* * string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The authorizationPolicyId. */ @java.lang.Override @@ -180,14 +218,15 @@ 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
@@ -196,16 +235,15 @@ 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 { @@ -216,11 +254,16 @@ public java.lang.String getAuthorizationPolicyId() { 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 @@ -228,30 +271,43 @@ 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; @@ -263,8 +319,7 @@ 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,8 +345,7 @@ 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; @@ -301,21 +355,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.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; @@ -342,134 +395,146 @@ 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(); @@ -487,19 +552,22 @@ 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); } @@ -507,8 +575,10 @@ 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) { @@ -524,46 +594,52 @@ 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(); @@ -590,11 +666,14 @@ 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) { @@ -606,19 +685,23 @@ 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; @@ -627,21 +710,24 @@ 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 { @@ -649,57 +735,70 @@ 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) = { ... } + * + * * @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; @@ -707,6 +806,8 @@ public Builder setParentBytes( 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
@@ -715,13 +816,13 @@ public Builder setParentBytes(
      * 
* * 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; @@ -730,6 +831,8 @@ 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
@@ -738,15 +841,14 @@ 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 { @@ -754,6 +856,8 @@ 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
@@ -762,20 +866,22 @@ public java.lang.String getAuthorizationPolicyId() {
      * 
* * 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
@@ -784,15 +890,18 @@ public Builder setAuthorizationPolicyId(
      * 
* * 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
@@ -801,16 +910,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; @@ -818,41 +927,61 @@ public Builder setAuthorizationPolicyIdBytes( 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(); @@ -866,11 +995,15 @@ public Builder setAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.A 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) { @@ -884,17 +1017,25 @@ 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; } @@ -906,11 +1047,15 @@ public Builder mergeAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1 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) { @@ -924,55 +1069,73 @@ 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); } @@ -982,30 +1145,33 @@ 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; @@ -1017,9 +1183,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java index ee612707..b5bdc3ea 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateAuthorizationPolicyRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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
@@ -38,10 +65,13 @@ public interface CreateAuthorizationPolicyRequestOrBuilder extends
    * 
* * 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
@@ -50,35 +80,50 @@ public interface CreateAuthorizationPolicyRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java index 66225e43..4df049f8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -54,38 +71,44 @@ private CreateClientTlsPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clientTlsPolicyId_ = s; - break; - } - case 26: { - com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder subBuilder = null; - if (clientTlsPolicy_ != null) { - subBuilder = clientTlsPolicy_.toBuilder(); + parent_ = s; + break; } - clientTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientTlsPolicy_); - clientTlsPolicy_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + clientTlsPolicyId_ = s; + break; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +116,42 @@ 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 @@ -130,30 +160,32 @@ 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 { @@ -164,6 +196,8 @@ public java.lang.String getParent() { 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,
@@ -172,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clientTlsPolicyId. */ @java.lang.Override @@ -180,14 +215,15 @@ 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,
@@ -196,16 +232,15 @@ 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 { @@ -216,11 +251,16 @@ public java.lang.String getClientTlsPolicyId() { 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 @@ -228,30 +268,43 @@ 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; @@ -263,8 +316,7 @@ 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,8 +342,7 @@ 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; @@ -301,21 +352,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.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; @@ -342,134 +391,145 @@ 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(); @@ -487,14 +547,16 @@ 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 @@ -508,7 +570,8 @@ 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) { @@ -524,46 +587,51 @@ 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(); @@ -594,7 +662,9 @@ 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) { @@ -606,19 +676,23 @@ 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; @@ -627,21 +701,24 @@ 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 { @@ -649,57 +726,70 @@ 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) = { ... } + * + * * @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; @@ -707,6 +797,8 @@ public Builder setParentBytes( 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,
@@ -715,13 +807,13 @@ public Builder setParentBytes(
      * 
* * 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; @@ -730,6 +822,8 @@ 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,
@@ -738,15 +832,14 @@ 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 { @@ -754,6 +847,8 @@ 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,
@@ -762,20 +857,22 @@ public java.lang.String getClientTlsPolicyId() {
      * 
* * 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,
@@ -784,15 +881,18 @@ public Builder setClientTlsPolicyId(
      * 
* * 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,
@@ -801,16 +901,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; @@ -818,41 +918,61 @@ public Builder setClientTlsPolicyIdBytes( 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(); @@ -866,11 +986,15 @@ public Builder setClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.Clien 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) { @@ -884,17 +1008,24 @@ 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; } @@ -906,11 +1037,15 @@ public Builder mergeClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.Cli 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) { @@ -924,55 +1059,73 @@ 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); } @@ -982,30 +1135,32 @@ 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; @@ -1017,9 +1172,8 @@ 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequestOrBuilder.java index 3166c11a..1a24cfe5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateClientTlsPolicyRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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 CreateClientTlsPolicyRequestOrBuilder extends +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) = { ... } + * + * 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,
@@ -38,10 +65,13 @@ public interface CreateClientTlsPolicyRequestOrBuilder extends
    * 
* * 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,
@@ -50,35 +80,49 @@ public interface CreateClientTlsPolicyRequestOrBuilder extends
    * 
* * 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.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. */ boolean hasClientTlsPolicy(); /** + * + * *
    * 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. */ 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]; + * + * .google.cloud.networksecurity.v1beta1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java index 82ae0ffa..48bb547a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -54,38 +71,44 @@ private CreateServerTlsPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - serverTlsPolicyId_ = s; - break; - } - case 26: { - com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder subBuilder = null; - if (serverTlsPolicy_ != null) { - subBuilder = serverTlsPolicy_.toBuilder(); + parent_ = s; + break; } - serverTlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverTlsPolicy_); - serverTlsPolicy_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + serverTlsPolicyId_ = s; + break; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +116,42 @@ 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 @@ -130,30 +160,32 @@ 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 { @@ -164,6 +196,8 @@ public java.lang.String getParent() { 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,
@@ -172,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The serverTlsPolicyId. */ @java.lang.Override @@ -180,14 +215,15 @@ 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,
@@ -196,16 +232,15 @@ 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 { @@ -216,11 +251,16 @@ public java.lang.String getServerTlsPolicyId() { 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 @@ -228,30 +268,43 @@ 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; @@ -263,8 +316,7 @@ 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,8 +342,7 @@ 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; @@ -301,21 +352,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.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; @@ -342,134 +391,145 @@ 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(); @@ -487,14 +547,16 @@ 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 @@ -508,7 +570,8 @@ 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) { @@ -524,46 +587,51 @@ 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(); @@ -594,7 +662,9 @@ 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) { @@ -606,19 +676,23 @@ 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; @@ -627,21 +701,24 @@ 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 { @@ -649,57 +726,70 @@ 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) = { ... } + * + * * @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; @@ -707,6 +797,8 @@ public Builder setParentBytes( 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,
@@ -715,13 +807,13 @@ public Builder setParentBytes(
      * 
* * 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; @@ -730,6 +822,8 @@ 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,
@@ -738,15 +832,14 @@ 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 { @@ -754,6 +847,8 @@ 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,
@@ -762,20 +857,22 @@ public java.lang.String getServerTlsPolicyId() {
      * 
* * 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,
@@ -784,15 +881,18 @@ public Builder setServerTlsPolicyId(
      * 
* * 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,
@@ -801,16 +901,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; @@ -818,41 +918,61 @@ public Builder setServerTlsPolicyIdBytes( 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(); @@ -866,11 +986,15 @@ public Builder setServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.Serve 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) { @@ -884,17 +1008,24 @@ 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; } @@ -906,11 +1037,15 @@ public Builder mergeServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.Ser 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) { @@ -924,55 +1059,73 @@ 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); } @@ -982,30 +1135,32 @@ 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; @@ -1017,9 +1172,8 @@ 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/CreateServerTlsPolicyRequestOrBuilder.java index 7e8e02a6..fcb0feb7 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,35 +1,62 @@ +/* + * 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 +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) = { ... } + * + * 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,
@@ -38,10 +65,13 @@ public interface CreateServerTlsPolicyRequestOrBuilder extends
    * 
* * 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,
@@ -50,35 +80,49 @@ public interface CreateServerTlsPolicyRequestOrBuilder extends
    * 
* * 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.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. */ boolean hasServerTlsPolicy(); /** + * + * *
    * 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. */ 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]; + * + * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java index 33b441d4..38ef7e52 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequest.java @@ -1,40 +1,58 @@ +/* + * 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) @@ -53,19 +71,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,43 @@ 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/*`.
    * 
* - * 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 @@ -110,30 +137,32 @@ 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 { @@ -142,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +183,7 @@ 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_); } @@ -178,15 +207,16 @@ 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; } @@ -206,134 +236,146 @@ 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(); @@ -343,19 +385,22 @@ 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); } @@ -363,8 +408,10 @@ 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; @@ -374,46 +421,52 @@ 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(); @@ -433,11 +486,14 @@ 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) { @@ -449,19 +505,23 @@ 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; @@ -470,21 +530,24 @@ 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 { @@ -492,64 +555,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +635,33 @@ 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; @@ -594,9 +673,8 @@ 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/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 new file mode 100644 index 00000000..da42b96c --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteAuthorizationPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java index 1e9a3ae9..06d0bd06 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequest.java @@ -1,40 +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; /** + * + * *
  * 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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,134 +233,145 @@ 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(); @@ -343,14 +381,16 @@ 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 @@ -364,7 +404,8 @@ 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; @@ -374,46 +415,51 @@ 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(); @@ -437,7 +483,9 @@ 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) { @@ -449,19 +497,23 @@ 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; @@ -470,21 +522,24 @@ 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 { @@ -492,64 +547,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +627,32 @@ 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; @@ -594,9 +664,8 @@ 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/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 new file mode 100644 index 00000000..e1ebc93c --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java index ed4984e3..9b68843b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequest.java @@ -1,40 +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; /** + * + * *
  * 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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,134 +233,145 @@ 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(); @@ -343,14 +381,16 @@ 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 @@ -364,7 +404,8 @@ 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; @@ -374,46 +415,51 @@ 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(); @@ -437,7 +483,9 @@ 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) { @@ -449,19 +497,23 @@ 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; @@ -470,21 +522,24 @@ 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 { @@ -492,64 +547,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +627,32 @@ 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; @@ -594,9 +664,8 @@ 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/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 new file mode 100644 index 00000000..ca5aab59 --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DeleteServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java index 8cd33261..bd7eef6a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequest.java @@ -1,40 +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; /** + * + * *
  * 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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,134 +233,145 @@ 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(); @@ -343,19 +381,22 @@ 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); } @@ -364,7 +405,8 @@ 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; @@ -374,46 +416,51 @@ 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(); @@ -437,7 +484,9 @@ 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) { @@ -449,19 +498,23 @@ 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; @@ -470,21 +523,24 @@ 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 { @@ -492,64 +548,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +628,32 @@ 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; @@ -594,9 +665,8 @@ 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/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 new file mode 100644 index 00000000..b8f174d5 --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetAuthorizationPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java index aa316b29..72d31026 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequest.java @@ -1,40 +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; /** + * + * *
  * 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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,134 +233,145 @@ 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(); @@ -343,14 +381,16 @@ 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 @@ -364,7 +404,8 @@ 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; @@ -374,46 +415,51 @@ 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(); @@ -437,7 +483,9 @@ 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) { @@ -449,19 +497,23 @@ 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; @@ -470,21 +522,24 @@ 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 { @@ -492,64 +547,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +627,32 @@ 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; @@ -594,9 +664,8 @@ 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/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 new file mode 100644 index 00000000..03b2e397 --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetClientTlsPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java index bdb91b59..27a58a5c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequest.java @@ -1,40 +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; /** + * + * *
  * 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) @@ -53,19 +70,20 @@ 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ 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 @@ -110,30 +135,32 @@ 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ 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_); } @@ -178,15 +205,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; } @@ -206,134 +233,145 @@ 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(); @@ -343,14 +381,16 @@ 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 @@ -364,7 +404,8 @@ 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; @@ -374,46 +415,51 @@ 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(); @@ -437,7 +483,9 @@ 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) { @@ -449,19 +497,23 @@ 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; @@ -470,21 +522,24 @@ 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 { @@ -492,64 +547,77 @@ 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) = { ... } + * + * * @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); } @@ -559,30 +627,32 @@ 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; @@ -594,9 +664,8 @@ 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/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 new file mode 100644 index 00000000..51309572 --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GetServerTlsPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java index 8dea2ec3..dead5b04 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpoint.java @@ -1,40 +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/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) @@ -53,19 +70,20 @@ 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; + targetUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ 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:".
    * 
* * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetUri. */ @java.lang.Override @@ -110,30 +133,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 { @@ -142,6 +165,7 @@ public java.lang.String getTargetUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ 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_); } @@ -178,15 +201,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; } @@ -206,117 +229,127 @@ 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() @@ -324,16 +357,15 @@ 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(); @@ -343,9 +375,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 @@ -364,7 +396,8 @@ 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; @@ -374,38 +407,39 @@ 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; @@ -413,7 +447,8 @@ 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(); @@ -437,7 +472,8 @@ 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) { @@ -449,19 +485,21 @@ 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; @@ -470,21 +508,22 @@ 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 { @@ -492,64 +531,71 @@ 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]; + * * @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); } @@ -559,12 +605,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(); } @@ -573,16 +619,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; @@ -597,6 +643,4 @@ 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/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/GrpcEndpointOrBuilder.java index 17ccef4b..dad56dfa 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,31 +1,52 @@ +/* + * 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 +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(); + com.google.protobuf.ByteString getTargetUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java index 44fcf9a2..e4ab0da3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequest.java @@ -1,24 +1,43 @@ +/* + * 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_ = ""; @@ -26,16 +45,15 @@ 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) @@ -54,30 +72,32 @@ 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: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +105,44 @@ 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 @@ -123,31 +151,33 @@ 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 { @@ -158,11 +188,14 @@ public java.lang.String getParent() { 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 @@ -173,6 +206,8 @@ 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
@@ -181,6 +216,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -189,14 +225,15 @@ 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
@@ -205,16 +242,15 @@ 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 { @@ -223,6 +259,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +271,7 @@ 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_); } @@ -258,8 +294,7 @@ 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_); @@ -272,19 +307,18 @@ 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; } @@ -308,134 +342,146 @@ 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(); @@ -449,19 +495,22 @@ 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); } @@ -469,8 +518,10 @@ 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_; @@ -482,46 +533,52 @@ 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(); @@ -548,11 +605,14 @@ 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) { @@ -564,20 +624,24 @@ 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; @@ -586,22 +650,25 @@ 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 { @@ -609,72 +676,88 @@ 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) = { ... } + * + * * @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 @@ -682,30 +765,36 @@ 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; @@ -713,6 +802,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -721,13 +812,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; @@ -736,6 +827,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -744,15 +837,14 @@ 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 { @@ -760,6 +852,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last
      * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -768,20 +862,22 @@ public java.lang.String getPageToken() {
      * 
* * 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
@@ -790,15 +886,18 @@ public Builder setPageToken(
      * 
* * 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
@@ -807,23 +906,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); } @@ -833,30 +932,33 @@ 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; @@ -868,9 +970,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java index 12cf1208..a296b5f5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesRequestOrBuilder.java @@ -1,47 +1,77 @@ +/* + * 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
@@ -50,10 +80,13 @@ public interface ListAuthorizationPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last
    * `ListAuthorizationPoliciesResponse` Indicates that this is a
@@ -62,8 +95,8 @@ public interface ListAuthorizationPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java index acc0b1df..20a54be1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponse.java @@ -1,24 +1,43 @@ +/* + * 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_ = ""; @@ -26,16 +45,15 @@ 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) @@ -55,28 +73,34 @@ private ListAuthorizationPoliciesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - authorizationPolicies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - authorizationPolicies_.add( - input.readMessage(com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +108,7 @@ 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_); @@ -94,82 +117,112 @@ 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 + public java.util.List< + ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> 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
@@ -177,6 +230,7 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder get
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +239,15 @@ 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
@@ -200,16 +255,15 @@ 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 { @@ -218,6 +272,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +284,7 @@ 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)); } @@ -247,8 +301,9 @@ 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_); @@ -261,17 +316,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; } @@ -294,136 +349,154 @@ 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(); @@ -439,19 +512,22 @@ 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); } @@ -459,8 +535,10 @@ 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)) { @@ -480,46 +558,52 @@ 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()) { @@ -538,9 +622,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListAuthorizat 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_); } @@ -565,11 +650,14 @@ 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) { @@ -578,28 +666,40 @@ 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 { @@ -607,11 +707,15 @@ public java.util.List * 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) { @@ -621,13 +725,18 @@ 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 { @@ -635,11 +744,15 @@ 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) { @@ -656,14 +769,19 @@ 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()); @@ -674,13 +792,18 @@ 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(); @@ -694,11 +817,15 @@ public Builder addAuthorizationPolicies(com.google.cloud.networksecurity.v1beta1 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) { @@ -715,11 +842,15 @@ 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) { @@ -733,14 +864,19 @@ 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()); @@ -751,18 +887,22 @@ 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); @@ -770,11 +910,15 @@ 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) { @@ -787,11 +931,15 @@ 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) { @@ -804,39 +952,53 @@ 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 - getAuthorizationPoliciesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> + getAuthorizationPoliciesOrBuilderList() { if (authorizationPoliciesBuilder_ != null) { return authorizationPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -844,45 +1006,67 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder get } } /** + * + * *
      * 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(), @@ -894,6 +1078,8 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder addA 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
@@ -901,13 +1087,13 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Builder addA
      * 
* * 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; @@ -916,6 +1102,8 @@ 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
@@ -923,15 +1111,14 @@ 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 { @@ -939,6 +1126,8 @@ 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
@@ -946,20 +1135,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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
@@ -967,15 +1158,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1177,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); } @@ -1009,30 +1203,33 @@ 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; @@ -1044,9 +1241,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java index fb04a1bd..067d0a15 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListAuthorizationPoliciesResponseOrBuilder.java @@ -1,57 +1,95 @@ +/* + * 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
@@ -59,10 +97,13 @@ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthori
    * 
* * 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
@@ -70,8 +111,8 @@ com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder getAuthori
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java index ae64153c..5fd5dd66 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -54,30 +71,32 @@ private ListClientTlsPoliciesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ 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 @@ -122,30 +148,32 @@ 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 { @@ -156,11 +184,14 @@ public java.lang.String getParent() { 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 @@ -171,6 +202,8 @@ 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
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,15 @@ 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
@@ -203,16 +238,15 @@ 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 { @@ -221,6 +255,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ 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_); } @@ -256,8 +290,7 @@ 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_); @@ -270,19 +303,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.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; } @@ -306,134 +337,145 @@ 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(); @@ -447,14 +489,16 @@ 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 @@ -468,7 +512,8 @@ 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_; @@ -480,46 +525,51 @@ 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(); @@ -550,7 +600,9 @@ 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) { @@ -562,19 +614,23 @@ 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; @@ -583,21 +639,24 @@ 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 { @@ -605,69 +664,85 @@ 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) = { ... } + * + * * @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 @@ -675,30 +750,36 @@ 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; @@ -706,6 +787,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -714,13 +797,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; @@ -729,6 +812,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -737,15 +822,14 @@ 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 { @@ -753,6 +837,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListClientTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -761,20 +847,22 @@ public java.lang.String getPageToken() {
      * 
* * 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
@@ -783,15 +871,18 @@ public Builder setPageToken(
      * 
* * 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
@@ -800,23 +891,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); } @@ -826,30 +917,32 @@ 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; @@ -861,9 +954,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java index c4f7150c..3db91799 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesRequestOrBuilder.java @@ -1,45 +1,75 @@ +/* + * 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
@@ -48,10 +78,13 @@ public interface ListClientTlsPoliciesRequestOrBuilder extends
    * 
* * 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
@@ -60,8 +93,8 @@ public interface ListClientTlsPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java index b79c65ef..aafa4962 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponse.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -55,28 +72,34 @@ private ListClientTlsPoliciesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientTlsPolicies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - clientTlsPolicies_.add( - input.readMessage(com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ 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_); @@ -94,82 +116,104 @@ 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
@@ -177,6 +221,7 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClie
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +230,15 @@ 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
@@ -200,16 +246,15 @@ 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 { @@ -218,6 +263,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +275,7 @@ 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)); } @@ -247,8 +292,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_); @@ -261,17 +306,16 @@ 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; } @@ -295,135 +339,147 @@ 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(); @@ -439,19 +495,22 @@ 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); } @@ -460,7 +519,8 @@ 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)) { @@ -480,46 +540,51 @@ 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()) { @@ -538,9 +603,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListClientTlsP 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_); } @@ -569,7 +635,9 @@ 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) { @@ -578,28 +646,39 @@ 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 { @@ -607,11 +686,14 @@ public java.util.List } } /** + * + * *
      * 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) { @@ -621,13 +703,17 @@ 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 { @@ -635,11 +721,14 @@ 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) { @@ -656,14 +745,18 @@ 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()); @@ -674,13 +767,17 @@ 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(); @@ -694,11 +791,14 @@ public Builder addClientTlsPolicies(com.google.cloud.networksecurity.v1beta1.Cli 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) { @@ -715,11 +815,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( com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder builderForValue) { @@ -733,14 +836,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 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()); @@ -751,18 +858,21 @@ 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); @@ -770,11 +880,14 @@ 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) { @@ -787,11 +900,14 @@ 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) { @@ -804,39 +920,50 @@ 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 - getClientTlsPoliciesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder> + getClientTlsPoliciesOrBuilderList() { if (clientTlsPoliciesBuilder_ != null) { return clientTlsPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -844,45 +971,63 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicyOrBuilder getClie } } /** + * + * *
      * 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(), @@ -894,6 +1039,8 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder addClien 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
@@ -901,13 +1048,13 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.Builder addClien
      * 
* * 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; @@ -916,6 +1063,8 @@ 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
@@ -923,15 +1072,14 @@ 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 { @@ -939,6 +1087,8 @@ 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
@@ -946,20 +1096,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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
@@ -967,15 +1119,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1138,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); } @@ -1009,30 +1164,32 @@ 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; @@ -1044,9 +1201,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java index 3d9f1fd8..8403079d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListClientTlsPoliciesResponseOrBuilder.java @@ -1,57 +1,90 @@ +/* + * 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
@@ -59,10 +92,13 @@ 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
@@ -70,8 +106,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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java index 8a1373ef..8a5a67fa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -54,30 +71,32 @@ private ListServerTlsPoliciesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ 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 @@ -122,30 +148,32 @@ 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 { @@ -156,11 +184,14 @@ public java.lang.String getParent() { 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 @@ -171,6 +202,8 @@ 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
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,15 @@ 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
@@ -203,16 +238,15 @@ 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 { @@ -221,6 +255,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ 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_); } @@ -256,8 +290,7 @@ 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_); @@ -270,19 +303,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.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; } @@ -306,134 +337,145 @@ 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(); @@ -447,14 +489,16 @@ 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 @@ -468,7 +512,8 @@ 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_; @@ -480,46 +525,51 @@ 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(); @@ -550,7 +600,9 @@ 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) { @@ -562,19 +614,23 @@ 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; @@ -583,21 +639,24 @@ 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 { @@ -605,69 +664,85 @@ 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) = { ... } + * + * * @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 @@ -675,30 +750,36 @@ 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; @@ -706,6 +787,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -714,13 +797,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; @@ -729,6 +812,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -737,15 +822,14 @@ 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 { @@ -753,6 +837,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListServerTlsPoliciesResponse`
      * Indicates that this is a continuation of a prior
@@ -761,20 +847,22 @@ public java.lang.String getPageToken() {
      * 
* * 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
@@ -783,15 +871,18 @@ public Builder setPageToken(
      * 
* * 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
@@ -800,23 +891,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); } @@ -826,30 +917,32 @@ 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; @@ -861,9 +954,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java index 2a0fd3f6..2755e2f5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesRequestOrBuilder.java @@ -1,45 +1,75 @@ +/* + * 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
@@ -48,10 +78,13 @@ public interface ListServerTlsPoliciesRequestOrBuilder extends
    * 
* * 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
@@ -60,8 +93,8 @@ public interface ListServerTlsPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java index 3e773d3e..bb8a5f5f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponse.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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) @@ -55,28 +72,34 @@ private ListServerTlsPoliciesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serverTlsPolicies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - serverTlsPolicies_.add( - input.readMessage(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ 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_); @@ -94,82 +116,104 @@ 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
@@ -177,6 +221,7 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServ
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +230,15 @@ 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
@@ -200,16 +246,15 @@ 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 { @@ -218,6 +263,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +275,7 @@ 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)); } @@ -247,8 +292,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_); @@ -261,17 +306,16 @@ 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; } @@ -295,135 +339,147 @@ 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(); @@ -439,19 +495,22 @@ 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); } @@ -460,7 +519,8 @@ 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)) { @@ -480,46 +540,51 @@ 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()) { @@ -538,9 +603,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ListServerTlsP 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_); } @@ -569,7 +635,9 @@ 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) { @@ -578,28 +646,39 @@ 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 { @@ -607,11 +686,14 @@ public java.util.List } } /** + * + * *
      * 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) { @@ -621,13 +703,17 @@ 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 { @@ -635,11 +721,14 @@ 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) { @@ -656,14 +745,18 @@ 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()); @@ -674,13 +767,17 @@ 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(); @@ -694,11 +791,14 @@ public Builder addServerTlsPolicies(com.google.cloud.networksecurity.v1beta1.Ser 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) { @@ -715,11 +815,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( com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder builderForValue) { @@ -733,14 +836,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 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()); @@ -751,18 +858,21 @@ 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); @@ -770,11 +880,14 @@ 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) { @@ -787,11 +900,14 @@ 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) { @@ -804,39 +920,50 @@ 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 - getServerTlsPoliciesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder> + getServerTlsPoliciesOrBuilderList() { if (serverTlsPoliciesBuilder_ != null) { return serverTlsPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -844,45 +971,63 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicyOrBuilder getServ } } /** + * + * *
      * 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(), @@ -894,6 +1039,8 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder addServe 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
@@ -901,13 +1048,13 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.Builder addServe
      * 
* * 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; @@ -916,6 +1063,8 @@ 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
@@ -923,15 +1072,14 @@ 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 { @@ -939,6 +1087,8 @@ 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
@@ -946,20 +1096,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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
@@ -967,15 +1119,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1138,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); } @@ -1009,30 +1164,32 @@ 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; @@ -1044,9 +1201,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java index ba3647f0..4d19ceb9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ListServerTlsPoliciesResponseOrBuilder.java @@ -1,57 +1,90 @@ +/* + * 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
@@ -59,10 +92,13 @@ 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
@@ -70,8 +106,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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java 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 new file mode 100644 index 00000000..1f5a7b86 --- /dev/null +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityOuterClass.java @@ -0,0 +1,196 @@ +/* + * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java index 522a56ce..8e4c09be 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -28,16 +46,15 @@ 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) @@ -56,68 +73,76 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + 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; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + 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; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - 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; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,40 @@ 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 @@ -160,11 +191,15 @@ 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 @@ -172,11 +207,14 @@ 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() { @@ -186,11 +224,15 @@ 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 @@ -198,11 +240,15 @@ 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 @@ -210,11 +256,14 @@ 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() { @@ -224,11 +273,14 @@ 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 @@ -237,29 +289,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 { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { 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 @@ -283,29 +338,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 { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { 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 @@ -329,29 +387,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 { @@ -362,6 +420,8 @@ public java.lang.String getStatusMessage() { 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
@@ -371,6 +431,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -381,11 +442,14 @@ 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 @@ -394,29 +458,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 { @@ -425,6 +489,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -436,8 +501,7 @@ 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()); } @@ -469,12 +533,10 @@ 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_); @@ -486,8 +548,7 @@ 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_); @@ -500,33 +561,27 @@ 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; } @@ -553,8 +608,7 @@ 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(); @@ -563,117 +617,127 @@ 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() @@ -681,16 +745,15 @@ 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(); @@ -720,9 +783,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 @@ -741,7 +804,8 @@ 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 { @@ -765,38 +829,39 @@ 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; @@ -804,7 +869,8 @@ 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()); } @@ -849,7 +915,8 @@ 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) { @@ -861,39 +928,58 @@ 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) { @@ -909,14 +995,17 @@ 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(); @@ -927,17 +1016,21 @@ public Builder setCreateTime( 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; } @@ -949,11 +1042,15 @@ 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) { @@ -967,48 +1064,64 @@ 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_; @@ -1016,24 +1129,35 @@ 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() { @@ -1044,11 +1168,14 @@ 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) { @@ -1064,14 +1191,16 @@ 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(); @@ -1082,17 +1211,20 @@ public Builder setEndTime( 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; } @@ -1104,11 +1236,14 @@ 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) { @@ -1122,48 +1257,59 @@ 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_; @@ -1171,18 +1317,20 @@ 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; @@ -1191,20 +1339,21 @@ 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 { @@ -1212,54 +1361,61 @@ 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]; + * * @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; @@ -1267,18 +1423,20 @@ public Builder setTargetBytes( 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; @@ -1287,20 +1445,21 @@ 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 { @@ -1308,54 +1467,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * 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; @@ -1363,18 +1529,20 @@ public Builder setVerbBytes( 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; @@ -1383,20 +1551,21 @@ 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 { @@ -1404,61 +1573,70 @@ 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]; + * * @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
@@ -1468,6 +1646,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1475,6 +1654,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1484,16 +1665,19 @@ 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
@@ -1503,10 +1687,11 @@ 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; @@ -1514,18 +1699,20 @@ 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; @@ -1534,20 +1721,21 @@ 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 { @@ -1555,61 +1743,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * 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); } @@ -1619,12 +1814,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(); } @@ -1633,16 +1828,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; @@ -1657,6 +1852,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.OperationMetadata 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/OperationMetadataOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java index 4e15af81..9cba9e01 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * 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
@@ -131,27 +186,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java index e627d8ca..f181745d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicy.java @@ -1,9 +1,26 @@ +/* + * 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
@@ -12,15 +29,16 @@
  *
  * 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_ = "";
@@ -28,16 +46,15 @@ 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)
@@ -57,95 +74,111 @@ private ServerTlsPolicy(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          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();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          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();
+              description_ = s;
+              break;
             }
+          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;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 48: {
+          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();
+              }
 
-            allowOpen_ = input.readBool();
-            break;
-          }
-          case 58: {
-            com.google.cloud.networksecurity.v1beta1.CertificateProvider.Builder subBuilder = null;
-            if (serverCertificate_ != null) {
-              subBuilder = serverCertificate_.toBuilder();
+              break;
             }
-            serverCertificate_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.CertificateProvider.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(serverCertificate_);
-              serverCertificate_ = subBuilder.buildPartial();
+          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;
             }
-
-            break;
-          }
-          case 66: {
-            com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Builder subBuilder = null;
-            if (mtlsPolicy_ != null) {
-              subBuilder = mtlsPolicy_.toBuilder();
+          case 48:
+            {
+              allowOpen_ = input.readBool();
+              break;
             }
-            mtlsPolicy_ = input.readMessage(com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(mtlsPolicy_);
-              mtlsPolicy_ = subBuilder.buildPartial();
+          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();
+              }
+
+              break;
             }
+          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;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -153,123 +186,142 @@ 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) @@ -289,22 +341,27 @@ private MTLSPolicy( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientValidationCa_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - clientValidationCa_.add( - input.readMessage(com.google.cloud.networksecurity.v1beta1.ValidationCA.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -312,8 +369,7 @@ 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_); @@ -322,85 +378,106 @@ 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; @@ -412,8 +489,7 @@ 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)); } @@ -427,8 +503,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; @@ -438,15 +514,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; } @@ -468,87 +544,95 @@ 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 @@ -558,45 +642,51 @@ 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(); @@ -610,14 +700,16 @@ 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 @@ -631,7 +723,8 @@ 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)) { @@ -650,46 +743,53 @@ 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()) { @@ -708,9 +808,10 @@ public Builder mergeFrom(com.google.cloud.networksecurity.v1beta1.ServerTlsPolic 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_); } @@ -735,7 +836,9 @@ 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) { @@ -744,29 +847,40 @@ 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 { @@ -774,12 +888,15 @@ public java.util.List get } } /** + * + * *
        * 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) { @@ -789,14 +906,18 @@ 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 { @@ -804,12 +925,15 @@ 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) { @@ -826,15 +950,19 @@ 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()); @@ -845,14 +973,18 @@ 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(); @@ -866,12 +998,15 @@ public Builder addClientValidationCa(com.google.cloud.networksecurity.v1beta1.Va 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) { @@ -888,12 +1023,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( com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder builderForValue) { @@ -907,15 +1045,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 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()); @@ -926,19 +1068,22 @@ 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); @@ -946,12 +1091,15 @@ 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) { @@ -964,12 +1112,15 @@ 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) { @@ -982,42 +1133,53 @@ 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 - getClientValidationCaOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder> + getClientValidationCaOrBuilderList() { if (clientValidationCaBuilder_ != null) { return clientValidationCaBuilder_.getMessageOrBuilderList(); } else { @@ -1025,48 +1187,65 @@ public com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder getClientV } } /** + * + * *
        * 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(), @@ -1075,6 +1254,7 @@ public com.google.cloud.networksecurity.v1beta1.ValidationCA.Builder addClientVa } return clientValidationCaBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1087,30 +1267,32 @@ 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; @@ -1122,21 +1304,24 @@ 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 @@ -1145,30 +1330,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 { @@ -1179,11 +1364,14 @@ public java.lang.String getName() { 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 @@ -1192,29 +1380,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 { @@ -1225,11 +1413,15 @@ public java.lang.String getDescription() { 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 @@ -1237,11 +1429,15 @@ 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 @@ -1249,11 +1445,14 @@ 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() { @@ -1263,11 +1462,15 @@ 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 @@ -1275,11 +1478,15 @@ 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 @@ -1287,11 +1494,14 @@ 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() { @@ -1299,24 +1509,23 @@ 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< - 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, - ""); + 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, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField 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_; } @@ -1325,28 +1534,30 @@ 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.
    * 
@@ -1354,11 +1565,12 @@ 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.
    * 
@@ -1366,16 +1578,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.
    * 
@@ -1383,12 +1595,11 @@ 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(); } @@ -1398,6 +1609,8 @@ public java.lang.String getLabelsOrThrow( 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
@@ -1410,6 +1623,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * bool allow_open = 6; + * * @return The allowOpen. */ @java.lang.Override @@ -1420,6 +1634,8 @@ 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
@@ -1427,6 +1643,7 @@ public boolean getAllowOpen() {
    * 
* * .google.cloud.networksecurity.v1beta1.CertificateProvider server_certificate = 7; + * * @return Whether the serverCertificate field is set. */ @java.lang.Override @@ -1434,6 +1651,8 @@ 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
@@ -1441,13 +1660,18 @@ 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
@@ -1457,13 +1681,16 @@ 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
@@ -1473,6 +1700,7 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder get
    * 
* * .google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8; + * * @return Whether the mtlsPolicy field is set. */ @java.lang.Override @@ -1480,6 +1708,8 @@ 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
@@ -1489,13 +1719,18 @@ 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
@@ -1507,11 +1742,13 @@ 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;
@@ -1523,8 +1760,7 @@ 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_);
     }
@@ -1537,12 +1773,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     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_);
     }
@@ -1568,34 +1800,29 @@ 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;
@@ -1605,40 +1832,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.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;
@@ -1668,8 +1888,7 @@ 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();
@@ -1684,96 +1903,104 @@ 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
@@ -1782,43 +2009,43 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -1826,16 +2053,15 @@ 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();
@@ -1874,9 +2100,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
@@ -1895,7 +2121,8 @@ 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_;
@@ -1930,38 +2157,39 @@ 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;
@@ -1969,7 +2197,8 @@ 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();
@@ -1984,8 +2213,7 @@ 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());
       }
@@ -2014,7 +2242,8 @@ 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) {
@@ -2023,23 +2252,26 @@ 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; @@ -2048,21 +2280,22 @@ 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 { @@ -2070,57 +2303,64 @@ 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]; + * * @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; @@ -2128,18 +2368,20 @@ public Builder setNameBytes( 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; @@ -2148,20 +2390,21 @@ 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 { @@ -2169,54 +2412,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * 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; @@ -2224,39 +2474,58 @@ public Builder setDescriptionBytes( 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) { @@ -2272,14 +2541,17 @@ 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(); @@ -2290,17 +2562,21 @@ public Builder setCreateTime( 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; } @@ -2312,11 +2588,15 @@ 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) { @@ -2330,48 +2610,64 @@ 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_; @@ -2379,39 +2675,58 @@ 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) { @@ -2427,14 +2742,17 @@ 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(); @@ -2445,17 +2763,21 @@ public Builder setUpdateTime( 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; } @@ -2467,11 +2789,15 @@ 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) { @@ -2485,69 +2811,84 @@ 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< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField 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(); @@ -2559,28 +2900,30 @@ 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.
      * 
@@ -2588,11 +2931,12 @@ 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.
      * 
@@ -2600,16 +2944,17 @@ 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.
      * 
@@ -2617,12 +2962,11 @@ 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(); } @@ -2630,69 +2974,68 @@ public java.lang.String getLabelsOrThrow( } 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
@@ -2705,6 +3048,7 @@ public Builder putAllLabels(
      * 
* * bool allow_open = 6; + * * @return The allowOpen. */ @java.lang.Override @@ -2712,6 +3056,8 @@ 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
@@ -2724,16 +3070,19 @@ 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
@@ -2746,10 +3095,11 @@ public Builder setAllowOpen(boolean value) {
      * 
* * bool allow_open = 6; + * * @return This builder for chaining. */ public Builder clearAllowOpen() { - + allowOpen_ = false; onChanged(); return this; @@ -2757,47 +3107,64 @@ 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(); @@ -2811,13 +3178,16 @@ public Builder setServerCertificate(com.google.cloud.networksecurity.v1beta1.Cer 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) { @@ -2831,19 +3201,26 @@ 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; } @@ -2855,13 +3232,16 @@ public Builder mergeServerCertificate(com.google.cloud.networksecurity.v1beta1.C 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) { @@ -2875,54 +3255,69 @@ 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_; @@ -2930,8 +3325,13 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder get 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
@@ -2940,13 +3340,17 @@ public com.google.cloud.networksecurity.v1beta1.CertificateProviderOrBuilder get
      * 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
@@ -2955,17 +3359,24 @@ 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
@@ -2974,9 +3385,11 @@ 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(); @@ -2990,6 +3403,8 @@ public Builder setMtlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTlsP return this; } /** + * + * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -2998,10 +3413,12 @@ public Builder setMtlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTlsP
      * 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(); @@ -3012,6 +3429,8 @@ 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
@@ -3020,13 +3439,18 @@ 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; } @@ -3038,6 +3462,8 @@ public Builder mergeMtlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTl return this; } /** + * + * *
      * Defines a mechanism to provision peer validation certificates for peer to
      * peer authentication (Mutual TLS - mTLS). If not specified, client
@@ -3046,7 +3472,8 @@ public Builder mergeMtlsPolicy(com.google.cloud.networksecurity.v1beta1.ServerTl
      * 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) { @@ -3060,6 +3487,8 @@ 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
@@ -3068,14 +3497,18 @@ 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
@@ -3084,17 +3517,23 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy.Build
      * 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
@@ -3103,24 +3542,28 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicyOrBuil
      * 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); } @@ -3130,12 +3573,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(); } @@ -3144,16 +3587,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; @@ -3168,6 +3611,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy 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/ServerTlsPolicyName.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java index 255d9441..67eb3c43 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyOrBuilder.java @@ -1,109 +1,159 @@ +/* + * 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.
    * 
@@ -112,30 +162,31 @@ public interface ServerTlsPolicyOrBuilder extends */ 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.
    * 
@@ -144,22 +195,24 @@ boolean containsLabels( */ /* 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
@@ -172,11 +225,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * 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
@@ -184,10 +240,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -195,10 +254,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -207,9 +269,12 @@ java.lang.String getLabelsOrThrow(
    *
    * .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
@@ -219,10 +284,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -232,10 +300,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -246,5 +317,6 @@ java.lang.String getLabelsOrThrow(
    *
    * .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/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
new file mode 100644
index 00000000..6f2b7d33
--- /dev/null
+++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyProto.java
@@ -0,0 +1,238 @@
+/*
+ * 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
  * 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) @@ -52,39 +69,46 @@ 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(); - } + 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 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; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +116,34 @@ 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.
@@ -123,7 +152,9 @@ private UpdateAuthorizationPolicyRequest(
    * 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 @@ -131,6 +162,8 @@ 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.
@@ -139,7 +172,9 @@ 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 @@ -147,6 +182,8 @@ 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.
@@ -155,7 +192,8 @@ 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() { @@ -165,11 +203,16 @@ 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 @@ -177,30 +220,43 @@ 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; @@ -212,8 +268,7 @@ 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()); } @@ -230,12 +285,10 @@ 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; @@ -245,22 +298,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; @@ -287,134 +340,146 @@ 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(); @@ -434,19 +499,22 @@ 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); } @@ -454,8 +522,10 @@ 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 { @@ -474,46 +544,52 @@ 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()); } @@ -535,11 +611,14 @@ 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) { @@ -551,8 +630,13 @@ 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.
@@ -561,13 +645,17 @@ 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.
@@ -576,17 +664,23 @@ 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.
@@ -595,7 +689,8 @@ 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) { @@ -611,6 +706,8 @@ 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.
@@ -619,10 +716,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(); @@ -633,6 +730,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -641,13 +740,14 @@ public Builder setUpdateMask(
      * 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; } @@ -659,6 +759,8 @@ 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.
@@ -667,7 +769,8 @@ 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) { @@ -681,6 +784,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * AuthorizationPolicy resource by the update.
@@ -689,14 +794,17 @@ 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.
@@ -705,17 +813,21 @@ 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.
@@ -724,17 +836,21 @@ 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_; @@ -742,41 +858,61 @@ 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(); @@ -790,11 +926,15 @@ public Builder setAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1.A 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) { @@ -808,17 +948,25 @@ 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; } @@ -830,11 +978,15 @@ public Builder mergeAuthorizationPolicy(com.google.cloud.networksecurity.v1beta1 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) { @@ -848,55 +1000,73 @@ 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); } @@ -906,30 +1076,33 @@ 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; @@ -941,9 +1114,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java index 2e25df6b..0c27974e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateAuthorizationPolicyRequestOrBuilder.java @@ -1,13 +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/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.
@@ -16,11 +34,15 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder extends
    * 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.
@@ -29,11 +51,15 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder extends
    * 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.
@@ -42,34 +68,50 @@ public interface UpdateAuthorizationPolicyRequestOrBuilder extends
    * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java index c65e84c7..6f029f3f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequest.java @@ -1,39 +1,55 @@ +/* + * 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) @@ -52,39 +68,45 @@ 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(); - } + 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 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; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +114,33 @@ 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
@@ -124,7 +150,9 @@ private UpdateClientTlsPolicyRequest(
    * 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 @@ -132,6 +160,8 @@ 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
@@ -141,7 +171,9 @@ 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 @@ -149,6 +181,8 @@ 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
@@ -158,7 +192,8 @@ 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() { @@ -168,11 +203,16 @@ 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 @@ -180,30 +220,43 @@ 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; @@ -215,8 +268,7 @@ 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()); } @@ -233,12 +285,10 @@ 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; @@ -248,22 +298,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.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; @@ -290,134 +339,145 @@ 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(); @@ -437,14 +497,16 @@ 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 @@ -458,7 +520,8 @@ 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 { @@ -477,46 +540,51 @@ 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()); } @@ -542,7 +610,9 @@ 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) { @@ -554,8 +624,13 @@ 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
@@ -565,13 +640,17 @@ 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
@@ -581,17 +660,23 @@ 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
@@ -601,7 +686,8 @@ 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) { @@ -617,6 +703,8 @@ 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
@@ -626,10 +714,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(); @@ -640,6 +728,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ClientTlsPolicy resource by the update.  The fields
@@ -649,13 +739,14 @@ public Builder setUpdateMask(
      * 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; } @@ -667,6 +758,8 @@ 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
@@ -676,7 +769,8 @@ 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) { @@ -690,6 +784,8 @@ 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
@@ -699,14 +795,17 @@ 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
@@ -716,17 +815,21 @@ 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
@@ -736,17 +839,21 @@ 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_; @@ -754,41 +861,61 @@ 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(); @@ -802,11 +929,15 @@ public Builder setClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.Clien 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) { @@ -820,17 +951,24 @@ 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; } @@ -842,11 +980,15 @@ public Builder mergeClientTlsPolicy(com.google.cloud.networksecurity.v1beta1.Cli 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) { @@ -860,55 +1002,73 @@ 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); } @@ -918,30 +1078,32 @@ 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; @@ -953,9 +1115,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java index f8d176dd..e823e478 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateClientTlsPolicyRequestOrBuilder.java @@ -1,13 +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/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
@@ -17,11 +35,15 @@ public interface UpdateClientTlsPolicyRequestOrBuilder extends
    * 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
@@ -31,11 +53,15 @@ public interface UpdateClientTlsPolicyRequestOrBuilder extends
    * 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
@@ -45,34 +71,49 @@ public interface UpdateClientTlsPolicyRequestOrBuilder extends
    * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java index ee814d1a..9decce52 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequest.java @@ -1,39 +1,55 @@ +/* + * 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) @@ -52,39 +68,45 @@ 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(); - } + 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 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; } + 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +114,33 @@ 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
@@ -124,7 +150,9 @@ private UpdateServerTlsPolicyRequest(
    * 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 @@ -132,6 +160,8 @@ 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
@@ -141,7 +171,9 @@ 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 @@ -149,6 +181,8 @@ 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
@@ -158,7 +192,8 @@ 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() { @@ -168,11 +203,16 @@ 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 @@ -180,30 +220,43 @@ 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; @@ -215,8 +268,7 @@ 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()); } @@ -233,12 +285,10 @@ 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; @@ -248,22 +298,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.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; @@ -290,134 +339,145 @@ 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(); @@ -437,14 +497,16 @@ 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 @@ -458,7 +520,8 @@ 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 { @@ -477,46 +540,51 @@ 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()); } @@ -542,7 +610,9 @@ 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) { @@ -554,8 +624,13 @@ 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
@@ -565,13 +640,17 @@ 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
@@ -581,17 +660,23 @@ 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
@@ -601,7 +686,8 @@ 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) { @@ -617,6 +703,8 @@ 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
@@ -626,10 +714,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(); @@ -640,6 +728,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ServerTlsPolicy resource by the update.  The fields
@@ -649,13 +739,14 @@ public Builder setUpdateMask(
      * 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; } @@ -667,6 +758,8 @@ 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
@@ -676,7 +769,8 @@ 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) { @@ -690,6 +784,8 @@ 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
@@ -699,14 +795,17 @@ 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
@@ -716,17 +815,21 @@ 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
@@ -736,17 +839,21 @@ 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_; @@ -754,41 +861,61 @@ 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(); @@ -802,11 +929,15 @@ public Builder setServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.Serve 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) { @@ -820,17 +951,24 @@ 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; } @@ -842,11 +980,15 @@ public Builder mergeServerTlsPolicy(com.google.cloud.networksecurity.v1beta1.Ser 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) { @@ -860,55 +1002,73 @@ 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); } @@ -918,30 +1078,32 @@ 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; @@ -953,9 +1115,8 @@ 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java index 2c4702cf..3c39b0ab 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/UpdateServerTlsPolicyRequestOrBuilder.java @@ -1,13 +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/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
@@ -17,11 +35,15 @@ public interface UpdateServerTlsPolicyRequestOrBuilder extends
    * 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
@@ -31,11 +53,15 @@ public interface UpdateServerTlsPolicyRequestOrBuilder extends
    * 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
@@ -45,34 +71,49 @@ public interface UpdateServerTlsPolicyRequestOrBuilder extends
    * 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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java index a70a35df..fe4f04c8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCA.java @@ -1,9 +1,26 @@ +/* + * 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.
@@ -11,30 +28,29 @@
  *
  * 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)
@@ -53,41 +69,52 @@ 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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            typeCase_ = 3;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,35 +122,40 @@ 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;
     }
@@ -139,31 +171,37 @@ 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 @@ -171,22 +209,27 @@ 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.
@@ -197,20 +240,25 @@ 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 @@ -218,40 +266,54 @@ 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; @@ -263,13 +325,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); } @@ -281,12 +343,14 @@ 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; @@ -296,22 +360,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: @@ -345,96 +409,104 @@ 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.
@@ -442,21 +514,23 @@ protected Builder newBuilderForType(
    *
    * 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()
@@ -464,16 +538,15 @@ 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();
@@ -483,9 +556,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
@@ -504,7 +577,8 @@ 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_;
@@ -528,38 +602,39 @@ 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;
@@ -567,19 +642,23 @@ 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();
@@ -600,7 +679,8 @@ 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) {
@@ -609,12 +689,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() {
@@ -624,16 +704,21 @@ 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 @@ -641,12 +726,15 @@ 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 @@ -664,6 +752,8 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpoint getGrpcEndpoint() { } } /** + * + * *
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -685,6 +775,8 @@ public Builder setGrpcEndpoint(com.google.cloud.networksecurity.v1beta1.GrpcEndp
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -704,6 +796,8 @@ public Builder setGrpcEndpoint(
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -713,10 +807,14 @@ 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;
         }
@@ -732,6 +830,8 @@ public Builder mergeGrpcEndpoint(com.google.cloud.networksecurity.v1beta1.GrpcEn
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -756,6 +856,8 @@ public Builder clearGrpcEndpoint() {
       return this;
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -767,6 +869,8 @@ 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.
@@ -775,7 +879,8 @@ 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 {
@@ -786,6 +891,8 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEnd
       }
     }
     /**
+     *
+     *
      * 
      * gRPC specific configuration to access the gRPC server to
      * obtain the CA certificate.
@@ -794,34 +901,48 @@ public com.google.cloud.networksecurity.v1beta1.GrpcEndpointOrBuilder getGrpcEnd
      * .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 @@ -829,39 +950,52 @@ 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(); @@ -875,16 +1009,21 @@ public Builder setCertificateProviderInstance(com.google.cloud.networksecurity.v 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(); @@ -895,20 +1034,30 @@ 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; } @@ -924,13 +1073,17 @@ public Builder mergeCertificateProviderInstance(com.google.cloud.networksecurity 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) { @@ -949,67 +1102,90 @@ 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); } @@ -1019,12 +1195,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(); } @@ -1033,16 +1209,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; @@ -1057,6 +1233,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networksecurity.v1beta1.ValidationCA 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/ValidationCAOrBuilder.java b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java rename to proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java index bf5f9701..5c2a6223 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java +++ b/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ValidationCAOrBuilder.java @@ -1,33 +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/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.
@@ -38,37 +62,53 @@ public interface ValidationCAOrBuilder extends
   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/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto b/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto rename to proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/authorization_policy.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto b/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto rename to proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/client_tls_policy.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto b/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto rename to proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/common.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/network_security.proto b/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/network_security.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/network_security.proto rename to proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/network_security.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto b/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto rename to proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/server_tls_policy.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto b/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto rename to proto-google-cloud-network-security-v1beta1/src/main/proto/google/cloud/networksecurity/v1beta1/tls.proto diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java rename to 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/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java rename to 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/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java rename to 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/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java rename to 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/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java rename to samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java