Files
waf-platform/EdgeCommon/pkg/rpc/pb/service_region_country.pb.go
2026-03-22 17:37:40 +08:00

530 lines
19 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.19.6
// source: service_region_country.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 FindAllEnabledRegionCountriesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindAllEnabledRegionCountriesRequest) Reset() {
*x = FindAllEnabledRegionCountriesRequest{}
mi := &file_service_region_country_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindAllEnabledRegionCountriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledRegionCountriesRequest) ProtoMessage() {}
func (x *FindAllEnabledRegionCountriesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledRegionCountriesRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledRegionCountriesRequest) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{0}
}
type FindAllEnabledRegionCountriesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RegionCountries []*RegionCountry `protobuf:"bytes,1,rep,name=regionCountries,proto3" json:"regionCountries,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindAllEnabledRegionCountriesResponse) Reset() {
*x = FindAllEnabledRegionCountriesResponse{}
mi := &file_service_region_country_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindAllEnabledRegionCountriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledRegionCountriesResponse) ProtoMessage() {}
func (x *FindAllEnabledRegionCountriesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledRegionCountriesResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledRegionCountriesResponse) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{1}
}
func (x *FindAllEnabledRegionCountriesResponse) GetRegionCountries() []*RegionCountry {
if x != nil {
return x.RegionCountries
}
return nil
}
// 查找单个国家/地区信息
type FindEnabledRegionCountryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindEnabledRegionCountryRequest) Reset() {
*x = FindEnabledRegionCountryRequest{}
mi := &file_service_region_country_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindEnabledRegionCountryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledRegionCountryRequest) ProtoMessage() {}
func (x *FindEnabledRegionCountryRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledRegionCountryRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledRegionCountryRequest) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{2}
}
func (x *FindEnabledRegionCountryRequest) GetRegionCountryId() int64 {
if x != nil {
return x.RegionCountryId
}
return 0
}
type FindEnabledRegionCountryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RegionCountry *RegionCountry `protobuf:"bytes,1,opt,name=regionCountry,proto3" json:"regionCountry,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindEnabledRegionCountryResponse) Reset() {
*x = FindEnabledRegionCountryResponse{}
mi := &file_service_region_country_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindEnabledRegionCountryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledRegionCountryResponse) ProtoMessage() {}
func (x *FindEnabledRegionCountryResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledRegionCountryResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledRegionCountryResponse) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{3}
}
func (x *FindEnabledRegionCountryResponse) GetRegionCountry() *RegionCountry {
if x != nil {
return x.RegionCountry
}
return nil
}
// 查找所有的国家/地区列表
type FindAllRegionCountriesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindAllRegionCountriesRequest) Reset() {
*x = FindAllRegionCountriesRequest{}
mi := &file_service_region_country_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindAllRegionCountriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionCountriesRequest) ProtoMessage() {}
func (x *FindAllRegionCountriesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionCountriesRequest.ProtoReflect.Descriptor instead.
func (*FindAllRegionCountriesRequest) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{4}
}
type FindAllRegionCountriesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RegionCountries []*RegionCountry `protobuf:"bytes,1,rep,name=regionCountries,proto3" json:"regionCountries,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindAllRegionCountriesResponse) Reset() {
*x = FindAllRegionCountriesResponse{}
mi := &file_service_region_country_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindAllRegionCountriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionCountriesResponse) ProtoMessage() {}
func (x *FindAllRegionCountriesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionCountriesResponse.ProtoReflect.Descriptor instead.
func (*FindAllRegionCountriesResponse) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{5}
}
func (x *FindAllRegionCountriesResponse) GetRegionCountries() []*RegionCountry {
if x != nil {
return x.RegionCountries
}
return nil
}
// 查找单个国家/地区信息
type FindRegionCountryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindRegionCountryRequest) Reset() {
*x = FindRegionCountryRequest{}
mi := &file_service_region_country_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindRegionCountryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionCountryRequest) ProtoMessage() {}
func (x *FindRegionCountryRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionCountryRequest.ProtoReflect.Descriptor instead.
func (*FindRegionCountryRequest) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{6}
}
func (x *FindRegionCountryRequest) GetRegionCountryId() int64 {
if x != nil {
return x.RegionCountryId
}
return 0
}
type FindRegionCountryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RegionCountry *RegionCountry `protobuf:"bytes,1,opt,name=regionCountry,proto3" json:"regionCountry,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindRegionCountryResponse) Reset() {
*x = FindRegionCountryResponse{}
mi := &file_service_region_country_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindRegionCountryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionCountryResponse) ProtoMessage() {}
func (x *FindRegionCountryResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionCountryResponse.ProtoReflect.Descriptor instead.
func (*FindRegionCountryResponse) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{7}
}
func (x *FindRegionCountryResponse) GetRegionCountry() *RegionCountry {
if x != nil {
return x.RegionCountry
}
return nil
}
// 修改国家/地区定制信息
type UpdateRegionCountryCustomRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"`
CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateRegionCountryCustomRequest) Reset() {
*x = UpdateRegionCountryCustomRequest{}
mi := &file_service_region_country_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateRegionCountryCustomRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRegionCountryCustomRequest) ProtoMessage() {}
func (x *UpdateRegionCountryCustomRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateRegionCountryCustomRequest.ProtoReflect.Descriptor instead.
func (*UpdateRegionCountryCustomRequest) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{8}
}
func (x *UpdateRegionCountryCustomRequest) GetRegionCountryId() int64 {
if x != nil {
return x.RegionCountryId
}
return 0
}
func (x *UpdateRegionCountryCustomRequest) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *UpdateRegionCountryCustomRequest) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
var File_service_region_country_proto protoreflect.FileDescriptor
const file_service_region_country_proto_rawDesc = "" +
"\n" +
"\x1cservice_region_country.proto\x12\x02pb\x1a!models/model_region_country.proto\x1a\x19models/rpc_messages.proto\"&\n" +
"$FindAllEnabledRegionCountriesRequest\"d\n" +
"%FindAllEnabledRegionCountriesResponse\x12;\n" +
"\x0fregionCountries\x18\x01 \x03(\v2\x11.pb.RegionCountryR\x0fregionCountries\"K\n" +
"\x1fFindEnabledRegionCountryRequest\x12(\n" +
"\x0fregionCountryId\x18\x01 \x01(\x03R\x0fregionCountryId\"[\n" +
" FindEnabledRegionCountryResponse\x127\n" +
"\rregionCountry\x18\x01 \x01(\v2\x11.pb.RegionCountryR\rregionCountry\"\x1f\n" +
"\x1dFindAllRegionCountriesRequest\"]\n" +
"\x1eFindAllRegionCountriesResponse\x12;\n" +
"\x0fregionCountries\x18\x01 \x03(\v2\x11.pb.RegionCountryR\x0fregionCountries\"D\n" +
"\x18FindRegionCountryRequest\x12(\n" +
"\x0fregionCountryId\x18\x01 \x01(\x03R\x0fregionCountryId\"T\n" +
"\x19FindRegionCountryResponse\x127\n" +
"\rregionCountry\x18\x01 \x01(\v2\x11.pb.RegionCountryR\rregionCountry\"\x8e\x01\n" +
" UpdateRegionCountryCustomRequest\x12(\n" +
"\x0fregionCountryId\x18\x01 \x01(\x03R\x0fregionCountryId\x12\x1e\n" +
"\n" +
"customName\x18\x02 \x01(\tR\n" +
"customName\x12 \n" +
"\vcustomCodes\x18\x03 \x03(\tR\vcustomCodes2\x83\x04\n" +
"\x14RegionCountryService\x12y\n" +
"\x1dfindAllEnabledRegionCountries\x12(.pb.FindAllEnabledRegionCountriesRequest\x1a).pb.FindAllEnabledRegionCountriesResponse\"\x03\x88\x02\x01\x12j\n" +
"\x18findEnabledRegionCountry\x12#.pb.FindEnabledRegionCountryRequest\x1a$.pb.FindEnabledRegionCountryResponse\"\x03\x88\x02\x01\x12_\n" +
"\x16findAllRegionCountries\x12!.pb.FindAllRegionCountriesRequest\x1a\".pb.FindAllRegionCountriesResponse\x12P\n" +
"\x11findRegionCountry\x12\x1c.pb.FindRegionCountryRequest\x1a\x1d.pb.FindRegionCountryResponse\x12Q\n" +
"\x19updateRegionCountryCustom\x12$.pb.UpdateRegionCountryCustomRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
var (
file_service_region_country_proto_rawDescOnce sync.Once
file_service_region_country_proto_rawDescData []byte
)
func file_service_region_country_proto_rawDescGZIP() []byte {
file_service_region_country_proto_rawDescOnce.Do(func() {
file_service_region_country_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_region_country_proto_rawDesc), len(file_service_region_country_proto_rawDesc)))
})
return file_service_region_country_proto_rawDescData
}
var file_service_region_country_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_service_region_country_proto_goTypes = []any{
(*FindAllEnabledRegionCountriesRequest)(nil), // 0: pb.FindAllEnabledRegionCountriesRequest
(*FindAllEnabledRegionCountriesResponse)(nil), // 1: pb.FindAllEnabledRegionCountriesResponse
(*FindEnabledRegionCountryRequest)(nil), // 2: pb.FindEnabledRegionCountryRequest
(*FindEnabledRegionCountryResponse)(nil), // 3: pb.FindEnabledRegionCountryResponse
(*FindAllRegionCountriesRequest)(nil), // 4: pb.FindAllRegionCountriesRequest
(*FindAllRegionCountriesResponse)(nil), // 5: pb.FindAllRegionCountriesResponse
(*FindRegionCountryRequest)(nil), // 6: pb.FindRegionCountryRequest
(*FindRegionCountryResponse)(nil), // 7: pb.FindRegionCountryResponse
(*UpdateRegionCountryCustomRequest)(nil), // 8: pb.UpdateRegionCountryCustomRequest
(*RegionCountry)(nil), // 9: pb.RegionCountry
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
}
var file_service_region_country_proto_depIdxs = []int32{
9, // 0: pb.FindAllEnabledRegionCountriesResponse.regionCountries:type_name -> pb.RegionCountry
9, // 1: pb.FindEnabledRegionCountryResponse.regionCountry:type_name -> pb.RegionCountry
9, // 2: pb.FindAllRegionCountriesResponse.regionCountries:type_name -> pb.RegionCountry
9, // 3: pb.FindRegionCountryResponse.regionCountry:type_name -> pb.RegionCountry
0, // 4: pb.RegionCountryService.findAllEnabledRegionCountries:input_type -> pb.FindAllEnabledRegionCountriesRequest
2, // 5: pb.RegionCountryService.findEnabledRegionCountry:input_type -> pb.FindEnabledRegionCountryRequest
4, // 6: pb.RegionCountryService.findAllRegionCountries:input_type -> pb.FindAllRegionCountriesRequest
6, // 7: pb.RegionCountryService.findRegionCountry:input_type -> pb.FindRegionCountryRequest
8, // 8: pb.RegionCountryService.updateRegionCountryCustom:input_type -> pb.UpdateRegionCountryCustomRequest
1, // 9: pb.RegionCountryService.findAllEnabledRegionCountries:output_type -> pb.FindAllEnabledRegionCountriesResponse
3, // 10: pb.RegionCountryService.findEnabledRegionCountry:output_type -> pb.FindEnabledRegionCountryResponse
5, // 11: pb.RegionCountryService.findAllRegionCountries:output_type -> pb.FindAllRegionCountriesResponse
7, // 12: pb.RegionCountryService.findRegionCountry:output_type -> pb.FindRegionCountryResponse
10, // 13: pb.RegionCountryService.updateRegionCountryCustom:output_type -> pb.RPCSuccess
9, // [9:14] is the sub-list for method output_type
4, // [4:9] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_service_region_country_proto_init() }
func file_service_region_country_proto_init() {
if File_service_region_country_proto != nil {
return
}
file_models_model_region_country_proto_init()
file_models_rpc_messages_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_region_country_proto_rawDesc), len(file_service_region_country_proto_rawDesc)),
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_region_country_proto_goTypes,
DependencyIndexes: file_service_region_country_proto_depIdxs,
MessageInfos: file_service_region_country_proto_msgTypes,
}.Build()
File_service_region_country_proto = out.File
file_service_region_country_proto_goTypes = nil
file_service_region_country_proto_depIdxs = nil
}