github.com/whiteCcinn/protobuf-go@v1.0.9/internal/testprotos/news/news.proto (about)

     1  // Copyright 2020 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  syntax = "proto3";
     6  
     7  package google.golang.org;
     8  
     9  import "google/protobuf/any.proto";
    10  import "google/protobuf/timestamp.proto";
    11  
    12  option go_package = "github.com/whiteCcinn/protobuf-go/internal/testprotos/news";
    13  
    14  message Article {
    15  	enum Status {
    16  		DRAFT = 0;
    17  		PUBLISHED = 1;
    18  		REVOKED = 2;
    19  	}
    20  
    21  	string author = 1;
    22  	google.protobuf.Timestamp date = 2;
    23  	string title = 3;
    24  	string content = 4;
    25  	Status status = 8;
    26  	repeated string tags = 7;
    27  	repeated google.protobuf.Any attachments = 6;
    28  }
    29  
    30  message BinaryAttachment {
    31  	string name = 1;
    32  	bytes data = 2;
    33  }
    34  
    35  message KeyValueAttachment {
    36  	string name = 1;
    37  	map<string, string> data = 2;
    38  }