File: news.proto

package info (click to toggle)
golang-google-protobuf 1.32.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,724 kB
  • sloc: sh: 94; makefile: 4
file content (38 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

syntax = "proto3";

package google.golang.org;

import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";

option go_package = "google.golang.org/protobuf/internal/testprotos/news";

message Article {
	enum Status {
		DRAFT = 0;
		PUBLISHED = 1;
		REVOKED = 2;
	}

	string author = 1;
	google.protobuf.Timestamp date = 2;
	string title = 3;
	string content = 4;
	Status status = 8;
	repeated string tags = 7;
	repeated google.protobuf.Any attachments = 6;
}

message BinaryAttachment {
	string name = 1;
	bytes data = 2;
}

message KeyValueAttachment {
	string name = 1;
	map<string, string> data = 2;
}