matrixprotofiles

A Repo containing .proto files for the matrix protocol. Used in https://github.com/MTRNord/MatrixProtoBuf
git clone git://archive.git.mtrnord.blog/Nordgedanken/matrixprotofiles.git
Log | Files | Refs | README | LICENSE

server.pb.go (14607B)


      1 // Code generated by protoc-gen-go. DO NOT EDIT.
      2 // source: federation/server.proto
      3 
      4 /*
      5 Package matrixProtos_Server is a generated protocol buffer package.
      6 
      7 It is generated from these files:
      8 	federation/server.proto
      9 
     10 It has these top-level messages:
     11 	VersionRequest
     12 	VersionsResponse
     13 	Version
     14 	KeyRequest
     15 	KeyResponse
     16 	OldVerifyKey
     17 	Signature
     18 	TlsFingerprint
     19 	VerifyKey
     20 */
     21 package matrixProtos_Server
     22 
     23 import proto "github.com/golang/protobuf/proto"
     24 import fmt "fmt"
     25 import math "math"
     26 
     27 import (
     28 	context "golang.org/x/net/context"
     29 	grpc "google.golang.org/grpc"
     30 )
     31 
     32 // Reference imports to suppress errors if they are not otherwise used.
     33 var _ = proto.Marshal
     34 var _ = fmt.Errorf
     35 var _ = math.Inf
     36 
     37 // This is a compile-time assertion to ensure that this generated file
     38 // is compatible with the proto package it is being compiled against.
     39 // A compilation error at this line likely means your copy of the
     40 // proto package needs to be updated.
     41 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
     42 
     43 type VersionRequest struct {
     44 }
     45 
     46 func (m *VersionRequest) Reset()                    { *m = VersionRequest{} }
     47 func (m *VersionRequest) String() string            { return proto.CompactTextString(m) }
     48 func (*VersionRequest) ProtoMessage()               {}
     49 func (*VersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
     50 
     51 type VersionsResponse struct {
     52 	Versions []*Version `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"`
     53 }
     54 
     55 func (m *VersionsResponse) Reset()                    { *m = VersionsResponse{} }
     56 func (m *VersionsResponse) String() string            { return proto.CompactTextString(m) }
     57 func (*VersionsResponse) ProtoMessage()               {}
     58 func (*VersionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
     59 
     60 func (m *VersionsResponse) GetVersions() []*Version {
     61 	if m != nil {
     62 		return m.Versions
     63 	}
     64 	return nil
     65 }
     66 
     67 type Version struct {
     68 	Name    string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
     69 	Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
     70 }
     71 
     72 func (m *Version) Reset()                    { *m = Version{} }
     73 func (m *Version) String() string            { return proto.CompactTextString(m) }
     74 func (*Version) ProtoMessage()               {}
     75 func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
     76 
     77 func (m *Version) GetName() string {
     78 	if m != nil {
     79 		return m.Name
     80 	}
     81 	return ""
     82 }
     83 
     84 func (m *Version) GetVersion() string {
     85 	if m != nil {
     86 		return m.Version
     87 	}
     88 	return ""
     89 }
     90 
     91 type KeyRequest struct {
     92 }
     93 
     94 func (m *KeyRequest) Reset()                    { *m = KeyRequest{} }
     95 func (m *KeyRequest) String() string            { return proto.CompactTextString(m) }
     96 func (*KeyRequest) ProtoMessage()               {}
     97 func (*KeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
     98 
     99 type KeyResponse struct {
    100 	OldVerifyKeys   []*OldVerifyKey   `protobuf:"bytes,1,rep,name=old_verify_keys,json=oldVerifyKeys" json:"old_verify_keys,omitempty"`
    101 	ServerName      string            `protobuf:"bytes,2,opt,name=server_name,json=serverName" json:"server_name,omitempty"`
    102 	Signatures      []*Signature      `protobuf:"bytes,3,rep,name=signatures" json:"signatures,omitempty"`
    103 	TlsFingerprints []*TlsFingerprint `protobuf:"bytes,4,rep,name=tls_fingerprints,json=tlsFingerprints" json:"tls_fingerprints,omitempty"`
    104 	ValidUntilTs    int64             `protobuf:"varint,5,opt,name=valid_until_ts,json=validUntilTs" json:"valid_until_ts,omitempty"`
    105 	VerifyKeys      []*VerifyKey      `protobuf:"bytes,6,rep,name=verify_keys,json=verifyKeys" json:"verify_keys,omitempty"`
    106 }
    107 
    108 func (m *KeyResponse) Reset()                    { *m = KeyResponse{} }
    109 func (m *KeyResponse) String() string            { return proto.CompactTextString(m) }
    110 func (*KeyResponse) ProtoMessage()               {}
    111 func (*KeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
    112 
    113 func (m *KeyResponse) GetOldVerifyKeys() []*OldVerifyKey {
    114 	if m != nil {
    115 		return m.OldVerifyKeys
    116 	}
    117 	return nil
    118 }
    119 
    120 func (m *KeyResponse) GetServerName() string {
    121 	if m != nil {
    122 		return m.ServerName
    123 	}
    124 	return ""
    125 }
    126 
    127 func (m *KeyResponse) GetSignatures() []*Signature {
    128 	if m != nil {
    129 		return m.Signatures
    130 	}
    131 	return nil
    132 }
    133 
    134 func (m *KeyResponse) GetTlsFingerprints() []*TlsFingerprint {
    135 	if m != nil {
    136 		return m.TlsFingerprints
    137 	}
    138 	return nil
    139 }
    140 
    141 func (m *KeyResponse) GetValidUntilTs() int64 {
    142 	if m != nil {
    143 		return m.ValidUntilTs
    144 	}
    145 	return 0
    146 }
    147 
    148 func (m *KeyResponse) GetVerifyKeys() []*VerifyKey {
    149 	if m != nil {
    150 		return m.VerifyKeys
    151 	}
    152 	return nil
    153 }
    154 
    155 type OldVerifyKey struct {
    156 	Type      string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
    157 	ExpiredTS int64  `protobuf:"varint,2,opt,name=expiredTS" json:"expiredTS,omitempty"`
    158 	Key       string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
    159 }
    160 
    161 func (m *OldVerifyKey) Reset()                    { *m = OldVerifyKey{} }
    162 func (m *OldVerifyKey) String() string            { return proto.CompactTextString(m) }
    163 func (*OldVerifyKey) ProtoMessage()               {}
    164 func (*OldVerifyKey) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
    165 
    166 func (m *OldVerifyKey) GetType() string {
    167 	if m != nil {
    168 		return m.Type
    169 	}
    170 	return ""
    171 }
    172 
    173 func (m *OldVerifyKey) GetExpiredTS() int64 {
    174 	if m != nil {
    175 		return m.ExpiredTS
    176 	}
    177 	return 0
    178 }
    179 
    180 func (m *OldVerifyKey) GetKey() string {
    181 	if m != nil {
    182 		return m.Key
    183 	}
    184 	return ""
    185 }
    186 
    187 type Signature struct {
    188 	ServerName string `protobuf:"bytes,1,opt,name=server_name,json=serverName" json:"server_name,omitempty"`
    189 	Type       string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
    190 	Signature  string `protobuf:"bytes,3,opt,name=signature" json:"signature,omitempty"`
    191 }
    192 
    193 func (m *Signature) Reset()                    { *m = Signature{} }
    194 func (m *Signature) String() string            { return proto.CompactTextString(m) }
    195 func (*Signature) ProtoMessage()               {}
    196 func (*Signature) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
    197 
    198 func (m *Signature) GetServerName() string {
    199 	if m != nil {
    200 		return m.ServerName
    201 	}
    202 	return ""
    203 }
    204 
    205 func (m *Signature) GetType() string {
    206 	if m != nil {
    207 		return m.Type
    208 	}
    209 	return ""
    210 }
    211 
    212 func (m *Signature) GetSignature() string {
    213 	if m != nil {
    214 		return m.Signature
    215 	}
    216 	return ""
    217 }
    218 
    219 type TlsFingerprint struct {
    220 	Sha256 string `protobuf:"bytes,1,opt,name=sha256" json:"sha256,omitempty"`
    221 }
    222 
    223 func (m *TlsFingerprint) Reset()                    { *m = TlsFingerprint{} }
    224 func (m *TlsFingerprint) String() string            { return proto.CompactTextString(m) }
    225 func (*TlsFingerprint) ProtoMessage()               {}
    226 func (*TlsFingerprint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
    227 
    228 func (m *TlsFingerprint) GetSha256() string {
    229 	if m != nil {
    230 		return m.Sha256
    231 	}
    232 	return ""
    233 }
    234 
    235 type VerifyKey struct {
    236 	Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
    237 	Key  string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
    238 }
    239 
    240 func (m *VerifyKey) Reset()                    { *m = VerifyKey{} }
    241 func (m *VerifyKey) String() string            { return proto.CompactTextString(m) }
    242 func (*VerifyKey) ProtoMessage()               {}
    243 func (*VerifyKey) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
    244 
    245 func (m *VerifyKey) GetType() string {
    246 	if m != nil {
    247 		return m.Type
    248 	}
    249 	return ""
    250 }
    251 
    252 func (m *VerifyKey) GetKey() string {
    253 	if m != nil {
    254 		return m.Key
    255 	}
    256 	return ""
    257 }
    258 
    259 func init() {
    260 	proto.RegisterType((*VersionRequest)(nil), "matrixProtos_Server.VersionRequest")
    261 	proto.RegisterType((*VersionsResponse)(nil), "matrixProtos_Server.VersionsResponse")
    262 	proto.RegisterType((*Version)(nil), "matrixProtos_Server.Version")
    263 	proto.RegisterType((*KeyRequest)(nil), "matrixProtos_Server.KeyRequest")
    264 	proto.RegisterType((*KeyResponse)(nil), "matrixProtos_Server.KeyResponse")
    265 	proto.RegisterType((*OldVerifyKey)(nil), "matrixProtos_Server.OldVerifyKey")
    266 	proto.RegisterType((*Signature)(nil), "matrixProtos_Server.Signature")
    267 	proto.RegisterType((*TlsFingerprint)(nil), "matrixProtos_Server.TlsFingerprint")
    268 	proto.RegisterType((*VerifyKey)(nil), "matrixProtos_Server.VerifyKey")
    269 }
    270 
    271 // Reference imports to suppress errors if they are not otherwise used.
    272 var _ context.Context
    273 var _ grpc.ClientConn
    274 
    275 // This is a compile-time assertion to ensure that this generated file
    276 // is compatible with the grpc package it is being compiled against.
    277 const _ = grpc.SupportPackageIsVersion4
    278 
    279 // Client API for FederationService service
    280 
    281 type FederationServiceClient interface {
    282 	Versions(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionsResponse, error)
    283 	Keys(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error)
    284 }
    285 
    286 type federationServiceClient struct {
    287 	cc *grpc.ClientConn
    288 }
    289 
    290 func NewFederationServiceClient(cc *grpc.ClientConn) FederationServiceClient {
    291 	return &federationServiceClient{cc}
    292 }
    293 
    294 func (c *federationServiceClient) Versions(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionsResponse, error) {
    295 	out := new(VersionsResponse)
    296 	err := grpc.Invoke(ctx, "/matrixProtos_Server.FederationService/Versions", in, out, c.cc, opts...)
    297 	if err != nil {
    298 		return nil, err
    299 	}
    300 	return out, nil
    301 }
    302 
    303 func (c *federationServiceClient) Keys(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error) {
    304 	out := new(KeyResponse)
    305 	err := grpc.Invoke(ctx, "/matrixProtos_Server.FederationService/Keys", in, out, c.cc, opts...)
    306 	if err != nil {
    307 		return nil, err
    308 	}
    309 	return out, nil
    310 }
    311 
    312 // Server API for FederationService service
    313 
    314 type FederationServiceServer interface {
    315 	Versions(context.Context, *VersionRequest) (*VersionsResponse, error)
    316 	Keys(context.Context, *KeyRequest) (*KeyResponse, error)
    317 }
    318 
    319 func RegisterFederationServiceServer(s *grpc.Server, srv FederationServiceServer) {
    320 	s.RegisterService(&_FederationService_serviceDesc, srv)
    321 }
    322 
    323 func _FederationService_Versions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
    324 	in := new(VersionRequest)
    325 	if err := dec(in); err != nil {
    326 		return nil, err
    327 	}
    328 	if interceptor == nil {
    329 		return srv.(FederationServiceServer).Versions(ctx, in)
    330 	}
    331 	info := &grpc.UnaryServerInfo{
    332 		Server:     srv,
    333 		FullMethod: "/matrixProtos_Server.FederationService/Versions",
    334 	}
    335 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
    336 		return srv.(FederationServiceServer).Versions(ctx, req.(*VersionRequest))
    337 	}
    338 	return interceptor(ctx, in, info, handler)
    339 }
    340 
    341 func _FederationService_Keys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
    342 	in := new(KeyRequest)
    343 	if err := dec(in); err != nil {
    344 		return nil, err
    345 	}
    346 	if interceptor == nil {
    347 		return srv.(FederationServiceServer).Keys(ctx, in)
    348 	}
    349 	info := &grpc.UnaryServerInfo{
    350 		Server:     srv,
    351 		FullMethod: "/matrixProtos_Server.FederationService/Keys",
    352 	}
    353 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
    354 		return srv.(FederationServiceServer).Keys(ctx, req.(*KeyRequest))
    355 	}
    356 	return interceptor(ctx, in, info, handler)
    357 }
    358 
    359 var _FederationService_serviceDesc = grpc.ServiceDesc{
    360 	ServiceName: "matrixProtos_Server.FederationService",
    361 	HandlerType: (*FederationServiceServer)(nil),
    362 	Methods: []grpc.MethodDesc{
    363 		{
    364 			MethodName: "Versions",
    365 			Handler:    _FederationService_Versions_Handler,
    366 		},
    367 		{
    368 			MethodName: "Keys",
    369 			Handler:    _FederationService_Keys_Handler,
    370 		},
    371 	},
    372 	Streams:  []grpc.StreamDesc{},
    373 	Metadata: "federation/server.proto",
    374 }
    375 
    376 func init() { proto.RegisterFile("federation/server.proto", fileDescriptor0) }
    377 
    378 var fileDescriptor0 = []byte{
    379 	// 463 bytes of a gzipped FileDescriptorProto
    380 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x4d, 0x6f, 0xd3, 0x40,
    381 	0x10, 0x95, 0xe3, 0x90, 0x36, 0x93, 0x90, 0x86, 0x45, 0x02, 0xab, 0xaa, 0x20, 0xb8, 0x20, 0xe5,
    382 	0x14, 0x44, 0x10, 0x1f, 0x27, 0xb8, 0x55, 0x42, 0xa0, 0x82, 0x9c, 0x90, 0x23, 0x96, 0xc1, 0x93,
    383 	0xb2, 0xaa, 0x6b, 0x9b, 0x9d, 0x8d, 0x55, 0xff, 0x31, 0x7e, 0x17, 0x3f, 0x01, 0xed, 0x7a, 0xfd,
    384 	0x11, 0x62, 0x7c, 0xdb, 0x79, 0x7e, 0xfb, 0xe6, 0xf9, 0xed, 0x0c, 0x3c, 0xdc, 0x62, 0x88, 0x22,
    385 	0x90, 0x3c, 0x89, 0x9f, 0x13, 0x8a, 0x0c, 0xc5, 0x22, 0x15, 0x89, 0x4c, 0xd8, 0xfd, 0x9b, 0x40,
    386 	0x0a, 0x7e, 0xfb, 0x45, 0x15, 0xe4, 0xaf, 0xf4, 0x27, 0x77, 0x0a, 0x93, 0x0d, 0x0a, 0xe2, 0x49,
    387 	0xec, 0xe1, 0xaf, 0x1d, 0x92, 0x74, 0x3f, 0xc1, 0xd4, 0x20, 0xe4, 0x21, 0xa5, 0x49, 0x4c, 0xc8,
    388 	0xde, 0xc2, 0x71, 0x66, 0x30, 0xc7, 0x9a, 0xd9, 0xf3, 0xd1, 0xf2, 0x6c, 0xd1, 0xa2, 0xb6, 0x28,
    389 	0xa5, 0x2a, 0xb6, 0xfb, 0x06, 0x8e, 0x0c, 0xc8, 0x18, 0xf4, 0xe3, 0xe0, 0x06, 0x1d, 0x6b, 0x66,
    390 	0xcd, 0x87, 0x9e, 0x3e, 0x33, 0x07, 0x8e, 0x0c, 0xd5, 0xe9, 0x69, 0xb8, 0x2c, 0xdd, 0x31, 0xc0,
    391 	0x47, 0xcc, 0x4b, 0x53, 0x7f, 0x7a, 0x30, 0xd2, 0xa5, 0x31, 0xf4, 0x01, 0x4e, 0x92, 0x28, 0xf4,
    392 	0x33, 0x14, 0x7c, 0x9b, 0xfb, 0xd7, 0x98, 0x97, 0xbe, 0x9e, 0xb4, 0xfa, 0xfa, 0x1c, 0x85, 0x1b,
    393 	0x4d, 0x55, 0x1a, 0x77, 0x93, 0x46, 0x45, 0xec, 0x31, 0x8c, 0x8a, 0x98, 0x7c, 0xed, 0xae, 0xb0,
    394 	0x01, 0x05, 0x74, 0xa9, 0x3c, 0xbe, 0x03, 0x20, 0x7e, 0x15, 0x07, 0x72, 0x27, 0x90, 0x1c, 0x5b,
    395 	0xb7, 0x79, 0xd4, 0xda, 0x66, 0x55, 0xd2, 0xbc, 0xc6, 0x0d, 0x76, 0x09, 0x53, 0x19, 0x91, 0xbf,
    396 	0xe5, 0xf1, 0x15, 0x8a, 0x54, 0xf0, 0x58, 0x92, 0xd3, 0xd7, 0x2a, 0xe7, 0xad, 0x2a, 0xeb, 0x88,
    397 	0x2e, 0x6a, 0xae, 0x77, 0x22, 0xf7, 0x6a, 0x62, 0x4f, 0x61, 0x92, 0x05, 0x11, 0x0f, 0xfd, 0x5d,
    398 	0x2c, 0x79, 0xe4, 0x4b, 0x72, 0xee, 0xcc, 0xac, 0xb9, 0xed, 0x8d, 0x35, 0xfa, 0x55, 0x81, 0x6b,
    399 	0x62, 0xef, 0x61, 0xd4, 0x4c, 0x67, 0xd0, 0x61, 0xbb, 0x8e, 0x06, 0xb2, 0x2a, 0x17, 0xd7, 0x83,
    400 	0x71, 0x33, 0x36, 0xf5, 0x7c, 0x32, 0x4f, 0xab, 0xe7, 0x53, 0x67, 0x76, 0x06, 0x43, 0xbc, 0x4d,
    401 	0xb9, 0xc0, 0x70, 0xbd, 0xd2, 0xc9, 0xd9, 0x5e, 0x0d, 0xb0, 0x29, 0xd8, 0xd7, 0x98, 0x3b, 0xb6,
    402 	0xbe, 0xa0, 0x8e, 0xee, 0x37, 0x18, 0x56, 0x19, 0xfd, 0x1b, 0xbc, 0x75, 0x10, 0x7c, 0xd9, 0xb1,
    403 	0xb7, 0xdf, 0xb1, 0x8a, 0xd6, 0x28, 0xd7, 0x80, 0x3b, 0x87, 0xc9, 0x7e, 0x7a, 0xec, 0x01, 0x0c,
    404 	0xe8, 0x67, 0xb0, 0x7c, 0xf5, 0xda, 0xe8, 0x9b, 0xca, 0x7d, 0x01, 0xc3, 0xee, 0x5f, 0x3b, 0x30,
    405 	0xbf, 0xfc, 0x6d, 0xc1, 0xbd, 0x8b, 0x6a, 0xb7, 0x54, 0x76, 0xfc, 0x07, 0xb2, 0x0d, 0x1c, 0x97,
    406 	0xeb, 0xc2, 0xce, 0x3b, 0x97, 0xa2, 0x18, 0xe5, 0xd3, 0x67, 0x5d, 0x24, 0x6a, 0x4c, 0x78, 0xbf,
    407 	0x18, 0xcf, 0x56, 0x7a, 0xbd, 0x1a, 0xa7, 0xb3, 0xff, 0x13, 0x0a, 0xa9, 0xef, 0x03, 0xbd, 0xff,
    408 	0x2f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xe2, 0xf4, 0x73, 0x23, 0x1a, 0x04, 0x00, 0x00,
    409 }