Class GrafeasClient (2.2.0)

public abstract class GrafeasClient

Grafeas client wrapper, for convenient use.

Inheritance

Object > GrafeasClient

Derived Types

Namespace

Grafeas.V1

Assembly

Grafeas.V1.dll

Remarks

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.

Properties

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Grafeas scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default Grafeas scopes are:

    GrpcClient

    public virtual Grafeas.GrafeasClient GrpcClient { get; }

    The underlying gRPC Grafeas client

    Property Value
    TypeDescription
    Grafeas.GrafeasClient

    Methods

    BatchCreateNotes(BatchCreateNotesRequest, CallSettings)

    public virtual BatchCreateNotesResponse BatchCreateNotes(BatchCreateNotesRequest request, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    requestBatchCreateNotesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateNotesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateNotesRequest request = new BatchCreateNotesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Notes = { { "", new Note() }, },
    };
    // Make the request
    BatchCreateNotesResponse response = grafeasClient.BatchCreateNotes(request);
    

    BatchCreateNotes(ProjectName, IDictionary<String, Note>, CallSettings)

    public virtual BatchCreateNotesResponse BatchCreateNotes(ProjectName parent, IDictionary<string, Note> notes, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionary<String, Note>

    The notes to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateNotesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = grafeasClient.BatchCreateNotes(parent, notes);
    

    BatchCreateNotes(String, IDictionary<String, Note>, CallSettings)

    public virtual BatchCreateNotesResponse BatchCreateNotes(string parent, IDictionary<string, Note> notes, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionary<String, Note>

    The notes to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateNotesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = grafeasClient.BatchCreateNotes(parent, notes);
    

    BatchCreateNotesAsync(BatchCreateNotesRequest, CallSettings)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(BatchCreateNotesRequest request, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    requestBatchCreateNotesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<BatchCreateNotesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateNotesRequest request = new BatchCreateNotesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Notes = { { "", new Note() }, },
    };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(request);
    

    BatchCreateNotesAsync(BatchCreateNotesRequest, CancellationToken)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(BatchCreateNotesRequest request, CancellationToken cancellationToken)

    Creates new notes in batch.

    Parameters
    NameDescription
    requestBatchCreateNotesRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<BatchCreateNotesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateNotesRequest request = new BatchCreateNotesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Notes = { { "", new Note() }, },
    };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(request);
    

    BatchCreateNotesAsync(ProjectName, IDictionary<String, Note>, CallSettings)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(ProjectName parent, IDictionary<string, Note> notes, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionary<String, Note>

    The notes to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<BatchCreateNotesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(parent, notes);
    

    BatchCreateNotesAsync(ProjectName, IDictionary<String, Note>, CancellationToken)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(ProjectName parent, IDictionary<string, Note> notes, CancellationToken cancellationToken)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionary<String, Note>

    The notes to create. Max allowed length is 1000.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<BatchCreateNotesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(parent, notes);
    

    BatchCreateNotesAsync(String, IDictionary<String, Note>, CallSettings)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(string parent, IDictionary<string, Note> notes, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionary<String, Note>

    The notes to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<BatchCreateNotesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(parent, notes);
    

    BatchCreateNotesAsync(String, IDictionary<String, Note>, CancellationToken)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(string parent, IDictionary<string, Note> notes, CancellationToken cancellationToken)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionary<String, Note>

    The notes to create. Max allowed length is 1000.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<BatchCreateNotesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(parent, notes);
    

    BatchCreateOccurrences(BatchCreateOccurrencesRequest, CallSettings)

    public virtual BatchCreateOccurrencesResponse BatchCreateOccurrences(BatchCreateOccurrencesRequest request, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    requestBatchCreateOccurrencesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateOccurrencesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrences = { new Occurrence(), },
    };
    // Make the request
    BatchCreateOccurrencesResponse response = grafeasClient.BatchCreateOccurrences(request);
    

    BatchCreateOccurrences(ProjectName, IEnumerable<Occurrence>, CallSettings)

    public virtual BatchCreateOccurrencesResponse BatchCreateOccurrences(ProjectName parent, IEnumerable<Occurrence> occurrences, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerable<Occurrence>

    The occurrences to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateOccurrencesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = grafeasClient.BatchCreateOccurrences(parent, occurrences);
    

    BatchCreateOccurrences(String, IEnumerable<Occurrence>, CallSettings)

    public virtual BatchCreateOccurrencesResponse BatchCreateOccurrences(string parent, IEnumerable<Occurrence> occurrences, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerable<Occurrence>

    The occurrences to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateOccurrencesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = grafeasClient.BatchCreateOccurrences(parent, occurrences);
    

    BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest, CallSettings)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest request, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    requestBatchCreateOccurrencesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<BatchCreateOccurrencesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrences = { new Occurrence(), },
    };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(request);
    

    BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest, CancellationToken)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest request, CancellationToken cancellationToken)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    requestBatchCreateOccurrencesRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<BatchCreateOccurrencesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrences = { new Occurrence(), },
    };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(request);
    

    BatchCreateOccurrencesAsync(ProjectName, IEnumerable<Occurrence>, CallSettings)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(ProjectName parent, IEnumerable<Occurrence> occurrences, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerable<Occurrence>

    The occurrences to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<BatchCreateOccurrencesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(parent, occurrences);
    

    BatchCreateOccurrencesAsync(ProjectName, IEnumerable<Occurrence>, CancellationToken)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(ProjectName parent, IEnumerable<Occurrence> occurrences, CancellationToken cancellationToken)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerable<Occurrence>

    The occurrences to create. Max allowed length is 1000.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<BatchCreateOccurrencesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(parent, occurrences);
    

    BatchCreateOccurrencesAsync(String, IEnumerable<Occurrence>, CallSettings)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(string parent, IEnumerable<Occurrence> occurrences, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerable<Occurrence>

    The occurrences to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<BatchCreateOccurrencesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(parent, occurrences);
    

    BatchCreateOccurrencesAsync(String, IEnumerable<Occurrence>, CancellationToken)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(string parent, IEnumerable<Occurrence> occurrences, CancellationToken cancellationToken)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerable<Occurrence>

    The occurrences to create. Max allowed length is 1000.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<BatchCreateOccurrencesResponse>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(parent, occurrences);
    

    CreateNote(CreateNoteRequest, CallSettings)

    public virtual Note CreateNote(CreateNoteRequest request, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    requestCreateNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateNoteRequest request = new CreateNoteRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        NoteId = "",
        Note = new Note(),
    };
    // Make the request
    Note response = grafeasClient.CreateNote(request);
    

    CreateNote(ProjectName, String, Note, CallSettings)

    public virtual Note CreateNote(ProjectName parent, string noteId, Note note, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdString

    The ID to use for this note.

    noteNote

    The note to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = grafeasClient.CreateNote(parent, noteId, note);
    

    CreateNote(String, String, Note, CallSettings)

    public virtual Note CreateNote(string parent, string noteId, Note note, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdString

    The ID to use for this note.

    noteNote

    The note to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = grafeasClient.CreateNote(parent, noteId, note);
    

    CreateNoteAsync(CreateNoteRequest, CallSettings)

    public virtual Task<Note> CreateNoteAsync(CreateNoteRequest request, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    requestCreateNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateNoteRequest request = new CreateNoteRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        NoteId = "",
        Note = new Note(),
    };
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(request);
    

    CreateNoteAsync(CreateNoteRequest, CancellationToken)

    public virtual Task<Note> CreateNoteAsync(CreateNoteRequest request, CancellationToken cancellationToken)

    Creates a new note.

    Parameters
    NameDescription
    requestCreateNoteRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateNoteRequest request = new CreateNoteRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        NoteId = "",
        Note = new Note(),
    };
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(request);
    

    CreateNoteAsync(ProjectName, String, Note, CallSettings)

    public virtual Task<Note> CreateNoteAsync(ProjectName parent, string noteId, Note note, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdString

    The ID to use for this note.

    noteNote

    The note to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(parent, noteId, note);
    

    CreateNoteAsync(ProjectName, String, Note, CancellationToken)

    public virtual Task<Note> CreateNoteAsync(ProjectName parent, string noteId, Note note, CancellationToken cancellationToken)

    Creates a new note.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdString

    The ID to use for this note.

    noteNote

    The note to create.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(parent, noteId, note);
    

    CreateNoteAsync(String, String, Note, CallSettings)

    public virtual Task<Note> CreateNoteAsync(string parent, string noteId, Note note, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdString

    The ID to use for this note.

    noteNote

    The note to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(parent, noteId, note);
    

    CreateNoteAsync(String, String, Note, CancellationToken)

    public virtual Task<Note> CreateNoteAsync(string parent, string noteId, Note note, CancellationToken cancellationToken)

    Creates a new note.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdString

    The ID to use for this note.

    noteNote

    The note to create.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(parent, noteId, note);
    

    CreateOccurrence(CreateOccurrenceRequest, CallSettings)

    public virtual Occurrence CreateOccurrence(CreateOccurrenceRequest request, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    requestCreateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateOccurrenceRequest request = new CreateOccurrenceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrence = new Occurrence(),
    };
    // Make the request
    Occurrence response = grafeasClient.CreateOccurrence(request);
    

    CreateOccurrence(ProjectName, Occurrence, CallSettings)

    public virtual Occurrence CreateOccurrence(ProjectName parent, Occurrence occurrence, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = grafeasClient.CreateOccurrence(parent, occurrence);
    

    CreateOccurrence(String, Occurrence, CallSettings)

    public virtual Occurrence CreateOccurrence(string parent, Occurrence occurrence, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = grafeasClient.CreateOccurrence(parent, occurrence);
    

    CreateOccurrenceAsync(CreateOccurrenceRequest, CallSettings)

    public virtual Task<Occurrence> CreateOccurrenceAsync(CreateOccurrenceRequest request, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    requestCreateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateOccurrenceRequest request = new CreateOccurrenceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrence = new Occurrence(),
    };
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(request);
    

    CreateOccurrenceAsync(CreateOccurrenceRequest, CancellationToken)

    public virtual Task<Occurrence> CreateOccurrenceAsync(CreateOccurrenceRequest request, CancellationToken cancellationToken)

    Creates a new occurrence.

    Parameters
    NameDescription
    requestCreateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateOccurrenceRequest request = new CreateOccurrenceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrence = new Occurrence(),
    };
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(request);
    

    CreateOccurrenceAsync(ProjectName, Occurrence, CallSettings)

    public virtual Task<Occurrence> CreateOccurrenceAsync(ProjectName parent, Occurrence occurrence, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(parent, occurrence);
    

    CreateOccurrenceAsync(ProjectName, Occurrence, CancellationToken)

    public virtual Task<Occurrence> CreateOccurrenceAsync(ProjectName parent, Occurrence occurrence, CancellationToken cancellationToken)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(parent, occurrence);
    

    CreateOccurrenceAsync(String, Occurrence, CallSettings)

    public virtual Task<Occurrence> CreateOccurrenceAsync(string parent, Occurrence occurrence, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(parent, occurrence);
    

    CreateOccurrenceAsync(String, Occurrence, CancellationToken)

    public virtual Task<Occurrence> CreateOccurrenceAsync(string parent, Occurrence occurrence, CancellationToken cancellationToken)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentString

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(parent, occurrence);
    

    DeleteNote(DeleteNoteRequest, CallSettings)

    public virtual void DeleteNote(DeleteNoteRequest request, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    requestDeleteNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteNoteRequest request = new DeleteNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    grafeasClient.DeleteNote(request);
    

    DeleteNote(NoteName, CallSettings)

    public virtual void DeleteNote(NoteName name, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    grafeasClient.DeleteNote(name);
    

    DeleteNote(String, CallSettings)

    public virtual void DeleteNote(string name, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    grafeasClient.DeleteNote(name);
    

    DeleteNoteAsync(DeleteNoteRequest, CallSettings)

    public virtual Task DeleteNoteAsync(DeleteNoteRequest request, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    requestDeleteNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteNoteRequest request = new DeleteNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    await grafeasClient.DeleteNoteAsync(request);
    

    DeleteNoteAsync(DeleteNoteRequest, CancellationToken)

    public virtual Task DeleteNoteAsync(DeleteNoteRequest request, CancellationToken cancellationToken)

    Deletes the specified note.

    Parameters
    NameDescription
    requestDeleteNoteRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteNoteRequest request = new DeleteNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    await grafeasClient.DeleteNoteAsync(request);
    

    DeleteNoteAsync(NoteName, CallSettings)

    public virtual Task DeleteNoteAsync(NoteName name, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    await grafeasClient.DeleteNoteAsync(name);
    

    DeleteNoteAsync(NoteName, CancellationToken)

    public virtual Task DeleteNoteAsync(NoteName name, CancellationToken cancellationToken)

    Deletes the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    await grafeasClient.DeleteNoteAsync(name);
    

    DeleteNoteAsync(String, CallSettings)

    public virtual Task DeleteNoteAsync(string name, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    await grafeasClient.DeleteNoteAsync(name);
    

    DeleteNoteAsync(String, CancellationToken)

    public virtual Task DeleteNoteAsync(string name, CancellationToken cancellationToken)

    Deletes the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    await grafeasClient.DeleteNoteAsync(name);
    

    DeleteOccurrence(DeleteOccurrenceRequest, CallSettings)

    public virtual void DeleteOccurrence(DeleteOccurrenceRequest request, CallSettings callSettings = null)

    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
    NameDescription
    requestDeleteOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteOccurrenceRequest request = new DeleteOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    grafeasClient.DeleteOccurrence(request);
    

    DeleteOccurrence(OccurrenceName, CallSettings)

    public virtual void DeleteOccurrence(OccurrenceName name, CallSettings callSettings = null)

    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
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    grafeasClient.DeleteOccurrence(name);
    

    DeleteOccurrence(String, CallSettings)

    public virtual void DeleteOccurrence(string name, CallSettings callSettings = null)

    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
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    grafeasClient.DeleteOccurrence(name);
    

    DeleteOccurrenceAsync(DeleteOccurrenceRequest, CallSettings)

    public virtual Task DeleteOccurrenceAsync(DeleteOccurrenceRequest request, CallSettings callSettings = null)

    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
    NameDescription
    requestDeleteOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteOccurrenceRequest request = new DeleteOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    await grafeasClient.DeleteOccurrenceAsync(request);
    

    DeleteOccurrenceAsync(DeleteOccurrenceRequest, CancellationToken)

    public virtual Task DeleteOccurrenceAsync(DeleteOccurrenceRequest request, CancellationToken cancellationToken)

    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
    NameDescription
    requestDeleteOccurrenceRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteOccurrenceRequest request = new DeleteOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    await grafeasClient.DeleteOccurrenceAsync(request);
    

    DeleteOccurrenceAsync(OccurrenceName, CallSettings)

    public virtual Task DeleteOccurrenceAsync(OccurrenceName name, CallSettings callSettings = null)

    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
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    await grafeasClient.DeleteOccurrenceAsync(name);
    

    DeleteOccurrenceAsync(OccurrenceName, CancellationToken)

    public virtual Task DeleteOccurrenceAsync(OccurrenceName name, CancellationToken cancellationToken)

    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
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    await grafeasClient.DeleteOccurrenceAsync(name);
    

    DeleteOccurrenceAsync(String, CallSettings)

    public virtual Task DeleteOccurrenceAsync(string name, CallSettings callSettings = null)

    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
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    await grafeasClient.DeleteOccurrenceAsync(name);
    

    DeleteOccurrenceAsync(String, CancellationToken)

    public virtual Task DeleteOccurrenceAsync(string name, CancellationToken cancellationToken)

    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
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    await grafeasClient.DeleteOccurrenceAsync(name);
    

    GetNote(GetNoteRequest, CallSettings)

    public virtual Note GetNote(GetNoteRequest request, CallSettings callSettings = null)

    Gets the specified note.

    Parameters
    NameDescription
    requestGetNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetNoteRequest request = new GetNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    Note response = grafeasClient.GetNote(request);
    

    GetNote(NoteName, CallSettings)

    public virtual Note GetNote(NoteName name, CallSettings callSettings = null)

    Gets the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    Note response = grafeasClient.GetNote(name);
    

    GetNote(String, CallSettings)

    public virtual Note GetNote(string name, CallSettings callSettings = null)

    Gets the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    Note response = grafeasClient.GetNote(name);
    

    GetNoteAsync(GetNoteRequest, CallSettings)

    public virtual Task<Note> GetNoteAsync(GetNoteRequest request, CallSettings callSettings = null)

    Gets the specified note.

    Parameters
    NameDescription
    requestGetNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetNoteRequest request = new GetNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    Note response = await grafeasClient.GetNoteAsync(request);
    

    GetNoteAsync(GetNoteRequest, CancellationToken)

    public virtual Task<Note> GetNoteAsync(GetNoteRequest request, CancellationToken cancellationToken)

    Gets the specified note.

    Parameters
    NameDescription
    requestGetNoteRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetNoteRequest request = new GetNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    Note response = await grafeasClient.GetNoteAsync(request);
    

    GetNoteAsync(NoteName, CallSettings)

    public virtual Task<Note> GetNoteAsync(NoteName name, CallSettings callSettings = null)

    Gets the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    Note response = await grafeasClient.GetNoteAsync(name);
    

    GetNoteAsync(NoteName, CancellationToken)

    public virtual Task<Note> GetNoteAsync(NoteName name, CancellationToken cancellationToken)

    Gets the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    Note response = await grafeasClient.GetNoteAsync(name);
    

    GetNoteAsync(String, CallSettings)

    public virtual Task<Note> GetNoteAsync(string name, CallSettings callSettings = null)

    Gets the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    Note response = await grafeasClient.GetNoteAsync(name);
    

    GetNoteAsync(String, CancellationToken)

    public virtual Task<Note> GetNoteAsync(string name, CancellationToken cancellationToken)

    Gets the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    Note response = await grafeasClient.GetNoteAsync(name);
    

    GetOccurrence(GetOccurrenceRequest, CallSettings)

    public virtual Occurrence GetOccurrence(GetOccurrenceRequest request, CallSettings callSettings = null)

    Gets the specified occurrence.

    Parameters
    NameDescription
    requestGetOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetOccurrenceRequest request = new GetOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    Occurrence response = grafeasClient.GetOccurrence(request);
    

    GetOccurrence(OccurrenceName, CallSettings)

    public virtual Occurrence GetOccurrence(OccurrenceName name, CallSettings callSettings = null)

    Gets the specified occurrence.

    Parameters
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    Occurrence response = grafeasClient.GetOccurrence(name);
    

    GetOccurrence(String, CallSettings)

    public virtual Occurrence GetOccurrence(string name, CallSettings callSettings = null)

    Gets the specified occurrence.

    Parameters
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    Occurrence response = grafeasClient.GetOccurrence(name);
    

    GetOccurrenceAsync(GetOccurrenceRequest, CallSettings)

    public virtual Task<Occurrence> GetOccurrenceAsync(GetOccurrenceRequest request, CallSettings callSettings = null)

    Gets the specified occurrence.

    Parameters
    NameDescription
    requestGetOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetOccurrenceRequest request = new GetOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    Occurrence response = await grafeasClient.GetOccurrenceAsync(request);
    

    GetOccurrenceAsync(GetOccurrenceRequest, CancellationToken)

    public virtual Task<Occurrence> GetOccurrenceAsync(GetOccurrenceRequest request, CancellationToken cancellationToken)

    Gets the specified occurrence.

    Parameters
    NameDescription
    requestGetOccurrenceRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetOccurrenceRequest request = new GetOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    Occurrence response = await grafeasClient.GetOccurrenceAsync(request);
    

    GetOccurrenceAsync(OccurrenceName, CallSettings)

    public virtual Task<Occurrence> GetOccurrenceAsync(OccurrenceName name, CallSettings callSettings = null)

    Gets the specified occurrence.

    Parameters
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    Occurrence response = await grafeasClient.GetOccurrenceAsync(name);
    

    GetOccurrenceAsync(OccurrenceName, CancellationToken)

    public virtual Task<Occurrence> GetOccurrenceAsync(OccurrenceName name, CancellationToken cancellationToken)

    Gets the specified occurrence.

    Parameters
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    Occurrence response = await grafeasClient.GetOccurrenceAsync(name);
    

    GetOccurrenceAsync(String, CallSettings)

    public virtual Task<Occurrence> GetOccurrenceAsync(string name, CallSettings callSettings = null)

    Gets the specified occurrence.

    Parameters
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    Occurrence response = await grafeasClient.GetOccurrenceAsync(name);
    

    GetOccurrenceAsync(String, CancellationToken)

    public virtual Task<Occurrence> GetOccurrenceAsync(string name, CancellationToken cancellationToken)

    Gets the specified occurrence.

    Parameters
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    Occurrence response = await grafeasClient.GetOccurrenceAsync(name);
    

    GetOccurrenceNote(GetOccurrenceNoteRequest, CallSettings)

    public virtual Note GetOccurrenceNote(GetOccurrenceNoteRequest request, CallSettings callSettings = null)

    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
    NameDescription
    requestGetOccurrenceNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetOccurrenceNoteRequest request = new GetOccurrenceNoteRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    Note response = grafeasClient.GetOccurrenceNote(request);
    

    GetOccurrenceNote(OccurrenceName, CallSettings)

    public virtual Note GetOccurrenceNote(OccurrenceName name, CallSettings callSettings = null)

    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
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    Note response = grafeasClient.GetOccurrenceNote(name);
    

    GetOccurrenceNote(String, CallSettings)

    public virtual Note GetOccurrenceNote(string name, CallSettings callSettings = null)

    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
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    Note response = grafeasClient.GetOccurrenceNote(name);
    

    GetOccurrenceNoteAsync(GetOccurrenceNoteRequest, CallSettings)

    public virtual Task<Note> GetOccurrenceNoteAsync(GetOccurrenceNoteRequest request, CallSettings callSettings = null)

    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
    NameDescription
    requestGetOccurrenceNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetOccurrenceNoteRequest request = new GetOccurrenceNoteRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    Note response = await grafeasClient.GetOccurrenceNoteAsync(request);
    

    GetOccurrenceNoteAsync(GetOccurrenceNoteRequest, CancellationToken)

    public virtual Task<Note> GetOccurrenceNoteAsync(GetOccurrenceNoteRequest request, CancellationToken cancellationToken)

    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
    NameDescription
    requestGetOccurrenceNoteRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    GetOccurrenceNoteRequest request = new GetOccurrenceNoteRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    Note response = await grafeasClient.GetOccurrenceNoteAsync(request);
    

    GetOccurrenceNoteAsync(OccurrenceName, CallSettings)

    public virtual Task<Note> GetOccurrenceNoteAsync(OccurrenceName name, CallSettings callSettings = null)

    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
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    Note response = await grafeasClient.GetOccurrenceNoteAsync(name);
    

    GetOccurrenceNoteAsync(OccurrenceName, CancellationToken)

    public virtual Task<Note> GetOccurrenceNoteAsync(OccurrenceName name, CancellationToken cancellationToken)

    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
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    Note response = await grafeasClient.GetOccurrenceNoteAsync(name);
    

    GetOccurrenceNoteAsync(String, CallSettings)

    public virtual Task<Note> GetOccurrenceNoteAsync(string name, CallSettings callSettings = null)

    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
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    Note response = await grafeasClient.GetOccurrenceNoteAsync(name);
    

    GetOccurrenceNoteAsync(String, CancellationToken)

    public virtual Task<Note> GetOccurrenceNoteAsync(string name, CancellationToken cancellationToken)

    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
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    Note response = await grafeasClient.GetOccurrenceNoteAsync(name);
    

    ListNoteOccurrences(ListNoteOccurrencesRequest, CallSettings)

    public virtual PagedEnumerable<ListNoteOccurrencesResponse, Occurrence> ListNoteOccurrences(ListNoteOccurrencesRequest request, CallSettings callSettings = null)

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

    Parameters
    NameDescription
    requestListNoteOccurrencesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListNoteOccurrencesResponse, Occurrence>

    A pageable sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ListNoteOccurrencesRequest request = new ListNoteOccurrencesRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListNoteOccurrencesResponse, Occurrence> response = grafeasClient.ListNoteOccurrences(request);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Occurrence item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNoteOccurrencesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNoteOccurrences(NoteName, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedEnumerable<ListNoteOccurrencesResponse, Occurrence> ListNoteOccurrences(NoteName name, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

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

    Parameters
    NameDescription
    nameNoteName

    The name of the note to list occurrences for in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListNoteOccurrencesResponse, Occurrence>

    A pageable sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    string filter = "";
    // Make the request
    PagedEnumerable<ListNoteOccurrencesResponse, Occurrence> response = grafeasClient.ListNoteOccurrences(name, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Occurrence item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNoteOccurrencesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNoteOccurrences(String, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedEnumerable<ListNoteOccurrencesResponse, Occurrence> ListNoteOccurrences(string name, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

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

    Parameters
    NameDescription
    nameString

    The name of the note to list occurrences for in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListNoteOccurrencesResponse, Occurrence>

    A pageable sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    string filter = "";
    // Make the request
    PagedEnumerable<ListNoteOccurrencesResponse, Occurrence> response = grafeasClient.ListNoteOccurrences(name, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Occurrence item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNoteOccurrencesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNoteOccurrencesAsync(ListNoteOccurrencesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence> ListNoteOccurrencesAsync(ListNoteOccurrencesRequest request, CallSettings callSettings = null)

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

    Parameters
    NameDescription
    requestListNoteOccurrencesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence>

    A pageable asynchronous sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ListNoteOccurrencesRequest request = new ListNoteOccurrencesRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence> response = grafeasClient.ListNoteOccurrencesAsync(request);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Occurrence item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNoteOccurrencesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNoteOccurrencesAsync(NoteName, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence> ListNoteOccurrencesAsync(NoteName name, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

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

    Parameters
    NameDescription
    nameNoteName

    The name of the note to list occurrences for in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence>

    A pageable asynchronous sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    string filter = "";
    // Make the request
    PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence> response = grafeasClient.ListNoteOccurrencesAsync(name, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Occurrence item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNoteOccurrencesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNoteOccurrencesAsync(String, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence> ListNoteOccurrencesAsync(string name, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

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

    Parameters
    NameDescription
    nameString

    The name of the note to list occurrences for in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence>

    A pageable asynchronous sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    string filter = "";
    // Make the request
    PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence> response = grafeasClient.ListNoteOccurrencesAsync(name, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Occurrence item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNoteOccurrencesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNotes(ListNotesRequest, CallSettings)

    public virtual PagedEnumerable<ListNotesResponse, Note> ListNotes(ListNotesRequest request, CallSettings callSettings = null)

    Lists notes for the specified project.

    Parameters
    NameDescription
    requestListNotesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListNotesResponse, Note>

    A pageable sequence of Note resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ListNotesRequest request = new ListNotesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListNotesResponse, Note> response = grafeasClient.ListNotes(request);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Note item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNotesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Note item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Note> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Note item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNotes(ProjectName, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedEnumerable<ListNotesResponse, Note> ListNotes(ProjectName parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

    Lists notes for the specified project.

    Parameters
    NameDescription
    parentProjectName

    The name of the project to list notes for in the form of projects/[PROJECT_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListNotesResponse, Note>

    A pageable sequence of Note resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string filter = "";
    // Make the request
    PagedEnumerable<ListNotesResponse, Note> response = grafeasClient.ListNotes(parent, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Note item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNotesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Note item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Note> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Note item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNotes(String, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedEnumerable<ListNotesResponse, Note> ListNotes(string parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

    Lists notes for the specified project.

    Parameters
    NameDescription
    parentString

    The name of the project to list notes for in the form of projects/[PROJECT_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListNotesResponse, Note>

    A pageable sequence of Note resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string filter = "";
    // Make the request
    PagedEnumerable<ListNotesResponse, Note> response = grafeasClient.ListNotes(parent, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Note item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNotesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Note item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Note> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Note item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNotesAsync(ListNotesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListNotesResponse, Note> ListNotesAsync(ListNotesRequest request, CallSettings callSettings = null)

    Lists notes for the specified project.

    Parameters
    NameDescription
    requestListNotesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListNotesResponse, Note>

    A pageable asynchronous sequence of Note resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ListNotesRequest request = new ListNotesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListNotesResponse, Note> response = grafeasClient.ListNotesAsync(request);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Note item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNotesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Note item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Note> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Note item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNotesAsync(ProjectName, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedAsyncEnumerable<ListNotesResponse, Note> ListNotesAsync(ProjectName parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

    Lists notes for the specified project.

    Parameters
    NameDescription
    parentProjectName

    The name of the project to list notes for in the form of projects/[PROJECT_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListNotesResponse, Note>

    A pageable asynchronous sequence of Note resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string filter = "";
    // Make the request
    PagedAsyncEnumerable<ListNotesResponse, Note> response = grafeasClient.ListNotesAsync(parent, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Note item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNotesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Note item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Note> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Note item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListNotesAsync(String, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedAsyncEnumerable<ListNotesResponse, Note> ListNotesAsync(string parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

    Lists notes for the specified project.

    Parameters
    NameDescription
    parentString

    The name of the project to list notes for in the form of projects/[PROJECT_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListNotesResponse, Note>

    A pageable asynchronous sequence of Note resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string filter = "";
    // Make the request
    PagedAsyncEnumerable<ListNotesResponse, Note> response = grafeasClient.ListNotesAsync(parent, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Note item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNotesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Note item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Note> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Note item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListOccurrences(ListOccurrencesRequest, CallSettings)

    public virtual PagedEnumerable<ListOccurrencesResponse, Occurrence> ListOccurrences(ListOccurrencesRequest request, CallSettings callSettings = null)

    Lists occurrences for the specified project.

    Parameters
    NameDescription
    requestListOccurrencesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListOccurrencesResponse, Occurrence>

    A pageable sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ListOccurrencesRequest request = new ListOccurrencesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListOccurrencesResponse, Occurrence> response = grafeasClient.ListOccurrences(request);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Occurrence item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListOccurrencesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListOccurrences(ProjectName, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedEnumerable<ListOccurrencesResponse, Occurrence> ListOccurrences(ProjectName parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

    Lists occurrences for the specified project.

    Parameters
    NameDescription
    parentProjectName

    The name of the project to list occurrences for in the form of projects/[PROJECT_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListOccurrencesResponse, Occurrence>

    A pageable sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string filter = "";
    // Make the request
    PagedEnumerable<ListOccurrencesResponse, Occurrence> response = grafeasClient.ListOccurrences(parent, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Occurrence item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListOccurrencesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListOccurrences(String, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedEnumerable<ListOccurrencesResponse, Occurrence> ListOccurrences(string parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

    Lists occurrences for the specified project.

    Parameters
    NameDescription
    parentString

    The name of the project to list occurrences for in the form of projects/[PROJECT_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedEnumerable<ListOccurrencesResponse, Occurrence>

    A pageable sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string filter = "";
    // Make the request
    PagedEnumerable<ListOccurrencesResponse, Occurrence> response = grafeasClient.ListOccurrences(parent, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    foreach (Occurrence item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListOccurrencesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListOccurrencesAsync(ListOccurrencesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence> ListOccurrencesAsync(ListOccurrencesRequest request, CallSettings callSettings = null)

    Lists occurrences for the specified project.

    Parameters
    NameDescription
    requestListOccurrencesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence>

    A pageable asynchronous sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ListOccurrencesRequest request = new ListOccurrencesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence> response = grafeasClient.ListOccurrencesAsync(request);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Occurrence item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListOccurrencesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListOccurrencesAsync(ProjectName, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence> ListOccurrencesAsync(ProjectName parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

    Lists occurrences for the specified project.

    Parameters
    NameDescription
    parentProjectName

    The name of the project to list occurrences for in the form of projects/[PROJECT_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence>

    A pageable asynchronous sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string filter = "";
    // Make the request
    PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence> response = grafeasClient.ListOccurrencesAsync(parent, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Occurrence item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListOccurrencesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    ListOccurrencesAsync(String, String, String, Nullable<Int32>, CallSettings)

    public virtual PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence> ListOccurrencesAsync(string parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

    Lists occurrences for the specified project.

    Parameters
    NameDescription
    parentString

    The name of the project to list occurrences for in the form of projects/[PROJECT_ID].

    filterString

    The filter expression.

    pageTokenString

    The token returned from the previous request. A value of null or an empty string retrieves the first page.

    pageSizeNullable<Int32>

    The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence>

    A pageable asynchronous sequence of Occurrence resources.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string filter = "";
    // Make the request
    PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence> response = grafeasClient.ListOccurrencesAsync(parent, filter);
    
    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Occurrence item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });
    
    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListOccurrencesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Occurrence item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });
    
    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Occurrence> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Occurrence item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;
    

    UpdateNote(NoteName, Note, FieldMask, CallSettings)

    public virtual Note UpdateNote(NoteName name, Note note, FieldMask updateMask, CallSettings callSettings = null)

    Updates the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    noteNote

    The updated note.

    updateMaskFieldMask

    The fields to update.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    Note note = new Note();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Note response = grafeasClient.UpdateNote(name, note, updateMask);
    

    UpdateNote(UpdateNoteRequest, CallSettings)

    public virtual Note UpdateNote(UpdateNoteRequest request, CallSettings callSettings = null)

    Updates the specified note.

    Parameters
    NameDescription
    requestUpdateNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    UpdateNoteRequest request = new UpdateNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
        Note = new Note(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Note response = grafeasClient.UpdateNote(request);
    

    UpdateNote(String, Note, FieldMask, CallSettings)

    public virtual Note UpdateNote(string name, Note note, FieldMask updateMask, CallSettings callSettings = null)

    Updates the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    noteNote

    The updated note.

    updateMaskFieldMask

    The fields to update.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    Note note = new Note();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Note response = grafeasClient.UpdateNote(name, note, updateMask);
    

    UpdateNoteAsync(NoteName, Note, FieldMask, CallSettings)

    public virtual Task<Note> UpdateNoteAsync(NoteName name, Note note, FieldMask updateMask, CallSettings callSettings = null)

    Updates the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    noteNote

    The updated note.

    updateMaskFieldMask

    The fields to update.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    Note note = new Note();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Note response = await grafeasClient.UpdateNoteAsync(name, note, updateMask);
    

    UpdateNoteAsync(NoteName, Note, FieldMask, CancellationToken)

    public virtual Task<Note> UpdateNoteAsync(NoteName name, Note note, FieldMask updateMask, CancellationToken cancellationToken)

    Updates the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    noteNote

    The updated note.

    updateMaskFieldMask

    The fields to update.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    Note note = new Note();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Note response = await grafeasClient.UpdateNoteAsync(name, note, updateMask);
    

    UpdateNoteAsync(UpdateNoteRequest, CallSettings)

    public virtual Task<Note> UpdateNoteAsync(UpdateNoteRequest request, CallSettings callSettings = null)

    Updates the specified note.

    Parameters
    NameDescription
    requestUpdateNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    UpdateNoteRequest request = new UpdateNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
        Note = new Note(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Note response = await grafeasClient.UpdateNoteAsync(request);
    

    UpdateNoteAsync(UpdateNoteRequest, CancellationToken)

    public virtual Task<Note> UpdateNoteAsync(UpdateNoteRequest request, CancellationToken cancellationToken)

    Updates the specified note.

    Parameters
    NameDescription
    requestUpdateNoteRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    UpdateNoteRequest request = new UpdateNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
        Note = new Note(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Note response = await grafeasClient.UpdateNoteAsync(request);
    

    UpdateNoteAsync(String, Note, FieldMask, CallSettings)

    public virtual Task<Note> UpdateNoteAsync(string name, Note note, FieldMask updateMask, CallSettings callSettings = null)

    Updates the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    noteNote

    The updated note.

    updateMaskFieldMask

    The fields to update.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    Note note = new Note();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Note response = await grafeasClient.UpdateNoteAsync(name, note, updateMask);
    

    UpdateNoteAsync(String, Note, FieldMask, CancellationToken)

    public virtual Task<Note> UpdateNoteAsync(string name, Note note, FieldMask updateMask, CancellationToken cancellationToken)

    Updates the specified note.

    Parameters
    NameDescription
    nameString

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    noteNote

    The updated note.

    updateMaskFieldMask

    The fields to update.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Note>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    Note note = new Note();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Note response = await grafeasClient.UpdateNoteAsync(name, note, updateMask);
    

    UpdateOccurrence(OccurrenceName, Occurrence, FieldMask, CallSettings)

    public virtual Occurrence UpdateOccurrence(OccurrenceName name, Occurrence occurrence, FieldMask updateMask, CallSettings callSettings = null)

    Updates the specified occurrence.

    Parameters
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    occurrenceOccurrence

    The updated occurrence.

    updateMaskFieldMask

    The fields to update.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    Occurrence occurrence = new Occurrence();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Occurrence response = grafeasClient.UpdateOccurrence(name, occurrence, updateMask);
    

    UpdateOccurrence(UpdateOccurrenceRequest, CallSettings)

    public virtual Occurrence UpdateOccurrence(UpdateOccurrenceRequest request, CallSettings callSettings = null)

    Updates the specified occurrence.

    Parameters
    NameDescription
    requestUpdateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    UpdateOccurrenceRequest request = new UpdateOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
        Occurrence = new Occurrence(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Occurrence response = grafeasClient.UpdateOccurrence(request);
    

    UpdateOccurrence(String, Occurrence, FieldMask, CallSettings)

    public virtual Occurrence UpdateOccurrence(string name, Occurrence occurrence, FieldMask updateMask, CallSettings callSettings = null)

    Updates the specified occurrence.

    Parameters
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    occurrenceOccurrence

    The updated occurrence.

    updateMaskFieldMask

    The fields to update.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    Occurrence occurrence = new Occurrence();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Occurrence response = grafeasClient.UpdateOccurrence(name, occurrence, updateMask);
    

    UpdateOccurrenceAsync(OccurrenceName, Occurrence, FieldMask, CallSettings)

    public virtual Task<Occurrence> UpdateOccurrenceAsync(OccurrenceName name, Occurrence occurrence, FieldMask updateMask, CallSettings callSettings = null)

    Updates the specified occurrence.

    Parameters
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    occurrenceOccurrence

    The updated occurrence.

    updateMaskFieldMask

    The fields to update.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    Occurrence occurrence = new Occurrence();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Occurrence response = await grafeasClient.UpdateOccurrenceAsync(name, occurrence, updateMask);
    

    UpdateOccurrenceAsync(OccurrenceName, Occurrence, FieldMask, CancellationToken)

    public virtual Task<Occurrence> UpdateOccurrenceAsync(OccurrenceName name, Occurrence occurrence, FieldMask updateMask, CancellationToken cancellationToken)

    Updates the specified occurrence.

    Parameters
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    occurrenceOccurrence

    The updated occurrence.

    updateMaskFieldMask

    The fields to update.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    Occurrence occurrence = new Occurrence();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Occurrence response = await grafeasClient.UpdateOccurrenceAsync(name, occurrence, updateMask);
    

    UpdateOccurrenceAsync(UpdateOccurrenceRequest, CallSettings)

    public virtual Task<Occurrence> UpdateOccurrenceAsync(UpdateOccurrenceRequest request, CallSettings callSettings = null)

    Updates the specified occurrence.

    Parameters
    NameDescription
    requestUpdateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    UpdateOccurrenceRequest request = new UpdateOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
        Occurrence = new Occurrence(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Occurrence response = await grafeasClient.UpdateOccurrenceAsync(request);
    

    UpdateOccurrenceAsync(UpdateOccurrenceRequest, CancellationToken)

    public virtual Task<Occurrence> UpdateOccurrenceAsync(UpdateOccurrenceRequest request, CancellationToken cancellationToken)

    Updates the specified occurrence.

    Parameters
    NameDescription
    requestUpdateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    UpdateOccurrenceRequest request = new UpdateOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
        Occurrence = new Occurrence(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Occurrence response = await grafeasClient.UpdateOccurrenceAsync(request);
    

    UpdateOccurrenceAsync(String, Occurrence, FieldMask, CallSettings)

    public virtual Task<Occurrence> UpdateOccurrenceAsync(string name, Occurrence occurrence, FieldMask updateMask, CallSettings callSettings = null)

    Updates the specified occurrence.

    Parameters
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    occurrenceOccurrence

    The updated occurrence.

    updateMaskFieldMask

    The fields to update.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    Occurrence occurrence = new Occurrence();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Occurrence response = await grafeasClient.UpdateOccurrenceAsync(name, occurrence, updateMask);
    

    UpdateOccurrenceAsync(String, Occurrence, FieldMask, CancellationToken)

    public virtual Task<Occurrence> UpdateOccurrenceAsync(string name, Occurrence occurrence, FieldMask updateMask, CancellationToken cancellationToken)

    Updates the specified occurrence.

    Parameters
    NameDescription
    nameString

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    occurrenceOccurrence

    The updated occurrence.

    updateMaskFieldMask

    The fields to update.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task<Occurrence>

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    Occurrence occurrence = new Occurrence();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Occurrence response = await grafeasClient.UpdateOccurrenceAsync(name, occurrence, updateMask);