diff --git a/.gitignore b/.gitignore
index 19f0ce05fe3e..6f6fa035a9d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,6 @@
# Packages
dist
-build
bin
var
sdist
diff --git a/README.md b/README.md
index bba10b9e3640..e1fa4c10a06d 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,7 @@ This library supports the following Google Cloud Platform services with clients
- [BigQuery Data Transfer](google-cloud-clients/google-cloud-bigquerydatatransfer) (Beta)
- [Cloud AutoML](google-cloud-clients/google-cloud-automl) (Beta)
+- [Cloud Container Analysis](google-cloud-clients/google-cloud-containeranalysis) (Beta)
- [Cloud Data Loss Prevention](google-cloud-clients/google-cloud-dlp) (Beta)
- [Cloud Firestore](google-cloud-clients/google-cloud-firestore) (Beta)
- [Cloud IoT Core](google-cloud-clients/google-cloud-iot) (Beta)
diff --git a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml
new file mode 100644
index 000000000000..88def3db2ce9
--- /dev/null
+++ b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml
@@ -0,0 +1,31 @@
+
+ * Retrieves analysis results of Cloud components such as Docker container + * images. The Container Analysis API is an implementation of the + * [Grafeas](grafeas.io) API. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/devtools/containeranalysis/v1beta1/containeranalysis.proto") +public final class ContainerAnalysisV1Beta1Grpc { + + private ContainerAnalysisV1Beta1Grpc() {} + + public static final String SERVICE_NAME = "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetIamPolicyMethod()} instead. + public static final io.grpc.MethodDescriptor
+ * Retrieves analysis results of Cloud components such as Docker container + * images. The Container Analysis API is an implementation of the + * [Grafeas](grafeas.io) API. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ + public static abstract class ContainerAnalysisV1Beta1ImplBase implements io.grpc.BindableService { + + /** + *
+ * Sets the access control policy on the specified note or occurrence. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is + * a note or an occurrence, respectively. + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Gets the access control policy for a note or an occurrence resource. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is + * a note or occurrence, respectively. + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Returns the permissions that a caller has on the specified note or + * occurrence. Requires list permission on the project (for example, + * `containeranalysis.notes.list`). + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets the specified scan configuration. + *+ */ + public void getScanConfig(com.google.containeranalysis.v1beta1.GetScanConfigRequest request, + io.grpc.stub.StreamObserver
+ * Lists scan configurations for the specified project. + *+ */ + public void listScanConfigs(com.google.containeranalysis.v1beta1.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver
+ * Updates the specified scan configuration. + *+ */ + public void updateScanConfig(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves analysis results of Cloud components such as Docker container + * images. The Container Analysis API is an implementation of the + * [Grafeas](grafeas.io) API. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ + public static final class ContainerAnalysisV1Beta1Stub extends io.grpc.stub.AbstractStub
+ * Sets the access control policy on the specified note or occurrence. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is + * a note or an occurrence, respectively. + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Gets the access control policy for a note or an occurrence resource. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is + * a note or occurrence, respectively. + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Returns the permissions that a caller has on the specified note or + * occurrence. Requires list permission on the project (for example, + * `containeranalysis.notes.list`). + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets the specified scan configuration. + *+ */ + public void getScanConfig(com.google.containeranalysis.v1beta1.GetScanConfigRequest request, + io.grpc.stub.StreamObserver
+ * Lists scan configurations for the specified project. + *+ */ + public void listScanConfigs(com.google.containeranalysis.v1beta1.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver
+ * Updates the specified scan configuration. + *+ */ + public void updateScanConfig(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves analysis results of Cloud components such as Docker container + * images. The Container Analysis API is an implementation of the + * [Grafeas](grafeas.io) API. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ + public static final class ContainerAnalysisV1Beta1BlockingStub extends io.grpc.stub.AbstractStub
+ * Sets the access control policy on the specified note or occurrence. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is + * a note or an occurrence, respectively. + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getSetIamPolicyMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Gets the access control policy for a note or an occurrence resource. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is + * a note or occurrence, respectively. + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getGetIamPolicyMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Returns the permissions that a caller has on the specified note or + * occurrence. Requires list permission on the project (for example, + * `containeranalysis.notes.list`). + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return blockingUnaryCall( + getChannel(), getTestIamPermissionsMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Gets the specified scan configuration. + *+ */ + public com.google.containeranalysis.v1beta1.ScanConfig getScanConfig(com.google.containeranalysis.v1beta1.GetScanConfigRequest request) { + return blockingUnaryCall( + getChannel(), getGetScanConfigMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Lists scan configurations for the specified project. + *+ */ + public com.google.containeranalysis.v1beta1.ListScanConfigsResponse listScanConfigs(com.google.containeranalysis.v1beta1.ListScanConfigsRequest request) { + return blockingUnaryCall( + getChannel(), getListScanConfigsMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Updates the specified scan configuration. + *+ */ + public com.google.containeranalysis.v1beta1.ScanConfig updateScanConfig(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateScanConfigMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+ * Retrieves analysis results of Cloud components such as Docker container + * images. The Container Analysis API is an implementation of the + * [Grafeas](grafeas.io) API. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ + public static final class ContainerAnalysisV1Beta1FutureStub extends io.grpc.stub.AbstractStub
+ * Sets the access control policy on the specified note or occurrence. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is + * a note or an occurrence, respectively. + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets the access control policy for a note or an occurrence resource. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is + * a note or occurrence, respectively. + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Returns the permissions that a caller has on the specified note or + * occurrence. Requires list permission on the project (for example, + * `containeranalysis.notes.list`). + * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for + * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + * occurrences. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets the specified scan configuration. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists scan configurations for the specified project. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the specified scan configuration. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * [Grafeas](grafeas.io) API. + * Retrieves analysis results of Cloud components such as Docker container + * images. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto") +public final class GrafeasV1Beta1Grpc { + + private GrafeasV1Beta1Grpc() {} + + public static final String SERVICE_NAME = "grafeas.v1beta1.GrafeasV1Beta1"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetOccurrenceMethod()} instead. + public static final io.grpc.MethodDescriptor
+ * [Grafeas](grafeas.io) API. + * Retrieves analysis results of Cloud components such as Docker container + * images. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ + public static abstract class GrafeasV1Beta1ImplBase implements io.grpc.BindableService { + + /** + *
+ * Gets the specified occurrence. + *+ */ + public void getOccurrence(io.grafeas.v1beta1.GetOccurrenceRequest request, + io.grpc.stub.StreamObserver
+ * Lists occurrences for the specified project. + *+ */ + public void listOccurrences(io.grafeas.v1beta1.ListOccurrencesRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified occurrence. For example, use this method to delete an + * occurrence when the occurrence is no longer applicable for the given + * resource. + *+ */ + public void deleteOccurrence(io.grafeas.v1beta1.DeleteOccurrenceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new occurrence. + *+ */ + public void createOccurrence(io.grafeas.v1beta1.CreateOccurrenceRequest request, + io.grpc.stub.StreamObserver
+ * Creates new occurrences in batch. + *+ */ + public void batchCreateOccurrences(io.grafeas.v1beta1.BatchCreateOccurrencesRequest request, + io.grpc.stub.StreamObserver
+ * Updates the specified occurrence. + *+ */ + public void updateOccurrence(io.grafeas.v1beta1.UpdateOccurrenceRequest request, + io.grpc.stub.StreamObserver
+ * Gets the note attached to the specified occurrence. Consumer projects can + * use this method to get a note that belongs to a provider project. + *+ */ + public void getOccurrenceNote(io.grafeas.v1beta1.GetOccurrenceNoteRequest request, + io.grpc.stub.StreamObserver
+ * Gets the specified note. + *+ */ + public void getNote(io.grafeas.v1beta1.GetNoteRequest request, + io.grpc.stub.StreamObserver
+ * Lists notes for the specified project. + *+ */ + public void listNotes(io.grafeas.v1beta1.ListNotesRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified note. + *+ */ + public void deleteNote(io.grafeas.v1beta1.DeleteNoteRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new note. + *+ */ + public void createNote(io.grafeas.v1beta1.CreateNoteRequest request, + io.grpc.stub.StreamObserver
+ * Creates new notes in batch. + *+ */ + public void batchCreateNotes(io.grafeas.v1beta1.BatchCreateNotesRequest request, + io.grpc.stub.StreamObserver
+ * Updates the specified note. + *+ */ + public void updateNote(io.grafeas.v1beta1.UpdateNoteRequest request, + io.grpc.stub.StreamObserver
+ * Lists occurrences referencing the specified note. Provider projects can use + * this method to get all occurrences across consumer projects referencing the + * specified note. + *+ */ + public void listNoteOccurrences(io.grafeas.v1beta1.ListNoteOccurrencesRequest request, + io.grpc.stub.StreamObserver
+ * Gets a summary of the number and severity of occurrences. + *+ */ + public void getVulnerabilityOccurrencesSummary(io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request, + io.grpc.stub.StreamObserver
+ * [Grafeas](grafeas.io) API. + * Retrieves analysis results of Cloud components such as Docker container + * images. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ + public static final class GrafeasV1Beta1Stub extends io.grpc.stub.AbstractStub
+ * Gets the specified occurrence. + *+ */ + public void getOccurrence(io.grafeas.v1beta1.GetOccurrenceRequest request, + io.grpc.stub.StreamObserver
+ * Lists occurrences for the specified project. + *+ */ + public void listOccurrences(io.grafeas.v1beta1.ListOccurrencesRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified occurrence. For example, use this method to delete an + * occurrence when the occurrence is no longer applicable for the given + * resource. + *+ */ + public void deleteOccurrence(io.grafeas.v1beta1.DeleteOccurrenceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new occurrence. + *+ */ + public void createOccurrence(io.grafeas.v1beta1.CreateOccurrenceRequest request, + io.grpc.stub.StreamObserver
+ * Creates new occurrences in batch. + *+ */ + public void batchCreateOccurrences(io.grafeas.v1beta1.BatchCreateOccurrencesRequest request, + io.grpc.stub.StreamObserver
+ * Updates the specified occurrence. + *+ */ + public void updateOccurrence(io.grafeas.v1beta1.UpdateOccurrenceRequest request, + io.grpc.stub.StreamObserver
+ * Gets the note attached to the specified occurrence. Consumer projects can + * use this method to get a note that belongs to a provider project. + *+ */ + public void getOccurrenceNote(io.grafeas.v1beta1.GetOccurrenceNoteRequest request, + io.grpc.stub.StreamObserver
+ * Gets the specified note. + *+ */ + public void getNote(io.grafeas.v1beta1.GetNoteRequest request, + io.grpc.stub.StreamObserver
+ * Lists notes for the specified project. + *+ */ + public void listNotes(io.grafeas.v1beta1.ListNotesRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified note. + *+ */ + public void deleteNote(io.grafeas.v1beta1.DeleteNoteRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new note. + *+ */ + public void createNote(io.grafeas.v1beta1.CreateNoteRequest request, + io.grpc.stub.StreamObserver
+ * Creates new notes in batch. + *+ */ + public void batchCreateNotes(io.grafeas.v1beta1.BatchCreateNotesRequest request, + io.grpc.stub.StreamObserver
+ * Updates the specified note. + *+ */ + public void updateNote(io.grafeas.v1beta1.UpdateNoteRequest request, + io.grpc.stub.StreamObserver
+ * Lists occurrences referencing the specified note. Provider projects can use + * this method to get all occurrences across consumer projects referencing the + * specified note. + *+ */ + public void listNoteOccurrences(io.grafeas.v1beta1.ListNoteOccurrencesRequest request, + io.grpc.stub.StreamObserver
+ * Gets a summary of the number and severity of occurrences. + *+ */ + public void getVulnerabilityOccurrencesSummary(io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request, + io.grpc.stub.StreamObserver
+ * [Grafeas](grafeas.io) API. + * Retrieves analysis results of Cloud components such as Docker container + * images. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ + public static final class GrafeasV1Beta1BlockingStub extends io.grpc.stub.AbstractStub
+ * Gets the specified occurrence. + *+ */ + public io.grafeas.v1beta1.Occurrence getOccurrence(io.grafeas.v1beta1.GetOccurrenceRequest request) { + return blockingUnaryCall( + getChannel(), getGetOccurrenceMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Lists occurrences for the specified project. + *+ */ + public io.grafeas.v1beta1.ListOccurrencesResponse listOccurrences(io.grafeas.v1beta1.ListOccurrencesRequest request) { + return blockingUnaryCall( + getChannel(), getListOccurrencesMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Deletes the specified occurrence. For example, use this method to delete an + * occurrence when the occurrence is no longer applicable for the given + * resource. + *+ */ + public com.google.protobuf.Empty deleteOccurrence(io.grafeas.v1beta1.DeleteOccurrenceRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteOccurrenceMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Creates a new occurrence. + *+ */ + public io.grafeas.v1beta1.Occurrence createOccurrence(io.grafeas.v1beta1.CreateOccurrenceRequest request) { + return blockingUnaryCall( + getChannel(), getCreateOccurrenceMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Creates new occurrences in batch. + *+ */ + public io.grafeas.v1beta1.BatchCreateOccurrencesResponse batchCreateOccurrences(io.grafeas.v1beta1.BatchCreateOccurrencesRequest request) { + return blockingUnaryCall( + getChannel(), getBatchCreateOccurrencesMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Updates the specified occurrence. + *+ */ + public io.grafeas.v1beta1.Occurrence updateOccurrence(io.grafeas.v1beta1.UpdateOccurrenceRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateOccurrenceMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Gets the note attached to the specified occurrence. Consumer projects can + * use this method to get a note that belongs to a provider project. + *+ */ + public io.grafeas.v1beta1.Note getOccurrenceNote(io.grafeas.v1beta1.GetOccurrenceNoteRequest request) { + return blockingUnaryCall( + getChannel(), getGetOccurrenceNoteMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Gets the specified note. + *+ */ + public io.grafeas.v1beta1.Note getNote(io.grafeas.v1beta1.GetNoteRequest request) { + return blockingUnaryCall( + getChannel(), getGetNoteMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Lists notes for the specified project. + *+ */ + public io.grafeas.v1beta1.ListNotesResponse listNotes(io.grafeas.v1beta1.ListNotesRequest request) { + return blockingUnaryCall( + getChannel(), getListNotesMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Deletes the specified note. + *+ */ + public com.google.protobuf.Empty deleteNote(io.grafeas.v1beta1.DeleteNoteRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteNoteMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Creates a new note. + *+ */ + public io.grafeas.v1beta1.Note createNote(io.grafeas.v1beta1.CreateNoteRequest request) { + return blockingUnaryCall( + getChannel(), getCreateNoteMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Creates new notes in batch. + *+ */ + public io.grafeas.v1beta1.BatchCreateNotesResponse batchCreateNotes(io.grafeas.v1beta1.BatchCreateNotesRequest request) { + return blockingUnaryCall( + getChannel(), getBatchCreateNotesMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Updates the specified note. + *+ */ + public io.grafeas.v1beta1.Note updateNote(io.grafeas.v1beta1.UpdateNoteRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateNoteMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Lists occurrences referencing the specified note. Provider projects can use + * this method to get all occurrences across consumer projects referencing the + * specified note. + *+ */ + public io.grafeas.v1beta1.ListNoteOccurrencesResponse listNoteOccurrences(io.grafeas.v1beta1.ListNoteOccurrencesRequest request) { + return blockingUnaryCall( + getChannel(), getListNoteOccurrencesMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Gets a summary of the number and severity of occurrences. + *+ */ + public io.grafeas.v1beta1.VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request) { + return blockingUnaryCall( + getChannel(), getGetVulnerabilityOccurrencesSummaryMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+ * [Grafeas](grafeas.io) API. + * Retrieves analysis results of Cloud components such as Docker container + * images. + * Analysis results are stored as a series of occurrences. An `Occurrence` + * contains information about a specific analysis instance on a resource. An + * occurrence refers to a `Note`. A note contains details describing the + * analysis and is generally stored in a separate project, called a `Provider`. + * Multiple occurrences can refer to the same note. + * For example, an SSL vulnerability could affect multiple images. In this case, + * there would be one note for the vulnerability and an occurrence for each + * image with the vulnerability referring to that note. + *+ */ + public static final class GrafeasV1Beta1FutureStub extends io.grpc.stub.AbstractStub
+ * Gets the specified occurrence. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists occurrences for the specified project. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes the specified occurrence. For example, use this method to delete an + * occurrence when the occurrence is no longer applicable for the given + * resource. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new occurrence. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates new occurrences in batch. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the specified occurrence. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets the note attached to the specified occurrence. Consumer projects can + * use this method to get a note that belongs to a provider project. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets the specified note. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists notes for the specified project. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes the specified note. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new note. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates new notes in batch. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the specified note. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists occurrences referencing the specified note. Provider projects can use + * this method to get all occurrences across consumer projects referencing the + * specified note. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets a summary of the number and severity of occurrences. + *+ */ + public com.google.common.util.concurrent.ListenableFuture