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

com.google.api.services.tracing.v2.model.Attributes Maven / Gradle / Ivy

There is a newer version: v2-rev6-1.22.0
Show newest version
/*
 * 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: 2017-02-15 17:18:02 UTC)
 * on 2017-05-17 at 20:21:11 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.tracing.v2.model;

/**
 * Attributes of a span with a key:value format.
 *
 * 

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 Tracing 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 Attributes extends com.google.api.client.json.GenericJson { /** * The maximum key length is 128 bytes (attributes are dropped if the key size is larger than the * maximum allowed). The value can be a string (up to 256 bytes), integer, or boolean * (true/false). Some common pair examples: * * "/instance_id": "my-instance" "/zone": "us-central1-a" "/grpc/peer_address": * "ip:port" (dns, etc.) "/grpc/deadline": "Duration" "/http/user_agent" * "/http/request_bytes": 300 "/http/response_bytes": 1200 "/http/url": google.com/apis * "abc.com/myattribute": true * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map attributeMap; static { // hack to force ProGuard to consider AttributeValue used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(AttributeValue.class); } /** * The number of dropped attributes after the maximum size was enforced. If 0 then no attributes * were dropped. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer droppedAttributesCount; /** * The maximum key length is 128 bytes (attributes are dropped if the key size is larger than the * maximum allowed). The value can be a string (up to 256 bytes), integer, or boolean * (true/false). Some common pair examples: * * "/instance_id": "my-instance" "/zone": "us-central1-a" "/grpc/peer_address": * "ip:port" (dns, etc.) "/grpc/deadline": "Duration" "/http/user_agent" * "/http/request_bytes": 300 "/http/response_bytes": 1200 "/http/url": google.com/apis * "abc.com/myattribute": true * @return value or {@code null} for none */ public java.util.Map getAttributeMap() { return attributeMap; } /** * The maximum key length is 128 bytes (attributes are dropped if the key size is larger than the * maximum allowed). The value can be a string (up to 256 bytes), integer, or boolean * (true/false). Some common pair examples: * * "/instance_id": "my-instance" "/zone": "us-central1-a" "/grpc/peer_address": * "ip:port" (dns, etc.) "/grpc/deadline": "Duration" "/http/user_agent" * "/http/request_bytes": 300 "/http/response_bytes": 1200 "/http/url": google.com/apis * "abc.com/myattribute": true * @param attributeMap attributeMap or {@code null} for none */ public Attributes setAttributeMap(java.util.Map attributeMap) { this.attributeMap = attributeMap; return this; } /** * The number of dropped attributes after the maximum size was enforced. If 0 then no attributes * were dropped. * @return value or {@code null} for none */ public java.lang.Integer getDroppedAttributesCount() { return droppedAttributesCount; } /** * The number of dropped attributes after the maximum size was enforced. If 0 then no attributes * were dropped. * @param droppedAttributesCount droppedAttributesCount or {@code null} for none */ public Attributes setDroppedAttributesCount(java.lang.Integer droppedAttributesCount) { this.droppedAttributesCount = droppedAttributesCount; return this; } @Override public Attributes set(String fieldName, Object value) { return (Attributes) super.set(fieldName, value); } @Override public Attributes clone() { return (Attributes) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy