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

com.google.api.services.tracing.v2.model.Link 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;

/**
 * A pointer from this span to another span in a different `Trace` within the same service project
 * or within a different service project. Used (for example) in batching operations, where a single
 * batch handler processes multiple requests from different traces or when receives a request from a
 * different service project.
 *
 * 

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 Link extends com.google.api.client.json.GenericJson { /** * `SPAN_ID` is a unique identifier for a span within a trace. It is a base16-encoded, case- * insensitive string of a 8-bytes array and is required to be 16 char long. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String spanId; /** * `TRACE_ID` is a unique identifier for a trace within a project. It is a base16-encoded, case- * insensitive string of a 16-bytes array and is required to be 32 char long. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String traceId; /** * The relationship of the current span relative to the linked span. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** * `SPAN_ID` is a unique identifier for a span within a trace. It is a base16-encoded, case- * insensitive string of a 8-bytes array and is required to be 16 char long. * @return value or {@code null} for none */ public java.lang.String getSpanId() { return spanId; } /** * `SPAN_ID` is a unique identifier for a span within a trace. It is a base16-encoded, case- * insensitive string of a 8-bytes array and is required to be 16 char long. * @param spanId spanId or {@code null} for none */ public Link setSpanId(java.lang.String spanId) { this.spanId = spanId; return this; } /** * `TRACE_ID` is a unique identifier for a trace within a project. It is a base16-encoded, case- * insensitive string of a 16-bytes array and is required to be 32 char long. * @return value or {@code null} for none */ public java.lang.String getTraceId() { return traceId; } /** * `TRACE_ID` is a unique identifier for a trace within a project. It is a base16-encoded, case- * insensitive string of a 16-bytes array and is required to be 32 char long. * @param traceId traceId or {@code null} for none */ public Link setTraceId(java.lang.String traceId) { this.traceId = traceId; return this; } /** * The relationship of the current span relative to the linked span. * @return value or {@code null} for none */ public java.lang.String getType() { return type; } /** * The relationship of the current span relative to the linked span. * @param type type or {@code null} for none */ public Link setType(java.lang.String type) { this.type = type; return this; } @Override public Link set(String fieldName, Object value) { return (Link) super.set(fieldName, value); } @Override public Link clone() { return (Link) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy