Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1m5s
1024 lines
30 KiB
Go
Executable File
1024 lines
30 KiB
Go
Executable File
//COMA (COOPGO Mobility Accounts) gRPC service definition
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.7
|
|
// protoc v6.31.1
|
|
// source: comasvc.proto
|
|
|
|
package grpcapi
|
|
|
|
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 LoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginRequest) Reset() {
|
|
*x = LoginRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginRequest) ProtoMessage() {}
|
|
|
|
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 LoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *LoginRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetNamespace() string {
|
|
if x != nil {
|
|
return x.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account *Account `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginResponse) Reset() {
|
|
*x = LoginResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginResponse) ProtoMessage() {}
|
|
|
|
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 LoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *LoginResponse) GetAccount() *Account {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RegisterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account *Account `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterRequest) Reset() {
|
|
*x = RegisterRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 RegisterRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *RegisterRequest) GetAccount() *Account {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RegisterResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account *Account `protobuf:"bytes,6,opt,name=account,proto3" json:"account,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterResponse) Reset() {
|
|
*x = RegisterResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterResponse) ProtoMessage() {}
|
|
|
|
func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 RegisterResponse.ProtoReflect.Descriptor instead.
|
|
func (*RegisterResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RegisterResponse) GetAccount() *Account {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateDataRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account *Account `protobuf:"bytes,7,opt,name=account,proto3" json:"account,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateDataRequest) Reset() {
|
|
*x = UpdateDataRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateDataRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateDataRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateDataRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 UpdateDataRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateDataRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UpdateDataRequest) GetAccount() *Account {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateDataResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account *Account `protobuf:"bytes,8,opt,name=account,proto3" json:"account,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateDataResponse) Reset() {
|
|
*x = UpdateDataResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateDataResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateDataResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateDataResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 UpdateDataResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateDataResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *UpdateDataResponse) GetAccount() *Account {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdatePhoneNumberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,17,opt,name=id,proto3" json:"id,omitempty"`
|
|
PhoneNumber string `protobuf:"bytes,18,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
|
|
Verified bool `protobuf:"varint,19,opt,name=verified,proto3" json:"verified,omitempty"`
|
|
VerificationCode string `protobuf:"bytes,20,opt,name=verification_code,json=verificationCode,proto3" json:"verification_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) Reset() {
|
|
*x = UpdatePhoneNumberRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdatePhoneNumberRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdatePhoneNumberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 UpdatePhoneNumberRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdatePhoneNumberRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) GetPhoneNumber() string {
|
|
if x != nil {
|
|
return x.PhoneNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) GetVerified() bool {
|
|
if x != nil {
|
|
return x.Verified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) GetVerificationCode() string {
|
|
if x != nil {
|
|
return x.VerificationCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdatePhoneNumberResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,21,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberResponse) Reset() {
|
|
*x = UpdatePhoneNumberResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdatePhoneNumberResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdatePhoneNumberResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 UpdatePhoneNumberResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdatePhoneNumberResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberResponse) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetAccountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,9,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountRequest) Reset() {
|
|
*x = GetAccountRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_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 GetAccountRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetAccountRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetAccountResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account *Account `protobuf:"bytes,12,opt,name=account,proto3" json:"account,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountResponse) Reset() {
|
|
*x = GetAccountResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[9]
|
|
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 GetAccountResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetAccountResponse) GetAccount() *Account {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAccountUsernameRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,10,opt,name=username,proto3" json:"username,omitempty"`
|
|
Namespace string `protobuf:"bytes,11,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountUsernameRequest) Reset() {
|
|
*x = GetAccountUsernameRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountUsernameRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountUsernameRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAccountUsernameRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[10]
|
|
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 GetAccountUsernameRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountUsernameRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *GetAccountUsernameRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetAccountUsernameRequest) GetNamespace() string {
|
|
if x != nil {
|
|
return x.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetAccountUsernameResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account *Account `protobuf:"bytes,12,opt,name=account,proto3" json:"account,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountUsernameResponse) Reset() {
|
|
*x = GetAccountUsernameResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountUsernameResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountUsernameResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAccountUsernameResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[11]
|
|
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 GetAccountUsernameResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountUsernameResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *GetAccountUsernameResponse) GetAccount() *Account {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAccountsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Namespaces []string `protobuf:"bytes,13,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // Filter on namespaces
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountsRequest) Reset() {
|
|
*x = GetAccountsRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAccountsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[12]
|
|
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 GetAccountsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountsRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *GetAccountsRequest) GetNamespaces() []string {
|
|
if x != nil {
|
|
return x.Namespaces
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAccountsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Accounts []*Account `protobuf:"bytes,14,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountsResponse) Reset() {
|
|
*x = GetAccountsResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAccountsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[13]
|
|
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 GetAccountsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountsResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *GetAccountsResponse) GetAccounts() []*Account {
|
|
if x != nil {
|
|
return x.Accounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAccountsBatchRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Accountids []string `protobuf:"bytes,13,rep,name=accountids,proto3" json:"accountids,omitempty"` // Filter on namespaces
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountsBatchRequest) Reset() {
|
|
*x = GetAccountsBatchRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountsBatchRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountsBatchRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAccountsBatchRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[14]
|
|
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 GetAccountsBatchRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountsBatchRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *GetAccountsBatchRequest) GetAccountids() []string {
|
|
if x != nil {
|
|
return x.Accountids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAccountsBatchResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Accounts []*Account `protobuf:"bytes,14,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountsBatchResponse) Reset() {
|
|
*x = GetAccountsBatchResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountsBatchResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountsBatchResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAccountsBatchResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[15]
|
|
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 GetAccountsBatchResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountsBatchResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *GetAccountsBatchResponse) GetAccounts() []*Account {
|
|
if x != nil {
|
|
return x.Accounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChangePasswordRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,15,opt,name=id,proto3" json:"id,omitempty"`
|
|
Password string `protobuf:"bytes,16,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) Reset() {
|
|
*x = ChangePasswordRequest{}
|
|
mi := &file_comasvc_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChangePasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[16]
|
|
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 ChangePasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ChangePasswordResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChangePasswordResponse) Reset() {
|
|
*x = ChangePasswordResponse{}
|
|
mi := &file_comasvc_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChangePasswordResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChangePasswordResponse) ProtoMessage() {}
|
|
|
|
func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_comasvc_proto_msgTypes[17]
|
|
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 ChangePasswordResponse.ProtoReflect.Descriptor instead.
|
|
func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
|
|
return file_comasvc_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
var File_comasvc_proto protoreflect.FileDescriptor
|
|
|
|
const file_comasvc_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\rcomasvc.proto\x1a\x0eaccounts.proto\"d\n" +
|
|
"\fLoginRequest\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x1c\n" +
|
|
"\tnamespace\x18\x03 \x01(\tR\tnamespace\"3\n" +
|
|
"\rLoginResponse\x12\"\n" +
|
|
"\aaccount\x18\x04 \x01(\v2\b.AccountR\aaccount\"5\n" +
|
|
"\x0fRegisterRequest\x12\"\n" +
|
|
"\aaccount\x18\x05 \x01(\v2\b.AccountR\aaccount\"6\n" +
|
|
"\x10RegisterResponse\x12\"\n" +
|
|
"\aaccount\x18\x06 \x01(\v2\b.AccountR\aaccount\"7\n" +
|
|
"\x11UpdateDataRequest\x12\"\n" +
|
|
"\aaccount\x18\a \x01(\v2\b.AccountR\aaccount\"8\n" +
|
|
"\x12UpdateDataResponse\x12\"\n" +
|
|
"\aaccount\x18\b \x01(\v2\b.AccountR\aaccount\"\x96\x01\n" +
|
|
"\x18UpdatePhoneNumberRequest\x12\x0e\n" +
|
|
"\x02id\x18\x11 \x01(\tR\x02id\x12!\n" +
|
|
"\fphone_number\x18\x12 \x01(\tR\vphoneNumber\x12\x1a\n" +
|
|
"\bverified\x18\x13 \x01(\bR\bverified\x12+\n" +
|
|
"\x11verification_code\x18\x14 \x01(\tR\x10verificationCode\"+\n" +
|
|
"\x19UpdatePhoneNumberResponse\x12\x0e\n" +
|
|
"\x02ok\x18\x15 \x01(\bR\x02ok\"#\n" +
|
|
"\x11GetAccountRequest\x12\x0e\n" +
|
|
"\x02id\x18\t \x01(\tR\x02id\"8\n" +
|
|
"\x12GetAccountResponse\x12\"\n" +
|
|
"\aaccount\x18\f \x01(\v2\b.AccountR\aaccount\"U\n" +
|
|
"\x19GetAccountUsernameRequest\x12\x1a\n" +
|
|
"\busername\x18\n" +
|
|
" \x01(\tR\busername\x12\x1c\n" +
|
|
"\tnamespace\x18\v \x01(\tR\tnamespace\"@\n" +
|
|
"\x1aGetAccountUsernameResponse\x12\"\n" +
|
|
"\aaccount\x18\f \x01(\v2\b.AccountR\aaccount\"4\n" +
|
|
"\x12GetAccountsRequest\x12\x1e\n" +
|
|
"\n" +
|
|
"namespaces\x18\r \x03(\tR\n" +
|
|
"namespaces\";\n" +
|
|
"\x13GetAccountsResponse\x12$\n" +
|
|
"\baccounts\x18\x0e \x03(\v2\b.AccountR\baccounts\"9\n" +
|
|
"\x17GetAccountsBatchRequest\x12\x1e\n" +
|
|
"\n" +
|
|
"accountids\x18\r \x03(\tR\n" +
|
|
"accountids\"@\n" +
|
|
"\x18GetAccountsBatchResponse\x12$\n" +
|
|
"\baccounts\x18\x0e \x03(\v2\b.AccountR\baccounts\"C\n" +
|
|
"\x15ChangePasswordRequest\x12\x0e\n" +
|
|
"\x02id\x18\x0f \x01(\tR\x02id\x12\x1a\n" +
|
|
"\bpassword\x18\x10 \x01(\tR\bpassword\"\x18\n" +
|
|
"\x16ChangePasswordResponse2\xcc\x04\n" +
|
|
"\x10MobilityAccounts\x121\n" +
|
|
"\bRegister\x12\x10.RegisterRequest\x1a\x11.RegisterResponse\"\x00\x127\n" +
|
|
"\n" +
|
|
"UpdateData\x12\x12.UpdateDataRequest\x1a\x13.UpdateDataResponse\"\x00\x12L\n" +
|
|
"\x11UpdatePhoneNumber\x12\x19.UpdatePhoneNumberRequest\x1a\x1a.UpdatePhoneNumberResponse\"\x00\x127\n" +
|
|
"\n" +
|
|
"GetAccount\x12\x12.GetAccountRequest\x1a\x13.GetAccountResponse\"\x00\x12O\n" +
|
|
"\x12GetAccountUsername\x12\x1a.GetAccountUsernameRequest\x1a\x1b.GetAccountUsernameResponse\"\x00\x12:\n" +
|
|
"\vGetAccounts\x12\x13.GetAccountsRequest\x1a\x14.GetAccountsResponse\"\x00\x12I\n" +
|
|
"\x10GetAccountsBatch\x12\x18.GetAccountsBatchRequest\x1a\x19.GetAccountsBatchResponse\"\x00\x12(\n" +
|
|
"\x05Login\x12\r.LoginRequest\x1a\x0e.LoginResponse\"\x00\x12C\n" +
|
|
"\x0eChangePassword\x12\x16.ChangePasswordRequest\x1a\x17.ChangePasswordResponse\"\x00B9Z7git.coopgo.io/coopgo-platform/mobility-accounts/grpcapib\x06proto3"
|
|
|
|
var (
|
|
file_comasvc_proto_rawDescOnce sync.Once
|
|
file_comasvc_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_comasvc_proto_rawDescGZIP() []byte {
|
|
file_comasvc_proto_rawDescOnce.Do(func() {
|
|
file_comasvc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_comasvc_proto_rawDesc), len(file_comasvc_proto_rawDesc)))
|
|
})
|
|
return file_comasvc_proto_rawDescData
|
|
}
|
|
|
|
var file_comasvc_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
|
|
var file_comasvc_proto_goTypes = []any{
|
|
(*LoginRequest)(nil), // 0: LoginRequest
|
|
(*LoginResponse)(nil), // 1: LoginResponse
|
|
(*RegisterRequest)(nil), // 2: RegisterRequest
|
|
(*RegisterResponse)(nil), // 3: RegisterResponse
|
|
(*UpdateDataRequest)(nil), // 4: UpdateDataRequest
|
|
(*UpdateDataResponse)(nil), // 5: UpdateDataResponse
|
|
(*UpdatePhoneNumberRequest)(nil), // 6: UpdatePhoneNumberRequest
|
|
(*UpdatePhoneNumberResponse)(nil), // 7: UpdatePhoneNumberResponse
|
|
(*GetAccountRequest)(nil), // 8: GetAccountRequest
|
|
(*GetAccountResponse)(nil), // 9: GetAccountResponse
|
|
(*GetAccountUsernameRequest)(nil), // 10: GetAccountUsernameRequest
|
|
(*GetAccountUsernameResponse)(nil), // 11: GetAccountUsernameResponse
|
|
(*GetAccountsRequest)(nil), // 12: GetAccountsRequest
|
|
(*GetAccountsResponse)(nil), // 13: GetAccountsResponse
|
|
(*GetAccountsBatchRequest)(nil), // 14: GetAccountsBatchRequest
|
|
(*GetAccountsBatchResponse)(nil), // 15: GetAccountsBatchResponse
|
|
(*ChangePasswordRequest)(nil), // 16: ChangePasswordRequest
|
|
(*ChangePasswordResponse)(nil), // 17: ChangePasswordResponse
|
|
(*Account)(nil), // 18: Account
|
|
}
|
|
var file_comasvc_proto_depIdxs = []int32{
|
|
18, // 0: LoginResponse.account:type_name -> Account
|
|
18, // 1: RegisterRequest.account:type_name -> Account
|
|
18, // 2: RegisterResponse.account:type_name -> Account
|
|
18, // 3: UpdateDataRequest.account:type_name -> Account
|
|
18, // 4: UpdateDataResponse.account:type_name -> Account
|
|
18, // 5: GetAccountResponse.account:type_name -> Account
|
|
18, // 6: GetAccountUsernameResponse.account:type_name -> Account
|
|
18, // 7: GetAccountsResponse.accounts:type_name -> Account
|
|
18, // 8: GetAccountsBatchResponse.accounts:type_name -> Account
|
|
2, // 9: MobilityAccounts.Register:input_type -> RegisterRequest
|
|
4, // 10: MobilityAccounts.UpdateData:input_type -> UpdateDataRequest
|
|
6, // 11: MobilityAccounts.UpdatePhoneNumber:input_type -> UpdatePhoneNumberRequest
|
|
8, // 12: MobilityAccounts.GetAccount:input_type -> GetAccountRequest
|
|
10, // 13: MobilityAccounts.GetAccountUsername:input_type -> GetAccountUsernameRequest
|
|
12, // 14: MobilityAccounts.GetAccounts:input_type -> GetAccountsRequest
|
|
14, // 15: MobilityAccounts.GetAccountsBatch:input_type -> GetAccountsBatchRequest
|
|
0, // 16: MobilityAccounts.Login:input_type -> LoginRequest
|
|
16, // 17: MobilityAccounts.ChangePassword:input_type -> ChangePasswordRequest
|
|
3, // 18: MobilityAccounts.Register:output_type -> RegisterResponse
|
|
5, // 19: MobilityAccounts.UpdateData:output_type -> UpdateDataResponse
|
|
7, // 20: MobilityAccounts.UpdatePhoneNumber:output_type -> UpdatePhoneNumberResponse
|
|
9, // 21: MobilityAccounts.GetAccount:output_type -> GetAccountResponse
|
|
11, // 22: MobilityAccounts.GetAccountUsername:output_type -> GetAccountUsernameResponse
|
|
13, // 23: MobilityAccounts.GetAccounts:output_type -> GetAccountsResponse
|
|
15, // 24: MobilityAccounts.GetAccountsBatch:output_type -> GetAccountsBatchResponse
|
|
1, // 25: MobilityAccounts.Login:output_type -> LoginResponse
|
|
17, // 26: MobilityAccounts.ChangePassword:output_type -> ChangePasswordResponse
|
|
18, // [18:27] is the sub-list for method output_type
|
|
9, // [9:18] is the sub-list for method input_type
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
0, // [0:9] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_comasvc_proto_init() }
|
|
func file_comasvc_proto_init() {
|
|
if File_comasvc_proto != nil {
|
|
return
|
|
}
|
|
file_accounts_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_comasvc_proto_rawDesc), len(file_comasvc_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 18,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_comasvc_proto_goTypes,
|
|
DependencyIndexes: file_comasvc_proto_depIdxs,
|
|
MessageInfos: file_comasvc_proto_msgTypes,
|
|
}.Build()
|
|
File_comasvc_proto = out.File
|
|
file_comasvc_proto_goTypes = nil
|
|
file_comasvc_proto_depIdxs = nil
|
|
}
|