Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opencensus/proto/agent/common/v1/common.proto
package io.opencensus.proto.agent.common.v1;
/**
*
* Information on OpenCensus Library.
*
*
* Protobuf type {@code opencensus.proto.agent.common.v1.LibraryInfo}
*/
public final class LibraryInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.agent.common.v1.LibraryInfo)
LibraryInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use LibraryInfo.newBuilder() to construct.
private LibraryInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LibraryInfo() {
language_ = 0;
exporterVersion_ = "";
coreLibraryVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LibraryInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LibraryInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
language_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
exporterVersion_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
coreLibraryVersion_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_LibraryInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_LibraryInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.agent.common.v1.LibraryInfo.class, io.opencensus.proto.agent.common.v1.LibraryInfo.Builder.class);
}
/**
* Protobuf enum {@code opencensus.proto.agent.common.v1.LibraryInfo.Language}
*/
public enum Language
implements com.google.protobuf.ProtocolMessageEnum {
/**
* LANGUAGE_UNSPECIFIED = 0;
*/
LANGUAGE_UNSPECIFIED(0),
/**
* CPP = 1;
*/
CPP(1),
/**
* C_SHARP = 2;
*/
C_SHARP(2),
/**
* ERLANG = 3;
*/
ERLANG(3),
/**
* GO_LANG = 4;
*/
GO_LANG(4),
/**
* JAVA = 5;
*/
JAVA(5),
/**
* NODE_JS = 6;
*/
NODE_JS(6),
/**
* PHP = 7;
*/
PHP(7),
/**
* PYTHON = 8;
*/
PYTHON(8),
/**
* RUBY = 9;
*/
RUBY(9),
UNRECOGNIZED(-1),
;
/**
* LANGUAGE_UNSPECIFIED = 0;
*/
public static final int LANGUAGE_UNSPECIFIED_VALUE = 0;
/**
* CPP = 1;
*/
public static final int CPP_VALUE = 1;
/**
* C_SHARP = 2;
*/
public static final int C_SHARP_VALUE = 2;
/**
* ERLANG = 3;
*/
public static final int ERLANG_VALUE = 3;
/**
* GO_LANG = 4;
*/
public static final int GO_LANG_VALUE = 4;
/**
* JAVA = 5;
*/
public static final int JAVA_VALUE = 5;
/**
* NODE_JS = 6;
*/
public static final int NODE_JS_VALUE = 6;
/**
* PHP = 7;
*/
public static final int PHP_VALUE = 7;
/**
* PYTHON = 8;
*/
public static final int PYTHON_VALUE = 8;
/**
* RUBY = 9;
*/
public static final int RUBY_VALUE = 9;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Language valueOf(int value) {
return forNumber(value);
}
public static Language forNumber(int value) {
switch (value) {
case 0: return LANGUAGE_UNSPECIFIED;
case 1: return CPP;
case 2: return C_SHARP;
case 3: return ERLANG;
case 4: return GO_LANG;
case 5: return JAVA;
case 6: return NODE_JS;
case 7: return PHP;
case 8: return PYTHON;
case 9: return RUBY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Language> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Language findValueByNumber(int number) {
return Language.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.opencensus.proto.agent.common.v1.LibraryInfo.getDescriptor().getEnumTypes().get(0);
}
private static final Language[] VALUES = values();
public static Language valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Language(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opencensus.proto.agent.common.v1.LibraryInfo.Language)
}
public static final int LANGUAGE_FIELD_NUMBER = 1;
private int language_;
/**
*
* Language of OpenCensus Library.
*
*
* .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1;
*/
public int getLanguageValue() {
return language_;
}
/**
*
* Language of OpenCensus Library.
*
*
* .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1;
*/
public io.opencensus.proto.agent.common.v1.LibraryInfo.Language getLanguage() {
@SuppressWarnings("deprecation")
io.opencensus.proto.agent.common.v1.LibraryInfo.Language result = io.opencensus.proto.agent.common.v1.LibraryInfo.Language.valueOf(language_);
return result == null ? io.opencensus.proto.agent.common.v1.LibraryInfo.Language.UNRECOGNIZED : result;
}
public static final int EXPORTER_VERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object exporterVersion_;
/**
*