mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
8203f2dad3
* start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2138 lines
80 KiB
Go
2138 lines
80 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.20.1
|
|
// protoc v3.11.3
|
|
// source: admin.proto
|
|
|
|
package grpc
|
|
|
|
import (
|
|
context "context"
|
|
_ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption"
|
|
_ "github.com/envoyproxy/protoc-gen-validate/validate"
|
|
proto "github.com/golang/protobuf/proto"
|
|
empty "github.com/golang/protobuf/ptypes/empty"
|
|
_struct "github.com/golang/protobuf/ptypes/struct"
|
|
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
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)
|
|
)
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
// of the legacy proto package is being used.
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
type OrgState int32
|
|
|
|
const (
|
|
OrgState_ORGSTATE_UNSPECIFIED OrgState = 0
|
|
OrgState_ORGSTATE_ACTIVE OrgState = 1
|
|
OrgState_ORGSTATE_INACTIVE OrgState = 2
|
|
)
|
|
|
|
// Enum value maps for OrgState.
|
|
var (
|
|
OrgState_name = map[int32]string{
|
|
0: "ORGSTATE_UNSPECIFIED",
|
|
1: "ORGSTATE_ACTIVE",
|
|
2: "ORGSTATE_INACTIVE",
|
|
}
|
|
OrgState_value = map[string]int32{
|
|
"ORGSTATE_UNSPECIFIED": 0,
|
|
"ORGSTATE_ACTIVE": 1,
|
|
"ORGSTATE_INACTIVE": 2,
|
|
}
|
|
)
|
|
|
|
func (x OrgState) Enum() *OrgState {
|
|
p := new(OrgState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x OrgState) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (OrgState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_admin_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (OrgState) Type() protoreflect.EnumType {
|
|
return &file_admin_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x OrgState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use OrgState.Descriptor instead.
|
|
func (OrgState) EnumDescriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type OrgSearchKey int32
|
|
|
|
const (
|
|
OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED OrgSearchKey = 0
|
|
OrgSearchKey_ORGSEARCHKEY_ORG_NAME OrgSearchKey = 1
|
|
OrgSearchKey_ORGSEARCHKEY_DOMAIN OrgSearchKey = 2
|
|
OrgSearchKey_ORGSEARCHKEY_STATE OrgSearchKey = 3
|
|
)
|
|
|
|
// Enum value maps for OrgSearchKey.
|
|
var (
|
|
OrgSearchKey_name = map[int32]string{
|
|
0: "ORGSEARCHKEY_UNSPECIFIED",
|
|
1: "ORGSEARCHKEY_ORG_NAME",
|
|
2: "ORGSEARCHKEY_DOMAIN",
|
|
3: "ORGSEARCHKEY_STATE",
|
|
}
|
|
OrgSearchKey_value = map[string]int32{
|
|
"ORGSEARCHKEY_UNSPECIFIED": 0,
|
|
"ORGSEARCHKEY_ORG_NAME": 1,
|
|
"ORGSEARCHKEY_DOMAIN": 2,
|
|
"ORGSEARCHKEY_STATE": 3,
|
|
}
|
|
)
|
|
|
|
func (x OrgSearchKey) Enum() *OrgSearchKey {
|
|
p := new(OrgSearchKey)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x OrgSearchKey) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (OrgSearchKey) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_admin_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (OrgSearchKey) Type() protoreflect.EnumType {
|
|
return &file_admin_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x OrgSearchKey) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use OrgSearchKey.Descriptor instead.
|
|
func (OrgSearchKey) EnumDescriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type OrgSearchMethod int32
|
|
|
|
const (
|
|
OrgSearchMethod_ORGSEARCHMETHOD_EQUALS OrgSearchMethod = 0
|
|
OrgSearchMethod_ORGSEARCHMETHOD_STARTS_WITH OrgSearchMethod = 1
|
|
OrgSearchMethod_ORGSEARCHMETHOD_CONTAINS OrgSearchMethod = 2
|
|
)
|
|
|
|
// Enum value maps for OrgSearchMethod.
|
|
var (
|
|
OrgSearchMethod_name = map[int32]string{
|
|
0: "ORGSEARCHMETHOD_EQUALS",
|
|
1: "ORGSEARCHMETHOD_STARTS_WITH",
|
|
2: "ORGSEARCHMETHOD_CONTAINS",
|
|
}
|
|
OrgSearchMethod_value = map[string]int32{
|
|
"ORGSEARCHMETHOD_EQUALS": 0,
|
|
"ORGSEARCHMETHOD_STARTS_WITH": 1,
|
|
"ORGSEARCHMETHOD_CONTAINS": 2,
|
|
}
|
|
)
|
|
|
|
func (x OrgSearchMethod) Enum() *OrgSearchMethod {
|
|
p := new(OrgSearchMethod)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x OrgSearchMethod) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (OrgSearchMethod) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_admin_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (OrgSearchMethod) Type() protoreflect.EnumType {
|
|
return &file_admin_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x OrgSearchMethod) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use OrgSearchMethod.Descriptor instead.
|
|
func (OrgSearchMethod) EnumDescriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type UserState int32
|
|
|
|
const (
|
|
UserState_USERSTATE_UNSPECIFIED UserState = 0
|
|
UserState_USERSTATE_ACTIVE UserState = 1
|
|
UserState_USERSTATE_INACTIVE UserState = 2
|
|
UserState_USERSTATE_DELETED UserState = 3
|
|
UserState_USERSTATE_LOCKED UserState = 4
|
|
UserState_USERSTATE_SUSPEND UserState = 5
|
|
UserState_USERSTATE_INITIAL UserState = 6
|
|
)
|
|
|
|
// Enum value maps for UserState.
|
|
var (
|
|
UserState_name = map[int32]string{
|
|
0: "USERSTATE_UNSPECIFIED",
|
|
1: "USERSTATE_ACTIVE",
|
|
2: "USERSTATE_INACTIVE",
|
|
3: "USERSTATE_DELETED",
|
|
4: "USERSTATE_LOCKED",
|
|
5: "USERSTATE_SUSPEND",
|
|
6: "USERSTATE_INITIAL",
|
|
}
|
|
UserState_value = map[string]int32{
|
|
"USERSTATE_UNSPECIFIED": 0,
|
|
"USERSTATE_ACTIVE": 1,
|
|
"USERSTATE_INACTIVE": 2,
|
|
"USERSTATE_DELETED": 3,
|
|
"USERSTATE_LOCKED": 4,
|
|
"USERSTATE_SUSPEND": 5,
|
|
"USERSTATE_INITIAL": 6,
|
|
}
|
|
)
|
|
|
|
func (x UserState) Enum() *UserState {
|
|
p := new(UserState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x UserState) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (UserState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_admin_proto_enumTypes[3].Descriptor()
|
|
}
|
|
|
|
func (UserState) Type() protoreflect.EnumType {
|
|
return &file_admin_proto_enumTypes[3]
|
|
}
|
|
|
|
func (x UserState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use UserState.Descriptor instead.
|
|
func (UserState) EnumDescriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type Gender int32
|
|
|
|
const (
|
|
Gender_GENDER_UNSPECIFIED Gender = 0
|
|
Gender_GENDER_FEMALE Gender = 1
|
|
Gender_GENDER_MALE Gender = 2
|
|
Gender_GENDER_DIVERSE Gender = 3
|
|
)
|
|
|
|
// Enum value maps for Gender.
|
|
var (
|
|
Gender_name = map[int32]string{
|
|
0: "GENDER_UNSPECIFIED",
|
|
1: "GENDER_FEMALE",
|
|
2: "GENDER_MALE",
|
|
3: "GENDER_DIVERSE",
|
|
}
|
|
Gender_value = map[string]int32{
|
|
"GENDER_UNSPECIFIED": 0,
|
|
"GENDER_FEMALE": 1,
|
|
"GENDER_MALE": 2,
|
|
"GENDER_DIVERSE": 3,
|
|
}
|
|
)
|
|
|
|
func (x Gender) Enum() *Gender {
|
|
p := new(Gender)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Gender) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Gender) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_admin_proto_enumTypes[4].Descriptor()
|
|
}
|
|
|
|
func (Gender) Type() protoreflect.EnumType {
|
|
return &file_admin_proto_enumTypes[4]
|
|
}
|
|
|
|
func (x Gender) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Gender.Descriptor instead.
|
|
func (Gender) EnumDescriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type OrgID struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
}
|
|
|
|
func (x *OrgID) Reset() {
|
|
*x = OrgID{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *OrgID) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrgID) ProtoMessage() {}
|
|
|
|
func (x *OrgID) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_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 OrgID.ProtoReflect.Descriptor instead.
|
|
func (*OrgID) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *OrgID) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UniqueOrgRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
}
|
|
|
|
func (x *UniqueOrgRequest) Reset() {
|
|
*x = UniqueOrgRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UniqueOrgRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UniqueOrgRequest) ProtoMessage() {}
|
|
|
|
func (x *UniqueOrgRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_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 UniqueOrgRequest.ProtoReflect.Descriptor instead.
|
|
func (*UniqueOrgRequest) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *UniqueOrgRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UniqueOrgRequest) GetDomain() string {
|
|
if x != nil {
|
|
return x.Domain
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UniqueOrgResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
IsUnique bool `protobuf:"varint,1,opt,name=is_unique,json=isUnique,proto3" json:"is_unique,omitempty"`
|
|
}
|
|
|
|
func (x *UniqueOrgResponse) Reset() {
|
|
*x = UniqueOrgResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UniqueOrgResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UniqueOrgResponse) ProtoMessage() {}
|
|
|
|
func (x *UniqueOrgResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_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 UniqueOrgResponse.ProtoReflect.Descriptor instead.
|
|
func (*UniqueOrgResponse) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UniqueOrgResponse) GetIsUnique() bool {
|
|
if x != nil {
|
|
return x.IsUnique
|
|
}
|
|
return false
|
|
}
|
|
|
|
type Org struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=zitadel.admin.api.v1.OrgState" json:"state,omitempty"`
|
|
CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
|
|
ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"`
|
|
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
|
Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
}
|
|
|
|
func (x *Org) Reset() {
|
|
*x = Org{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Org) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Org) ProtoMessage() {}
|
|
|
|
func (x *Org) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[3]
|
|
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 Org.ProtoReflect.Descriptor instead.
|
|
func (*Org) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Org) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Org) GetState() OrgState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return OrgState_ORGSTATE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Org) GetCreationDate() *timestamp.Timestamp {
|
|
if x != nil {
|
|
return x.CreationDate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Org) GetChangeDate() *timestamp.Timestamp {
|
|
if x != nil {
|
|
return x.ChangeDate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Org) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Org) GetDomain() string {
|
|
if x != nil {
|
|
return x.Domain
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type OrgSearchRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
SortingColumn OrgSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=zitadel.admin.api.v1.OrgSearchKey" json:"sorting_column,omitempty"`
|
|
Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"`
|
|
Queries []*OrgSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"`
|
|
}
|
|
|
|
func (x *OrgSearchRequest) Reset() {
|
|
*x = OrgSearchRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *OrgSearchRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrgSearchRequest) ProtoMessage() {}
|
|
|
|
func (x *OrgSearchRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[4]
|
|
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 OrgSearchRequest.ProtoReflect.Descriptor instead.
|
|
func (*OrgSearchRequest) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *OrgSearchRequest) GetOffset() uint64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrgSearchRequest) GetLimit() uint64 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrgSearchRequest) GetSortingColumn() OrgSearchKey {
|
|
if x != nil {
|
|
return x.SortingColumn
|
|
}
|
|
return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED
|
|
}
|
|
|
|
func (x *OrgSearchRequest) GetAsc() bool {
|
|
if x != nil {
|
|
return x.Asc
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *OrgSearchRequest) GetQueries() []*OrgSearchQuery {
|
|
if x != nil {
|
|
return x.Queries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OrgSearchQuery struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Key OrgSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=zitadel.admin.api.v1.OrgSearchKey" json:"key,omitempty"`
|
|
Method OrgSearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.admin.api.v1.OrgSearchMethod" json:"method,omitempty"`
|
|
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
|
}
|
|
|
|
func (x *OrgSearchQuery) Reset() {
|
|
*x = OrgSearchQuery{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *OrgSearchQuery) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrgSearchQuery) ProtoMessage() {}
|
|
|
|
func (x *OrgSearchQuery) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[5]
|
|
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 OrgSearchQuery.ProtoReflect.Descriptor instead.
|
|
func (*OrgSearchQuery) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *OrgSearchQuery) GetKey() OrgSearchKey {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED
|
|
}
|
|
|
|
func (x *OrgSearchQuery) GetMethod() OrgSearchMethod {
|
|
if x != nil {
|
|
return x.Method
|
|
}
|
|
return OrgSearchMethod_ORGSEARCHMETHOD_EQUALS
|
|
}
|
|
|
|
func (x *OrgSearchQuery) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type OrgSearchResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"`
|
|
Result []*Org `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"`
|
|
}
|
|
|
|
func (x *OrgSearchResponse) Reset() {
|
|
*x = OrgSearchResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *OrgSearchResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrgSearchResponse) ProtoMessage() {}
|
|
|
|
func (x *OrgSearchResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[6]
|
|
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 OrgSearchResponse.ProtoReflect.Descriptor instead.
|
|
func (*OrgSearchResponse) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *OrgSearchResponse) GetOffset() uint64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrgSearchResponse) GetLimit() uint64 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrgSearchResponse) GetTotalResult() uint64 {
|
|
if x != nil {
|
|
return x.TotalResult
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrgSearchResponse) GetResult() []*Org {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OrgSetUpRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Org *CreateOrgRequest `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
|
|
User *CreateUserRequest `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
|
|
}
|
|
|
|
func (x *OrgSetUpRequest) Reset() {
|
|
*x = OrgSetUpRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *OrgSetUpRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrgSetUpRequest) ProtoMessage() {}
|
|
|
|
func (x *OrgSetUpRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[7]
|
|
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 OrgSetUpRequest.ProtoReflect.Descriptor instead.
|
|
func (*OrgSetUpRequest) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *OrgSetUpRequest) GetOrg() *CreateOrgRequest {
|
|
if x != nil {
|
|
return x.Org
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OrgSetUpRequest) GetUser() *CreateUserRequest {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OrgSetUpResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
|
|
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
|
|
}
|
|
|
|
func (x *OrgSetUpResponse) Reset() {
|
|
*x = OrgSetUpResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *OrgSetUpResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrgSetUpResponse) ProtoMessage() {}
|
|
|
|
func (x *OrgSetUpResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[8]
|
|
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 OrgSetUpResponse.ProtoReflect.Descriptor instead.
|
|
func (*OrgSetUpResponse) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *OrgSetUpResponse) GetOrg() *Org {
|
|
if x != nil {
|
|
return x.Org
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OrgSetUpResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateUserRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
|
|
FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
|
|
LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
|
|
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
|
PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
|
|
Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=zitadel.admin.api.v1.Gender" json:"gender,omitempty"`
|
|
Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"`
|
|
IsEmailVerified bool `protobuf:"varint,9,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"`
|
|
Phone string `protobuf:"bytes,11,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
IsPhoneVerified bool `protobuf:"varint,12,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"`
|
|
Country string `protobuf:"bytes,13,opt,name=country,proto3" json:"country,omitempty"`
|
|
Locality string `protobuf:"bytes,14,opt,name=locality,proto3" json:"locality,omitempty"`
|
|
PostalCode string `protobuf:"bytes,15,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
|
|
Region string `protobuf:"bytes,16,opt,name=region,proto3" json:"region,omitempty"`
|
|
StreetAddress string `protobuf:"bytes,17,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
|
|
Password string `protobuf:"bytes,18,opt,name=password,proto3" json:"password,omitempty"`
|
|
}
|
|
|
|
func (x *CreateUserRequest) Reset() {
|
|
*x = CreateUserRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[9]
|
|
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 CreateUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetUserName() string {
|
|
if x != nil {
|
|
return x.UserName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetFirstName() string {
|
|
if x != nil {
|
|
return x.FirstName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetNickName() string {
|
|
if x != nil {
|
|
return x.NickName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetDisplayName() string {
|
|
if x != nil {
|
|
return x.DisplayName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetPreferredLanguage() string {
|
|
if x != nil {
|
|
return x.PreferredLanguage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetGender() Gender {
|
|
if x != nil {
|
|
return x.Gender
|
|
}
|
|
return Gender_GENDER_UNSPECIFIED
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetIsEmailVerified() bool {
|
|
if x != nil {
|
|
return x.IsEmailVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetIsPhoneVerified() bool {
|
|
if x != nil {
|
|
return x.IsPhoneVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetCountry() string {
|
|
if x != nil {
|
|
return x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetLocality() string {
|
|
if x != nil {
|
|
return x.Locality
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetPostalCode() string {
|
|
if x != nil {
|
|
return x.PostalCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetRegion() string {
|
|
if x != nil {
|
|
return x.Region
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetStreetAddress() string {
|
|
if x != nil {
|
|
return x.StreetAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type User struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=zitadel.admin.api.v1.UserState" json:"state,omitempty"`
|
|
CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
|
|
ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"`
|
|
UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
|
|
FirstName string `protobuf:"bytes,6,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
|
|
LastName string `protobuf:"bytes,7,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
NickName string `protobuf:"bytes,8,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
|
|
DisplayName string `protobuf:"bytes,9,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
|
PreferredLanguage string `protobuf:"bytes,10,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
|
|
Gender Gender `protobuf:"varint,11,opt,name=gender,proto3,enum=zitadel.admin.api.v1.Gender" json:"gender,omitempty"`
|
|
Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"`
|
|
IsEmailVerified bool `protobuf:"varint,13,opt,name=isEmailVerified,proto3" json:"isEmailVerified,omitempty"`
|
|
Phone string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
IsPhoneVerified bool `protobuf:"varint,15,opt,name=isPhoneVerified,proto3" json:"isPhoneVerified,omitempty"`
|
|
Country string `protobuf:"bytes,16,opt,name=country,proto3" json:"country,omitempty"`
|
|
Locality string `protobuf:"bytes,17,opt,name=locality,proto3" json:"locality,omitempty"`
|
|
PostalCode string `protobuf:"bytes,18,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
|
|
Region string `protobuf:"bytes,19,opt,name=region,proto3" json:"region,omitempty"`
|
|
StreetAddress string `protobuf:"bytes,20,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
|
|
Sequence uint64 `protobuf:"varint,21,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
|
}
|
|
|
|
func (x *User) Reset() {
|
|
*x = User{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *User) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*User) ProtoMessage() {}
|
|
|
|
func (x *User) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[10]
|
|
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 User.ProtoReflect.Descriptor instead.
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *User) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetState() UserState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return UserState_USERSTATE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *User) GetCreationDate() *timestamp.Timestamp {
|
|
if x != nil {
|
|
return x.CreationDate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetChangeDate() *timestamp.Timestamp {
|
|
if x != nil {
|
|
return x.ChangeDate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetUserName() string {
|
|
if x != nil {
|
|
return x.UserName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetFirstName() string {
|
|
if x != nil {
|
|
return x.FirstName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetNickName() string {
|
|
if x != nil {
|
|
return x.NickName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetDisplayName() string {
|
|
if x != nil {
|
|
return x.DisplayName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetPreferredLanguage() string {
|
|
if x != nil {
|
|
return x.PreferredLanguage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetGender() Gender {
|
|
if x != nil {
|
|
return x.Gender
|
|
}
|
|
return Gender_GENDER_UNSPECIFIED
|
|
}
|
|
|
|
func (x *User) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetIsEmailVerified() bool {
|
|
if x != nil {
|
|
return x.IsEmailVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *User) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetIsPhoneVerified() bool {
|
|
if x != nil {
|
|
return x.IsPhoneVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *User) GetCountry() string {
|
|
if x != nil {
|
|
return x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetLocality() string {
|
|
if x != nil {
|
|
return x.Locality
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetPostalCode() string {
|
|
if x != nil {
|
|
return x.PostalCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetRegion() string {
|
|
if x != nil {
|
|
return x.Region
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetStreetAddress() string {
|
|
if x != nil {
|
|
return x.StreetAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetSequence() uint64 {
|
|
if x != nil {
|
|
return x.Sequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateOrgRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
}
|
|
|
|
func (x *CreateOrgRequest) Reset() {
|
|
*x = CreateOrgRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_admin_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateOrgRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateOrgRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_admin_proto_msgTypes[11]
|
|
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 CreateOrgRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateOrgRequest) Descriptor() ([]byte, []int) {
|
|
return file_admin_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *CreateOrgRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOrgRequest) GetDomain() string {
|
|
if x != nil {
|
|
return x.Domain
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_admin_proto protoreflect.FileDescriptor
|
|
|
|
var file_admin_proto_rawDesc = []byte{
|
|
0x0a, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x7a,
|
|
0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69,
|
|
0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
|
|
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
|
0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,
|
|
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
|
|
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
|
0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
|
0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76,
|
|
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67,
|
|
0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x17,
|
|
0x0a, 0x05, 0x4f, 0x72, 0x67, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x50, 0x0a, 0x10, 0x55, 0x6e, 0x69, 0x71, 0x75,
|
|
0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x6e,
|
|
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02,
|
|
0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
|
|
0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10,
|
|
0x01, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x30, 0x0a, 0x11, 0x55, 0x6e, 0x69,
|
|
0x71, 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b,
|
|
0x0a, 0x09, 0x69, 0x73, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x08, 0x52, 0x08, 0x69, 0x73, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x22, 0xf5, 0x01, 0x0a, 0x03,
|
|
0x4f, 0x72, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d,
|
|
0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x74, 0x61,
|
|
0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65,
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
|
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
|
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72,
|
|
0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68,
|
|
0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
|
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61,
|
|
0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
|
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64,
|
|
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d,
|
|
0x61, 0x69, 0x6e, 0x22, 0xe7, 0x01, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63,
|
|
0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73,
|
|
0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74,
|
|
0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x53, 0x0a, 0x0e, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x6e,
|
|
0x67, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22,
|
|
0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61,
|
|
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b,
|
|
0x65, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x0d, 0x73, 0x6f,
|
|
0x72, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x61,
|
|
0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63, 0x12, 0x3e, 0x0a,
|
|
0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
|
|
0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61,
|
|
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51,
|
|
0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xa5, 0x01,
|
|
0x0a, 0x0e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79,
|
|
0x12, 0x3e, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e,
|
|
0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70,
|
|
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65,
|
|
0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
|
0x12, 0x3d, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
|
|
0x32, 0x25, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e,
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63,
|
|
0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12,
|
|
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x11, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61,
|
|
0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f,
|
|
0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66,
|
|
0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74,
|
|
0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x31, 0x0a, 0x06,
|
|
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x7a,
|
|
0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22,
|
|
0x88, 0x01, 0x0a, 0x0f, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x74, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
|
0x32, 0x26, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e,
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72,
|
|
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x3b, 0x0a,
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x7a, 0x69,
|
|
0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71,
|
|
0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x6f, 0x0a, 0x10, 0x4f, 0x72,
|
|
0x67, 0x53, 0x65, 0x74, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b,
|
|
0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x7a, 0x69,
|
|
0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x75,
|
|
0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x7a, 0x69, 0x74, 0x61,
|
|
0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
|
|
0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0xdb, 0x05, 0x0a, 0x11,
|
|
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x12, 0x27, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01,
|
|
0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x0a, 0x66, 0x69,
|
|
0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a,
|
|
0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73,
|
|
0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6e, 0x61,
|
|
0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10,
|
|
0x01, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25,
|
|
0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6e, 0x69, 0x63,
|
|
0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
|
|
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05,
|
|
0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61,
|
|
0x6d, 0x65, 0x12, 0x37, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f,
|
|
0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08,
|
|
0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72,
|
|
0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x67,
|
|
0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x7a, 0x69,
|
|
0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65,
|
|
0x72, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
|
|
0x42, 0x0c, 0xfa, 0x42, 0x09, 0x72, 0x07, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x60, 0x01, 0x52, 0x05,
|
|
0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69,
|
|
0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08,
|
|
0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65,
|
|
0x64, 0x12, 0x1d, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09,
|
|
0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x18, 0x14, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65,
|
|
0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72,
|
|
0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50,
|
|
0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x07,
|
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa,
|
|
0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79,
|
|
0x12, 0x24, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x0e, 0x20, 0x01,
|
|
0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6c, 0x6f,
|
|
0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x29, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c,
|
|
0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05,
|
|
0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64,
|
|
0x65, 0x12, 0x20, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28,
|
|
0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x06, 0x72, 0x65, 0x67,
|
|
0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61, 0x64,
|
|
0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05,
|
|
0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64,
|
|
0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
|
|
0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x18, 0x48, 0x52,
|
|
0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xfb, 0x05, 0x0a, 0x04, 0x55, 0x73,
|
|
0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
|
|
0x69, 0x64, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x0e, 0x32, 0x1f, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69,
|
|
0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61,
|
|
0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65,
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
|
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
|
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72,
|
|
0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68,
|
|
0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
|
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61,
|
|
0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f,
|
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
|
|
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61,
|
|
0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e,
|
|
0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
|
0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
|
0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a,
|
|
0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65,
|
|
0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61,
|
|
0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72,
|
|
0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12,
|
|
0x34, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
|
0x1c, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e,
|
|
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67,
|
|
0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0c,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x28, 0x0a, 0x0f, 0x69,
|
|
0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0d,
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72,
|
|
0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0e,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x69,
|
|
0x73, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0f,
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72,
|
|
0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79,
|
|
0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70,
|
|
0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06,
|
|
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65,
|
|
0x67, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61,
|
|
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74,
|
|
0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73,
|
|
0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73,
|
|
0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x50, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74,
|
|
0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x6e,
|
|
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02,
|
|
0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
|
|
0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10,
|
|
0x01, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2a, 0x50, 0x0a, 0x08, 0x4f, 0x72, 0x67,
|
|
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54,
|
|
0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
|
|
0x13, 0x0a, 0x0f, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49,
|
|
0x56, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45,
|
|
0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x78, 0x0a, 0x0c, 0x4f,
|
|
0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x18, 0x4f,
|
|
0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50,
|
|
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x52, 0x47,
|
|
0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x4f, 0x52, 0x47, 0x5f, 0x4e, 0x41,
|
|
0x4d, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43,
|
|
0x48, 0x4b, 0x45, 0x59, 0x5f, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x16, 0x0a,
|
|
0x12, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x53, 0x54,
|
|
0x41, 0x54, 0x45, 0x10, 0x03, 0x2a, 0x6c, 0x0a, 0x0f, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72,
|
|
0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x52, 0x47, 0x53,
|
|
0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x45, 0x51, 0x55, 0x41,
|
|
0x4c, 0x53, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43,
|
|
0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57,
|
|
0x49, 0x54, 0x48, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52,
|
|
0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e,
|
|
0x53, 0x10, 0x02, 0x2a, 0xaf, 0x01, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74,
|
|
0x65, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55,
|
|
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10,
|
|
0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45,
|
|
0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f,
|
|
0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53,
|
|
0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10,
|
|
0x03, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c,
|
|
0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x53,
|
|
0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x10, 0x05, 0x12, 0x15,
|
|
0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x49, 0x54,
|
|
0x49, 0x41, 0x4c, 0x10, 0x06, 0x2a, 0x58, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12,
|
|
0x16, 0x0a, 0x12, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
|
|
0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x45, 0x4e, 0x44, 0x45,
|
|
0x52, 0x5f, 0x46, 0x45, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x45,
|
|
0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x47,
|
|
0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, 0x32,
|
|
0xf0, 0x05, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
|
0x12, 0x4b, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x16, 0x2e, 0x67, 0x6f,
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
|
|
0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x10, 0x82, 0xd3, 0xe4,
|
|
0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x47, 0x0a,
|
|
0x05, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16,
|
|
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
|
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x0e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x08, 0x12, 0x06,
|
|
0x2f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x4e, 0x0a, 0x08, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
|
|
0x74, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f,
|
|
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72,
|
|
0x75, 0x63, 0x74, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x76, 0x61,
|
|
0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x85, 0x01, 0x0a, 0x0b, 0x49, 0x73, 0x4f, 0x72, 0x67,
|
|
0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x26, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c,
|
|
0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e,
|
|
0x69, 0x71, 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27,
|
|
0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61,
|
|
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12,
|
|
0x0f, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x69, 0x73, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65,
|
|
0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x66,
|
|
0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x42, 0x79, 0x49, 0x44, 0x12, 0x1b, 0x2e, 0x7a,
|
|
0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x44, 0x1a, 0x19, 0x2e, 0x7a, 0x69, 0x74, 0x61,
|
|
0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
|
|
0x2e, 0x4f, 0x72, 0x67, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x6f,
|
|
0x72, 0x67, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61,
|
|
0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x85, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63,
|
|
0x68, 0x4f, 0x72, 0x67, 0x73, 0x12, 0x26, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e,
|
|
0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67,
|
|
0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e,
|
|
0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70,
|
|
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x22, 0x0d,
|
|
0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a,
|
|
0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x81,
|
|
0x01, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x55, 0x70, 0x4f, 0x72, 0x67, 0x12, 0x25, 0x2e, 0x7a, 0x69,
|
|
0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x74, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
0x73, 0x74, 0x1a, 0x26, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d,
|
|
0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x74,
|
|
0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93,
|
|
0x02, 0x11, 0x22, 0x0c, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70,
|
|
0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x77, 0x72, 0x69,
|
|
0x74, 0x65, 0x42, 0xbe, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
|
|
0x6d, 0x2f, 0x63, 0x61, 0x6f, 0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x70,
|
|
0x6b, 0x67, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x72, 0x70,
|
|
0x63, 0x92, 0x41, 0x8e, 0x01, 0x12, 0x41, 0x0a, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x20, 0x73,
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x2b, 0x12, 0x29, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
|
|
0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x6f,
|
|
0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x64,
|
|
0x6d, 0x69, 0x6e, 0x32, 0x03, 0x30, 0x2e, 0x31, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70,
|
|
0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61,
|
|
0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3a,
|
|
0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f,
|
|
0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67,
|
|
0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_admin_proto_rawDescOnce sync.Once
|
|
file_admin_proto_rawDescData = file_admin_proto_rawDesc
|
|
)
|
|
|
|
func file_admin_proto_rawDescGZIP() []byte {
|
|
file_admin_proto_rawDescOnce.Do(func() {
|
|
file_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_admin_proto_rawDescData)
|
|
})
|
|
return file_admin_proto_rawDescData
|
|
}
|
|
|
|
var file_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
|
|
var file_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_admin_proto_goTypes = []interface{}{
|
|
(OrgState)(0), // 0: zitadel.admin.api.v1.OrgState
|
|
(OrgSearchKey)(0), // 1: zitadel.admin.api.v1.OrgSearchKey
|
|
(OrgSearchMethod)(0), // 2: zitadel.admin.api.v1.OrgSearchMethod
|
|
(UserState)(0), // 3: zitadel.admin.api.v1.UserState
|
|
(Gender)(0), // 4: zitadel.admin.api.v1.Gender
|
|
(*OrgID)(nil), // 5: zitadel.admin.api.v1.OrgID
|
|
(*UniqueOrgRequest)(nil), // 6: zitadel.admin.api.v1.UniqueOrgRequest
|
|
(*UniqueOrgResponse)(nil), // 7: zitadel.admin.api.v1.UniqueOrgResponse
|
|
(*Org)(nil), // 8: zitadel.admin.api.v1.Org
|
|
(*OrgSearchRequest)(nil), // 9: zitadel.admin.api.v1.OrgSearchRequest
|
|
(*OrgSearchQuery)(nil), // 10: zitadel.admin.api.v1.OrgSearchQuery
|
|
(*OrgSearchResponse)(nil), // 11: zitadel.admin.api.v1.OrgSearchResponse
|
|
(*OrgSetUpRequest)(nil), // 12: zitadel.admin.api.v1.OrgSetUpRequest
|
|
(*OrgSetUpResponse)(nil), // 13: zitadel.admin.api.v1.OrgSetUpResponse
|
|
(*CreateUserRequest)(nil), // 14: zitadel.admin.api.v1.CreateUserRequest
|
|
(*User)(nil), // 15: zitadel.admin.api.v1.User
|
|
(*CreateOrgRequest)(nil), // 16: zitadel.admin.api.v1.CreateOrgRequest
|
|
(*timestamp.Timestamp)(nil), // 17: google.protobuf.Timestamp
|
|
(*empty.Empty)(nil), // 18: google.protobuf.Empty
|
|
(*_struct.Struct)(nil), // 19: google.protobuf.Struct
|
|
}
|
|
var file_admin_proto_depIdxs = []int32{
|
|
0, // 0: zitadel.admin.api.v1.Org.state:type_name -> zitadel.admin.api.v1.OrgState
|
|
17, // 1: zitadel.admin.api.v1.Org.creation_date:type_name -> google.protobuf.Timestamp
|
|
17, // 2: zitadel.admin.api.v1.Org.change_date:type_name -> google.protobuf.Timestamp
|
|
1, // 3: zitadel.admin.api.v1.OrgSearchRequest.sorting_column:type_name -> zitadel.admin.api.v1.OrgSearchKey
|
|
10, // 4: zitadel.admin.api.v1.OrgSearchRequest.queries:type_name -> zitadel.admin.api.v1.OrgSearchQuery
|
|
1, // 5: zitadel.admin.api.v1.OrgSearchQuery.key:type_name -> zitadel.admin.api.v1.OrgSearchKey
|
|
2, // 6: zitadel.admin.api.v1.OrgSearchQuery.method:type_name -> zitadel.admin.api.v1.OrgSearchMethod
|
|
8, // 7: zitadel.admin.api.v1.OrgSearchResponse.result:type_name -> zitadel.admin.api.v1.Org
|
|
16, // 8: zitadel.admin.api.v1.OrgSetUpRequest.org:type_name -> zitadel.admin.api.v1.CreateOrgRequest
|
|
14, // 9: zitadel.admin.api.v1.OrgSetUpRequest.user:type_name -> zitadel.admin.api.v1.CreateUserRequest
|
|
8, // 10: zitadel.admin.api.v1.OrgSetUpResponse.org:type_name -> zitadel.admin.api.v1.Org
|
|
15, // 11: zitadel.admin.api.v1.OrgSetUpResponse.user:type_name -> zitadel.admin.api.v1.User
|
|
4, // 12: zitadel.admin.api.v1.CreateUserRequest.gender:type_name -> zitadel.admin.api.v1.Gender
|
|
3, // 13: zitadel.admin.api.v1.User.state:type_name -> zitadel.admin.api.v1.UserState
|
|
17, // 14: zitadel.admin.api.v1.User.creation_date:type_name -> google.protobuf.Timestamp
|
|
17, // 15: zitadel.admin.api.v1.User.change_date:type_name -> google.protobuf.Timestamp
|
|
4, // 16: zitadel.admin.api.v1.User.gender:type_name -> zitadel.admin.api.v1.Gender
|
|
18, // 17: zitadel.admin.api.v1.AdminService.Healthz:input_type -> google.protobuf.Empty
|
|
18, // 18: zitadel.admin.api.v1.AdminService.Ready:input_type -> google.protobuf.Empty
|
|
18, // 19: zitadel.admin.api.v1.AdminService.Validate:input_type -> google.protobuf.Empty
|
|
6, // 20: zitadel.admin.api.v1.AdminService.IsOrgUnique:input_type -> zitadel.admin.api.v1.UniqueOrgRequest
|
|
5, // 21: zitadel.admin.api.v1.AdminService.GetOrgByID:input_type -> zitadel.admin.api.v1.OrgID
|
|
9, // 22: zitadel.admin.api.v1.AdminService.SearchOrgs:input_type -> zitadel.admin.api.v1.OrgSearchRequest
|
|
12, // 23: zitadel.admin.api.v1.AdminService.SetUpOrg:input_type -> zitadel.admin.api.v1.OrgSetUpRequest
|
|
18, // 24: zitadel.admin.api.v1.AdminService.Healthz:output_type -> google.protobuf.Empty
|
|
18, // 25: zitadel.admin.api.v1.AdminService.Ready:output_type -> google.protobuf.Empty
|
|
19, // 26: zitadel.admin.api.v1.AdminService.Validate:output_type -> google.protobuf.Struct
|
|
7, // 27: zitadel.admin.api.v1.AdminService.IsOrgUnique:output_type -> zitadel.admin.api.v1.UniqueOrgResponse
|
|
8, // 28: zitadel.admin.api.v1.AdminService.GetOrgByID:output_type -> zitadel.admin.api.v1.Org
|
|
11, // 29: zitadel.admin.api.v1.AdminService.SearchOrgs:output_type -> zitadel.admin.api.v1.OrgSearchResponse
|
|
13, // 30: zitadel.admin.api.v1.AdminService.SetUpOrg:output_type -> zitadel.admin.api.v1.OrgSetUpResponse
|
|
24, // [24:31] is the sub-list for method output_type
|
|
17, // [17:24] is the sub-list for method input_type
|
|
17, // [17:17] is the sub-list for extension type_name
|
|
17, // [17:17] is the sub-list for extension extendee
|
|
0, // [0:17] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_admin_proto_init() }
|
|
func file_admin_proto_init() {
|
|
if File_admin_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*OrgID); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UniqueOrgRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UniqueOrgResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Org); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*OrgSearchRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*OrgSearchQuery); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*OrgSearchResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*OrgSetUpRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*OrgSetUpResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CreateUserRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*User); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_admin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CreateOrgRequest); 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_admin_proto_rawDesc,
|
|
NumEnums: 5,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_admin_proto_goTypes,
|
|
DependencyIndexes: file_admin_proto_depIdxs,
|
|
EnumInfos: file_admin_proto_enumTypes,
|
|
MessageInfos: file_admin_proto_msgTypes,
|
|
}.Build()
|
|
File_admin_proto = out.File
|
|
file_admin_proto_rawDesc = nil
|
|
file_admin_proto_goTypes = nil
|
|
file_admin_proto_depIdxs = nil
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConnInterface
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
// AdminServiceClient is the client API for AdminService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type AdminServiceClient interface {
|
|
// Healthz returns status OK as soon as the service started
|
|
Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
// Ready returns status OK as soon as all dependent services are available
|
|
Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error)
|
|
//ORG
|
|
IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error)
|
|
GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error)
|
|
SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error)
|
|
SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error)
|
|
}
|
|
|
|
type adminServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient {
|
|
return &adminServiceClient{cc}
|
|
}
|
|
|
|
func (c *adminServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
out := new(empty.Empty)
|
|
err := c.cc.Invoke(ctx, "/zitadel.admin.api.v1.AdminService/Healthz", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *adminServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
out := new(empty.Empty)
|
|
err := c.cc.Invoke(ctx, "/zitadel.admin.api.v1.AdminService/Ready", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *adminServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) {
|
|
out := new(_struct.Struct)
|
|
err := c.cc.Invoke(ctx, "/zitadel.admin.api.v1.AdminService/Validate", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *adminServiceClient) IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error) {
|
|
out := new(UniqueOrgResponse)
|
|
err := c.cc.Invoke(ctx, "/zitadel.admin.api.v1.AdminService/IsOrgUnique", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *adminServiceClient) GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error) {
|
|
out := new(Org)
|
|
err := c.cc.Invoke(ctx, "/zitadel.admin.api.v1.AdminService/GetOrgByID", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *adminServiceClient) SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error) {
|
|
out := new(OrgSearchResponse)
|
|
err := c.cc.Invoke(ctx, "/zitadel.admin.api.v1.AdminService/SearchOrgs", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *adminServiceClient) SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error) {
|
|
out := new(OrgSetUpResponse)
|
|
err := c.cc.Invoke(ctx, "/zitadel.admin.api.v1.AdminService/SetUpOrg", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// AdminServiceServer is the server API for AdminService service.
|
|
type AdminServiceServer interface {
|
|
// Healthz returns status OK as soon as the service started
|
|
Healthz(context.Context, *empty.Empty) (*empty.Empty, error)
|
|
// Ready returns status OK as soon as all dependent services are available
|
|
Ready(context.Context, *empty.Empty) (*empty.Empty, error)
|
|
Validate(context.Context, *empty.Empty) (*_struct.Struct, error)
|
|
//ORG
|
|
IsOrgUnique(context.Context, *UniqueOrgRequest) (*UniqueOrgResponse, error)
|
|
GetOrgByID(context.Context, *OrgID) (*Org, error)
|
|
SearchOrgs(context.Context, *OrgSearchRequest) (*OrgSearchResponse, error)
|
|
SetUpOrg(context.Context, *OrgSetUpRequest) (*OrgSetUpResponse, error)
|
|
}
|
|
|
|
// UnimplementedAdminServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedAdminServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedAdminServiceServer) Healthz(context.Context, *empty.Empty) (*empty.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented")
|
|
}
|
|
func (*UnimplementedAdminServiceServer) Ready(context.Context, *empty.Empty) (*empty.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented")
|
|
}
|
|
func (*UnimplementedAdminServiceServer) Validate(context.Context, *empty.Empty) (*_struct.Struct, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented")
|
|
}
|
|
func (*UnimplementedAdminServiceServer) IsOrgUnique(context.Context, *UniqueOrgRequest) (*UniqueOrgResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method IsOrgUnique not implemented")
|
|
}
|
|
func (*UnimplementedAdminServiceServer) GetOrgByID(context.Context, *OrgID) (*Org, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetOrgByID not implemented")
|
|
}
|
|
func (*UnimplementedAdminServiceServer) SearchOrgs(context.Context, *OrgSearchRequest) (*OrgSearchResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method SearchOrgs not implemented")
|
|
}
|
|
func (*UnimplementedAdminServiceServer) SetUpOrg(context.Context, *OrgSetUpRequest) (*OrgSetUpResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method SetUpOrg not implemented")
|
|
}
|
|
|
|
func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) {
|
|
s.RegisterService(&_AdminService_serviceDesc, srv)
|
|
}
|
|
|
|
func _AdminService_Healthz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AdminServiceServer).Healthz(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/zitadel.admin.api.v1.AdminService/Healthz",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AdminServiceServer).Healthz(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AdminService_Ready_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AdminServiceServer).Ready(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/zitadel.admin.api.v1.AdminService/Ready",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AdminServiceServer).Ready(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AdminService_Validate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AdminServiceServer).Validate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/zitadel.admin.api.v1.AdminService/Validate",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AdminServiceServer).Validate(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AdminService_IsOrgUnique_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UniqueOrgRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AdminServiceServer).IsOrgUnique(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/zitadel.admin.api.v1.AdminService/IsOrgUnique",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AdminServiceServer).IsOrgUnique(ctx, req.(*UniqueOrgRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AdminService_GetOrgByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OrgID)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AdminServiceServer).GetOrgByID(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/zitadel.admin.api.v1.AdminService/GetOrgByID",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AdminServiceServer).GetOrgByID(ctx, req.(*OrgID))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AdminService_SearchOrgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OrgSearchRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AdminServiceServer).SearchOrgs(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/zitadel.admin.api.v1.AdminService/SearchOrgs",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AdminServiceServer).SearchOrgs(ctx, req.(*OrgSearchRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AdminService_SetUpOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OrgSetUpRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AdminServiceServer).SetUpOrg(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/zitadel.admin.api.v1.AdminService/SetUpOrg",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AdminServiceServer).SetUpOrg(ctx, req.(*OrgSetUpRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _AdminService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "zitadel.admin.api.v1.AdminService",
|
|
HandlerType: (*AdminServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Healthz",
|
|
Handler: _AdminService_Healthz_Handler,
|
|
},
|
|
{
|
|
MethodName: "Ready",
|
|
Handler: _AdminService_Ready_Handler,
|
|
},
|
|
{
|
|
MethodName: "Validate",
|
|
Handler: _AdminService_Validate_Handler,
|
|
},
|
|
{
|
|
MethodName: "IsOrgUnique",
|
|
Handler: _AdminService_IsOrgUnique_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetOrgByID",
|
|
Handler: _AdminService_GetOrgByID_Handler,
|
|
},
|
|
{
|
|
MethodName: "SearchOrgs",
|
|
Handler: _AdminService_SearchOrgs_Handler,
|
|
},
|
|
{
|
|
MethodName: "SetUpOrg",
|
|
Handler: _AdminService_SetUpOrg_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "admin.proto",
|
|
}
|