# Class GrafeasStub (2.94.0)

2.94.0 (latest) 2.92.0 2.89.0 2.88.0 2.86.0 2.84.0 2.83.0 2.82.0 2.81.0 2.79.0 2.77.0 2.76.0 2.75.0 2.74.0 2.73.0 2.71.0 2.69.0 2.68.0 2.65.0 2.64.0 2.63.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.53.0 2.52.0 2.50.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.5 2.3.1 2.2.3 2.1.3

    public abstract class GrafeasStub implements BackgroundResource

Base stub class for the Grafeas service API.

This class is for advanced usage and reflects the underlying API directly.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> GrafeasStub

## Implements

[BackgroundResource](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.core.BackgroundResource.html)

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

### GrafeasStub()

    public GrafeasStub()

## Methods

### batchCreateNotesCallable()

    public UnaryCallable<BatchCreateNotesRequest,BatchCreateNotesResponse> batchCreateNotesCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.BatchCreateNotesRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.BatchCreateNotesResponse>` |   |

### batchCreateOccurrencesCallable()

    public UnaryCallable<BatchCreateOccurrencesRequest,BatchCreateOccurrencesResponse> batchCreateOccurrencesCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.BatchCreateOccurrencesRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.BatchCreateOccurrencesResponse>` |   |

### close()

    public abstract void close()

### createNoteCallable()

    public UnaryCallable<CreateNoteRequest,Note> createNoteCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.CreateNoteRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.Note>` |   |

### createOccurrenceCallable()

    public UnaryCallable<CreateOccurrenceRequest,Occurrence> createOccurrenceCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.CreateOccurrenceRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.Occurrence>` |   |

### deleteNoteCallable()

    public UnaryCallable<DeleteNoteRequest,Empty> deleteNoteCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.DeleteNoteRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### deleteOccurrenceCallable()

    public UnaryCallable<DeleteOccurrenceRequest,Empty> deleteOccurrenceCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.DeleteOccurrenceRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### getNoteCallable()

    public UnaryCallable<GetNoteRequest,Note> getNoteCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.GetNoteRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.Note>` |   |

### getOccurrenceCallable()

    public UnaryCallable<GetOccurrenceRequest,Occurrence> getOccurrenceCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.GetOccurrenceRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.Occurrence>` |   |

### getOccurrenceNoteCallable()

    public UnaryCallable<GetOccurrenceNoteRequest,Note> getOccurrenceNoteCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.GetOccurrenceNoteRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.Note>` |   |

### listNoteOccurrencesCallable()

    public UnaryCallable<ListNoteOccurrencesRequest,ListNoteOccurrencesResponse> listNoteOccurrencesCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListNoteOccurrencesRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListNoteOccurrencesResponse>` |   |

### listNoteOccurrencesPagedCallable()

    public UnaryCallable<ListNoteOccurrencesRequest,GrafeasClient.ListNoteOccurrencesPagedResponse> listNoteOccurrencesPagedCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListNoteOccurrencesRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.GrafeasClient.ListNoteOccurrencesPagedResponse>` |   |

### listNotesCallable()

    public UnaryCallable<ListNotesRequest,ListNotesResponse> listNotesCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListNotesRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListNotesResponse>` |   |

### listNotesPagedCallable()

    public UnaryCallable<ListNotesRequest,GrafeasClient.ListNotesPagedResponse> listNotesPagedCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListNotesRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.GrafeasClient.ListNotesPagedResponse>` |   |

### listOccurrencesCallable()

    public UnaryCallable<ListOccurrencesRequest,ListOccurrencesResponse> listOccurrencesCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListOccurrencesRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListOccurrencesResponse>` |   |

### listOccurrencesPagedCallable()

    public UnaryCallable<ListOccurrencesRequest,GrafeasClient.ListOccurrencesPagedResponse> listOccurrencesPagedCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.ListOccurrencesRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.GrafeasClient.ListOccurrencesPagedResponse>` |   |

### updateNoteCallable()

    public UnaryCallable<UpdateNoteRequest,Note> updateNoteCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.UpdateNoteRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.Note>` |   |

### updateOccurrenceCallable()

    public UnaryCallable<UpdateOccurrenceRequest,Occurrence> updateOccurrenceCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.UpdateOccurrenceRequest,https://docs.cloud.google.com/java/docs/reference/grafeas/latest/io.grafeas.v1.Occurrence>` |   |