Class GrpcGrafeasStub (2.45.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcGrafeasStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcGrafeasStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcGrafeasStub
Exceptions
Type Description
IOException

create(GrafeasStubSettings settings)

public static final GrpcGrafeasStub create(GrafeasStubSettings settings)
Parameter
Name Description
settings GrafeasStubSettings
Returns
Type Description
GrpcGrafeasStub
Exceptions
Type Description
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
Name Description
settings GrafeasStubSettings
clientContext ClientContext

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
Name Description
settings GrafeasStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchCreateNotesCallable()

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

batchCreateOccurrencesCallable()

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

close()

public final void close()
Overrides

createNoteCallable()

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

createOccurrenceCallable()

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

deleteNoteCallable()

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

deleteOccurrenceCallable()

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

getNoteCallable()

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

getOccurrenceCallable()

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

getOccurrenceNoteCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listNoteOccurrencesCallable()

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

listNoteOccurrencesPagedCallable()

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

listNotesCallable()

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

listNotesPagedCallable()

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

listOccurrencesCallable()

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

listOccurrencesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateNoteCallable()

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

updateOccurrenceCallable()

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