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

io.opencensus.proto.agent.common.v1.LibraryInfo Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// 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_; /** *
   * Version of Agent exporter of Library.
   * 
* * string exporter_version = 2; */ public java.lang.String getExporterVersion() { java.lang.Object ref = exporterVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exporterVersion_ = s; return s; } } /** *
   * Version of Agent exporter of Library.
   * 
* * string exporter_version = 2; */ public com.google.protobuf.ByteString getExporterVersionBytes() { java.lang.Object ref = exporterVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); exporterVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CORE_LIBRARY_VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object coreLibraryVersion_; /** *
   * Version of OpenCensus Library.
   * 
* * string core_library_version = 3; */ public java.lang.String getCoreLibraryVersion() { java.lang.Object ref = coreLibraryVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); coreLibraryVersion_ = s; return s; } } /** *
   * Version of OpenCensus Library.
   * 
* * string core_library_version = 3; */ public com.google.protobuf.ByteString getCoreLibraryVersionBytes() { java.lang.Object ref = coreLibraryVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); coreLibraryVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (language_ != io.opencensus.proto.agent.common.v1.LibraryInfo.Language.LANGUAGE_UNSPECIFIED.getNumber()) { output.writeEnum(1, language_); } if (!getExporterVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exporterVersion_); } if (!getCoreLibraryVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, coreLibraryVersion_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (language_ != io.opencensus.proto.agent.common.v1.LibraryInfo.Language.LANGUAGE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, language_); } if (!getExporterVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exporterVersion_); } if (!getCoreLibraryVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, coreLibraryVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opencensus.proto.agent.common.v1.LibraryInfo)) { return super.equals(obj); } io.opencensus.proto.agent.common.v1.LibraryInfo other = (io.opencensus.proto.agent.common.v1.LibraryInfo) obj; if (language_ != other.language_) return false; if (!getExporterVersion() .equals(other.getExporterVersion())) return false; if (!getCoreLibraryVersion() .equals(other.getCoreLibraryVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + language_; hash = (37 * hash) + EXPORTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getExporterVersion().hashCode(); hash = (37 * hash) + CORE_LIBRARY_VERSION_FIELD_NUMBER; hash = (53 * hash) + getCoreLibraryVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.agent.common.v1.LibraryInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.opencensus.proto.agent.common.v1.LibraryInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Information on OpenCensus Library.
   * 
* * 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; */ public int getLanguageValue() { return language_; } /** *
     * Language of OpenCensus Library.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1; */ public Builder setLanguageValue(int value) { language_ = value; onChanged(); return this; } /** *
     * 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; } /** *
     * Language of OpenCensus Library.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo.Language language = 1; */ 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; */ public Builder clearLanguage() { language_ = 0; onChanged(); return this; } private java.lang.Object exporterVersion_ = ""; /** *
     * Version of Agent exporter of Library.
     * 
* * string exporter_version = 2; */ public java.lang.String getExporterVersion() { java.lang.Object ref = exporterVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exporterVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Version of Agent exporter of Library.
     * 
* * string exporter_version = 2; */ public com.google.protobuf.ByteString getExporterVersionBytes() { java.lang.Object ref = exporterVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); exporterVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Version of Agent exporter of Library.
     * 
* * string exporter_version = 2; */ public Builder setExporterVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } exporterVersion_ = value; onChanged(); return this; } /** *
     * Version of Agent exporter of Library.
     * 
* * string exporter_version = 2; */ public Builder clearExporterVersion() { exporterVersion_ = getDefaultInstance().getExporterVersion(); onChanged(); return this; } /** *
     * Version of Agent exporter of Library.
     * 
* * string exporter_version = 2; */ public Builder setExporterVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); exporterVersion_ = value; onChanged(); return this; } private java.lang.Object coreLibraryVersion_ = ""; /** *
     * Version of OpenCensus Library.
     * 
* * string core_library_version = 3; */ public java.lang.String getCoreLibraryVersion() { java.lang.Object ref = coreLibraryVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); coreLibraryVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Version of OpenCensus Library.
     * 
* * string core_library_version = 3; */ public com.google.protobuf.ByteString getCoreLibraryVersionBytes() { java.lang.Object ref = coreLibraryVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); coreLibraryVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Version of OpenCensus Library.
     * 
* * string core_library_version = 3; */ public Builder setCoreLibraryVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } coreLibraryVersion_ = value; onChanged(); return this; } /** *
     * Version of OpenCensus Library.
     * 
* * string core_library_version = 3; */ public Builder clearCoreLibraryVersion() { coreLibraryVersion_ = getDefaultInstance().getCoreLibraryVersion(); onChanged(); return this; } /** *
     * Version of OpenCensus Library.
     * 
* * string core_library_version = 3; */ public Builder setCoreLibraryVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); coreLibraryVersion_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opencensus.proto.agent.common.v1.LibraryInfo) } // @@protoc_insertion_point(class_scope:opencensus.proto.agent.common.v1.LibraryInfo) private static final io.opencensus.proto.agent.common.v1.LibraryInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.agent.common.v1.LibraryInfo(); } public static io.opencensus.proto.agent.common.v1.LibraryInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LibraryInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LibraryInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opencensus.proto.agent.common.v1.LibraryInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy