Files
services/address/proto/address.pb.go
2021-08-27 12:37:59 +01:00

391 lines
13 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.6
// source: proto/address.proto
package address
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Record struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// line one of address
LineOne string `protobuf:"bytes,1,opt,name=line_one,json=lineOne,proto3" json:"line_one,omitempty"`
// line two of address
LineTwo string `protobuf:"bytes,2,opt,name=line_two,json=lineTwo,proto3" json:"line_two,omitempty"`
// the complete address
Summary string `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"`
// organisation if present
Organisation string `protobuf:"bytes,4,opt,name=organisation,proto3" json:"organisation,omitempty"`
// build name
BuildingName string `protobuf:"bytes,5,opt,name=building_name,json=buildingName,proto3" json:"building_name,omitempty"`
// the premise
Premise string `protobuf:"bytes,6,opt,name=premise,proto3" json:"premise,omitempty"`
// street name
Street string `protobuf:"bytes,7,opt,name=street,proto3" json:"street,omitempty"`
// dependent locality
Locality string `protobuf:"bytes,8,opt,name=locality,proto3" json:"locality,omitempty"`
// post town
Town string `protobuf:"bytes,9,opt,name=town,proto3" json:"town,omitempty"`
// the county
County string `protobuf:"bytes,10,opt,name=county,proto3" json:"county,omitempty"`
// the postcode
Postcode string `protobuf:"bytes,11,opt,name=postcode,proto3" json:"postcode,omitempty"`
}
func (x *Record) Reset() {
*x = Record{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_address_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Record) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Record) ProtoMessage() {}
func (x *Record) ProtoReflect() protoreflect.Message {
mi := &file_proto_address_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Record.ProtoReflect.Descriptor instead.
func (*Record) Descriptor() ([]byte, []int) {
return file_proto_address_proto_rawDescGZIP(), []int{0}
}
func (x *Record) GetLineOne() string {
if x != nil {
return x.LineOne
}
return ""
}
func (x *Record) GetLineTwo() string {
if x != nil {
return x.LineTwo
}
return ""
}
func (x *Record) GetSummary() string {
if x != nil {
return x.Summary
}
return ""
}
func (x *Record) GetOrganisation() string {
if x != nil {
return x.Organisation
}
return ""
}
func (x *Record) GetBuildingName() string {
if x != nil {
return x.BuildingName
}
return ""
}
func (x *Record) GetPremise() string {
if x != nil {
return x.Premise
}
return ""
}
func (x *Record) GetStreet() string {
if x != nil {
return x.Street
}
return ""
}
func (x *Record) GetLocality() string {
if x != nil {
return x.Locality
}
return ""
}
func (x *Record) GetTown() string {
if x != nil {
return x.Town
}
return ""
}
func (x *Record) GetCounty() string {
if x != nil {
return x.County
}
return ""
}
func (x *Record) GetPostcode() string {
if x != nil {
return x.Postcode
}
return ""
}
// Lookup a list of UK addresses by postcode
type LookupPostcodeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// UK postcode e.g SW1A 2AA
Postcode string `protobuf:"bytes,1,opt,name=postcode,proto3" json:"postcode,omitempty"`
}
func (x *LookupPostcodeRequest) Reset() {
*x = LookupPostcodeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_address_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LookupPostcodeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LookupPostcodeRequest) ProtoMessage() {}
func (x *LookupPostcodeRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_address_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LookupPostcodeRequest.ProtoReflect.Descriptor instead.
func (*LookupPostcodeRequest) Descriptor() ([]byte, []int) {
return file_proto_address_proto_rawDescGZIP(), []int{1}
}
func (x *LookupPostcodeRequest) GetPostcode() string {
if x != nil {
return x.Postcode
}
return ""
}
type LookupPostcodeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Addresses []*Record `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}
func (x *LookupPostcodeResponse) Reset() {
*x = LookupPostcodeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_address_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LookupPostcodeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LookupPostcodeResponse) ProtoMessage() {}
func (x *LookupPostcodeResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_address_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LookupPostcodeResponse.ProtoReflect.Descriptor instead.
func (*LookupPostcodeResponse) Descriptor() ([]byte, []int) {
return file_proto_address_proto_rawDescGZIP(), []int{2}
}
func (x *LookupPostcodeResponse) GetAddresses() []*Record {
if x != nil {
return x.Addresses
}
return nil
}
var File_proto_address_proto protoreflect.FileDescriptor
var file_proto_address_proto_rawDesc = []byte{
0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xb7,
0x02, 0x0a, 0x06, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x69, 0x6e,
0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x69, 0x6e,
0x65, 0x4f, 0x6e, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x77, 0x6f,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x69, 0x6e, 0x65, 0x54, 0x77, 0x6f, 0x12,
0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67,
0x61, 0x6e, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a,
0x0d, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x6e, 0x67, 0x4e, 0x61,
0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x18, 0x06, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06,
0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74,
0x72, 0x65, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79,
0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79,
0x12, 0x12, 0x0a, 0x04, 0x74, 0x6f, 0x77, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x74, 0x6f, 0x77, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x79, 0x18, 0x0a,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08,
0x70, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x70, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x33, 0x0a, 0x15, 0x4c, 0x6f, 0x6f, 0x6b,
0x75, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x47, 0x0a,
0x16, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65,
0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x61, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x32, 0x5e, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x12, 0x53, 0x0a, 0x0e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x63,
0x6f, 0x64, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x6f,
0x6f, 0x6b, 0x75, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x6f,
0x6f, 0x6b, 0x75, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x11, 0x5a, 0x0f, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x3b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_proto_address_proto_rawDescOnce sync.Once
file_proto_address_proto_rawDescData = file_proto_address_proto_rawDesc
)
func file_proto_address_proto_rawDescGZIP() []byte {
file_proto_address_proto_rawDescOnce.Do(func() {
file_proto_address_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_address_proto_rawDescData)
})
return file_proto_address_proto_rawDescData
}
var file_proto_address_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_proto_address_proto_goTypes = []interface{}{
(*Record)(nil), // 0: address.Record
(*LookupPostcodeRequest)(nil), // 1: address.LookupPostcodeRequest
(*LookupPostcodeResponse)(nil), // 2: address.LookupPostcodeResponse
}
var file_proto_address_proto_depIdxs = []int32{
0, // 0: address.LookupPostcodeResponse.addresses:type_name -> address.Record
1, // 1: address.Address.LookupPostcode:input_type -> address.LookupPostcodeRequest
2, // 2: address.Address.LookupPostcode:output_type -> address.LookupPostcodeResponse
2, // [2:3] is the sub-list for method output_type
1, // [1:2] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_proto_address_proto_init() }
func file_proto_address_proto_init() {
if File_proto_address_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_proto_address_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Record); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_address_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LookupPostcodeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_address_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LookupPostcodeResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_proto_address_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_proto_address_proto_goTypes,
DependencyIndexes: file_proto_address_proto_depIdxs,
MessageInfos: file_proto_address_proto_msgTypes,
}.Build()
File_proto_address_proto = out.File
file_proto_address_proto_rawDesc = nil
file_proto_address_proto_goTypes = nil
file_proto_address_proto_depIdxs = nil
}