github.com/jhump/protoreflect@v1.16.0/internal/testprotos/grpc/dummy.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0-devel 4 // protoc v5.26.1 5 // source: grpc/dummy.proto 6 7 package grpc 8 9 import ( 10 testprotos "github.com/jhump/protoreflect/internal/testprotos" 11 pkg "github.com/jhump/protoreflect/internal/testprotos/pkg" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 type DummyRequest struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 Foo [][]byte `protobuf:"bytes,1,rep,name=foo,proto3" json:"foo,omitempty"` 31 Bar string `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty"` 32 Baz *testprotos.TestMessage `protobuf:"bytes,3,opt,name=baz,proto3" json:"baz,omitempty"` 33 Snafu *testprotos.TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,4,opt,name=snafu,proto3" json:"snafu,omitempty"` 34 Flags map[string]bool `protobuf:"bytes,5,rep,name=flags,proto3" json:"flags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 35 Others map[string]*testprotos.TestMessage `protobuf:"bytes,6,rep,name=others,proto3" json:"others,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 36 } 37 38 func (x *DummyRequest) Reset() { 39 *x = DummyRequest{} 40 if protoimpl.UnsafeEnabled { 41 mi := &file_grpc_dummy_proto_msgTypes[0] 42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 43 ms.StoreMessageInfo(mi) 44 } 45 } 46 47 func (x *DummyRequest) String() string { 48 return protoimpl.X.MessageStringOf(x) 49 } 50 51 func (*DummyRequest) ProtoMessage() {} 52 53 func (x *DummyRequest) ProtoReflect() protoreflect.Message { 54 mi := &file_grpc_dummy_proto_msgTypes[0] 55 if protoimpl.UnsafeEnabled && x != nil { 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 if ms.LoadMessageInfo() == nil { 58 ms.StoreMessageInfo(mi) 59 } 60 return ms 61 } 62 return mi.MessageOf(x) 63 } 64 65 // Deprecated: Use DummyRequest.ProtoReflect.Descriptor instead. 66 func (*DummyRequest) Descriptor() ([]byte, []int) { 67 return file_grpc_dummy_proto_rawDescGZIP(), []int{0} 68 } 69 70 func (x *DummyRequest) GetFoo() [][]byte { 71 if x != nil { 72 return x.Foo 73 } 74 return nil 75 } 76 77 func (x *DummyRequest) GetBar() string { 78 if x != nil { 79 return x.Bar 80 } 81 return "" 82 } 83 84 func (x *DummyRequest) GetBaz() *testprotos.TestMessage { 85 if x != nil { 86 return x.Baz 87 } 88 return nil 89 } 90 91 func (x *DummyRequest) GetSnafu() *testprotos.TestMessage_NestedMessage_AnotherNestedMessage { 92 if x != nil { 93 return x.Snafu 94 } 95 return nil 96 } 97 98 func (x *DummyRequest) GetFlags() map[string]bool { 99 if x != nil { 100 return x.Flags 101 } 102 return nil 103 } 104 105 func (x *DummyRequest) GetOthers() map[string]*testprotos.TestMessage { 106 if x != nil { 107 return x.Others 108 } 109 return nil 110 } 111 112 type DummyResponse struct { 113 state protoimpl.MessageState 114 sizeCache protoimpl.SizeCache 115 unknownFields protoimpl.UnknownFields 116 117 Atm *testprotos.AnotherTestMessage `protobuf:"bytes,1,opt,name=atm,proto3" json:"atm,omitempty"` 118 Vs []int32 `protobuf:"varint,2,rep,packed,name=vs,proto3" json:"vs,omitempty"` 119 } 120 121 func (x *DummyResponse) Reset() { 122 *x = DummyResponse{} 123 if protoimpl.UnsafeEnabled { 124 mi := &file_grpc_dummy_proto_msgTypes[1] 125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 126 ms.StoreMessageInfo(mi) 127 } 128 } 129 130 func (x *DummyResponse) String() string { 131 return protoimpl.X.MessageStringOf(x) 132 } 133 134 func (*DummyResponse) ProtoMessage() {} 135 136 func (x *DummyResponse) ProtoReflect() protoreflect.Message { 137 mi := &file_grpc_dummy_proto_msgTypes[1] 138 if protoimpl.UnsafeEnabled && x != nil { 139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 140 if ms.LoadMessageInfo() == nil { 141 ms.StoreMessageInfo(mi) 142 } 143 return ms 144 } 145 return mi.MessageOf(x) 146 } 147 148 // Deprecated: Use DummyResponse.ProtoReflect.Descriptor instead. 149 func (*DummyResponse) Descriptor() ([]byte, []int) { 150 return file_grpc_dummy_proto_rawDescGZIP(), []int{1} 151 } 152 153 func (x *DummyResponse) GetAtm() *testprotos.AnotherTestMessage { 154 if x != nil { 155 return x.Atm 156 } 157 return nil 158 } 159 160 func (x *DummyResponse) GetVs() []int32 { 161 if x != nil { 162 return x.Vs 163 } 164 return nil 165 } 166 167 var File_grpc_dummy_proto protoreflect.FileDescriptor 168 169 var file_grpc_dummy_proto_rawDesc = []byte{ 170 0x0a, 0x10, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x2e, 0x70, 0x72, 0x6f, 171 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x10, 172 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 173 0x1a, 0x17, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 174 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x03, 0x0a, 0x0c, 0x44, 0x75, 175 0x6d, 0x6d, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 176 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 177 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x61, 0x72, 0x12, 0x29, 178 0x0a, 0x03, 0x62, 0x61, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 179 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 180 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x62, 0x61, 0x7a, 0x12, 0x50, 0x0a, 0x05, 0x73, 0x6e, 0x61, 181 0x66, 0x75, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 182 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 183 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 184 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 185 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x6e, 0x61, 0x66, 0x75, 0x12, 0x39, 0x0a, 0x05, 0x66, 186 0x6c, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 187 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x52, 0x65, 0x71, 188 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 189 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x3c, 0x0a, 0x06, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x73, 190 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 191 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 192 0x2e, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6f, 0x74, 193 0x68, 0x65, 0x72, 0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 194 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 195 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 196 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x52, 197 0x0a, 0x0b, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 198 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 199 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 200 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 201 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 202 0x38, 0x01, 0x22, 0x51, 0x0a, 0x0d, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 203 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x03, 0x61, 0x74, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 204 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 0x6e, 205 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 206 0x52, 0x03, 0x61, 0x74, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x76, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 207 0x05, 0x52, 0x02, 0x76, 0x73, 0x32, 0xc1, 0x02, 0x0a, 0x0c, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x53, 208 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x44, 0x6f, 0x53, 0x6f, 0x6d, 0x65, 209 0x74, 0x68, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 210 0x6f, 0x73, 0x2e, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 211 0x1c, 0x2e, 0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 212 0x6c, 0x65, 0x63, 0x74, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x2e, 0x42, 0x61, 0x72, 0x12, 0x47, 0x0a, 213 0x0f, 0x44, 0x6f, 0x53, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x45, 0x6c, 0x73, 0x65, 214 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 215 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 216 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x52, 0x65, 0x73, 0x70, 217 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x12, 0x52, 0x0a, 0x10, 0x44, 0x6f, 0x53, 0x6f, 0x6d, 0x65, 218 0x74, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x67, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x2e, 0x6a, 0x68, 0x75, 219 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x2e, 220 0x64, 0x65, 0x73, 0x63, 0x2e, 0x42, 0x61, 0x72, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 221 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 222 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x30, 0x01, 0x12, 0x4d, 0x0a, 0x12, 0x44, 0x6f, 223 0x53, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x46, 0x6f, 0x72, 0x65, 0x76, 0x65, 0x72, 224 0x12, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x75, 225 0x6d, 0x6d, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x74, 0x65, 0x73, 226 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x52, 0x65, 0x73, 227 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 228 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2f, 0x70, 0x72, 229 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 230 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x67, 231 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 232 } 233 234 var ( 235 file_grpc_dummy_proto_rawDescOnce sync.Once 236 file_grpc_dummy_proto_rawDescData = file_grpc_dummy_proto_rawDesc 237 ) 238 239 func file_grpc_dummy_proto_rawDescGZIP() []byte { 240 file_grpc_dummy_proto_rawDescOnce.Do(func() { 241 file_grpc_dummy_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_dummy_proto_rawDescData) 242 }) 243 return file_grpc_dummy_proto_rawDescData 244 } 245 246 var file_grpc_dummy_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 247 var file_grpc_dummy_proto_goTypes = []interface{}{ 248 (*DummyRequest)(nil), // 0: testprotos.DummyRequest 249 (*DummyResponse)(nil), // 1: testprotos.DummyResponse 250 nil, // 2: testprotos.DummyRequest.FlagsEntry 251 nil, // 3: testprotos.DummyRequest.OthersEntry 252 (*testprotos.TestMessage)(nil), // 4: testprotos.TestMessage 253 (*testprotos.TestMessage_NestedMessage_AnotherNestedMessage)(nil), // 5: testprotos.TestMessage.NestedMessage.AnotherNestedMessage 254 (*testprotos.AnotherTestMessage)(nil), // 6: testprotos.AnotherTestMessage 255 (*pkg.Bar)(nil), // 7: jhump.protoreflect.desc.Bar 256 } 257 var file_grpc_dummy_proto_depIdxs = []int32{ 258 4, // 0: testprotos.DummyRequest.baz:type_name -> testprotos.TestMessage 259 5, // 1: testprotos.DummyRequest.snafu:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage 260 2, // 2: testprotos.DummyRequest.flags:type_name -> testprotos.DummyRequest.FlagsEntry 261 3, // 3: testprotos.DummyRequest.others:type_name -> testprotos.DummyRequest.OthersEntry 262 6, // 4: testprotos.DummyResponse.atm:type_name -> testprotos.AnotherTestMessage 263 4, // 5: testprotos.DummyRequest.OthersEntry.value:type_name -> testprotos.TestMessage 264 0, // 6: testprotos.DummyService.DoSomething:input_type -> testprotos.DummyRequest 265 4, // 7: testprotos.DummyService.DoSomethingElse:input_type -> testprotos.TestMessage 266 7, // 8: testprotos.DummyService.DoSomethingAgain:input_type -> jhump.protoreflect.desc.Bar 267 0, // 9: testprotos.DummyService.DoSomethingForever:input_type -> testprotos.DummyRequest 268 7, // 10: testprotos.DummyService.DoSomething:output_type -> jhump.protoreflect.desc.Bar 269 1, // 11: testprotos.DummyService.DoSomethingElse:output_type -> testprotos.DummyResponse 270 6, // 12: testprotos.DummyService.DoSomethingAgain:output_type -> testprotos.AnotherTestMessage 271 1, // 13: testprotos.DummyService.DoSomethingForever:output_type -> testprotos.DummyResponse 272 10, // [10:14] is the sub-list for method output_type 273 6, // [6:10] is the sub-list for method input_type 274 6, // [6:6] is the sub-list for extension type_name 275 6, // [6:6] is the sub-list for extension extendee 276 0, // [0:6] is the sub-list for field type_name 277 } 278 279 func init() { file_grpc_dummy_proto_init() } 280 func file_grpc_dummy_proto_init() { 281 if File_grpc_dummy_proto != nil { 282 return 283 } 284 if !protoimpl.UnsafeEnabled { 285 file_grpc_dummy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 286 switch v := v.(*DummyRequest); i { 287 case 0: 288 return &v.state 289 case 1: 290 return &v.sizeCache 291 case 2: 292 return &v.unknownFields 293 default: 294 return nil 295 } 296 } 297 file_grpc_dummy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 298 switch v := v.(*DummyResponse); i { 299 case 0: 300 return &v.state 301 case 1: 302 return &v.sizeCache 303 case 2: 304 return &v.unknownFields 305 default: 306 return nil 307 } 308 } 309 } 310 type x struct{} 311 out := protoimpl.TypeBuilder{ 312 File: protoimpl.DescBuilder{ 313 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 314 RawDescriptor: file_grpc_dummy_proto_rawDesc, 315 NumEnums: 0, 316 NumMessages: 4, 317 NumExtensions: 0, 318 NumServices: 1, 319 }, 320 GoTypes: file_grpc_dummy_proto_goTypes, 321 DependencyIndexes: file_grpc_dummy_proto_depIdxs, 322 MessageInfos: file_grpc_dummy_proto_msgTypes, 323 }.Build() 324 File_grpc_dummy_proto = out.File 325 file_grpc_dummy_proto_rawDesc = nil 326 file_grpc_dummy_proto_goTypes = nil 327 file_grpc_dummy_proto_depIdxs = nil 328 }