Package com.google.cloud.logging.v2.stub
Class GrpcLoggingServiceV2Stub
- java.lang.Object
-
- com.google.cloud.logging.v2.stub.LoggingServiceV2Stub
-
- com.google.cloud.logging.v2.stub.GrpcLoggingServiceV2Stub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcLoggingServiceV2Stub extends LoggingServiceV2Stub
gRPC stub implementation for the LoggingServiceV2 service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcLoggingServiceV2Stub(LoggingServiceV2StubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcLoggingServiceV2Stub, using the given settings.protected
GrpcLoggingServiceV2Stub(LoggingServiceV2StubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcLoggingServiceV2Stub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcLoggingServiceV2Stub
protected GrpcLoggingServiceV2Stub(LoggingServiceV2StubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcLoggingServiceV2Stub, 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.- Throws:
IOException
-
GrpcLoggingServiceV2Stub
protected GrpcLoggingServiceV2Stub(LoggingServiceV2StubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcLoggingServiceV2Stub, 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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcLoggingServiceV2Stub create(LoggingServiceV2StubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcLoggingServiceV2Stub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcLoggingServiceV2Stub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
deleteLogCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteLogRequest,com.google.protobuf.Empty> deleteLogCallable()
- Overrides:
deleteLogCallable
in classLoggingServiceV2Stub
-
writeLogEntriesCallable
public com.google.api.gax.rpc.UnaryCallable<WriteLogEntriesRequest,WriteLogEntriesResponse> writeLogEntriesCallable()
- Overrides:
writeLogEntriesCallable
in classLoggingServiceV2Stub
-
listLogEntriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListLogEntriesRequest,ListLogEntriesResponse> listLogEntriesCallable()
- Overrides:
listLogEntriesCallable
in classLoggingServiceV2Stub
-
listLogEntriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListLogEntriesRequest,LoggingClient.ListLogEntriesPagedResponse> listLogEntriesPagedCallable()
- Overrides:
listLogEntriesPagedCallable
in classLoggingServiceV2Stub
-
listMonitoredResourceDescriptorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptorsCallable()
- Overrides:
listMonitoredResourceDescriptorsCallable
in classLoggingServiceV2Stub
-
listMonitoredResourceDescriptorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,LoggingClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsPagedCallable()
- Overrides:
listMonitoredResourceDescriptorsPagedCallable
in classLoggingServiceV2Stub
-
listLogsCallable
public com.google.api.gax.rpc.UnaryCallable<ListLogsRequest,ListLogsResponse> listLogsCallable()
- Overrides:
listLogsCallable
in classLoggingServiceV2Stub
-
listLogsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListLogsRequest,LoggingClient.ListLogsPagedResponse> listLogsPagedCallable()
- Overrides:
listLogsPagedCallable
in classLoggingServiceV2Stub
-
tailLogEntriesCallable
public com.google.api.gax.rpc.BidiStreamingCallable<TailLogEntriesRequest,TailLogEntriesResponse> tailLogEntriesCallable()
- Overrides:
tailLogEntriesCallable
in classLoggingServiceV2Stub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classLoggingServiceV2Stub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-