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 = "proto2"; 6 7package goproto.proto.testrequired; 8 9option go_package = "google.golang.org/protobuf/internal/testprotos/required"; 10 11message Int32 { 12 required int32 v = 1; 13} 14 15message Int64 { 16 required int64 v = 1; 17} 18 19message Uint32 { 20 required uint32 v = 1; 21} 22 23message Uint64 { 24 required uint64 v = 1; 25} 26 27message Sint32 { 28 required sint32 v = 1; 29} 30 31message Sint64 { 32 required sint64 v = 1; 33} 34 35message Fixed32 { 36 required fixed32 v = 1; 37} 38 39message Fixed64 { 40 required fixed64 v = 1; 41} 42 43message Float { 44 required float v = 1; 45} 46 47message Double { 48 required double v = 1; 49} 50 51message Bool { 52 required bool v = 1; 53} 54 55message String { 56 required string v = 1; 57} 58 59message Bytes { 60 required bytes v = 1; 61} 62 63message Message { 64 message M {} 65 required M v = 1; 66} 67 68message Group { 69 required group Group = 1 { 70 optional int32 v = 1; 71 } 72} 73