Sha256: 133110c677db91b10171e61264f51724aaa46416fe0f3569ac987d95318a8c18

Contents?: true

Size: 744 Bytes

Versions: 8

Compression:

Stored size: 744 Bytes

Contents

syntax = "proto3";

// Compile: protoc --ruby_out=. spec/helpers/*proto3

message Unicorn {

    string name = 1;
    uint32 age = 2;
    Colour fur_colour = 3;
    repeated Colour favourite_colours = 4;
    repeated int32 favourite_numbers = 5;
    bool is_pegasus = 6;
    string timestamp = 7; # Logstash adds this to the event, needed for encoder test
    string version = 8; # Logstash adds this to the event, needed for encoder test
    Unicorn mother = 9;
    Unicorn father = 10;
}

enum Colour {
    
    BLUE = 1;
    PINK = 2;
    SILVER = 3;
    GLITTER = 4;
    WHITE = 5;
    GREEN = 6;
}

// TODO test float datatypes aswell as single fields
// TODO test class reference to other file as single field
// TODO test a class as list

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logstash-codec-protobuf-1.2.9-jruby spec/helpers/pb3/unicorn.proto3
logstash-codec-protobuf-1.2.8-jruby spec/helpers/pb3/unicorn.proto3
logstash-codec-protobuf-1.2.5 spec/helpers/pb3/unicorn.proto3
logstash-codec-protobuf-1.2.2 spec/helpers/pb3/unicorn.proto3
logstash-codec-protobuf-1.2.1 spec/helpers/pb3/unicorn.proto3
logstash-codec-protobuf-1.2.0 spec/helpers/pb3/unicorn.proto3
logstash-codec-protobuf-1.1.0 spec/helpers/pb3/unicorn.proto3
logstash-codec-protobuf-1.0.5 spec/helpers/pb3/unicorn.proto3