public static final class GrafeasV1Beta1Grpc.GrafeasV1Beta1Stub extends AbstractAsyncStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1Stub>
Grafeas 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.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
GrafeasV1Beta1Grpc.GrafeasV1Beta1Stub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
batchCreateNotes(BatchCreateNotesRequest request, StreamObserver<BatchCreateNotesResponse> responseObserver)
public void batchCreateNotes(BatchCreateNotesRequest request, StreamObserver<BatchCreateNotesResponse> responseObserver)
Creates new notes in batch.
Parameters
batchCreateOccurrences(BatchCreateOccurrencesRequest request, StreamObserver<BatchCreateOccurrencesResponse> responseObserver)
public void batchCreateOccurrences(BatchCreateOccurrencesRequest request, StreamObserver<BatchCreateOccurrencesResponse> responseObserver)
Creates new occurrences in batch.
Parameters
build(Channel channel, CallOptions callOptions)
protected GrafeasV1Beta1Grpc.GrafeasV1Beta1Stub build(Channel channel, CallOptions callOptions)
Parameters
Name | Description |
channel | io.grpc.Channel
|
callOptions | io.grpc.CallOptions
|
Returns
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createNote(CreateNoteRequest request, StreamObserver<Note> responseObserver)
public void createNote(CreateNoteRequest request, StreamObserver<Note> responseObserver)
Parameters
createOccurrence(CreateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
public void createOccurrence(CreateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
Creates a new occurrence.
Parameters
deleteNote(DeleteNoteRequest request, StreamObserver<Empty> responseObserver)
public void deleteNote(DeleteNoteRequest request, StreamObserver<Empty> responseObserver)
Deletes the specified note.
Parameters
deleteOccurrence(DeleteOccurrenceRequest request, StreamObserver<Empty> responseObserver)
public void deleteOccurrence(DeleteOccurrenceRequest request, StreamObserver<Empty> responseObserver)
Deletes the specified occurrence. For example, use this method to delete an
occurrence when the occurrence is no longer applicable for the given
resource.
Parameters
getNote(GetNoteRequest request, StreamObserver<Note> responseObserver)
public void getNote(GetNoteRequest request, StreamObserver<Note> responseObserver)
Parameters
getOccurrence(GetOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
public void getOccurrence(GetOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
Gets the specified occurrence.
Parameters
getOccurrenceNote(GetOccurrenceNoteRequest request, StreamObserver<Note> responseObserver)
public void getOccurrenceNote(GetOccurrenceNoteRequest request, StreamObserver<Note> responseObserver)
Gets the note attached to the specified occurrence. Consumer projects can
use this method to get a note that belongs to a provider project.
Parameters
getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request, StreamObserver<VulnerabilityOccurrencesSummary> responseObserver)
public void getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request, StreamObserver<VulnerabilityOccurrencesSummary> responseObserver)
Gets a summary of the number and severity of occurrences.
Parameters
listNoteOccurrences(ListNoteOccurrencesRequest request, StreamObserver<ListNoteOccurrencesResponse> responseObserver)
public void listNoteOccurrences(ListNoteOccurrencesRequest request, StreamObserver<ListNoteOccurrencesResponse> responseObserver)
Lists occurrences referencing the specified note. Provider projects can use
this method to get all occurrences across consumer projects referencing the
specified note.
Parameters
listNotes(ListNotesRequest request, StreamObserver<ListNotesResponse> responseObserver)
public void listNotes(ListNotesRequest request, StreamObserver<ListNotesResponse> responseObserver)
Lists notes for the specified project.
Parameters
listOccurrences(ListOccurrencesRequest request, StreamObserver<ListOccurrencesResponse> responseObserver)
public void listOccurrences(ListOccurrencesRequest request, StreamObserver<ListOccurrencesResponse> responseObserver)
Lists occurrences for the specified project.
Parameters
updateNote(UpdateNoteRequest request, StreamObserver<Note> responseObserver)
public void updateNote(UpdateNoteRequest request, StreamObserver<Note> responseObserver)
Updates the specified note.
Parameters
updateOccurrence(UpdateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
public void updateOccurrence(UpdateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
Updates the specified occurrence.
Parameters