Class GrpcGrafeasStub (2.30.0)

public class GrpcGrafeasStub extends GrafeasStub

gRPC stub implementation for the Grafeas service API.

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

Inheritance

java.lang.Object > GrafeasStub > GrpcGrafeasStub

Static Methods

create(ClientContext clientContext)

public static final GrpcGrafeasStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcGrafeasStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcGrafeasStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcGrafeasStub
Exceptions
TypeDescription
IOException

create(GrafeasStubSettings settings)

public static final GrpcGrafeasStub create(GrafeasStubSettings settings)
Parameter
NameDescription
settingsGrafeasStubSettings
Returns
TypeDescription
GrpcGrafeasStub
Exceptions
TypeDescription
IOException

Constructors

GrpcGrafeasStub(GrafeasStubSettings settings, ClientContext clientContext)

protected GrpcGrafeasStub(GrafeasStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcGrafeasStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsGrafeasStubSettings
clientContextClientContext

GrpcGrafeasStub(GrafeasStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcGrafeasStub(GrafeasStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcGrafeasStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsGrafeasStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchCreateNotesCallable()

public UnaryCallable<BatchCreateNotesRequest,BatchCreateNotesResponse> batchCreateNotesCallable()
Returns
TypeDescription
UnaryCallable<BatchCreateNotesRequest,BatchCreateNotesResponse>
Overrides

batchCreateOccurrencesCallable()

public UnaryCallable<BatchCreateOccurrencesRequest,BatchCreateOccurrencesResponse> batchCreateOccurrencesCallable()
Returns
TypeDescription
UnaryCallable<BatchCreateOccurrencesRequest,BatchCreateOccurrencesResponse>
Overrides

close()

public final void close()
Overrides

createNoteCallable()

public UnaryCallable<CreateNoteRequest,Note> createNoteCallable()
Returns
TypeDescription
UnaryCallable<CreateNoteRequest,Note>
Overrides

createOccurrenceCallable()

public UnaryCallable<CreateOccurrenceRequest,Occurrence> createOccurrenceCallable()
Returns
TypeDescription
UnaryCallable<CreateOccurrenceRequest,Occurrence>
Overrides

deleteNoteCallable()

public UnaryCallable<DeleteNoteRequest,Empty> deleteNoteCallable()
Returns
TypeDescription
UnaryCallable<DeleteNoteRequest,Empty>
Overrides

deleteOccurrenceCallable()

public UnaryCallable<DeleteOccurrenceRequest,Empty> deleteOccurrenceCallable()
Returns
TypeDescription
UnaryCallable<DeleteOccurrenceRequest,Empty>
Overrides

getNoteCallable()

public UnaryCallable<GetNoteRequest,Note> getNoteCallable()
Returns
TypeDescription
UnaryCallable<GetNoteRequest,Note>
Overrides

getOccurrenceCallable()

public UnaryCallable<GetOccurrenceRequest,Occurrence> getOccurrenceCallable()
Returns
TypeDescription
UnaryCallable<GetOccurrenceRequest,Occurrence>
Overrides

getOccurrenceNoteCallable()

public UnaryCallable<GetOccurrenceNoteRequest,Note> getOccurrenceNoteCallable()
Returns
TypeDescription
UnaryCallable<GetOccurrenceNoteRequest,Note>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listNoteOccurrencesCallable()

public UnaryCallable<ListNoteOccurrencesRequest,ListNoteOccurrencesResponse> listNoteOccurrencesCallable()
Returns
TypeDescription
UnaryCallable<ListNoteOccurrencesRequest,ListNoteOccurrencesResponse>
Overrides

listNoteOccurrencesPagedCallable()

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

listNotesCallable()

public UnaryCallable<ListNotesRequest,ListNotesResponse> listNotesCallable()
Returns
TypeDescription
UnaryCallable<ListNotesRequest,ListNotesResponse>
Overrides

listNotesPagedCallable()

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

listOccurrencesCallable()

public UnaryCallable<ListOccurrencesRequest,ListOccurrencesResponse> listOccurrencesCallable()
Returns
TypeDescription
UnaryCallable<ListOccurrencesRequest,ListOccurrencesResponse>
Overrides

listOccurrencesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateNoteCallable()

public UnaryCallable<UpdateNoteRequest,Note> updateNoteCallable()
Returns
TypeDescription
UnaryCallable<UpdateNoteRequest,Note>
Overrides

updateOccurrenceCallable()

public UnaryCallable<UpdateOccurrenceRequest,Occurrence> updateOccurrenceCallable()
Returns
TypeDescription
UnaryCallable<UpdateOccurrenceRequest,Occurrence>
Overrides