github.com/influxdata/telegraf@v1.30.3/config/testdata/addressbook.proto (about)

     1  syntax = "proto3";
     2  
     3  package addressbook;
     4  
     5  message Person {
     6    string name = 1;
     7    int32 id = 2;  // Unique ID number for this person.
     8    string email = 3;
     9    uint32 age = 4;
    10  
    11    enum PhoneType {
    12      MOBILE = 0;
    13      HOME = 1;
    14      WORK = 2;
    15    }
    16  
    17    message PhoneNumber {
    18      string number = 1;
    19      PhoneType type = 2;
    20    }
    21  
    22    repeated PhoneNumber phones = 5;
    23  }
    24  
    25  message AddressBook {
    26    repeated Person people = 1;
    27    repeated string tags = 2;
    28  }