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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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),
/**
* WEB_JS = 10;
*/
WEB_JS(10),
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;
/**
* WEB_JS = 10;
*/
public static final int WEB_JS_VALUE = 10;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Language valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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;
case 10: return WEB_JS;
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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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;
* @return The enum numeric value on the wire for language.
*/
@java.lang.Override public int getLanguageValue() {
return language_;
}
/**
*
* Language of OpenCensus Library.
*
*
* .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1;
* @return The language.
*/
@java.lang.Override 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_;
/**
*
*
* Protobuf type {@code opencensus.proto.agent.common.v1.LibraryInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencensus.proto.agent.common.v1.LibraryInfo)
io.opencensus.proto.agent.common.v1.LibraryInfoOrBuilder {
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);
}
// Construct using io.opencensus.proto.agent.common.v1.LibraryInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
language_ = 0;
exporterVersion_ = "";
coreLibraryVersion_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_LibraryInfo_descriptor;
}
@java.lang.Override
public io.opencensus.proto.agent.common.v1.LibraryInfo getDefaultInstanceForType() {
return io.opencensus.proto.agent.common.v1.LibraryInfo.getDefaultInstance();
}
@java.lang.Override
public io.opencensus.proto.agent.common.v1.LibraryInfo build() {
io.opencensus.proto.agent.common.v1.LibraryInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencensus.proto.agent.common.v1.LibraryInfo buildPartial() {
io.opencensus.proto.agent.common.v1.LibraryInfo result = new io.opencensus.proto.agent.common.v1.LibraryInfo(this);
result.language_ = language_;
result.exporterVersion_ = exporterVersion_;
result.coreLibraryVersion_ = coreLibraryVersion_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.opencensus.proto.agent.common.v1.LibraryInfo) {
return mergeFrom((io.opencensus.proto.agent.common.v1.LibraryInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencensus.proto.agent.common.v1.LibraryInfo other) {
if (other == io.opencensus.proto.agent.common.v1.LibraryInfo.getDefaultInstance()) return this;
if (other.language_ != 0) {
setLanguageValue(other.getLanguageValue());
}
if (!other.getExporterVersion().isEmpty()) {
exporterVersion_ = other.exporterVersion_;
onChanged();
}
if (!other.getCoreLibraryVersion().isEmpty()) {
coreLibraryVersion_ = other.coreLibraryVersion_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.opencensus.proto.agent.common.v1.LibraryInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencensus.proto.agent.common.v1.LibraryInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int language_ = 0;
/**
*
* Language of OpenCensus Library.
*
*
* .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1;
* @return The enum numeric value on the wire for language.
*/
@java.lang.Override public int getLanguageValue() {
return language_;
}
/**
*
* Language of OpenCensus Library.
*
*
* .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1;
* @param value The enum numeric value on the wire for language to set.
* @return This builder for chaining.
*/
public Builder setLanguageValue(int value) {
language_ = value;
onChanged();
return this;
}
/**
*
* Language of OpenCensus Library.
*
*
* .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1;
* @return The language.
*/
@java.lang.Override
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;
}
/**
*
* Language of OpenCensus Library.
*
*
* .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1;
* @param value The language to set.
* @return This builder for chaining.
*/
public Builder setLanguage(io.opencensus.proto.agent.common.v1.LibraryInfo.Language value) {
if (value == null) {
throw new NullPointerException();
}
language_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Language of OpenCensus Library.
*
*
* .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1;
* @return This builder for chaining.
*/
public Builder clearLanguage() {
language_ = 0;
onChanged();
return this;
}
private java.lang.Object exporterVersion_ = "";
/**
*