pages, int collectionSize) {
super(pages, collectionSize);
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java
similarity index 96%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java
index df1d5329..e7a23f93 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java
@@ -27,7 +27,6 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
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.protobuf.Empty;
@@ -43,10 +42,10 @@
* The default instance has everything set to sensible defaults:
*
*
- * - The default service address (binaryauthorization.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.
+ *
- The default service address (binaryauthorization.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.
*
*
* The builder of this class is recursive, so contained classes are themselves builders. When
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java
similarity index 96%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java
index 88a1bb5e..a4fe0c1f 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java
@@ -46,13 +46,13 @@
* methods:
*
*
- * - A "flattened" method. With this type of method, the fields of the request type have been
+ *
- 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.
- *
- A "request object" method. This type of method only takes one parameter, a request object,
+ *
- 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.
- *
- A "callable" method. This type of method takes no parameters and returns an immutable API
+ *
- 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.
*
*
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java
similarity index 95%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java
index 534e3154..1cfd8c98 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java
@@ -24,7 +24,6 @@
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
-import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.protos.google.cloud.binaryauthorization.v1.stub.SystemPolicyV1StubSettings;
@@ -39,10 +38,10 @@
* The default instance has everything set to sensible defaults:
*
*
- * - The default service address (binaryauthorization.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.
+ *
- The default service address (binaryauthorization.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.
*
*
* The builder of this class is recursive, so contained classes are themselves builders. When
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java
similarity index 96%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java
index 785cf10c..af4f0634 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java
@@ -54,13 +54,13 @@
* methods:
*
*
- * - A "flattened" method. With this type of method, the fields of the request type have been
+ *
- 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.
- *
- A "request object" method. This type of method only takes one parameter, a request object,
+ *
- 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.
- *
- A "callable" method. This type of method takes no parameters and returns an immutable API
+ *
- 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.
*
*
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java
similarity index 95%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java
index 5f6c6746..b3adada0 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java
@@ -24,7 +24,6 @@
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
-import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.protos.google.cloud.binaryauthorization.v1.stub.ValidationHelperV1StubSettings;
@@ -39,10 +38,10 @@
* The default instance has everything set to sensible defaults:
*
*
- * - The default service address (binaryauthorization.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.
+ *
- The default service address (binaryauthorization.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.
*
*
* The builder of this class is recursive, so contained classes are themselves builders. When
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java
similarity index 95%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java
index 414f54b6..3c020298 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java
@@ -27,8 +27,8 @@
*
This API implements a REST model with the following objects:
*
*
- * - [Policy][google.cloud.binaryauthorization.v1.Policy]
- *
- [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+ *
- [Policy][google.cloud.binaryauthorization.v1.Policy]
+ *
- [Attestor][google.cloud.binaryauthorization.v1.Attestor]
*
*
* Sample for BinauthzManagementServiceV1Client:
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java
similarity index 97%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java
index 3f3cdd44..e939c961 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java
@@ -59,10 +59,10 @@
*
The default instance has everything set to sensible defaults:
*
*
- * - The default service address (binaryauthorization.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.
+ *
- The default service address (binaryauthorization.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.
*
*
* The builder of this class is recursive, so contained classes are themselves builders. When
@@ -152,7 +152,8 @@ public Iterable extractResources(
Service.ListAttestorsRequest, Service.ListAttestorsResponse, ListAttestorsPagedResponse>
LIST_ATTESTORS_PAGE_STR_FACT =
new PagedListResponseFactory<
- Service.ListAttestorsRequest, Service.ListAttestorsResponse,
+ Service.ListAttestorsRequest,
+ Service.ListAttestorsResponse,
ListAttestorsPagedResponse>() {
@Override
public ApiFuture getFuturePagedResponse(
@@ -161,7 +162,8 @@ public ApiFuture getFuturePagedResponse(
ApiCallContext context,
ApiFuture futureResponse) {
PageContext<
- Service.ListAttestorsRequest, Service.ListAttestorsResponse,
+ Service.ListAttestorsRequest,
+ Service.ListAttestorsResponse,
Resources.Attestor>
pageContext =
PageContext.create(callable, LIST_ATTESTORS_PAGE_STR_DESC, request, context);
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java
similarity index 99%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java
index 2533ae05..87b697b2 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java
@@ -32,7 +32,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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java
similarity index 99%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java
index e611b8b9..d804a683 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java
@@ -29,7 +29,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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java
similarity index 99%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java
index 3e6030bf..c990a23b 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java
@@ -28,7 +28,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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java
similarity index 97%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java
index e5f13393..81a0de06 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java
@@ -48,10 +48,10 @@
* The default instance has everything set to sensible defaults:
*
*
- * - The default service address (binaryauthorization.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.
+ *
- The default service address (binaryauthorization.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.
*
*
* The builder of this class is recursive, so contained classes are themselves builders. When
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java
similarity index 97%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java
rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java
index 12be4745..1e45f510 100644
--- a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java
@@ -47,10 +47,10 @@
*
The default instance has everything set to sensible defaults:
*
*
- * - The default service address (binaryauthorization.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.
+ *
- The default service address (binaryauthorization.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.
*
*
* The builder of this class is recursive, so contained classes are themselves builders. When
diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java
similarity index 100%
rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java
rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java
diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java
similarity index 100%
rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java
rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java
diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java
similarity index 100%
rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java
rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java
diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java
similarity index 100%
rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java
rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java
diff --git a/grpc-google-cloud-binary-authorization-v1/pom.xml b/grpc-google-cloud-binary-authorization-v1/pom.xml
new file mode 100644
index 00000000..fd1319d2
--- /dev/null
+++ b/grpc-google-cloud-binary-authorization-v1/pom.xml
@@ -0,0 +1,69 @@
+
+ 4.0.0
+ com.google.api.grpc
+ grpc-google-cloud-binary-authorization-v1
+ 0.3.4-SNAPSHOT
+ grpc-google-cloud-binary-authorization-v1
+ GRPC library for google-cloud-binary-authorization
+
+ com.google.cloud
+ google-cloud-binary-authorization-parent
+ 0.3.4-SNAPSHOT
+
+
+
+ io.grpc
+ grpc-api
+
+
+ io.grpc
+ grpc-stub
+
+
+ io.grpc
+ grpc-protobuf
+
+
+ com.google.protobuf
+ protobuf-java
+
+
+ com.google.api.grpc
+ proto-google-common-protos
+
+
+ com.google.api.grpc
+ proto-google-cloud-binary-authorization-v1
+
+
+ com.google.guava
+ guava
+
+
+
+
+
+ java9
+
+ [9,)
+
+
+
+ javax.annotation
+ javax.annotation-api
+
+
+
+
+
+
+
+
+ org.codehaus.mojo
+ flatten-maven-plugin
+
+
+
+
\ No newline at end of file
diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java
new file mode 100644
index 00000000..fc8523b2
--- /dev/null
+++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java
@@ -0,0 +1,1245 @@
+/*
+ * 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.protos.google.cloud.binaryauthorization.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ *
+ * Google Cloud Management Service for Binary Authorization admission policies
+ * and attestation authorities.
+ * This API implements a REST model with the following objects:
+ * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+ * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/cloud/binaryauthorization/v1/service.proto")
+public final class BinauthzManagementServiceV1Grpc {
+
+ private BinauthzManagementServiceV1Grpc() {}
+
+ public static final String SERVICE_NAME =
+ "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getGetPolicyMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetPolicy",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class,
+ responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getGetPolicyMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getGetPolicyMethod;
+ if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) {
+ synchronized (BinauthzManagementServiceV1Grpc.class) {
+ if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) {
+ BinauthzManagementServiceV1Grpc.getGetPolicyMethod =
+ getGetPolicyMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .GetPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1MethodDescriptorSupplier("GetPolicy"))
+ .build();
+ }
+ }
+ }
+ return getGetPolicyMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getUpdatePolicyMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class,
+ responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getUpdatePolicyMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getUpdatePolicyMethod;
+ if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) {
+ synchronized (BinauthzManagementServiceV1Grpc.class) {
+ if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod)
+ == null) {
+ BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod =
+ getUpdatePolicyMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .UpdatePolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdatePolicy"))
+ .build();
+ }
+ }
+ }
+ return getUpdatePolicyMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getCreateAttestorMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateAttestor",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class,
+ responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getCreateAttestorMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getCreateAttestorMethod;
+ if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod)
+ == null) {
+ synchronized (BinauthzManagementServiceV1Grpc.class) {
+ if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod)
+ == null) {
+ BinauthzManagementServiceV1Grpc.getCreateAttestorMethod =
+ getCreateAttestorMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .CreateAttestorRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources
+ .Attestor.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1MethodDescriptorSupplier("CreateAttestor"))
+ .build();
+ }
+ }
+ }
+ return getCreateAttestorMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getGetAttestorMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetAttestor",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class,
+ responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getGetAttestorMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getGetAttestorMethod;
+ if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) {
+ synchronized (BinauthzManagementServiceV1Grpc.class) {
+ if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) {
+ BinauthzManagementServiceV1Grpc.getGetAttestorMethod =
+ getGetAttestorMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .GetAttestorRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources
+ .Attestor.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1MethodDescriptorSupplier("GetAttestor"))
+ .build();
+ }
+ }
+ }
+ return getGetAttestorMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getUpdateAttestorMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class,
+ responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getUpdateAttestorMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getUpdateAttestorMethod;
+ if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod)
+ == null) {
+ synchronized (BinauthzManagementServiceV1Grpc.class) {
+ if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod)
+ == null) {
+ BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod =
+ getUpdateAttestorMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .UpdateAttestorRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources
+ .Attestor.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdateAttestor"))
+ .build();
+ }
+ }
+ }
+ return getUpdateAttestorMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>
+ getListAttestorsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ListAttestors",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class,
+ responseType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>
+ getListAttestorsMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>
+ getListAttestorsMethod;
+ if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) {
+ synchronized (BinauthzManagementServiceV1Grpc.class) {
+ if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod)
+ == null) {
+ BinauthzManagementServiceV1Grpc.getListAttestorsMethod =
+ getListAttestorsMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ListAttestorsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ListAttestorsResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1MethodDescriptorSupplier("ListAttestors"))
+ .build();
+ }
+ }
+ }
+ return getListAttestorsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest,
+ com.google.protobuf.Empty>
+ getDeleteAttestorMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest,
+ com.google.protobuf.Empty>
+ getDeleteAttestorMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest,
+ com.google.protobuf.Empty>
+ getDeleteAttestorMethod;
+ if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod)
+ == null) {
+ synchronized (BinauthzManagementServiceV1Grpc.class) {
+ if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod)
+ == null) {
+ BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod =
+ getDeleteAttestorMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .DeleteAttestorRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1MethodDescriptorSupplier("DeleteAttestor"))
+ .build();
+ }
+ }
+ }
+ return getDeleteAttestorMethod;
+ }
+
+ /** Creates a new async stub that supports all call types for the service */
+ public static BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public BinauthzManagementServiceV1Stub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1Stub(channel, callOptions);
+ }
+ };
+ return BinauthzManagementServiceV1Stub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static BinauthzManagementServiceV1BlockingStub newBlockingStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public BinauthzManagementServiceV1BlockingStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1BlockingStub(channel, callOptions);
+ }
+ };
+ return BinauthzManagementServiceV1BlockingStub.newStub(factory, channel);
+ }
+
+ /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+ public static BinauthzManagementServiceV1FutureStub newFutureStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public BinauthzManagementServiceV1FutureStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1FutureStub(channel, callOptions);
+ }
+ };
+ return BinauthzManagementServiceV1FutureStub.newStub(factory, channel);
+ }
+
+ /**
+ *
+ *
+ *
+ * Google Cloud Management Service for Binary Authorization admission policies
+ * and attestation authorities.
+ * This API implements a REST model with the following objects:
+ * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+ * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+ *
+ */
+ public abstract static class BinauthzManagementServiceV1ImplBase
+ implements io.grpc.BindableService {
+
+ /**
+ *
+ *
+ *
+ * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+ * a container image, before the project is allowed to deploy that
+ * image. There is at most one policy per project. All image admission
+ * requests are permitted if a project has no policy.
+ * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+ * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+ *
+ */
+ public void getPolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+ * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+ * conditions with concurrent policy enforcement (or management!)
+ * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+ * if the request is malformed.
+ *
+ */
+ public void updatePolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getUpdatePolicyMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+ * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+ *
+ */
+ public void createAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getCreateAttestorMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public void getAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getGetAttestorMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public void updateAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getUpdateAttestorMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns INVALID_ARGUMENT if the project does not exist.
+ *
+ */
+ public void listAttestors(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getListAttestorsMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public void deleteAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getDeleteAttestorMethod(), responseObserver);
+ }
+
+ @java.lang.Override
+ public final io.grpc.ServerServiceDefinition bindService() {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getGetPolicyMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .GetPolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>(
+ this, METHODID_GET_POLICY)))
+ .addMethod(
+ getUpdatePolicyMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .UpdatePolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>(
+ this, METHODID_UPDATE_POLICY)))
+ .addMethod(
+ getCreateAttestorMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .CreateAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>(
+ this, METHODID_CREATE_ATTESTOR)))
+ .addMethod(
+ getGetAttestorMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .GetAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>(
+ this, METHODID_GET_ATTESTOR)))
+ .addMethod(
+ getUpdateAttestorMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .UpdateAttestorRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>(
+ this, METHODID_UPDATE_ATTESTOR)))
+ .addMethod(
+ getListAttestorsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ListAttestorsRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ListAttestorsResponse>(this, METHODID_LIST_ATTESTORS)))
+ .addMethod(
+ getDeleteAttestorMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .DeleteAttestorRequest,
+ com.google.protobuf.Empty>(this, METHODID_DELETE_ATTESTOR)))
+ .build();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Google Cloud Management Service for Binary Authorization admission policies
+ * and attestation authorities.
+ * This API implements a REST model with the following objects:
+ * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+ * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+ *
+ */
+ public static final class BinauthzManagementServiceV1Stub
+ extends io.grpc.stub.AbstractAsyncStub {
+ private BinauthzManagementServiceV1Stub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected BinauthzManagementServiceV1Stub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1Stub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+ * a container image, before the project is allowed to deploy that
+ * image. There is at most one policy per project. All image admission
+ * requests are permitted if a project has no policy.
+ * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+ * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+ *
+ */
+ public void getPolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+ * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+ * conditions with concurrent policy enforcement (or management!)
+ * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+ * if the request is malformed.
+ *
+ */
+ public void updatePolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+ * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+ *
+ */
+ public void createAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getCreateAttestorMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public void getAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetAttestorMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public void updateAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns INVALID_ARGUMENT if the project does not exist.
+ *
+ */
+ public void listAttestors(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getListAttestorsMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public void deleteAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Google Cloud Management Service for Binary Authorization admission policies
+ * and attestation authorities.
+ * This API implements a REST model with the following objects:
+ * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+ * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+ *
+ */
+ public static final class BinauthzManagementServiceV1BlockingStub
+ extends io.grpc.stub.AbstractBlockingStub {
+ private BinauthzManagementServiceV1BlockingStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected BinauthzManagementServiceV1BlockingStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1BlockingStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+ * a container image, before the project is allowed to deploy that
+ * image. There is at most one policy per project. All image admission
+ * requests are permitted if a project has no policy.
+ * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+ * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+ *
+ */
+ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetPolicyMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+ * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+ * conditions with concurrent policy enforcement (or management!)
+ * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+ * if the request is malformed.
+ *
+ */
+ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getUpdatePolicyMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+ * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+ *
+ */
+ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor createAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest
+ request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getCreateAttestorMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetAttestorMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest
+ request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getUpdateAttestorMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns INVALID_ARGUMENT if the project does not exist.
+ *
+ */
+ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse
+ listAttestors(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest
+ request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getListAttestorsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public com.google.protobuf.Empty deleteAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest
+ request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getDeleteAttestorMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Google Cloud Management Service for Binary Authorization admission policies
+ * and attestation authorities.
+ * This API implements a REST model with the following objects:
+ * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+ * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+ *
+ */
+ public static final class BinauthzManagementServiceV1FutureStub
+ extends io.grpc.stub.AbstractFutureStub {
+ private BinauthzManagementServiceV1FutureStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected BinauthzManagementServiceV1FutureStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1FutureStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+ * a container image, before the project is allowed to deploy that
+ * image. There is at most one policy per project. All image admission
+ * requests are permitted if a project has no policy.
+ * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+ * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getPolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+ * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+ * conditions with concurrent policy enforcement (or management!)
+ * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+ * if the request is malformed.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ updatePolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+ * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ createAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ getAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>
+ updateAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+ * Returns INVALID_ARGUMENT if the project does not exist.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>
+ listAttestors(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+ * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ deleteAttestor(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request);
+ }
+ }
+
+ private static final int METHODID_GET_POLICY = 0;
+ private static final int METHODID_UPDATE_POLICY = 1;
+ private static final int METHODID_CREATE_ATTESTOR = 2;
+ private static final int METHODID_GET_ATTESTOR = 3;
+ private static final int METHODID_UPDATE_ATTESTOR = 4;
+ private static final int METHODID_LIST_ATTESTORS = 5;
+ private static final int METHODID_DELETE_ATTESTOR = 6;
+
+ 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 BinauthzManagementServiceV1ImplBase serviceImpl;
+ private final int methodId;
+
+ MethodHandlers(BinauthzManagementServiceV1ImplBase 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_GET_POLICY:
+ serviceImpl.getPolicy(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest)
+ request,
+ (io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>)
+ responseObserver);
+ break;
+ case METHODID_UPDATE_POLICY:
+ serviceImpl.updatePolicy(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest)
+ request,
+ (io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>)
+ responseObserver);
+ break;
+ case METHODID_CREATE_ATTESTOR:
+ serviceImpl.createAttestor(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest)
+ request,
+ (io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>)
+ responseObserver);
+ break;
+ case METHODID_GET_ATTESTOR:
+ serviceImpl.getAttestor(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest)
+ request,
+ (io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>)
+ responseObserver);
+ break;
+ case METHODID_UPDATE_ATTESTOR:
+ serviceImpl.updateAttestor(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest)
+ request,
+ (io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>)
+ responseObserver);
+ break;
+ case METHODID_LIST_ATTESTORS:
+ serviceImpl.listAttestors(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest)
+ request,
+ (io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ListAttestorsResponse>)
+ responseObserver);
+ break;
+ case METHODID_DELETE_ATTESTOR:
+ serviceImpl.deleteAttestor(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest)
+ 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 BinauthzManagementServiceV1BaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+ io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ BinauthzManagementServiceV1BaseDescriptorSupplier() {}
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
+ return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
+ return getFileDescriptor().findServiceByName("BinauthzManagementServiceV1");
+ }
+ }
+
+ private static final class BinauthzManagementServiceV1FileDescriptorSupplier
+ extends BinauthzManagementServiceV1BaseDescriptorSupplier {
+ BinauthzManagementServiceV1FileDescriptorSupplier() {}
+ }
+
+ private static final class BinauthzManagementServiceV1MethodDescriptorSupplier
+ extends BinauthzManagementServiceV1BaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
+ private final String methodName;
+
+ BinauthzManagementServiceV1MethodDescriptorSupplier(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 (BinauthzManagementServiceV1Grpc.class) {
+ result = serviceDescriptor;
+ if (result == null) {
+ serviceDescriptor =
+ result =
+ io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(new BinauthzManagementServiceV1FileDescriptorSupplier())
+ .addMethod(getGetPolicyMethod())
+ .addMethod(getUpdatePolicyMethod())
+ .addMethod(getCreateAttestorMethod())
+ .addMethod(getGetAttestorMethod())
+ .addMethod(getUpdateAttestorMethod())
+ .addMethod(getListAttestorsMethod())
+ .addMethod(getDeleteAttestorMethod())
+ .build();
+ }
+ }
+ }
+ return result;
+ }
+}
diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java
new file mode 100644
index 00000000..72939535
--- /dev/null
+++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java
@@ -0,0 +1,375 @@
+/*
+ * 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.protos.google.cloud.binaryauthorization.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ *
+ * API for working with the system policy.
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/cloud/binaryauthorization/v1/service.proto")
+public final class SystemPolicyV1Grpc {
+
+ private SystemPolicyV1Grpc() {}
+
+ public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.SystemPolicyV1";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getGetSystemPolicyMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetSystemPolicy",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest
+ .class,
+ responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getGetSystemPolicyMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getGetSystemPolicyMethod;
+ if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) {
+ synchronized (SystemPolicyV1Grpc.class) {
+ if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) {
+ SystemPolicyV1Grpc.getGetSystemPolicyMethod =
+ getGetSystemPolicyMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .GetSystemPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new SystemPolicyV1MethodDescriptorSupplier("GetSystemPolicy"))
+ .build();
+ }
+ }
+ }
+ return getGetSystemPolicyMethod;
+ }
+
+ /** Creates a new async stub that supports all call types for the service */
+ public static SystemPolicyV1Stub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public SystemPolicyV1Stub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new SystemPolicyV1Stub(channel, callOptions);
+ }
+ };
+ return SystemPolicyV1Stub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static SystemPolicyV1BlockingStub newBlockingStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public SystemPolicyV1BlockingStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new SystemPolicyV1BlockingStub(channel, callOptions);
+ }
+ };
+ return SystemPolicyV1BlockingStub.newStub(factory, channel);
+ }
+
+ /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+ public static SystemPolicyV1FutureStub newFutureStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public SystemPolicyV1FutureStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new SystemPolicyV1FutureStub(channel, callOptions);
+ }
+ };
+ return SystemPolicyV1FutureStub.newStub(factory, channel);
+ }
+
+ /**
+ *
+ *
+ *
+ * API for working with the system policy.
+ *
+ */
+ public abstract static class SystemPolicyV1ImplBase implements io.grpc.BindableService {
+
+ /**
+ *
+ *
+ *
+ * Gets the current system policy in the specified location.
+ *
+ */
+ public void getSystemPolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest
+ request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getGetSystemPolicyMethod(), responseObserver);
+ }
+
+ @java.lang.Override
+ public final io.grpc.ServerServiceDefinition bindService() {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getGetSystemPolicyMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .GetSystemPolicyRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>(
+ this, METHODID_GET_SYSTEM_POLICY)))
+ .build();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * API for working with the system policy.
+ *
+ */
+ public static final class SystemPolicyV1Stub
+ extends io.grpc.stub.AbstractAsyncStub {
+ private SystemPolicyV1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected SystemPolicyV1Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new SystemPolicyV1Stub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets the current system policy in the specified location.
+ *
+ */
+ public void getSystemPolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest
+ request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * API for working with the system policy.
+ *
+ */
+ public static final class SystemPolicyV1BlockingStub
+ extends io.grpc.stub.AbstractBlockingStub {
+ private SystemPolicyV1BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected SystemPolicyV1BlockingStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new SystemPolicyV1BlockingStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets the current system policy in the specified location.
+ *
+ */
+ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getSystemPolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest
+ request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * API for working with the system policy.
+ *
+ */
+ public static final class SystemPolicyV1FutureStub
+ extends io.grpc.stub.AbstractFutureStub {
+ private SystemPolicyV1FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected SystemPolicyV1FutureStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new SystemPolicyV1FutureStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets the current system policy in the specified location.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>
+ getSystemPolicy(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request);
+ }
+ }
+
+ private static final int METHODID_GET_SYSTEM_POLICY = 0;
+
+ 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 SystemPolicyV1ImplBase serviceImpl;
+ private final int methodId;
+
+ MethodHandlers(SystemPolicyV1ImplBase 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_GET_SYSTEM_POLICY:
+ serviceImpl.getSystemPolicy(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest)
+ request,
+ (io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>)
+ 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 SystemPolicyV1BaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+ io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ SystemPolicyV1BaseDescriptorSupplier() {}
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
+ return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
+ return getFileDescriptor().findServiceByName("SystemPolicyV1");
+ }
+ }
+
+ private static final class SystemPolicyV1FileDescriptorSupplier
+ extends SystemPolicyV1BaseDescriptorSupplier {
+ SystemPolicyV1FileDescriptorSupplier() {}
+ }
+
+ private static final class SystemPolicyV1MethodDescriptorSupplier
+ extends SystemPolicyV1BaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
+ private final String methodName;
+
+ SystemPolicyV1MethodDescriptorSupplier(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 (SystemPolicyV1Grpc.class) {
+ result = serviceDescriptor;
+ if (result == null) {
+ serviceDescriptor =
+ result =
+ io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(new SystemPolicyV1FileDescriptorSupplier())
+ .addMethod(getGetSystemPolicyMethod())
+ .build();
+ }
+ }
+ }
+ return result;
+ }
+}
diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java
new file mode 100644
index 00000000..30e0c3d1
--- /dev/null
+++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java
@@ -0,0 +1,410 @@
+/*
+ * 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.protos.google.cloud.binaryauthorization.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ *
+ * BinAuthz Attestor verification
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/cloud/binaryauthorization/v1/service.proto")
+public final class ValidationHelperV1Grpc {
+
+ private ValidationHelperV1Grpc() {}
+
+ public static final String SERVICE_NAME =
+ "google.cloud.binaryauthorization.v1.ValidationHelperV1";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse>
+ getValidateAttestationOccurrenceMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ValidateAttestationOccurrence",
+ requestType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest.class,
+ responseType =
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse>
+ getValidateAttestationOccurrenceMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse>
+ getValidateAttestationOccurrenceMethod;
+ if ((getValidateAttestationOccurrenceMethod =
+ ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod)
+ == null) {
+ synchronized (ValidationHelperV1Grpc.class) {
+ if ((getValidateAttestationOccurrenceMethod =
+ ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod)
+ == null) {
+ ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod =
+ getValidateAttestationOccurrenceMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "ValidateAttestationOccurrence"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ValidationHelperV1MethodDescriptorSupplier(
+ "ValidateAttestationOccurrence"))
+ .build();
+ }
+ }
+ }
+ return getValidateAttestationOccurrenceMethod;
+ }
+
+ /** Creates a new async stub that supports all call types for the service */
+ public static ValidationHelperV1Stub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ValidationHelperV1Stub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ValidationHelperV1Stub(channel, callOptions);
+ }
+ };
+ return ValidationHelperV1Stub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static ValidationHelperV1BlockingStub newBlockingStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ValidationHelperV1BlockingStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ValidationHelperV1BlockingStub(channel, callOptions);
+ }
+ };
+ return ValidationHelperV1BlockingStub.newStub(factory, channel);
+ }
+
+ /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+ public static ValidationHelperV1FutureStub newFutureStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ValidationHelperV1FutureStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ValidationHelperV1FutureStub(channel, callOptions);
+ }
+ };
+ return ValidationHelperV1FutureStub.newStub(factory, channel);
+ }
+
+ /**
+ *
+ *
+ *
+ * BinAuthz Attestor verification
+ *
+ */
+ public abstract static class ValidationHelperV1ImplBase implements io.grpc.BindableService {
+
+ /**
+ *
+ *
+ *
+ * Returns whether the given Attestation for the given image URI
+ * was signed by the given Attestor
+ *
+ */
+ public void validateAttestationOccurrence(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest
+ request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getValidateAttestationOccurrenceMethod(), responseObserver);
+ }
+
+ @java.lang.Override
+ public final io.grpc.ServerServiceDefinition bindService() {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getValidateAttestationOccurrenceMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest,
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse>(
+ this, METHODID_VALIDATE_ATTESTATION_OCCURRENCE)))
+ .build();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * BinAuthz Attestor verification
+ *
+ */
+ public static final class ValidationHelperV1Stub
+ extends io.grpc.stub.AbstractAsyncStub {
+ private ValidationHelperV1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected ValidationHelperV1Stub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ValidationHelperV1Stub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Returns whether the given Attestation for the given image URI
+ * was signed by the given Attestor
+ *
+ */
+ public void validateAttestationOccurrence(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest
+ request,
+ io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * BinAuthz Attestor verification
+ *
+ */
+ public static final class ValidationHelperV1BlockingStub
+ extends io.grpc.stub.AbstractBlockingStub {
+ private ValidationHelperV1BlockingStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected ValidationHelperV1BlockingStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ValidationHelperV1BlockingStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Returns whether the given Attestation for the given image URI
+ * was signed by the given Attestor
+ *
+ */
+ public com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse
+ validateAttestationOccurrence(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest
+ request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getValidateAttestationOccurrenceMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * BinAuthz Attestor verification
+ *
+ */
+ public static final class ValidationHelperV1FutureStub
+ extends io.grpc.stub.AbstractFutureStub {
+ private ValidationHelperV1FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected ValidationHelperV1FutureStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ValidationHelperV1FutureStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Returns whether the given Attestation for the given image URI
+ * was signed by the given Attestor
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse>
+ validateAttestationOccurrence(
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()),
+ request);
+ }
+ }
+
+ private static final int METHODID_VALIDATE_ATTESTATION_OCCURRENCE = 0;
+
+ 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 ValidationHelperV1ImplBase serviceImpl;
+ private final int methodId;
+
+ MethodHandlers(ValidationHelperV1ImplBase 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_VALIDATE_ATTESTATION_OCCURRENCE:
+ serviceImpl.validateAttestationOccurrence(
+ (com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceRequest)
+ request,
+ (io.grpc.stub.StreamObserver<
+ com.google.protos.google.cloud.binaryauthorization.v1.Service
+ .ValidateAttestationOccurrenceResponse>)
+ 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 ValidationHelperV1BaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+ io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ ValidationHelperV1BaseDescriptorSupplier() {}
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
+ return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
+ return getFileDescriptor().findServiceByName("ValidationHelperV1");
+ }
+ }
+
+ private static final class ValidationHelperV1FileDescriptorSupplier
+ extends ValidationHelperV1BaseDescriptorSupplier {
+ ValidationHelperV1FileDescriptorSupplier() {}
+ }
+
+ private static final class ValidationHelperV1MethodDescriptorSupplier
+ extends ValidationHelperV1BaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
+ private final String methodName;
+
+ ValidationHelperV1MethodDescriptorSupplier(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 (ValidationHelperV1Grpc.class) {
+ result = serviceDescriptor;
+ if (result == null) {
+ serviceDescriptor =
+ result =
+ io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(new ValidationHelperV1FileDescriptorSupplier())
+ .addMethod(getValidateAttestationOccurrenceMethod())
+ .build();
+ }
+ }
+ }
+ return result;
+ }
+}
diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java b/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java
similarity index 51%
rename from owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java
rename to grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java
index 01cfb5ba..f190dd9e 100644
--- a/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java
+++ b/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java
@@ -1,8 +1,25 @@
+/*
+ * 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.binaryauthorization.v1beta1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
+ *
+ *
*
* Google Cloud Management Service for Binary Authorization admission policies
* and attestation authorities.
@@ -18,237 +35,367 @@ public final class BinauthzManagementServiceV1Beta1Grpc {
private BinauthzManagementServiceV1Beta1Grpc() {}
- public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1";
+ public static final String SERVICE_NAME =
+ "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1";
// Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getGetPolicyMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Policy>
+ getGetPolicyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetPolicy",
requestType = com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class,
responseType = com.google.cloud.binaryauthorization.v1beta1.Policy.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetPolicyMethod() {
- io.grpc.MethodDescriptor getGetPolicyMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Policy>
+ getGetPolicyMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Policy>
+ getGetPolicyMethod;
if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod) == null) {
synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
- if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod) == null) {
- BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod = getGetPolicyMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetPolicy"))
- .build();
+ if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod)
+ == null) {
+ BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod =
+ getGetPolicyMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.Policy
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetPolicy"))
+ .build();
}
}
}
return getGetPolicyMethod;
}
- private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Policy>
+ getUpdatePolicyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy",
requestType = com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class,
responseType = com.google.cloud.binaryauthorization.v1beta1.Policy.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getUpdatePolicyMethod() {
- io.grpc.MethodDescriptor getUpdatePolicyMethod;
- if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod) == null) {
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Policy>
+ getUpdatePolicyMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Policy>
+ getUpdatePolicyMethod;
+ if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod)
+ == null) {
synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
- if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod) == null) {
- BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod = getUpdatePolicyMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("UpdatePolicy"))
- .build();
+ if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod)
+ == null) {
+ BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod =
+ getUpdatePolicyMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.Policy
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+ "UpdatePolicy"))
+ .build();
}
}
}
return getUpdatePolicyMethod;
}
- private static volatile io.grpc.MethodDescriptor getCreateAttestorMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getCreateAttestorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateAttestor",
requestType = com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class,
responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getCreateAttestorMethod() {
- io.grpc.MethodDescriptor getCreateAttestorMethod;
- if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod) == null) {
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getCreateAttestorMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getCreateAttestorMethod;
+ if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod)
+ == null) {
synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
- if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod) == null) {
- BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod = getCreateAttestorMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("CreateAttestor"))
- .build();
+ if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod)
+ == null) {
+ BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod =
+ getCreateAttestorMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.Attestor
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+ "CreateAttestor"))
+ .build();
}
}
}
return getCreateAttestorMethod;
}
- private static volatile io.grpc.MethodDescriptor getGetAttestorMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getGetAttestorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAttestor",
requestType = com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class,
responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetAttestorMethod() {
- io.grpc.MethodDescriptor getGetAttestorMethod;
- if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod) == null) {
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getGetAttestorMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getGetAttestorMethod;
+ if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod)
+ == null) {
synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
- if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod) == null) {
- BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod = getGetAttestorMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetAttestor"))
- .build();
+ if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod)
+ == null) {
+ BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod =
+ getGetAttestorMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.Attestor
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+ "GetAttestor"))
+ .build();
}
}
}
return getGetAttestorMethod;
}
- private static volatile io.grpc.MethodDescriptor getUpdateAttestorMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getUpdateAttestorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor",
requestType = com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class,
responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getUpdateAttestorMethod() {
- io.grpc.MethodDescriptor getUpdateAttestorMethod;
- if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod) == null) {
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getUpdateAttestorMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getUpdateAttestorMethod;
+ if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod)
+ == null) {
synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
- if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod) == null) {
- BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod = getUpdateAttestorMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("UpdateAttestor"))
- .build();
+ if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod)
+ == null) {
+ BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod =
+ getUpdateAttestorMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.Attestor
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+ "UpdateAttestor"))
+ .build();
}
}
}
return getUpdateAttestorMethod;
}
- private static volatile io.grpc.MethodDescriptor getListAttestorsMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+ getListAttestorsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListAttestors",
requestType = com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class,
responseType = com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getListAttestorsMethod() {
- io.grpc.MethodDescriptor getListAttestorsMethod;
- if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod) == null) {
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+ getListAttestorsMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+ getListAttestorsMethod;
+ if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod)
+ == null) {
synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
- if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod) == null) {
- BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod = getListAttestorsMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("ListAttestors"))
- .build();
+ if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod)
+ == null) {
+ BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod =
+ getListAttestorsMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+ "ListAttestors"))
+ .build();
}
}
}
return getListAttestorsMethod;
}
- private static volatile io.grpc.MethodDescriptor getDeleteAttestorMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
+ com.google.protobuf.Empty>
+ getDeleteAttestorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor",
requestType = com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getDeleteAttestorMethod() {
- io.grpc.MethodDescriptor getDeleteAttestorMethod;
- if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod) == null) {
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
+ com.google.protobuf.Empty>
+ getDeleteAttestorMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
+ com.google.protobuf.Empty>
+ getDeleteAttestorMethod;
+ if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod)
+ == null) {
synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
- if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod) == null) {
- BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod = getDeleteAttestorMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protobuf.Empty.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("DeleteAttestor"))
- .build();
+ if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod)
+ == null) {
+ BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod =
+ getDeleteAttestorMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+ "DeleteAttestor"))
+ .build();
}
}
}
return getDeleteAttestorMethod;
}
- /**
- * Creates a new async stub that supports all call types for the service
- */
+ /** Creates a new async stub that supports all call types for the service */
public static BinauthzManagementServiceV1Beta1Stub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public BinauthzManagementServiceV1Beta1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1Beta1Stub(channel, callOptions);
- }
- };
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public BinauthzManagementServiceV1Beta1Stub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1Beta1Stub(channel, callOptions);
+ }
+ };
return BinauthzManagementServiceV1Beta1Stub.newStub(factory, channel);
}
@@ -258,31 +405,32 @@ public BinauthzManagementServiceV1Beta1Stub newStub(io.grpc.Channel channel, io.
public static BinauthzManagementServiceV1Beta1BlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public BinauthzManagementServiceV1Beta1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1Beta1BlockingStub(channel, callOptions);
- }
- };
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public BinauthzManagementServiceV1Beta1BlockingStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1Beta1BlockingStub(channel, callOptions);
+ }
+ };
return BinauthzManagementServiceV1Beta1BlockingStub.newStub(factory, channel);
}
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static BinauthzManagementServiceV1Beta1FutureStub newFutureStub(
- io.grpc.Channel channel) {
+ /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+ public static BinauthzManagementServiceV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public BinauthzManagementServiceV1Beta1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1Beta1FutureStub(channel, callOptions);
- }
- };
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public BinauthzManagementServiceV1Beta1FutureStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new BinauthzManagementServiceV1Beta1FutureStub(channel, callOptions);
+ }
+ };
return BinauthzManagementServiceV1Beta1FutureStub.newStub(factory, channel);
}
/**
+ *
+ *
*
* Google Cloud Management Service for Binary Authorization admission policies
* and attestation authorities.
@@ -291,9 +439,12 @@ public BinauthzManagementServiceV1Beta1FutureStub newStub(io.grpc.Channel channe
* * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
*
*/
- public static abstract class BinauthzManagementServiceV1Beta1ImplBase implements io.grpc.BindableService {
+ public abstract static class BinauthzManagementServiceV1Beta1ImplBase
+ implements io.grpc.BindableService {
/**
+ *
+ *
*
* A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
* [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
@@ -306,12 +457,16 @@ public static abstract class BinauthzManagementServiceV1Beta1ImplBase implements
* does not have one.
*
*/
- public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
+ public void getPolicy(
+ com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver);
}
/**
+ *
+ *
*
* Creates or updates a project's
* [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
@@ -322,12 +477,17 @@ public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequ
* malformed.
*
*/
- public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver);
+ public void updatePolicy(
+ com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getUpdatePolicyMethod(), responseObserver);
}
/**
+ *
+ *
*
* Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
* and returns a copy of the new
@@ -338,12 +498,17 @@ public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePoli
* exists.
*
*/
- public void createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAttestorMethod(), responseObserver);
+ public void createAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getCreateAttestorMethod(), responseObserver);
}
/**
+ *
+ *
*
* Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -351,12 +516,17 @@ public void createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAt
* exist.
*
*/
- public void getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAttestorMethod(), responseObserver);
+ public void getAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getGetAttestorMethod(), responseObserver);
}
/**
+ *
+ *
*
* Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -364,23 +534,34 @@ public void getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestor
* exist.
*
*/
- public void updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAttestorMethod(), responseObserver);
+ public void updateAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getUpdateAttestorMethod(), responseObserver);
}
/**
+ *
+ *
*
* Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns INVALID_ARGUMENT if the project does not exist.
*
*/
- public void listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAttestorsMethod(), responseObserver);
+ public void listAttestors(
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getListAttestorsMethod(), responseObserver);
}
/**
+ *
+ *
*
* Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -388,67 +569,71 @@ public void listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttes
* exist.
*
*/
- public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request,
+ public void deleteAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAttestorMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getDeleteAttestorMethod(), responseObserver);
}
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
+ @java.lang.Override
+ public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
- getGetPolicyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
- com.google.cloud.binaryauthorization.v1beta1.Policy>(
- this, METHODID_GET_POLICY)))
+ getGetPolicyMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Policy>(
+ this, METHODID_GET_POLICY)))
.addMethod(
- getUpdatePolicyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
- com.google.cloud.binaryauthorization.v1beta1.Policy>(
- this, METHODID_UPDATE_POLICY)))
+ getUpdatePolicyMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Policy>(
+ this, METHODID_UPDATE_POLICY)))
.addMethod(
- getCreateAttestorMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
- com.google.cloud.binaryauthorization.v1beta1.Attestor>(
- this, METHODID_CREATE_ATTESTOR)))
+ getCreateAttestorMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>(
+ this, METHODID_CREATE_ATTESTOR)))
.addMethod(
- getGetAttestorMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
- com.google.cloud.binaryauthorization.v1beta1.Attestor>(
- this, METHODID_GET_ATTESTOR)))
+ getGetAttestorMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>(
+ this, METHODID_GET_ATTESTOR)))
.addMethod(
- getUpdateAttestorMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
- com.google.cloud.binaryauthorization.v1beta1.Attestor>(
- this, METHODID_UPDATE_ATTESTOR)))
+ getUpdateAttestorMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>(
+ this, METHODID_UPDATE_ATTESTOR)))
.addMethod(
- getListAttestorsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
- com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>(
- this, METHODID_LIST_ATTESTORS)))
+ getListAttestorsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>(
+ this, METHODID_LIST_ATTESTORS)))
.addMethod(
- getDeleteAttestorMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
- com.google.protobuf.Empty>(
- this, METHODID_DELETE_ATTESTOR)))
+ getDeleteAttestorMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
+ com.google.protobuf.Empty>(this, METHODID_DELETE_ATTESTOR)))
.build();
}
}
/**
+ *
+ *
*
* Google Cloud Management Service for Binary Authorization admission policies
* and attestation authorities.
@@ -457,7 +642,8 @@ public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAt
* * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
*
*/
- public static final class BinauthzManagementServiceV1Beta1Stub extends io.grpc.stub.AbstractAsyncStub {
+ public static final class BinauthzManagementServiceV1Beta1Stub
+ extends io.grpc.stub.AbstractAsyncStub {
private BinauthzManagementServiceV1Beta1Stub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
@@ -470,6 +656,8 @@ protected BinauthzManagementServiceV1Beta1Stub build(
}
/**
+ *
+ *
*
* A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
* [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
@@ -482,13 +670,17 @@ protected BinauthzManagementServiceV1Beta1Stub build(
* does not have one.
*
*/
- public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
+ public void getPolicy(
+ com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver);
}
/**
+ *
+ *
*
* Creates or updates a project's
* [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
@@ -499,13 +691,19 @@ public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequ
* malformed.
*
*/
- public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
+ public void updatePolicy(
+ com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
* and returns a copy of the new
@@ -516,13 +714,19 @@ public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePoli
* exists.
*
*/
- public void createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
+ public void createAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getCreateAttestorMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -530,13 +734,19 @@ public void createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAt
* exist.
*
*/
- public void getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
+ public void getAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getGetAttestorMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -544,25 +754,38 @@ public void getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestor
* exist.
*
*/
- public void updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
+ public void updateAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns INVALID_ARGUMENT if the project does not exist.
*
*/
- public void listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
+ public void listAttestors(
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+ responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getListAttestorsMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -570,14 +793,19 @@ public void listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttes
* exist.
*
*/
- public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request,
+ public void deleteAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
}
/**
+ *
+ *
*
* Google Cloud Management Service for Binary Authorization admission policies
* and attestation authorities.
@@ -586,7 +814,8 @@ public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAt
* * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
*
*/
- public static final class BinauthzManagementServiceV1Beta1BlockingStub extends io.grpc.stub.AbstractBlockingStub {
+ public static final class BinauthzManagementServiceV1Beta1BlockingStub
+ extends io.grpc.stub.AbstractBlockingStub {
private BinauthzManagementServiceV1Beta1BlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
@@ -599,6 +828,8 @@ protected BinauthzManagementServiceV1Beta1BlockingStub build(
}
/**
+ *
+ *
*
* A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
* [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
@@ -611,12 +842,15 @@ protected BinauthzManagementServiceV1Beta1BlockingStub build(
* does not have one.
*
*/
- public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) {
+ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(
+ com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetPolicyMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Creates or updates a project's
* [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
@@ -627,12 +861,15 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(com.google.
* malformed.
*
*/
- public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) {
+ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy(
+ com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdatePolicyMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
* and returns a copy of the new
@@ -643,12 +880,15 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy(com.goog
* exists.
*
*/
- public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) {
+ public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateAttestorMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -656,12 +896,15 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor(com.
* exist.
*
*/
- public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) {
+ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAttestorMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -669,23 +912,29 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(com.goo
* exist.
*
*/
- public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) {
+ public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateAttestorMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns INVALID_ARGUMENT if the project does not exist.
*
*/
- public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) {
+ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAttestors(
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListAttestorsMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -693,13 +942,16 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAt
* exist.
*
*/
- public com.google.protobuf.Empty deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) {
+ public com.google.protobuf.Empty deleteAttestor(
+ com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteAttestorMethod(), getCallOptions(), request);
}
}
/**
+ *
+ *
*
* Google Cloud Management Service for Binary Authorization admission policies
* and attestation authorities.
@@ -708,7 +960,8 @@ public com.google.protobuf.Empty deleteAttestor(com.google.cloud.binaryauthoriza
* * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
*
*/
- public static final class BinauthzManagementServiceV1Beta1FutureStub extends io.grpc.stub.AbstractFutureStub {
+ public static final class BinauthzManagementServiceV1Beta1FutureStub
+ extends io.grpc.stub.AbstractFutureStub {
private BinauthzManagementServiceV1Beta1FutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
@@ -721,6 +974,8 @@ protected BinauthzManagementServiceV1Beta1FutureStub build(
}
/**
+ *
+ *
*
* A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
* [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
@@ -733,13 +988,16 @@ protected BinauthzManagementServiceV1Beta1FutureStub build(
* does not have one.
*
*/
- public com.google.common.util.concurrent.ListenableFuture getPolicy(
- com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.binaryauthorization.v1beta1.Policy>
+ getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* Creates or updates a project's
* [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
@@ -750,13 +1008,16 @@ public com.google.common.util.concurrent.ListenableFuture
*/
- public com.google.common.util.concurrent.ListenableFuture updatePolicy(
- com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.binaryauthorization.v1beta1.Policy>
+ updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
* and returns a copy of the new
@@ -767,13 +1028,16 @@ public com.google.common.util.concurrent.ListenableFuture
*/
- public com.google.common.util.concurrent.ListenableFuture createAttestor(
- com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -781,13 +1045,16 @@ public com.google.common.util.concurrent.ListenableFuture
*/
- public com.google.common.util.concurrent.ListenableFuture getAttestor(
- com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -795,25 +1062,31 @@ public com.google.common.util.concurrent.ListenableFuture
*/
- public com.google.common.util.concurrent.ListenableFuture updateAttestor(
- com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.binaryauthorization.v1beta1.Attestor>
+ updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns INVALID_ARGUMENT if the project does not exist.
*
*/
- public com.google.common.util.concurrent.ListenableFuture listAttestors(
- com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+ listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
* Returns NOT_FOUND if the
@@ -821,8 +1094,8 @@ public com.google.common.util.concurrent.ListenableFuture
*/
- public com.google.common.util.concurrent.ListenableFuture deleteAttestor(
- com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
+ deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request);
}
@@ -836,11 +1109,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
- io.grpc.stub.ServerCalls.UnaryMethod,
- io.grpc.stub.ServerCalls.ServerStreamingMethod,
- io.grpc.stub.ServerCalls.ClientStreamingMethod,
- io.grpc.stub.ServerCalls.BidiStreamingMethod {
+ 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 BinauthzManagementServiceV1Beta1ImplBase serviceImpl;
private final int methodId;
@@ -854,31 +1127,45 @@ private static final class MethodHandlers implements
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_GET_POLICY:
- serviceImpl.getPolicy((com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.getPolicy(
+ (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_UPDATE_POLICY:
- serviceImpl.updatePolicy((com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.updatePolicy(
+ (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_CREATE_ATTESTOR:
- serviceImpl.createAttestor((com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.createAttestor(
+ (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_GET_ATTESTOR:
- serviceImpl.getAttestor((com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.getAttestor(
+ (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_UPDATE_ATTESTOR:
- serviceImpl.updateAttestor((com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.updateAttestor(
+ (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_LIST_ATTESTORS:
- serviceImpl.listAttestors((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.listAttestors(
+ (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) request,
+ (io.grpc.stub.StreamObserver<
+ com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>)
+ responseObserver);
break;
case METHODID_DELETE_ATTESTOR:
- serviceImpl.deleteAttestor((com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) request,
+ serviceImpl.deleteAttestor(
+ (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
@@ -897,13 +1184,15 @@ public io.grpc.stub.StreamObserver invoke(
}
}
- private static abstract class BinauthzManagementServiceV1Beta1BaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ private abstract static class BinauthzManagementServiceV1Beta1BaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+ io.grpc.protobuf.ProtoServiceDescriptorSupplier {
BinauthzManagementServiceV1Beta1BaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
- return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.getDescriptor();
+ return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto
+ .getDescriptor();
}
@java.lang.Override
@@ -940,16 +1229,19 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
result = serviceDescriptor;
if (result == null) {
- serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1FileDescriptorSupplier())
- .addMethod(getGetPolicyMethod())
- .addMethod(getUpdatePolicyMethod())
- .addMethod(getCreateAttestorMethod())
- .addMethod(getGetAttestorMethod())
- .addMethod(getUpdateAttestorMethod())
- .addMethod(getListAttestorsMethod())
- .addMethod(getDeleteAttestorMethod())
- .build();
+ serviceDescriptor =
+ result =
+ io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(
+ new BinauthzManagementServiceV1Beta1FileDescriptorSupplier())
+ .addMethod(getGetPolicyMethod())
+ .addMethod(getUpdatePolicyMethod())
+ .addMethod(getCreateAttestorMethod())
+ .addMethod(getGetAttestorMethod())
+ .addMethod(getUpdateAttestorMethod())
+ .addMethod(getListAttestorsMethod())
+ .addMethod(getDeleteAttestorMethod())
+ .build();
}
}
}
diff --git a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java
deleted file mode 100644
index fdcbb16f..00000000
--- a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java
+++ /dev/null
@@ -1,902 +0,0 @@
-package com.google.protos.google.cloud.binaryauthorization.v1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- *
- * Google Cloud Management Service for Binary Authorization admission policies
- * and attestation authorities.
- * This API implements a REST model with the following objects:
- * * [Policy][google.cloud.binaryauthorization.v1.Policy]
- * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler",
- comments = "Source: google/cloud/binaryauthorization/v1/service.proto")
-public final class BinauthzManagementServiceV1Grpc {
-
- private BinauthzManagementServiceV1Grpc() {}
-
- public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getGetPolicyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetPolicy",
- requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class,
- responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetPolicyMethod() {
- io.grpc.MethodDescriptor getGetPolicyMethod;
- if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) {
- synchronized (BinauthzManagementServiceV1Grpc.class) {
- if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) {
- BinauthzManagementServiceV1Grpc.getGetPolicyMethod = getGetPolicyMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("GetPolicy"))
- .build();
- }
- }
- }
- return getGetPolicyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy",
- requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class,
- responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getUpdatePolicyMethod() {
- io.grpc.MethodDescriptor getUpdatePolicyMethod;
- if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) {
- synchronized (BinauthzManagementServiceV1Grpc.class) {
- if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) {
- BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod = getUpdatePolicyMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdatePolicy"))
- .build();
- }
- }
- }
- return getUpdatePolicyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getCreateAttestorMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "CreateAttestor",
- requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class,
- responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getCreateAttestorMethod() {
- io.grpc.MethodDescriptor getCreateAttestorMethod;
- if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) == null) {
- synchronized (BinauthzManagementServiceV1Grpc.class) {
- if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) == null) {
- BinauthzManagementServiceV1Grpc.getCreateAttestorMethod = getCreateAttestorMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("CreateAttestor"))
- .build();
- }
- }
- }
- return getCreateAttestorMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getGetAttestorMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetAttestor",
- requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class,
- responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetAttestorMethod() {
- io.grpc.MethodDescriptor getGetAttestorMethod;
- if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) {
- synchronized (BinauthzManagementServiceV1Grpc.class) {
- if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) {
- BinauthzManagementServiceV1Grpc.getGetAttestorMethod = getGetAttestorMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("GetAttestor"))
- .build();
- }
- }
- }
- return getGetAttestorMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getUpdateAttestorMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor",
- requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class,
- responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getUpdateAttestorMethod() {
- io.grpc.MethodDescriptor getUpdateAttestorMethod;
- if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) == null) {
- synchronized (BinauthzManagementServiceV1Grpc.class) {
- if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) == null) {
- BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod = getUpdateAttestorMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdateAttestor"))
- .build();
- }
- }
- }
- return getUpdateAttestorMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getListAttestorsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ListAttestors",
- requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class,
- responseType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getListAttestorsMethod() {
- io.grpc.MethodDescriptor getListAttestorsMethod;
- if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) {
- synchronized (BinauthzManagementServiceV1Grpc.class) {
- if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) {
- BinauthzManagementServiceV1Grpc.getListAttestorsMethod = getListAttestorsMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("ListAttestors"))
- .build();
- }
- }
- }
- return getListAttestorsMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getDeleteAttestorMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor",
- requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class,
- responseType = com.google.protobuf.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getDeleteAttestorMethod() {
- io.grpc.MethodDescriptor getDeleteAttestorMethod;
- if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) == null) {
- synchronized (BinauthzManagementServiceV1Grpc.class) {
- if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) == null) {
- BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod = getDeleteAttestorMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protobuf.Empty.getDefaultInstance()))
- .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("DeleteAttestor"))
- .build();
- }
- }
- }
- return getDeleteAttestorMethod;
- }
-
- /**
- * Creates a new async stub that supports all call types for the service
- */
- public static BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel) {
- io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1Stub(channel, callOptions);
- }
- };
- return BinauthzManagementServiceV1Stub.newStub(factory, channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static BinauthzManagementServiceV1BlockingStub newBlockingStub(
- io.grpc.Channel channel) {
- io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public BinauthzManagementServiceV1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1BlockingStub(channel, callOptions);
- }
- };
- return BinauthzManagementServiceV1BlockingStub.newStub(factory, channel);
- }
-
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static BinauthzManagementServiceV1FutureStub newFutureStub(
- io.grpc.Channel channel) {
- io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public BinauthzManagementServiceV1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1FutureStub(channel, callOptions);
- }
- };
- return BinauthzManagementServiceV1FutureStub.newStub(factory, channel);
- }
-
- /**
- *
- * Google Cloud Management Service for Binary Authorization admission policies
- * and attestation authorities.
- * This API implements a REST model with the following objects:
- * * [Policy][google.cloud.binaryauthorization.v1.Policy]
- * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
- *
- */
- public static abstract class BinauthzManagementServiceV1ImplBase implements io.grpc.BindableService {
-
- /**
- *
- * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
- * a container image, before the project is allowed to deploy that
- * image. There is at most one policy per project. All image admission
- * requests are permitted if a project has no policy.
- * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
- * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
- *
- */
- public void getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver);
- }
-
- /**
- *
- * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
- * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
- * conditions with concurrent policy enforcement (or management!)
- * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
- * if the request is malformed.
- *
- */
- public void updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver);
- }
-
- /**
- *
- * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
- * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
- * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
- * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
- *
- */
- public void createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAttestorMethod(), responseObserver);
- }
-
- /**
- *
- * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
- * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public void getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAttestorMethod(), responseObserver);
- }
-
- /**
- *
- * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
- * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public void updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAttestorMethod(), responseObserver);
- }
-
- /**
- *
- * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
- * Returns INVALID_ARGUMENT if the project does not exist.
- *
- */
- public void listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAttestorsMethod(), responseObserver);
- }
-
- /**
- *
- * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
- * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public void deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAttestorMethod(), responseObserver);
- }
-
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getGetPolicyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest,
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>(
- this, METHODID_GET_POLICY)))
- .addMethod(
- getUpdatePolicyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest,
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>(
- this, METHODID_UPDATE_POLICY)))
- .addMethod(
- getCreateAttestorMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest,
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>(
- this, METHODID_CREATE_ATTESTOR)))
- .addMethod(
- getGetAttestorMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest,
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>(
- this, METHODID_GET_ATTESTOR)))
- .addMethod(
- getUpdateAttestorMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest,
- com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>(
- this, METHODID_UPDATE_ATTESTOR)))
- .addMethod(
- getListAttestorsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest,
- com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>(
- this, METHODID_LIST_ATTESTORS)))
- .addMethod(
- getDeleteAttestorMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest,
- com.google.protobuf.Empty>(
- this, METHODID_DELETE_ATTESTOR)))
- .build();
- }
- }
-
- /**
- *
- * Google Cloud Management Service for Binary Authorization admission policies
- * and attestation authorities.
- * This API implements a REST model with the following objects:
- * * [Policy][google.cloud.binaryauthorization.v1.Policy]
- * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
- *
- */
- public static final class BinauthzManagementServiceV1Stub extends io.grpc.stub.AbstractAsyncStub {
- private BinauthzManagementServiceV1Stub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected BinauthzManagementServiceV1Stub build(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1Stub(channel, callOptions);
- }
-
- /**
- *
- * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
- * a container image, before the project is allowed to deploy that
- * image. There is at most one policy per project. All image admission
- * requests are permitted if a project has no policy.
- * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
- * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
- *
- */
- public void getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
- * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
- * conditions with concurrent policy enforcement (or management!)
- * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
- * if the request is malformed.
- *
- */
- public void updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
- * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
- * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
- * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
- *
- */
- public void createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
- * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public void getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
- * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public void updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
- * Returns INVALID_ARGUMENT if the project does not exist.
- *
- */
- public void listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
- * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public void deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request, responseObserver);
- }
- }
-
- /**
- *
- * Google Cloud Management Service for Binary Authorization admission policies
- * and attestation authorities.
- * This API implements a REST model with the following objects:
- * * [Policy][google.cloud.binaryauthorization.v1.Policy]
- * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
- *
- */
- public static final class BinauthzManagementServiceV1BlockingStub extends io.grpc.stub.AbstractBlockingStub {
- private BinauthzManagementServiceV1BlockingStub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected BinauthzManagementServiceV1BlockingStub build(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1BlockingStub(channel, callOptions);
- }
-
- /**
- *
- * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
- * a container image, before the project is allowed to deploy that
- * image. There is at most one policy per project. All image admission
- * requests are permitted if a project has no policy.
- * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
- * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
- *
- */
- public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetPolicyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
- * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
- * conditions with concurrent policy enforcement (or management!)
- * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
- * if the request is malformed.
- *
- */
- public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getUpdatePolicyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
- * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
- * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
- * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
- *
- */
- public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getCreateAttestorMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
- * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetAttestorMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
- * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getUpdateAttestorMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
- * Returns INVALID_ARGUMENT if the project does not exist.
- *
- */
- public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getListAttestorsMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
- * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public com.google.protobuf.Empty deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getDeleteAttestorMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- * Google Cloud Management Service for Binary Authorization admission policies
- * and attestation authorities.
- * This API implements a REST model with the following objects:
- * * [Policy][google.cloud.binaryauthorization.v1.Policy]
- * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
- *
- */
- public static final class BinauthzManagementServiceV1FutureStub extends io.grpc.stub.AbstractFutureStub {
- private BinauthzManagementServiceV1FutureStub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected BinauthzManagementServiceV1FutureStub build(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new BinauthzManagementServiceV1FutureStub(channel, callOptions);
- }
-
- /**
- *
- * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
- * a container image, before the project is allowed to deploy that
- * image. There is at most one policy per project. All image admission
- * requests are permitted if a project has no policy.
- * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
- * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getPolicy(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
- * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
- * conditions with concurrent policy enforcement (or management!)
- * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
- * if the request is malformed.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture updatePolicy(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
- * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
- * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
- * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture createAttestor(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
- * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getAttestor(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
- * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture updateAttestor(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
- * Returns INVALID_ARGUMENT if the project does not exist.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture listAttestors(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
- * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture deleteAttestor(
- com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request);
- }
- }
-
- private static final int METHODID_GET_POLICY = 0;
- private static final int METHODID_UPDATE_POLICY = 1;
- private static final int METHODID_CREATE_ATTESTOR = 2;
- private static final int METHODID_GET_ATTESTOR = 3;
- private static final int METHODID_UPDATE_ATTESTOR = 4;
- private static final int METHODID_LIST_ATTESTORS = 5;
- private static final int METHODID_DELETE_ATTESTOR = 6;
-
- private static final class MethodHandlers implements
- io.grpc.stub.ServerCalls.UnaryMethod