Class HttpJsonLivestreamServiceStub (0.16.0)

public class HttpJsonLivestreamServiceStub extends LivestreamServiceStub

REST stub implementation for the LivestreamService service API.

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

Inheritance

java.lang.Object > LivestreamServiceStub > HttpJsonLivestreamServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonLivestreamServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonLivestreamServiceStub
Exceptions
TypeDescription
IOException

create(LivestreamServiceStubSettings settings)

public static final HttpJsonLivestreamServiceStub create(LivestreamServiceStubSettings settings)
Parameter
NameDescription
settingsLivestreamServiceStubSettings
Returns
TypeDescription
HttpJsonLivestreamServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonLivestreamServiceStub(LivestreamServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonLivestreamServiceStub(LivestreamServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonLivestreamServiceStub, 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
settingsLivestreamServiceStubSettings
clientContextClientContext

HttpJsonLivestreamServiceStub(LivestreamServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonLivestreamServiceStub(LivestreamServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonLivestreamServiceStub, 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
settingsLivestreamServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

createChannelCallable()

public UnaryCallable<CreateChannelRequest,Operation> createChannelCallable()
Overrides

createChannelOperationCallable()

public OperationCallable<CreateChannelRequest,Channel,OperationMetadata> createChannelOperationCallable()
Overrides

createEventCallable()

public UnaryCallable<CreateEventRequest,Event> createEventCallable()
Returns
TypeDescription
UnaryCallable<CreateEventRequest,Event>
Overrides

createInputCallable()

public UnaryCallable<CreateInputRequest,Operation> createInputCallable()
Overrides

createInputOperationCallable()

public OperationCallable<CreateInputRequest,Input,OperationMetadata> createInputOperationCallable()
Overrides

deleteChannelCallable()

public UnaryCallable<DeleteChannelRequest,Operation> deleteChannelCallable()
Overrides

deleteChannelOperationCallable()

public OperationCallable<DeleteChannelRequest,Empty,OperationMetadata> deleteChannelOperationCallable()
Overrides

deleteEventCallable()

public UnaryCallable<DeleteEventRequest,Empty> deleteEventCallable()
Returns
TypeDescription
UnaryCallable<DeleteEventRequest,Empty>
Overrides

deleteInputCallable()

public UnaryCallable<DeleteInputRequest,Operation> deleteInputCallable()
Overrides

deleteInputOperationCallable()

public OperationCallable<DeleteInputRequest,Empty,OperationMetadata> deleteInputOperationCallable()
Overrides

getChannelCallable()

public UnaryCallable<GetChannelRequest,Channel> getChannelCallable()
Returns
TypeDescription
UnaryCallable<GetChannelRequest,Channel>
Overrides

getEventCallable()

public UnaryCallable<GetEventRequest,Event> getEventCallable()
Returns
TypeDescription
UnaryCallable<GetEventRequest,Event>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getInputCallable()

public UnaryCallable<GetInputRequest,Input> getInputCallable()
Returns
TypeDescription
UnaryCallable<GetInputRequest,Input>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listChannelsCallable()

public UnaryCallable<ListChannelsRequest,ListChannelsResponse> listChannelsCallable()
Overrides

listChannelsPagedCallable()

public UnaryCallable<ListChannelsRequest,LivestreamServiceClient.ListChannelsPagedResponse> listChannelsPagedCallable()
Overrides

listEventsCallable()

public UnaryCallable<ListEventsRequest,ListEventsResponse> listEventsCallable()
Overrides

listEventsPagedCallable()

public UnaryCallable<ListEventsRequest,LivestreamServiceClient.ListEventsPagedResponse> listEventsPagedCallable()
Overrides

listInputsCallable()

public UnaryCallable<ListInputsRequest,ListInputsResponse> listInputsCallable()
Overrides

listInputsPagedCallable()

public UnaryCallable<ListInputsRequest,LivestreamServiceClient.ListInputsPagedResponse> listInputsPagedCallable()
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,LivestreamServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startChannelCallable()

public UnaryCallable<StartChannelRequest,Operation> startChannelCallable()
Overrides

startChannelOperationCallable()

public OperationCallable<StartChannelRequest,ChannelOperationResponse,OperationMetadata> startChannelOperationCallable()
Overrides

stopChannelCallable()

public UnaryCallable<StopChannelRequest,Operation> stopChannelCallable()
Overrides

stopChannelOperationCallable()

public OperationCallable<StopChannelRequest,ChannelOperationResponse,OperationMetadata> stopChannelOperationCallable()
Overrides

updateChannelCallable()

public UnaryCallable<UpdateChannelRequest,Operation> updateChannelCallable()
Overrides

updateChannelOperationCallable()

public OperationCallable<UpdateChannelRequest,Channel,OperationMetadata> updateChannelOperationCallable()
Overrides

updateInputCallable()

public UnaryCallable<UpdateInputRequest,Operation> updateInputCallable()
Overrides

updateInputOperationCallable()

public OperationCallable<UpdateInputRequest,Input,OperationMetadata> updateInputOperationCallable()
Overrides