Package com.google.logging.v2
Class LoggingServiceV2Grpc.LoggingServiceV2Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<LoggingServiceV2Grpc.LoggingServiceV2Stub>
-
- com.google.logging.v2.LoggingServiceV2Grpc.LoggingServiceV2Stub
-
- Enclosing class:
- LoggingServiceV2Grpc
public static final class LoggingServiceV2Grpc.LoggingServiceV2Stub extends io.grpc.stub.AbstractAsyncStub<LoggingServiceV2Grpc.LoggingServiceV2Stub>
A stub to allow clients to do asynchronous rpc calls to service LoggingServiceV2.Service for ingesting and querying logs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LoggingServiceV2Grpc.LoggingServiceV2Stub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
deleteLog(DeleteLogRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes all the log entries in a log for the _Default Log Bucket.void
listLogEntries(ListLogEntriesRequest request, io.grpc.stub.StreamObserver<ListLogEntriesResponse> responseObserver)
Lists log entries.void
listLogs(ListLogsRequest request, io.grpc.stub.StreamObserver<ListLogsResponse> responseObserver)
Lists the logs in projects, organizations, folders, or billing accounts.void
listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, io.grpc.stub.StreamObserver<ListMonitoredResourceDescriptorsResponse> responseObserver)
Lists the descriptors for monitored resource types used by Logging.io.grpc.stub.StreamObserver<TailLogEntriesRequest>
tailLogEntries(io.grpc.stub.StreamObserver<TailLogEntriesResponse> responseObserver)
Streaming read of log entries as they are ingested.void
writeLogEntries(WriteLogEntriesRequest request, io.grpc.stub.StreamObserver<WriteLogEntriesResponse> responseObserver)
Writes log entries to Logging.
-
-
-
Method Detail
-
build
protected LoggingServiceV2Grpc.LoggingServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<LoggingServiceV2Grpc.LoggingServiceV2Stub>
-
deleteLog
public void deleteLog(DeleteLogRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
-
writeLogEntries
public void writeLogEntries(WriteLogEntriesRequest request, io.grpc.stub.StreamObserver<WriteLogEntriesResponse> responseObserver)
Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)
-
listLogEntries
public void listLogEntries(ListLogEntriesRequest request, io.grpc.stub.StreamObserver<ListLogEntriesResponse> responseObserver)
Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).
-
listMonitoredResourceDescriptors
public void listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, io.grpc.stub.StreamObserver<ListMonitoredResourceDescriptorsResponse> responseObserver)
Lists the descriptors for monitored resource types used by Logging.
-
listLogs
public void listLogs(ListLogsRequest request, io.grpc.stub.StreamObserver<ListLogsResponse> responseObserver)
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
-
tailLogEntries
public io.grpc.stub.StreamObserver<TailLogEntriesRequest> tailLogEntries(io.grpc.stub.StreamObserver<TailLogEntriesResponse> responseObserver)
Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.
-
-