3.16.0 (latest) 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

    [BindServiceMethod(typeof(Grafeas), "BindService")]
    public abstract class Grafeas.GrafeasBase

Reference documentation and code samples for the Grafeas v1 API class Grafeas.GrafeasBase.

Base class for server-side implementations of Grafeas

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Grafeas.GrafeasBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Grafeas.V1](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.md.txt)

## Assembly

Grafeas.V1.dll

## Methods

### BatchCreateNotes(BatchCreateNotesRequest, ServerCallContext)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotes(BatchCreateNotesRequest request, ServerCallContext context)

Creates new notes in batch.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchCreateNotesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskBatchCreateNotesResponse` | The response to send back to the client (wrapped by a task). |

### BatchCreateOccurrences(BatchCreateOccurrencesRequest, ServerCallContext)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrences(BatchCreateOccurrencesRequest request, ServerCallContext context)

Creates new occurrences in batch.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchCreateOccurrencesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskBatchCreateOccurrencesResponse` | The response to send back to the client (wrapped by a task). |

### CreateNote(CreateNoteRequest, ServerCallContext)

    public virtual Task<Note> CreateNote(CreateNoteRequest request, ServerCallContext context)

Creates a new note.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateNoteRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNote` | The response to send back to the client (wrapped by a task). |

### CreateOccurrence(CreateOccurrenceRequest, ServerCallContext)

    public virtual Task<Occurrence> CreateOccurrence(CreateOccurrenceRequest request, ServerCallContext context)

Creates a new occurrence.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateOccurrenceRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOccurrence` | The response to send back to the client (wrapped by a task). |

### DeleteNote(DeleteNoteRequest, ServerCallContext)

    public virtual Task<Empty> DeleteNote(DeleteNoteRequest request, ServerCallContext context)

Deletes the specified note.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteNoteRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEmpty` | The response to send back to the client (wrapped by a task). |

### DeleteOccurrence(DeleteOccurrenceRequest, ServerCallContext)

    public virtual Task<Empty> DeleteOccurrence(DeleteOccurrenceRequest request, ServerCallContext context)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteOccurrenceRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEmpty` | The response to send back to the client (wrapped by a task). |

### GetNote(GetNoteRequest, ServerCallContext)

    public virtual Task<Note> GetNote(GetNoteRequest request, ServerCallContext context)

Gets the specified note.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetNoteRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNote` | The response to send back to the client (wrapped by a task). |

### GetOccurrence(GetOccurrenceRequest, ServerCallContext)

    public virtual Task<Occurrence> GetOccurrence(GetOccurrenceRequest request, ServerCallContext context)

Gets the specified occurrence.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetOccurrenceRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOccurrence` | The response to send back to the client (wrapped by a task). |

### GetOccurrenceNote(GetOccurrenceNoteRequest, ServerCallContext)

    public virtual Task<Note> GetOccurrenceNote(GetOccurrenceNoteRequest request, ServerCallContext context)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetOccurrenceNoteRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNote` | The response to send back to the client (wrapped by a task). |

### ListNoteOccurrences(ListNoteOccurrencesRequest, ServerCallContext)

    public virtual Task<ListNoteOccurrencesResponse> ListNoteOccurrences(ListNoteOccurrencesRequest request, ServerCallContext context)

Lists occurrences referencing the specified note. Provider projects can use
this method to get all occurrences across consumer projects referencing the
specified note.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNoteOccurrencesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListNoteOccurrencesResponse` | The response to send back to the client (wrapped by a task). |

### ListNotes(ListNotesRequest, ServerCallContext)

    public virtual Task<ListNotesResponse> ListNotes(ListNotesRequest request, ServerCallContext context)

Lists notes for the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNotesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListNotesResponse` | The response to send back to the client (wrapped by a task). |

### ListOccurrences(ListOccurrencesRequest, ServerCallContext)

    public virtual Task<ListOccurrencesResponse> ListOccurrences(ListOccurrencesRequest request, ServerCallContext context)

Lists occurrences for the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListOccurrencesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListOccurrencesResponse` | The response to send back to the client (wrapped by a task). |

### UpdateNote(UpdateNoteRequest, ServerCallContext)

    public virtual Task<Note> UpdateNote(UpdateNoteRequest request, ServerCallContext context)

Updates the specified note.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateNoteRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNote` | The response to send back to the client (wrapped by a task). |

### UpdateOccurrence(UpdateOccurrenceRequest, ServerCallContext)

    public virtual Task<Occurrence> UpdateOccurrence(UpdateOccurrenceRequest request, ServerCallContext context)

Updates the specified occurrence.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateOccurrenceRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOccurrence` | The response to send back to the client (wrapped by a task). |