Class GrpcProfileServiceStub

public class GrpcProfileServiceStub extends ProfileServiceStub

gRPC stub implementation for the ProfileService service API.

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

Inheritance

java.lang.Object > ProfileServiceStub > GrpcProfileServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ProfileServiceStubSettings settings)

public static final GrpcProfileServiceStub create(ProfileServiceStubSettings settings)
Parameter
NameDescription
settingsProfileServiceStubSettings
Returns
TypeDescription
GrpcProfileServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcProfileServiceStub(ProfileServiceStubSettings settings, ClientContext clientContext)

protected GrpcProfileServiceStub(ProfileServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcProfileServiceStub, 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
settingsProfileServiceStubSettings
clientContextClientContext

GrpcProfileServiceStub(ProfileServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcProfileServiceStub(ProfileServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcProfileServiceStub, 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
settingsProfileServiceStubSettings
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

close()

public final void close()
Overrides

createProfileCallable()

public UnaryCallable<CreateProfileRequest,Profile> createProfileCallable()
Returns
TypeDescription
UnaryCallable<CreateProfileRequest,Profile>
Overrides

deleteProfileCallable()

public UnaryCallable<DeleteProfileRequest,Empty> deleteProfileCallable()
Returns
TypeDescription
UnaryCallable<DeleteProfileRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getProfileCallable()

public UnaryCallable<GetProfileRequest,Profile> getProfileCallable()
Returns
TypeDescription
UnaryCallable<GetProfileRequest,Profile>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listProfilesCallable()

public UnaryCallable<ListProfilesRequest,ListProfilesResponse> listProfilesCallable()
Returns
TypeDescription
UnaryCallable<ListProfilesRequest,ListProfilesResponse>
Overrides

listProfilesPagedCallable()

public UnaryCallable<ListProfilesRequest,ProfileServiceClient.ListProfilesPagedResponse> listProfilesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListProfilesRequest,ListProfilesPagedResponse>
Overrides

searchProfilesCallable()

public UnaryCallable<SearchProfilesRequest,SearchProfilesResponse> searchProfilesCallable()
Returns
TypeDescription
UnaryCallable<SearchProfilesRequest,SearchProfilesResponse>
Overrides

searchProfilesPagedCallable()

public UnaryCallable<SearchProfilesRequest,ProfileServiceClient.SearchProfilesPagedResponse> searchProfilesPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchProfilesRequest,SearchProfilesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateProfileCallable()

public UnaryCallable<UpdateProfileRequest,Profile> updateProfileCallable()
Returns
TypeDescription
UnaryCallable<UpdateProfileRequest,Profile>
Overrides