Class LoggingServiceV2Grpc.LoggingServiceV2Stub (3.16.2)

public static final class LoggingServiceV2Grpc.LoggingServiceV2Stub extends AbstractAsyncStub<LoggingServiceV2Grpc.LoggingServiceV2Stub>

A stub to allow clients to do asynchronous rpc calls to service LoggingServiceV2.

Service for ingesting and querying logs.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > LoggingServiceV2Grpc.LoggingServiceV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected LoggingServiceV2Grpc.LoggingServiceV2Stub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
LoggingServiceV2Grpc.LoggingServiceV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

deleteLog(DeleteLogRequest request, StreamObserver<Empty> responseObserver)

public void deleteLog(DeleteLogRequest request, StreamObserver<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.

Parameters
NameDescription
requestDeleteLogRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

listLogEntries(ListLogEntriesRequest request, StreamObserver<ListLogEntriesResponse> responseObserver)

public void listLogEntries(ListLogEntriesRequest request, 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.

Parameters
NameDescription
requestListLogEntriesRequest
responseObserverio.grpc.stub.StreamObserver<ListLogEntriesResponse>

listLogs(ListLogsRequest request, StreamObserver<ListLogsResponse> responseObserver)

public void listLogs(ListLogsRequest request, StreamObserver<ListLogsResponse> responseObserver)

Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

Parameters
NameDescription
requestListLogsRequest
responseObserverio.grpc.stub.StreamObserver<ListLogsResponse>

listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, StreamObserver<ListMonitoredResourceDescriptorsResponse> responseObserver)

public void listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, StreamObserver<ListMonitoredResourceDescriptorsResponse> responseObserver)

Lists the descriptors for monitored resource types used by Logging.

Parameters
NameDescription
requestListMonitoredResourceDescriptorsRequest
responseObserverio.grpc.stub.StreamObserver<ListMonitoredResourceDescriptorsResponse>

tailLogEntries(StreamObserver<TailLogEntriesResponse> responseObserver)

public StreamObserver<TailLogEntriesRequest> tailLogEntries(StreamObserver<TailLogEntriesResponse> responseObserver)

Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.

Parameter
NameDescription
responseObserverio.grpc.stub.StreamObserver<TailLogEntriesResponse>
Returns
TypeDescription
io.grpc.stub.StreamObserver<TailLogEntriesRequest>

writeLogEntries(WriteLogEntriesRequest request, StreamObserver<WriteLogEntriesResponse> responseObserver)

public void writeLogEntries(WriteLogEntriesRequest request, 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)

Parameters
NameDescription
requestWriteLogEntriesRequest
responseObserverio.grpc.stub.StreamObserver<WriteLogEntriesResponse>