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
ConstructorsModifierConstructorDescriptionprotectedGrpcLoggingServiceV2Stub(LoggingServiceV2StubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcLoggingServiceV2Stub, using the given settings.protectedGrpcLoggingServiceV2Stub(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
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcLoggingServiceV2Stubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcLoggingServiceV2Stubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcLoggingServiceV2Stubcreate(LoggingServiceV2StubSettings settings) com.google.api.gax.rpc.UnaryCallable<DeleteLogRequest,com.google.protobuf.Empty> com.google.longrunning.stub.GrpcOperationsStubbooleanbooleancom.google.api.gax.rpc.UnaryCallable<ListLogEntriesRequest,ListLogEntriesResponse> com.google.api.gax.rpc.UnaryCallable<ListLogEntriesRequest,LoggingClient.ListLogEntriesPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListLogsRequest,ListLogsResponse> com.google.api.gax.rpc.UnaryCallable<ListLogsRequest,LoggingClient.ListLogsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse> com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,LoggingClient.ListMonitoredResourceDescriptorsPagedResponse> voidshutdown()voidcom.google.api.gax.rpc.BidiStreamingCallable<TailLogEntriesRequest,TailLogEntriesResponse> com.google.api.gax.rpc.UnaryCallable<WriteLogEntriesRequest,WriteLogEntriesResponse>
-
Constructor Details
-
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 Details
-
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:
deleteLogCallablein classLoggingServiceV2Stub
-
writeLogEntriesCallable
public com.google.api.gax.rpc.UnaryCallable<WriteLogEntriesRequest,WriteLogEntriesResponse> writeLogEntriesCallable()- Overrides:
writeLogEntriesCallablein classLoggingServiceV2Stub
-
listLogEntriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListLogEntriesRequest,ListLogEntriesResponse> listLogEntriesCallable()- Overrides:
listLogEntriesCallablein classLoggingServiceV2Stub
-
listLogEntriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListLogEntriesRequest,LoggingClient.ListLogEntriesPagedResponse> listLogEntriesPagedCallable()- Overrides:
listLogEntriesPagedCallablein classLoggingServiceV2Stub
-
listMonitoredResourceDescriptorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptorsCallable()- Overrides:
listMonitoredResourceDescriptorsCallablein classLoggingServiceV2Stub
-
listMonitoredResourceDescriptorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,LoggingClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsPagedCallable()- Overrides:
listMonitoredResourceDescriptorsPagedCallablein classLoggingServiceV2Stub
-
listLogsCallable
- Overrides:
listLogsCallablein classLoggingServiceV2Stub
-
listLogsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListLogsRequest,LoggingClient.ListLogsPagedResponse> listLogsPagedCallable()- Overrides:
listLogsPagedCallablein classLoggingServiceV2Stub
-
tailLogEntriesCallable
public com.google.api.gax.rpc.BidiStreamingCallable<TailLogEntriesRequest,TailLogEntriesResponse> tailLogEntriesCallable()- Overrides:
tailLogEntriesCallablein classLoggingServiceV2Stub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classLoggingServiceV2Stub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-