Class GrafeasGrpc.GrafeasBlockingStub (2.25.0)

public static final class GrafeasGrpc.GrafeasBlockingStub extends AbstractBlockingStub<GrafeasGrpc.GrafeasBlockingStub>

A stub to allow clients to do synchronous rpc calls to service Grafeas.

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.AbstractBlockingStub > GrafeasGrpc.GrafeasBlockingStub

Methods

batchCreateNotes(BatchCreateNotesRequest request)

public BatchCreateNotesResponse batchCreateNotes(BatchCreateNotesRequest request)

Creates new notes in batch.

Parameter
NameDescription
requestBatchCreateNotesRequest
Returns
TypeDescription
BatchCreateNotesResponse

batchCreateOccurrences(BatchCreateOccurrencesRequest request)

public BatchCreateOccurrencesResponse batchCreateOccurrences(BatchCreateOccurrencesRequest request)

Creates new occurrences in batch.

Parameter
NameDescription
requestBatchCreateOccurrencesRequest
Returns
TypeDescription
BatchCreateOccurrencesResponse

build(Channel channel, CallOptions callOptions)

protected GrafeasGrpc.GrafeasBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
GrafeasGrpc.GrafeasBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createNote(CreateNoteRequest request)

public Note createNote(CreateNoteRequest request)

Creates a new note.

Parameter
NameDescription
requestCreateNoteRequest
Returns
TypeDescription
Note

createOccurrence(CreateOccurrenceRequest request)

public Occurrence createOccurrence(CreateOccurrenceRequest request)

Creates a new occurrence.

Parameter
NameDescription
requestCreateOccurrenceRequest
Returns
TypeDescription
Occurrence

deleteNote(DeleteNoteRequest request)

public Empty deleteNote(DeleteNoteRequest request)

Deletes the specified note.

Parameter
NameDescription
requestDeleteNoteRequest
Returns
TypeDescription
Empty

deleteOccurrence(DeleteOccurrenceRequest request)

public Empty deleteOccurrence(DeleteOccurrenceRequest 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.

Parameter
NameDescription
requestDeleteOccurrenceRequest
Returns
TypeDescription
Empty