File: common_pb.rb

package info (click to toggle)
golang-github-census-instrumentation-opencensus-proto 0.2.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 824 kB
  • sloc: sh: 165; python: 37; makefile: 10
file content (55 lines) | stat: -rw-r--r-- 2,301 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: opencensus/proto/agent/common/v1/common.proto

require 'google/protobuf'

require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "opencensus.proto.agent.common.v1.Node" do
    optional :identifier, :message, 1, "opencensus.proto.agent.common.v1.ProcessIdentifier"
    optional :library_info, :message, 2, "opencensus.proto.agent.common.v1.LibraryInfo"
    optional :service_info, :message, 3, "opencensus.proto.agent.common.v1.ServiceInfo"
    map :attributes, :string, :string, 4
  end
  add_message "opencensus.proto.agent.common.v1.ProcessIdentifier" do
    optional :host_name, :string, 1
    optional :pid, :uint32, 2
    optional :start_timestamp, :message, 3, "google.protobuf.Timestamp"
  end
  add_message "opencensus.proto.agent.common.v1.LibraryInfo" do
    optional :language, :enum, 1, "opencensus.proto.agent.common.v1.LibraryInfo.Language"
    optional :exporter_version, :string, 2
    optional :core_library_version, :string, 3
  end
  add_enum "opencensus.proto.agent.common.v1.LibraryInfo.Language" do
    value :LANGUAGE_UNSPECIFIED, 0
    value :CPP, 1
    value :C_SHARP, 2
    value :ERLANG, 3
    value :GO_LANG, 4
    value :JAVA, 5
    value :NODE_JS, 6
    value :PHP, 7
    value :PYTHON, 8
    value :RUBY, 9
  end
  add_message "opencensus.proto.agent.common.v1.ServiceInfo" do
    optional :name, :string, 1
  end
end

module OpenCensus
  module Proto
    module Agent
      module Common
        module V1
          Node = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.agent.common.v1.Node").msgclass
          ProcessIdentifier = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.agent.common.v1.ProcessIdentifier").msgclass
          LibraryInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.agent.common.v1.LibraryInfo").msgclass
          LibraryInfo::Language = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.agent.common.v1.LibraryInfo.Language").enummodule
          ServiceInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.agent.common.v1.ServiceInfo").msgclass
        end
      end
    end
  end
end