public enum KnownLabels extends java.lang.Enum<KnownLabels>
| Modifier and Type | Class and Description |
|---|---|
static interface |
KnownLabels.Update
Update defines a function that allows a
ReportRequestInfo to be used to update labels
to be added to a ReportRequest |
| Modifier and Type | Field and Description |
|---|---|
static KnownLabels.Update |
NO_UPDATE
A null implementation of
KnownLabels.Update |
static java.lang.String |
SERVICE_AGENT
The service agent to record in report requests
|
static java.lang.String |
USER_AGENT
The user agent to record in report requests
At the moment (2016/08/02), the user agent must be either 'ESP' or 'ESF'
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
com.google.api.LabelDescriptor.ValueType |
getType() |
KnownLabels.Update |
getUpdater() |
static boolean |
isSupported(com.google.api.LabelDescriptor d)
Determines if the given label descriptor is supported
|
boolean |
matches(com.google.api.LabelDescriptor d)
Determines if
d matches this KnownLabel instance. |
void |
performUpdate(ReportRequestInfo info,
java.util.Map<java.lang.String,java.lang.String> labels)
Updates
labels with request data |
static KnownLabels |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KnownLabels[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KnownLabels CREDENTIAL_ID
public static final KnownLabels END_USER
public static final KnownLabels END_USER_COUNTRY
public static final KnownLabels ERROR_TYPE
public static final KnownLabels PROTOCOL
public static final KnownLabels REFERER
public static final KnownLabels RESPONSE_CODE
public static final KnownLabels RESPONSE_CODE_CLASS
public static final KnownLabels STATUS_CODE
public static final KnownLabels GAE_CLONE_ID
public static final KnownLabels GAE_MODULE_ID
public static final KnownLabels GAE_REPLICA_INDEX
public static final KnownLabels GAE_VERSION_ID
public static final KnownLabels GCP_LOCATION
public static final KnownLabels GCP_PROJECT
public static final KnownLabels GCP_REGION
public static final KnownLabels GCP_RESOURCE_ID
public static final KnownLabels GCP_RESOURCE_TYPE
public static final KnownLabels GCP_SERVICE
public static final KnownLabels GCP_ZONE
public static final KnownLabels GCP_UID
public static final KnownLabels SVC_API_METHOD
public static final KnownLabels SVC_API_VERSION
public static final KnownLabels SCC_PLATFORM
public static final KnownLabels SCC_REFERER
public static final KnownLabels SCC_SERVICE_AGENT
public static final KnownLabels SCC_USER_AGENT
public static final KnownLabels.Update NO_UPDATE
KnownLabels.Updatepublic static final java.lang.String USER_AGENT
public static final java.lang.String SERVICE_AGENT
public static KnownLabels[] values()
for (KnownLabels c : KnownLabels.values()) System.out.println(c);
public static KnownLabels valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public com.google.api.LabelDescriptor.ValueType getType()
public KnownLabels.Update getUpdater()
public boolean matches(com.google.api.LabelDescriptor d)
d matches this KnownLabel instance.d - a LabelDescriptortrue if d matchespublic void performUpdate(ReportRequestInfo info, java.util.Map<java.lang.String,java.lang.String> labels)
labels with request datainfo - contains request data to be reportedlabels - the labels to be updated with request datapublic static boolean isSupported(com.google.api.LabelDescriptor d)
d - a LabelDescriptortrue if the label descriptor is supported, otherwise false