check protoc compilation

This commit is contained in:
A.Unger
2020-02-12 10:41:32 +01:00
parent 0817cd92e4
commit 6d534a8f2a
2 changed files with 231 additions and 37 deletions

View File

@@ -116,11 +116,10 @@ func (m *Payload) GetAccount() *Account {
}
type Account struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DateOfBirth string `protobuf:"bytes,2,opt,name=dateOfBirth,proto3" json:"dateOfBirth,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
StandardClaims *StandardClaims `protobuf:"bytes,1,opt,name=standard_claims,json=standardClaims,proto3" json:"standard_claims,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Account) Reset() { *m = Account{} }
@@ -148,20 +147,197 @@ func (m *Account) XXX_DiscardUnknown() {
var xxx_messageInfo_Account proto.InternalMessageInfo
func (m *Account) GetName() string {
func (m *Account) GetStandardClaims() *StandardClaims {
if m != nil {
return m.StandardClaims
}
return nil
}
// OIDC standard claims https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
type StandardClaims struct {
Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
GivenName string `protobuf:"bytes,3,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"`
FamilyName string `protobuf:"bytes,4,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"`
MiddleName string `protobuf:"bytes,5,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname,omitempty"`
PreferredUsername string `protobuf:"bytes,7,opt,name=preferred_username,json=preferredUsername,proto3" json:"preferred_username,omitempty"`
Profile string `protobuf:"bytes,8,opt,name=profile,proto3" json:"profile,omitempty"`
Picture string `protobuf:"bytes,9,opt,name=picture,proto3" json:"picture,omitempty"`
Website string `protobuf:"bytes,10,opt,name=website,proto3" json:"website,omitempty"`
Email string `protobuf:"bytes,11,opt,name=email,proto3" json:"email,omitempty"`
EmailVerified bool `protobuf:"varint,12,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
Gender string `protobuf:"bytes,13,opt,name=gender,proto3" json:"gender,omitempty"`
Birthdate string `protobuf:"bytes,14,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
Zoneinfo string `protobuf:"bytes,15,opt,name=zoneinfo,proto3" json:"zoneinfo,omitempty"`
Locale string `protobuf:"bytes,16,opt,name=locale,proto3" json:"locale,omitempty"`
PhoneNumber string `protobuf:"bytes,17,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
PhoneNumberVerified bool `protobuf:"varint,18,opt,name=phone_number_verified,json=phoneNumberVerified,proto3" json:"phone_number_verified,omitempty"`
UpdatedAt int32 `protobuf:"varint,19,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StandardClaims) Reset() { *m = StandardClaims{} }
func (m *StandardClaims) String() string { return proto.CompactTextString(m) }
func (*StandardClaims) ProtoMessage() {}
func (*StandardClaims) Descriptor() ([]byte, []int) {
return fileDescriptor_e3c84319968a576b, []int{3}
}
func (m *StandardClaims) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StandardClaims.Unmarshal(m, b)
}
func (m *StandardClaims) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StandardClaims.Marshal(b, m, deterministic)
}
func (m *StandardClaims) XXX_Merge(src proto.Message) {
xxx_messageInfo_StandardClaims.Merge(m, src)
}
func (m *StandardClaims) XXX_Size() int {
return xxx_messageInfo_StandardClaims.Size(m)
}
func (m *StandardClaims) XXX_DiscardUnknown() {
xxx_messageInfo_StandardClaims.DiscardUnknown(m)
}
var xxx_messageInfo_StandardClaims proto.InternalMessageInfo
func (m *StandardClaims) GetSub() string {
if m != nil {
return m.Sub
}
return ""
}
func (m *StandardClaims) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Account) GetDateOfBirth() string {
func (m *StandardClaims) GetGivenName() string {
if m != nil {
return m.DateOfBirth
return m.GivenName
}
return ""
}
func (m *StandardClaims) GetFamilyName() string {
if m != nil {
return m.FamilyName
}
return ""
}
func (m *StandardClaims) GetMiddleName() string {
if m != nil {
return m.MiddleName
}
return ""
}
func (m *StandardClaims) GetNickname() string {
if m != nil {
return m.Nickname
}
return ""
}
func (m *StandardClaims) GetPreferredUsername() string {
if m != nil {
return m.PreferredUsername
}
return ""
}
func (m *StandardClaims) GetProfile() string {
if m != nil {
return m.Profile
}
return ""
}
func (m *StandardClaims) GetPicture() string {
if m != nil {
return m.Picture
}
return ""
}
func (m *StandardClaims) GetWebsite() string {
if m != nil {
return m.Website
}
return ""
}
func (m *StandardClaims) GetEmail() string {
if m != nil {
return m.Email
}
return ""
}
func (m *StandardClaims) GetEmailVerified() bool {
if m != nil {
return m.EmailVerified
}
return false
}
func (m *StandardClaims) GetGender() string {
if m != nil {
return m.Gender
}
return ""
}
func (m *StandardClaims) GetBirthdate() string {
if m != nil {
return m.Birthdate
}
return ""
}
func (m *StandardClaims) GetZoneinfo() string {
if m != nil {
return m.Zoneinfo
}
return ""
}
func (m *StandardClaims) GetLocale() string {
if m != nil {
return m.Locale
}
return ""
}
func (m *StandardClaims) GetPhoneNumber() string {
if m != nil {
return m.PhoneNumber
}
return ""
}
func (m *StandardClaims) GetPhoneNumberVerified() bool {
if m != nil {
return m.PhoneNumberVerified
}
return false
}
func (m *StandardClaims) GetUpdatedAt() int32 {
if m != nil {
return m.UpdatedAt
}
return 0
}
type Phoenix struct {
Theme string `protobuf:"bytes,1,opt,name=theme,proto3" json:"theme,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
@@ -173,7 +349,7 @@ func (m *Phoenix) Reset() { *m = Phoenix{} }
func (m *Phoenix) String() string { return proto.CompactTextString(m) }
func (*Phoenix) ProtoMessage() {}
func (*Phoenix) Descriptor() ([]byte, []int) {
return fileDescriptor_e3c84319968a576b, []int{3}
return fileDescriptor_e3c84319968a576b, []int{4}
}
func (m *Phoenix) XXX_Unmarshal(b []byte) error {
@@ -212,7 +388,7 @@ func (m *Query) Reset() { *m = Query{} }
func (m *Query) String() string { return proto.CompactTextString(m) }
func (*Query) ProtoMessage() {}
func (*Query) Descriptor() ([]byte, []int) {
return fileDescriptor_e3c84319968a576b, []int{4}
return fileDescriptor_e3c84319968a576b, []int{5}
}
func (m *Query) XXX_Unmarshal(b []byte) error {
@@ -251,7 +427,7 @@ func (m *Records) Reset() { *m = Records{} }
func (m *Records) String() string { return proto.CompactTextString(m) }
func (*Records) ProtoMessage() {}
func (*Records) Descriptor() ([]byte, []int) {
return fileDescriptor_e3c84319968a576b, []int{5}
return fileDescriptor_e3c84319968a576b, []int{6}
}
func (m *Records) XXX_Unmarshal(b []byte) error {
@@ -283,6 +459,7 @@ func init() {
proto.RegisterType((*Record)(nil), "settings.Record")
proto.RegisterType((*Payload)(nil), "settings.Payload")
proto.RegisterType((*Account)(nil), "settings.Account")
proto.RegisterType((*StandardClaims)(nil), "settings.StandardClaims")
proto.RegisterType((*Phoenix)(nil), "settings.Phoenix")
proto.RegisterType((*Query)(nil), "settings.Query")
proto.RegisterType((*Records)(nil), "settings.Records")
@@ -291,26 +468,44 @@ func init() {
func init() { proto.RegisterFile("pkg/proto/v0/accounts.proto", fileDescriptor_e3c84319968a576b) }
var fileDescriptor_e3c84319968a576b = []byte{
// 327 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x41, 0x4f, 0xc2, 0x40,
0x10, 0x85, 0x53, 0x0b, 0xac, 0x0c, 0x07, 0x60, 0x62, 0x0c,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73, 0x60, 0x55, 0x02, 0x3c, 0x81, 0xa6, 0x5c, 0xd2, 0xf7, 0x04, 0xfd, 0xe3, 0x9e, 0x41, 0xf3,
0x75, 0x4b, 0x79, 0x59, 0x5f, 0x87, 0x7b, 0x07, 0x4c, 0xaf, 0xaa, 0xc0, 0x4b, 0x60, 0xb9, 0x2e,
0x07, 0x96, 0x63, 0x7b, 0x9d, 0x71, 0xef, 0x10, 0x5a, 0x33, 0xdc, 0x00, 0xe3, 0x4f, 0x0b, 0xba,
0xb3, 0xca, 0x9c, 0x51, 0xbe, 0x4b, 0x22, 0xc2, 0x0b, 0xb0, 0x67, 0x24, 0xb1, 0xd6, 0x35, 0xac,
0x29, 0xe8, 0x81, 0x3d, 0x25, 0x89, 0xdd, 0x83, 0xa1, 0xf2, 0xfd, 0x43, 0xde, 0x40, 0xe3, 0x29,
0x29, 0x24, 0x9e, 0xfa, 0xfa, 0xe0, 0xbe, 0x39, 0xb8, 0xff, 0xb8, 0x3f, 0xf8, 0xb0, 0xff, 0xb7,
0xa3, 0x98, 0xb0, 0xb7, 0xa6, 0x86, 0x5a, 0xea, 0x73, 0xfb, 0x15, 0x00, 0x00, 0xff, 0xff, 0x06,
0x2e, 0xab, 0xa7, 0x53, 0x02, 0x00, 0x00,
// 611 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x94, 0xed, 0x6e, 0x12, 0x4f,
0x14, 0xc6, 0xb3, 0x7f, 0x5e, 0x16, 0x0e, 0x2d, 0x94, 0xe9, 0xdf, 0x66, 0xa4, 0x36, 0xc5, 0x4d,
0x4c, 0x50, 0x23, 0x28, 0xc6, 0x0b, 0xa8, 0xc6, 0xf4, 0x4b, 0xd3, 0xe8, 0x12, 0xfd, 0xe0, 0x17,
0xb2, 0xec, 0x1e, 0x60, 0xd2, 0x7d, 0xcb, 0xcc, 0x2c, 0x8a, 0x77, 0xe2, 0x45, 0x79, 0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d, 0x85, 0xa3, 0x7c, 0x9d, 0xa5, 0x38, 0x4f, 0x8b, 0x64, 0x81, 0x92, 0xf7, 0x29, 0xed, 0x90,
0x77, 0x4b, 0x16, 0x9b, 0xc2, 0xa3, 0xfb, 0xc8, 0xbe, 0x75, 0x46, 0xad, 0x9f, 0xde, 0x63, 0x77,
0x7f, 0xe0, 0x02, 0xa0, 0xc8, 0xcb, 0xa6, 0xa2, 0x79, 0xa0, 0xf9, 0xe9, 0xd0, 0x19, 0x35, 0xfc,
0xb6, 0x75, 0xae, 0xb4, 0x77, 0x09, 0xae, 0x3d, 0xde, 0xe5, 0x9c, 0xf4, 0x1a, 0x13, 0xb4, 0x27,
0xc9, 0x08, 0xef, 0x31, 0x34, 0x3e, 0x17, 0x28, 0xb7, 0x87, 0x77, 0xcd, 0x7b, 0x07, 0xae, 0xb9,
0x87, 0x8a, 0xbd, 0x00, 0x57, 0x9a, 0x25, 0x77, 0x86, 0xb5, 0x51, 0x67, 0x7a, 0xb2, 0x3f, 0xd1,
0x86, 0xf1, 0x2b, 0x60, 0xfa, 0xcb, 0x81, 0xde, 0xcc, 0x86, 0x33, 0x94, 0x1b, 0x11, 0x22, 0x7b,
0x0e, 0xb5, 0x19, 0x6a, 0x76, 0x50, 0x35, 0x38, 0x70, 0xd8, 0x08, 0x6a, 0xd7, 0xa8, 0x59, 0x6f,
0x1f, 0x50, 0x7f, 0xff, 0x20, 0xdf, 0x40, 0xfd, 0x46, 0x28, 0xcd, 0xce, 0xc6, 0xe6, 0x35, 0x19,
0x57, 0xaf, 0xc9, 0xf8, 0x63, 0xf9, 0x9a, 0x0c, 0xfa, 0x7f, 0x57, 0xa8, 0xf7, 0xee, 0xb7, 0x86,
0x81, 0x9a, 0xf4, 0xf3, 0xf6, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x77, 0xd8, 0xdb, 0xb0,
0x04, 0x00, 0x00,
}

View File

@@ -5,15 +5,14 @@ package proto
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
math "math"
)
import (
context "context"
client "github.com/micro/go-micro/client"
server "github.com/micro/go-micro/server"
)