Interface LoggingRpc

All Superinterfaces:
AutoCloseable, ServiceRpc
All Known Implementing Classes:
GrpcLoggingRpc

public interface LoggingRpc extends AutoCloseable, ServiceRpc
  • Method Details

    • create

      Sends a request to create a sink. This method returns a ApiFuture object to consume the result. Future.get() returns the created sink.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • update

      Sends a request to update a sink. If the sink does not exist, it is created. This method returns a ApiFuture object to consume the result. Future.get() returns the updated or created sink.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • get

      Sends a request to get a sink. This method returns a ApiFuture object to consume the result. Future.get() returns the requested sink or null if not found.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • list

      Sends a request to list the sinks in a project. This method returns a ApiFuture object to consume the result. Future.get() returns a response object containing the listing result.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • delete

      ApiFuture<com.google.protobuf.Empty> delete(DeleteSinkRequest request)
      Sends a request to delete a sink. This method returns a ApiFuture object to consume the result. Future.get() returns Empty.getDefaultInstance() or null if the sink was not found.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • listLogs

      default ApiFuture<ListLogsResponse> listLogs(ListLogsRequest request)
      Sends a request to list the log names in a project. This method returns a ApiFuture object to consume the result. Future.get() returns a response object containing the listing result.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • delete

      ApiFuture<com.google.protobuf.Empty> delete(DeleteLogRequest request)
      Sends a request to deletes a log. This method returns a ApiFuture object to consume the result. Future.get() returns Empty.getDefaultInstance() or null if the log was not found. The deleted log will reappear if it receives new log entries.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • write

      Sends a request to write log entries to Cloud Logging. This method returns a ApiFuture object to consume the result. Future.get() returns a response object for the write operation.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • list

      Sends a request to list log entries. Use this method to retrieve log entries from Cloud Logging. This method returns a ApiFuture object to consume the result. Future.get() returns a response object containing the listing result.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • getTailLogEntriesStream

      default BidiStream<TailLogEntriesRequest,TailLogEntriesResponse> getTailLogEntriesStream()
      This method returns a {code BidiStream} object to consume the stream of log entries.
    • list

      Sends a request to list monitored resource descriptors. This method returns a ApiFuture object to consume the result. Future.get() returns a response object containing the listing result.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • create

      Sends a request to create a log metric. This method returns a ApiFuture object to consume the result. Future.get() returns the created metric.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • update

      Sends a request to update a log metric. If the log metric does not exist, it is created. This method returns a ApiFuture object to consume the result. Future.get() returns the updated or created log metric.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • get

      Sends a request to get a log metric. This method returns a ApiFuture object to consume the result. Future.get() returns the requested log metric or null if not found.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • list

      Sends a request to list the log metrics in a project. This method returns a ApiFuture object to consume the result. Future.get() returns a response object containing the listing result.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • delete

      ApiFuture<com.google.protobuf.Empty> delete(DeleteLogMetricRequest request)
      Sends a request to delete a log metric. This method returns a ApiFuture object to consume the result. Future.get() returns Empty.getDefaultInstance() or null if the log was not found.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • create

      Sends a request to create a new exclusion in a specified parent resource. This method returns an ApiFuture object to consume the result. Future.get() returns the created exclusion.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • get

      Sends a request to get the description of an exclusion. This method returns an ApiFuture object to consume the result. Future.get() returns the requested exclusion or null if not found.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • update

      Sends a request to change one or more properties of an existing exclusion. This method returns an ApiFuture object to consume the result. Future.get() returns the updated exclusion.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • list

      Sends a request to list all the exclusions in parent resource. Use this method to retrieve exclusions from Cloud Logging. This method returns an ApiFuture object to consume the result. Future.get() returns a response object containing the listing result.
      Parameters:
      request - the request object containing all of the parameters for the API call
    • delete

      ApiFuture<com.google.protobuf.Empty> delete(DeleteExclusionRequest request)
      Sends a request to delete an exclusion. This method returns an ApiFuture object to consume the result. Future.get() returns Empty.getDefaultInstance() or null if the log exclusion was not found.
      Parameters:
      request - the request object containing all of the parameters for the API call