logstash-codec-protobuf 1.3.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +56 -0
- data/CONTRIBUTORS +12 -0
- data/DEVELOPER.md +2 -0
- data/Gemfile +11 -0
- data/LICENSE +202 -0
- data/NOTICE.TXT +4 -0
- data/README.md +184 -0
- data/docs/index.asciidoc +241 -0
- data/google-protobuf-lib-update.md +57 -0
- data/lib/logstash/codecs/protobuf.rb +804 -0
- data/logstash-codec-protobuf.gemspec +33 -0
- data/spec/codecs/pb2_spec.rb +236 -0
- data/spec/codecs/pb3_decode_spec.rb +665 -0
- data/spec/codecs/pb3_encode_spec.rb +243 -0
- data/spec/helpers/pb2/ColourTestcase.pb.rb +35 -0
- data/spec/helpers/pb2/ColourTestcase.proto +24 -0
- data/spec/helpers/pb2/event.pb.rb +19 -0
- data/spec/helpers/pb2/event.proto +12 -0
- data/spec/helpers/pb2/header/header.pb.rb +16 -0
- data/spec/helpers/pb2/header/header.proto +8 -0
- data/spec/helpers/pb2/human.pb.rb +26 -0
- data/spec/helpers/pb2/unicorn.pb.rb +19 -0
- data/spec/helpers/pb2/unicorn_event.pb.rb +24 -0
- data/spec/helpers/pb3/FantasyHorse_pb.rb +48 -0
- data/spec/helpers/pb3/PhoneDirectory_pb.rb +37 -0
- data/spec/helpers/pb3/ProbeResult_pb.rb +26 -0
- data/spec/helpers/pb3/ResultListComposerRequest_pb.rb +25 -0
- data/spec/helpers/pb3/dnsmessage_pb.rb +82 -0
- data/spec/helpers/pb3/events_pb.rb +17 -0
- data/spec/helpers/pb3/header/header.proto3 +7 -0
- data/spec/helpers/pb3/header/header_pb.rb +12 -0
- data/spec/helpers/pb3/integertest_pb.rb +18 -0
- data/spec/helpers/pb3/messageA_pb.rb +16 -0
- data/spec/helpers/pb3/messageB_pb.rb +15 -0
- data/spec/helpers/pb3/rum2_pb.rb +87 -0
- data/spec/helpers/pb3/rum3_pb.rb +87 -0
- data/spec/helpers/pb3/rum_pb.rb +87 -0
- data/spec/helpers/pb3/struct_test_pb.rb +21 -0
- data/spec/helpers/pb3/unicorn_pb.rb +31 -0
- metadata +175 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: header/header.proto3
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "Header" do
|
8
|
+
map :name, :string, :string, 3
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
Header = Google::Protobuf::DescriptorPool.generated_pool.lookup("Header").msgclass
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: TestMessage.proto3
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "com.foo.bar.IntegerTestMessage" do
|
8
|
+
optional :response_time, :int64, 1
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
module Com
|
13
|
+
module Foo
|
14
|
+
module Bar
|
15
|
+
IntegerTestMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("com.foo.bar.IntegerTestMessage").msgclass
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: messageA.proto3
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'header/header_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "A.MessageA" do
|
9
|
+
optional :name, :string, 1
|
10
|
+
optional :header, :message, 2, "Header"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module A
|
15
|
+
MessageA = Google::Protobuf::DescriptorPool.generated_pool.lookup("A.MessageA").msgclass
|
16
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: messageB.proto3
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "B.MessageB" do
|
8
|
+
optional :name, :string, 1
|
9
|
+
optional :header, :string, 2
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module B
|
14
|
+
MessageB = Google::Protobuf::DescriptorPool.generated_pool.lookup("B.MessageB").msgclass
|
15
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: something/rum_akamai/AkamaiRum.proto
|
3
|
+
|
4
|
+
begin; require 'google/protobuf'; rescue LoadError; end
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "something.logging.ProtoHeader2" do
|
8
|
+
optional :unix_timestamp, :int64, 1
|
9
|
+
optional :sender_id, :string, 2
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Something
|
14
|
+
module Logging
|
15
|
+
ProtoHeader2 = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.logging.ProtoHeader2").msgclass
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
22
|
+
add_message "something.rum_akamai.ProtoAkamai2Rum" do
|
23
|
+
optional :header, :message, 1, "something.logging.ProtoHeader2"
|
24
|
+
optional :version, :string, 2
|
25
|
+
optional :url, :string, 3
|
26
|
+
optional :http_referer, :string, 4
|
27
|
+
optional :session_id, :string, 5
|
28
|
+
optional :tracking_id, :string, 6
|
29
|
+
optional :locale, :string, 7
|
30
|
+
optional :user_agent, :message, 8, "something.rum_akamai.ProtoAkamai2Rum.ProtoUserAgent"
|
31
|
+
optional :geo, :message, 9, "something.rum_akamai.ProtoAkamai2Rum.ProtoGeoLocation"
|
32
|
+
optional :timers, :message, 10, "something.rum_akamai.ProtoAkamai2Rum.ProtoTimers"
|
33
|
+
optional :page_group, :string, 11
|
34
|
+
repeated :active_ctests, :string, 12
|
35
|
+
optional :dom, :message, 13, "something.rum_akamai.ProtoAkamai2Rum.ProtoDom"
|
36
|
+
optional :domain, :string, 14
|
37
|
+
optional :timestamp, :string, 15
|
38
|
+
end
|
39
|
+
add_message "something.rum_akamai.ProtoAkamai2Rum.ProtoUserAgent" do
|
40
|
+
optional :family, :string, 1
|
41
|
+
optional :major, :float, 2
|
42
|
+
optional :manufacturer, :string, 3
|
43
|
+
optional :minor, :float, 4
|
44
|
+
optional :mobile, :string, 5
|
45
|
+
optional :model, :string, 6
|
46
|
+
optional :os, :string, 7
|
47
|
+
optional :osversion, :string, 8
|
48
|
+
optional :raw, :string, 9
|
49
|
+
optional :type, :string, 10
|
50
|
+
end
|
51
|
+
add_message "something.rum_akamai.ProtoAkamai2Rum.ProtoGeoLocation" do
|
52
|
+
optional :cc, :string, 1
|
53
|
+
optional :city, :string, 2
|
54
|
+
optional :isp, :string, 3
|
55
|
+
optional :lat, :float, 4
|
56
|
+
optional :lon, :float, 5
|
57
|
+
optional :netspeed, :string, 6
|
58
|
+
optional :organisation, :string, 7
|
59
|
+
optional :ovr, :bool, 8
|
60
|
+
optional :postalcode, :string, 9
|
61
|
+
optional :rg, :string, 10
|
62
|
+
end
|
63
|
+
add_message "something.rum_akamai.ProtoAkamai2Rum.ProtoTimers" do
|
64
|
+
optional :t_resp, :int32, 1
|
65
|
+
optional :fid, :int32, 2
|
66
|
+
optional :fcp, :int32, 3
|
67
|
+
optional :tti, :int32, 4
|
68
|
+
optional :ttfi, :int32, 5
|
69
|
+
optional :ttvr, :int32, 6
|
70
|
+
optional :longtasks, :float, 7
|
71
|
+
end
|
72
|
+
add_message "something.rum_akamai.ProtoAkamai2Rum.ProtoDom" do
|
73
|
+
optional :script, :int32, 1
|
74
|
+
optional :ext, :int32, 2
|
75
|
+
optional :ln, :int32, 3
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
module Something
|
80
|
+
module RumAkamai
|
81
|
+
ProtoAkamai2Rum = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai2Rum").msgclass
|
82
|
+
ProtoAkamai2Rum::ProtoUserAgent = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai2Rum.ProtoUserAgent").msgclass
|
83
|
+
ProtoAkamai2Rum::ProtoGeoLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai2Rum.ProtoGeoLocation").msgclass
|
84
|
+
ProtoAkamai2Rum::ProtoTimers = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai2Rum.ProtoTimers").msgclass
|
85
|
+
ProtoAkamai2Rum::ProtoDom = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai2Rum.ProtoDom").msgclass
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: something/rum_akamai/AkamaiRum.proto
|
3
|
+
|
4
|
+
begin; require 'google/protobuf'; rescue LoadError; end
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "something.logging.ProtoHeader3" do
|
8
|
+
optional :unix_timestamp, :int64, 1
|
9
|
+
optional :sender_id, :string, 2
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Something
|
14
|
+
module Logging
|
15
|
+
ProtoHeader3 = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.logging.ProtoHeader3").msgclass
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
22
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum" do
|
23
|
+
optional :header, :message, 1, "something.logging.ProtoHeader3"
|
24
|
+
optional :version, :string, 2
|
25
|
+
optional :url, :string, 3
|
26
|
+
optional :http_referer, :string, 4
|
27
|
+
optional :session_id, :string, 5
|
28
|
+
optional :tracking_id, :string, 6
|
29
|
+
optional :locale, :string, 7
|
30
|
+
optional :user_agent, :message, 8, "something.rum_akamai.ProtoAkamai3Rum.ProtoUserAgent"
|
31
|
+
optional :geo, :message, 9, "something.rum_akamai.ProtoAkamai3Rum.ProtoGeoLocation"
|
32
|
+
optional :timers, :message, 10, "something.rum_akamai.ProtoAkamai3Rum.ProtoTimers"
|
33
|
+
optional :page_group, :string, 11
|
34
|
+
repeated :active_ctests, :string, 12
|
35
|
+
optional :dom, :message, 13, "something.rum_akamai.ProtoAkamai3Rum.ProtoDom"
|
36
|
+
optional :domain, :string, 14
|
37
|
+
optional :timestamp, :string, 15
|
38
|
+
end
|
39
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum.ProtoUserAgent" do
|
40
|
+
optional :family, :string, 1
|
41
|
+
optional :major, :float, 2
|
42
|
+
optional :manufacturer, :string, 3
|
43
|
+
optional :minor, :float, 4
|
44
|
+
optional :mobile, :string, 5
|
45
|
+
optional :model, :string, 6
|
46
|
+
optional :os, :string, 7
|
47
|
+
optional :osversion, :string, 8
|
48
|
+
optional :raw, :string, 9
|
49
|
+
optional :type, :string, 10
|
50
|
+
end
|
51
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum.ProtoGeoLocation" do
|
52
|
+
optional :cc, :string, 1
|
53
|
+
optional :city, :string, 2
|
54
|
+
optional :isp, :string, 3
|
55
|
+
optional :lat, :float, 4
|
56
|
+
optional :lon, :float, 5
|
57
|
+
optional :netspeed, :string, 6
|
58
|
+
optional :organisation, :string, 7
|
59
|
+
optional :ovr, :bool, 8
|
60
|
+
optional :postalcode, :string, 9
|
61
|
+
optional :rg, :string, 10
|
62
|
+
end
|
63
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum.ProtoTimers" do
|
64
|
+
optional :t_resp, :int32, 1
|
65
|
+
optional :fid, :int32, 2
|
66
|
+
optional :fcp, :int32, 3
|
67
|
+
optional :tti, :int32, 4
|
68
|
+
optional :ttfi, :int32, 5
|
69
|
+
optional :ttvr, :int32, 6
|
70
|
+
optional :longtasks, :float, 7
|
71
|
+
end
|
72
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum.ProtoDom" do
|
73
|
+
optional :script, :int32, 1
|
74
|
+
optional :ext, :int32, 2
|
75
|
+
optional :ln, :int32, 3
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
module Something
|
80
|
+
module RumAkamai
|
81
|
+
ProtoAkamai3Rum = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum").msgclass
|
82
|
+
ProtoAkamai3Rum::ProtoUserAgent = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum.ProtoUserAgent").msgclass
|
83
|
+
ProtoAkamai3Rum::ProtoGeoLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum.ProtoGeoLocation").msgclass
|
84
|
+
ProtoAkamai3Rum::ProtoTimers = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum.ProtoTimers").msgclass
|
85
|
+
ProtoAkamai3Rum::ProtoDom = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum.ProtoDom").msgclass
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: something/rum_akamai/AkamaiRum.proto
|
3
|
+
|
4
|
+
begin; require 'google/protobuf'; rescue LoadError; end
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "something.logging.ProtoHeader" do
|
8
|
+
optional :unix_timestamp, :int64, 1
|
9
|
+
optional :sender_id, :string, 2
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Something
|
14
|
+
module Logging
|
15
|
+
ProtoHeader = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.logging.ProtoHeader").msgclass
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
22
|
+
add_message "something.rum_akamai.ProtoAkamaiRum" do
|
23
|
+
optional :header, :message, 1, "something.logging.ProtoHeader"
|
24
|
+
optional :version, :string, 2
|
25
|
+
optional :url, :string, 3
|
26
|
+
optional :http_referer, :string, 4
|
27
|
+
optional :session_id, :string, 5
|
28
|
+
optional :tracking_id, :string, 6
|
29
|
+
optional :locale, :string, 7
|
30
|
+
optional :user_agent, :message, 8, "something.rum_akamai.ProtoAkamaiRum.ProtoUserAgent"
|
31
|
+
optional :geo, :message, 9, "something.rum_akamai.ProtoAkamaiRum.ProtoGeoLocation"
|
32
|
+
optional :timers, :message, 10, "something.rum_akamai.ProtoAkamaiRum.ProtoTimers"
|
33
|
+
optional :page_group, :string, 11
|
34
|
+
repeated :active_ctests, :string, 12
|
35
|
+
optional :dom, :message, 13, "something.rum_akamai.ProtoAkamaiRum.ProtoDom"
|
36
|
+
optional :domain, :string, 14
|
37
|
+
optional :timestamp, :string, 15
|
38
|
+
end
|
39
|
+
add_message "something.rum_akamai.ProtoAkamaiRum.ProtoUserAgent" do
|
40
|
+
optional :family, :string, 1
|
41
|
+
optional :major, :float, 2
|
42
|
+
optional :manufacturer, :string, 3
|
43
|
+
optional :minor, :float, 4
|
44
|
+
optional :mobile, :string, 5
|
45
|
+
optional :model, :string, 6
|
46
|
+
optional :os, :string, 7
|
47
|
+
optional :osversion, :string, 8
|
48
|
+
optional :raw, :string, 9
|
49
|
+
optional :type, :string, 10
|
50
|
+
end
|
51
|
+
add_message "something.rum_akamai.ProtoAkamaiRum.ProtoGeoLocation" do
|
52
|
+
optional :cc, :string, 1
|
53
|
+
optional :city, :string, 2
|
54
|
+
optional :isp, :string, 3
|
55
|
+
optional :lat, :float, 4
|
56
|
+
optional :lon, :float, 5
|
57
|
+
optional :netspeed, :string, 6
|
58
|
+
optional :organisation, :string, 7
|
59
|
+
optional :ovr, :bool, 8
|
60
|
+
optional :postalcode, :string, 9
|
61
|
+
optional :rg, :string, 10
|
62
|
+
end
|
63
|
+
add_message "something.rum_akamai.ProtoAkamaiRum.ProtoTimers" do
|
64
|
+
optional :t_resp, :int32, 1
|
65
|
+
optional :fid, :int32, 2
|
66
|
+
optional :fcp, :int32, 3
|
67
|
+
optional :tti, :int32, 4
|
68
|
+
optional :ttfi, :int32, 5
|
69
|
+
optional :ttvr, :int32, 6
|
70
|
+
optional :longtasks, :float, 7
|
71
|
+
end
|
72
|
+
add_message "something.rum_akamai.ProtoAkamaiRum.ProtoDom" do
|
73
|
+
optional :script, :int32, 1
|
74
|
+
optional :ext, :int32, 2
|
75
|
+
optional :ln, :int32, 3
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
module Something
|
80
|
+
module RumAkamai
|
81
|
+
ProtoAkamaiRum = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum").msgclass
|
82
|
+
ProtoAkamaiRum::ProtoUserAgent = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum.ProtoUserAgent").msgclass
|
83
|
+
ProtoAkamaiRum::ProtoGeoLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum.ProtoGeoLocation").msgclass
|
84
|
+
ProtoAkamaiRum::ProtoTimers = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum.ProtoTimers").msgclass
|
85
|
+
ProtoAkamaiRum::ProtoDom = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum.ProtoDom").msgclass
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
|
3
|
+
begin; require 'google/protobuf'; rescue LoadError; end
|
4
|
+
|
5
|
+
begin; require 'google/protobuf/struct_pb'; rescue LoadError; end
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("RequestStruct.proto", :syntax => :proto3) do
|
8
|
+
add_message "messages.SendJsonRequest" do
|
9
|
+
optional :UserID, :string, 1
|
10
|
+
optional :Details, :message, 2, "google.protobuf.Struct"
|
11
|
+
end
|
12
|
+
add_message "messages.SendJsonResponse" do
|
13
|
+
optional :Response, :string, 1
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
module Messages
|
19
|
+
SendJsonRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("messages.SendJsonRequest").msgclass
|
20
|
+
SendJsonResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("messages.SendJsonResponse").msgclass
|
21
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: spec/helpers/unicorn.proto3
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "Unicorn" do
|
8
|
+
optional :name, :string, 1
|
9
|
+
optional :age, :uint32, 2
|
10
|
+
optional :fur_colour, :enum, 3, "Colour"
|
11
|
+
repeated :favourite_colours, :enum, 4, "Colour"
|
12
|
+
repeated :favourite_numbers, :int32, 5
|
13
|
+
optional :is_pegasus, :bool, 6
|
14
|
+
optional :timestamp, :string, 7
|
15
|
+
optional :version, :string, 8
|
16
|
+
optional :mother, :message, 9, "Unicorn"
|
17
|
+
optional :father, :message, 10, "Unicorn"
|
18
|
+
end
|
19
|
+
add_enum "Colour" do
|
20
|
+
value :UNDEFINED, 0
|
21
|
+
value :BLUE, 1
|
22
|
+
value :PINK, 2
|
23
|
+
value :SILVER, 3
|
24
|
+
value :GLITTER, 4
|
25
|
+
value :WHITE, 5
|
26
|
+
value :GREEN, 6
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
Unicorn = Google::Protobuf::DescriptorPool.generated_pool.lookup("Unicorn").msgclass
|
31
|
+
Colour = Google::Protobuf::DescriptorPool.generated_pool.lookup("Colour").enummodule
|
metadata
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: logstash-codec-protobuf
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.0
|
5
|
+
platform: java
|
6
|
+
authors:
|
7
|
+
- Inga Feick
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - "<="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.99'
|
22
|
+
name: logstash-core-plugin-api
|
23
|
+
prerelease: false
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.60'
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.99'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - '='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 3.23.4
|
39
|
+
name: google-protobuf
|
40
|
+
prerelease: false
|
41
|
+
type: :runtime
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - '='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.23.4
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
name: ruby-protocol-buffers
|
54
|
+
prerelease: false
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
name: logstash-devutils
|
68
|
+
prerelease: false
|
69
|
+
type: :development
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
description: This gem is a logstash plugin required to be installed on top of the
|
76
|
+
Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not
|
77
|
+
a stand-alone program
|
78
|
+
email: inga.feick@trivago.com
|
79
|
+
executables: []
|
80
|
+
extensions: []
|
81
|
+
extra_rdoc_files: []
|
82
|
+
files:
|
83
|
+
- CHANGELOG.md
|
84
|
+
- CONTRIBUTORS
|
85
|
+
- DEVELOPER.md
|
86
|
+
- Gemfile
|
87
|
+
- LICENSE
|
88
|
+
- NOTICE.TXT
|
89
|
+
- README.md
|
90
|
+
- docs/index.asciidoc
|
91
|
+
- google-protobuf-lib-update.md
|
92
|
+
- lib/logstash/codecs/protobuf.rb
|
93
|
+
- logstash-codec-protobuf.gemspec
|
94
|
+
- spec/codecs/pb2_spec.rb
|
95
|
+
- spec/codecs/pb3_decode_spec.rb
|
96
|
+
- spec/codecs/pb3_encode_spec.rb
|
97
|
+
- spec/helpers/pb2/ColourTestcase.pb.rb
|
98
|
+
- spec/helpers/pb2/ColourTestcase.proto
|
99
|
+
- spec/helpers/pb2/event.pb.rb
|
100
|
+
- spec/helpers/pb2/event.proto
|
101
|
+
- spec/helpers/pb2/header/header.pb.rb
|
102
|
+
- spec/helpers/pb2/header/header.proto
|
103
|
+
- spec/helpers/pb2/human.pb.rb
|
104
|
+
- spec/helpers/pb2/unicorn.pb.rb
|
105
|
+
- spec/helpers/pb2/unicorn_event.pb.rb
|
106
|
+
- spec/helpers/pb3/FantasyHorse_pb.rb
|
107
|
+
- spec/helpers/pb3/PhoneDirectory_pb.rb
|
108
|
+
- spec/helpers/pb3/ProbeResult_pb.rb
|
109
|
+
- spec/helpers/pb3/ResultListComposerRequest_pb.rb
|
110
|
+
- spec/helpers/pb3/dnsmessage_pb.rb
|
111
|
+
- spec/helpers/pb3/events_pb.rb
|
112
|
+
- spec/helpers/pb3/header/header.proto3
|
113
|
+
- spec/helpers/pb3/header/header_pb.rb
|
114
|
+
- spec/helpers/pb3/integertest_pb.rb
|
115
|
+
- spec/helpers/pb3/messageA_pb.rb
|
116
|
+
- spec/helpers/pb3/messageB_pb.rb
|
117
|
+
- spec/helpers/pb3/rum2_pb.rb
|
118
|
+
- spec/helpers/pb3/rum3_pb.rb
|
119
|
+
- spec/helpers/pb3/rum_pb.rb
|
120
|
+
- spec/helpers/pb3/struct_test_pb.rb
|
121
|
+
- spec/helpers/pb3/unicorn_pb.rb
|
122
|
+
homepage:
|
123
|
+
licenses:
|
124
|
+
- Apache License (2.0)
|
125
|
+
metadata:
|
126
|
+
logstash_plugin: 'true'
|
127
|
+
logstash_group: codec
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubygems_version: 3.3.26
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: Reads protobuf messages and converts to Logstash Events
|
147
|
+
test_files:
|
148
|
+
- spec/codecs/pb2_spec.rb
|
149
|
+
- spec/codecs/pb3_decode_spec.rb
|
150
|
+
- spec/codecs/pb3_encode_spec.rb
|
151
|
+
- spec/helpers/pb2/ColourTestcase.pb.rb
|
152
|
+
- spec/helpers/pb2/ColourTestcase.proto
|
153
|
+
- spec/helpers/pb2/event.pb.rb
|
154
|
+
- spec/helpers/pb2/event.proto
|
155
|
+
- spec/helpers/pb2/header/header.pb.rb
|
156
|
+
- spec/helpers/pb2/header/header.proto
|
157
|
+
- spec/helpers/pb2/human.pb.rb
|
158
|
+
- spec/helpers/pb2/unicorn.pb.rb
|
159
|
+
- spec/helpers/pb2/unicorn_event.pb.rb
|
160
|
+
- spec/helpers/pb3/FantasyHorse_pb.rb
|
161
|
+
- spec/helpers/pb3/PhoneDirectory_pb.rb
|
162
|
+
- spec/helpers/pb3/ProbeResult_pb.rb
|
163
|
+
- spec/helpers/pb3/ResultListComposerRequest_pb.rb
|
164
|
+
- spec/helpers/pb3/dnsmessage_pb.rb
|
165
|
+
- spec/helpers/pb3/events_pb.rb
|
166
|
+
- spec/helpers/pb3/header/header.proto3
|
167
|
+
- spec/helpers/pb3/header/header_pb.rb
|
168
|
+
- spec/helpers/pb3/integertest_pb.rb
|
169
|
+
- spec/helpers/pb3/messageA_pb.rb
|
170
|
+
- spec/helpers/pb3/messageB_pb.rb
|
171
|
+
- spec/helpers/pb3/rum2_pb.rb
|
172
|
+
- spec/helpers/pb3/rum3_pb.rb
|
173
|
+
- spec/helpers/pb3/rum_pb.rb
|
174
|
+
- spec/helpers/pb3/struct_test_pb.rb
|
175
|
+
- spec/helpers/pb3/unicorn_pb.rb
|