Class GrafeasConnection (2.17.0)

This interface defines virtual methods for each of the user-facing overload sets in GrafeasClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type GrafeasClient.

To create a concrete instance, see MakeGrafeasConnection().

For mocking, see containeranalysis_v1_mocks::MockGrafeasConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetOccurrence(grafeas::v1::GetOccurrenceRequest const &)

Parameter
Name Description
request grafeas::v1::GetOccurrenceRequest const &
Returns
Type Description
StatusOr< grafeas::v1::Occurrence >

virtual ListOccurrences(grafeas::v1::ListOccurrencesRequest)

Parameter
Name Description
request grafeas::v1::ListOccurrencesRequest
Returns
Type Description
StreamRange< grafeas::v1::Occurrence >

virtual DeleteOccurrence(grafeas::v1::DeleteOccurrenceRequest const &)

Parameter
Name Description
request grafeas::v1::DeleteOccurrenceRequest const &
Returns
Type Description
Status

virtual CreateOccurrence(grafeas::v1::CreateOccurrenceRequest const &)

Parameter
Name Description
request grafeas::v1::CreateOccurrenceRequest const &
Returns
Type Description
StatusOr< grafeas::v1::Occurrence >

virtual BatchCreateOccurrences(grafeas::v1::BatchCreateOccurrencesRequest const &)

Parameter
Name Description
request grafeas::v1::BatchCreateOccurrencesRequest const &
Returns
Type Description
StatusOr< grafeas::v1::BatchCreateOccurrencesResponse >

virtual UpdateOccurrence(grafeas::v1::UpdateOccurrenceRequest const &)

Parameter
Name Description
request grafeas::v1::UpdateOccurrenceRequest const &
Returns
Type Description
StatusOr< grafeas::v1::Occurrence >

virtual GetOccurrenceNote(grafeas::v1::GetOccurrenceNoteRequest const &)

Parameter
Name Description
request grafeas::v1::GetOccurrenceNoteRequest const &
Returns
Type Description
StatusOr< grafeas::v1::Note >

virtual GetNote(grafeas::v1::GetNoteRequest const &)

Parameter
Name Description
request grafeas::v1::GetNoteRequest const &
Returns
Type Description
StatusOr< grafeas::v1::Note >

virtual ListNotes(grafeas::v1::ListNotesRequest)

Parameter
Name Description
request grafeas::v1::ListNotesRequest
Returns
Type Description
StreamRange< grafeas::v1::Note >

virtual DeleteNote(grafeas::v1::DeleteNoteRequest const &)

Parameter
Name Description
request grafeas::v1::DeleteNoteRequest const &
Returns
Type Description
Status

virtual CreateNote(grafeas::v1::CreateNoteRequest const &)

Parameter
Name Description
request grafeas::v1::CreateNoteRequest const &
Returns
Type Description
StatusOr< grafeas::v1::Note >

virtual BatchCreateNotes(grafeas::v1::BatchCreateNotesRequest const &)

Parameter
Name Description
request grafeas::v1::BatchCreateNotesRequest const &
Returns
Type Description
StatusOr< grafeas::v1::BatchCreateNotesResponse >

virtual UpdateNote(grafeas::v1::UpdateNoteRequest const &)

Parameter
Name Description
request grafeas::v1::UpdateNoteRequest const &
Returns
Type Description
StatusOr< grafeas::v1::Note >

virtual ListNoteOccurrences(grafeas::v1::ListNoteOccurrencesRequest)

Parameter
Name Description
request grafeas::v1::ListNoteOccurrencesRequest
Returns
Type Description
StreamRange< grafeas::v1::Occurrence >