go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/textpb/internal/test.proto (about)

     1  // Copyright 2019 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  syntax = "proto3";
     6  
     7  package testpb.internal;
     8  
     9  option go_package = "go.chromium.org/luci/common/proto/textpb/internal";
    10  
    11  import "go.chromium.org/luci/common/proto/options.proto";
    12  
    13  message Leaf {
    14    string str = 1;
    15    string json = 2 [(luci.text_pb_format) = JSON];
    16    repeated string json_rep = 3 [(luci.text_pb_format) = JSON];
    17  }
    18  
    19  message Container {
    20    Leaf leaf = 1;
    21    repeated Leaf leaf_rep = 2;
    22    map<string, Leaf> mapping = 3;
    23  }