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

io.opentelemetry.exporter.internal.marshal.ProtoFieldInfo Maven / Gradle / Ivy

/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.exporter.internal.marshal;

import com.google.auto.value.AutoValue;

/**
 * Information about a field in a proto definition.
 *
 * 

This class is internal and is hence not for public use. Its APIs are unstable and can change * at any time. */ @AutoValue public abstract class ProtoFieldInfo { public static ProtoFieldInfo create(int fieldNumber, int tag, String jsonName) { return new AutoValue_ProtoFieldInfo( fieldNumber, tag, CodedOutputStream.computeTagSize(fieldNumber), jsonName); } public abstract int getFieldNumber(); public abstract int getTag(); public abstract int getTagSize(); public abstract String getJsonName(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy