All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.servicecontrol.v1.model.LogEntry Maven / Gradle / Ivy

/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/google/apis-client-generator/
 * (build: 2016-10-17 16:43:55 UTC)
 * on 2016-11-10 at 17:05:21 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.servicecontrol.v1.model;

/**
 * An individual log entry.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Service Control API. For a detailed * explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class LogEntry extends com.google.api.client.json.GenericJson { /** * A unique ID for the log entry used for deduplication. If omitted, the implementation will * generate one based on operation_id. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String insertId; /** * A set of user-defined (key, value) data that provides additional information about the log * entry. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map labels; /** * Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * The log entry payload, represented as a protocol buffer that is expressed as a JSON object. You * can only pass `protoPayload` values that belong to a set of approved types. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map protoPayload; /** * The severity of the log entry. The default value is `LogSeverity.DEFAULT`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String severity; /** * The log entry payload, represented as a structure that is expressed as a JSON object. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map structPayload; /** * The log entry payload, represented as a Unicode string (UTF-8). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String textPayload; /** * The time the event described by the log entry occurred. If omitted, defaults to operation start * time. * The value may be {@code null}. */ @com.google.api.client.util.Key private String timestamp; /** * A unique ID for the log entry used for deduplication. If omitted, the implementation will * generate one based on operation_id. * @return value or {@code null} for none */ public java.lang.String getInsertId() { return insertId; } /** * A unique ID for the log entry used for deduplication. If omitted, the implementation will * generate one based on operation_id. * @param insertId insertId or {@code null} for none */ public LogEntry setInsertId(java.lang.String insertId) { this.insertId = insertId; return this; } /** * A set of user-defined (key, value) data that provides additional information about the log * entry. * @return value or {@code null} for none */ public java.util.Map getLabels() { return labels; } /** * A set of user-defined (key, value) data that provides additional information about the log * entry. * @param labels labels or {@code null} for none */ public LogEntry setLabels(java.util.Map labels) { this.labels = labels; return this; } /** * Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`. * @param name name or {@code null} for none */ public LogEntry setName(java.lang.String name) { this.name = name; return this; } /** * The log entry payload, represented as a protocol buffer that is expressed as a JSON object. You * can only pass `protoPayload` values that belong to a set of approved types. * @return value or {@code null} for none */ public java.util.Map getProtoPayload() { return protoPayload; } /** * The log entry payload, represented as a protocol buffer that is expressed as a JSON object. You * can only pass `protoPayload` values that belong to a set of approved types. * @param protoPayload protoPayload or {@code null} for none */ public LogEntry setProtoPayload(java.util.Map protoPayload) { this.protoPayload = protoPayload; return this; } /** * The severity of the log entry. The default value is `LogSeverity.DEFAULT`. * @return value or {@code null} for none */ public java.lang.String getSeverity() { return severity; } /** * The severity of the log entry. The default value is `LogSeverity.DEFAULT`. * @param severity severity or {@code null} for none */ public LogEntry setSeverity(java.lang.String severity) { this.severity = severity; return this; } /** * The log entry payload, represented as a structure that is expressed as a JSON object. * @return value or {@code null} for none */ public java.util.Map getStructPayload() { return structPayload; } /** * The log entry payload, represented as a structure that is expressed as a JSON object. * @param structPayload structPayload or {@code null} for none */ public LogEntry setStructPayload(java.util.Map structPayload) { this.structPayload = structPayload; return this; } /** * The log entry payload, represented as a Unicode string (UTF-8). * @return value or {@code null} for none */ public java.lang.String getTextPayload() { return textPayload; } /** * The log entry payload, represented as a Unicode string (UTF-8). * @param textPayload textPayload or {@code null} for none */ public LogEntry setTextPayload(java.lang.String textPayload) { this.textPayload = textPayload; return this; } /** * The time the event described by the log entry occurred. If omitted, defaults to operation start * time. * @return value or {@code null} for none */ public String getTimestamp() { return timestamp; } /** * The time the event described by the log entry occurred. If omitted, defaults to operation start * time. * @param timestamp timestamp or {@code null} for none */ public LogEntry setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } @Override public LogEntry set(String fieldName, Object value) { return (LogEntry) super.set(fieldName, value); } @Override public LogEntry clone() { return (LogEntry) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy