public class Logging
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
Writes log entries and manages your Cloud Logging configuration. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the documentation at https://cloud.google.com/logging/docs.
For more information about this service, see the API Documentation
This service uses LoggingRequestInitializer
to initialize global parameters via its
Logging.Builder
.
Modifier and Type | Class and Description |
---|---|
class |
Logging.BillingAccounts
The "billingAccounts" collection of methods.
|
static class |
Logging.Builder
Builder for
Logging . |
class |
Logging.Entries
The "entries" collection of methods.
|
class |
Logging.Exclusions
The "exclusions" collection of methods.
|
class |
Logging.Folders
The "folders" collection of methods.
|
class |
Logging.Locations
The "locations" collection of methods.
|
class |
Logging.Logs
The "logs" collection of methods.
|
class |
Logging.MonitoredResourceDescriptors
The "monitoredResourceDescriptors" collection of methods.
|
class |
Logging.Organizations
The "organizations" collection of methods.
|
class |
Logging.Projects
The "projects" collection of methods.
|
class |
Logging.Sinks
The "sinks" collection of methods.
|
class |
Logging.V2
The "v2" collection of methods.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static java.lang.String |
DEFAULT_BATCH_PATH
The default encoded batch path of the service.
|
static java.lang.String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static java.lang.String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
Constructor and Description |
---|
Logging(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Logging.BillingAccounts |
billingAccounts()
An accessor for creating requests from the BillingAccounts collection.
|
Logging.Entries |
entries()
An accessor for creating requests from the Entries collection.
|
Logging.Exclusions |
exclusions()
An accessor for creating requests from the Exclusions collection.
|
Logging.Folders |
folders()
An accessor for creating requests from the Folders collection.
|
protected void |
initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) |
Logging.Locations |
locations()
An accessor for creating requests from the Locations collection.
|
Logging.Logs |
logs()
An accessor for creating requests from the Logs collection.
|
Logging.MonitoredResourceDescriptors |
monitoredResourceDescriptors()
An accessor for creating requests from the MonitoredResourceDescriptors collection.
|
Logging.Organizations |
organizations()
An accessor for creating requests from the Organizations collection.
|
Logging.Projects |
projects()
An accessor for creating requests from the Projects collection.
|
Logging.Sinks |
sinks()
An accessor for creating requests from the Sinks collection.
|
Logging.V2 |
v2()
An accessor for creating requests from the V2 collection.
|
getJsonFactory, getObjectParser
public static final java.lang.String DEFAULT_ROOT_URL
public static final java.lang.String DEFAULT_SERVICE_PATH
public static final java.lang.String DEFAULT_BATCH_PATH
public static final java.lang.String DEFAULT_BASE_URL
public Logging(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Use Logging.Builder
if you need to specify any of the optional parameters.
transport
- HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory
- JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactory
com.google.api.client.json.gson.GsonFactory
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for noneprotected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws java.io.IOException
initialize
in class com.google.api.client.googleapis.services.AbstractGoogleClient
java.io.IOException
public Logging.BillingAccounts billingAccounts()
The typical use is:
Logging logging = new Logging(...);
Logging.BillingAccounts.List request = logging.billingAccounts().list(parameters ...)
public Logging.Entries entries()
The typical use is:
Logging logging = new Logging(...);
Logging.Entries.List request = logging.entries().list(parameters ...)
public Logging.Exclusions exclusions()
The typical use is:
Logging logging = new Logging(...);
Logging.Exclusions.List request = logging.exclusions().list(parameters ...)
public Logging.Folders folders()
The typical use is:
Logging logging = new Logging(...);
Logging.Folders.List request = logging.folders().list(parameters ...)
public Logging.Locations locations()
The typical use is:
Logging logging = new Logging(...);
Logging.Locations.List request = logging.locations().list(parameters ...)
public Logging.Logs logs()
The typical use is:
Logging logging = new Logging(...);
Logging.Logs.List request = logging.logs().list(parameters ...)
public Logging.MonitoredResourceDescriptors monitoredResourceDescriptors()
The typical use is:
Logging logging = new Logging(...);
Logging.MonitoredResourceDescriptors.List request = logging.monitoredResourceDescriptors().list(parameters ...)
public Logging.Organizations organizations()
The typical use is:
Logging logging = new Logging(...);
Logging.Organizations.List request = logging.organizations().list(parameters ...)
public Logging.Projects projects()
The typical use is:
Logging logging = new Logging(...);
Logging.Projects.List request = logging.projects().list(parameters ...)
public Logging.Sinks sinks()
The typical use is:
Logging logging = new Logging(...);
Logging.Sinks.List request = logging.sinks().list(parameters ...)
public Logging.V2 v2()
The typical use is:
Logging logging = new Logging(...);
Logging.V2.List request = logging.v2().list(parameters ...)