...

Text file src/google.golang.org/protobuf/internal/testprotos/news/news.proto

Documentation: google.golang.org/protobuf/internal/testprotos/news

     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
     5syntax = "proto3";
     6
     7package google.golang.org;
     8
     9import "google/protobuf/any.proto";
    10import "google/protobuf/timestamp.proto";
    11
    12option go_package = "google.golang.org/protobuf/internal/testprotos/news";
    13
    14message 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
    30message BinaryAttachment {
    31	string name = 1;
    32	bytes data = 2;
    33}
    34
    35message KeyValueAttachment {
    36	string name = 1;
    37	map<string, string> data = 2;
    38}

View as plain text