models

package
v1.0.1-herb-namespaced... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserState_name = map[int32]string{
		0: "USER_STATE_UNSPECIFIED",
		1: "USER_STATE_ACTIVE",
		2: "USER_STATE_DISABLED",
		3: "USER_STATE_DELETED",
		4: "USER_STATE_PENDING",
	}
	UserState_value = map[string]int32{
		"USER_STATE_UNSPECIFIED": 0,
		"USER_STATE_ACTIVE":      1,
		"USER_STATE_DISABLED":    2,
		"USER_STATE_DELETED":     3,
		"USER_STATE_PENDING":     4,
	}
)

Enum value maps for UserState.

View Source
var File_proto_external_models_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Address

type Address struct {
	Street     string `protobuf:"bytes,1,opt,name=street,proto3" json:"street,omitempty"`
	City       string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	State      string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	Country    string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetCountry

func (x *Address) GetCountry() string

func (*Address) GetPostalCode

func (x *Address) GetPostalCode() string

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetStreet

func (x *Address) GetStreet() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type AddressUpdate

type AddressUpdate struct {
	Street     *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=street,proto3" json:"street,omitempty"`
	City       *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	State      *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	PostalCode *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	Country    *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressUpdate) Descriptor deprecated

func (*AddressUpdate) Descriptor() ([]byte, []int)

Deprecated: Use AddressUpdate.ProtoReflect.Descriptor instead.

func (*AddressUpdate) GetCity

func (x *AddressUpdate) GetCity() *wrapperspb.StringValue

func (*AddressUpdate) GetCountry

func (x *AddressUpdate) GetCountry() *wrapperspb.StringValue

func (*AddressUpdate) GetPostalCode

func (x *AddressUpdate) GetPostalCode() *wrapperspb.StringValue

func (*AddressUpdate) GetState

func (x *AddressUpdate) GetState() *wrapperspb.StringValue

func (*AddressUpdate) GetStreet

func (x *AddressUpdate) GetStreet() *wrapperspb.StringValue

func (*AddressUpdate) ProtoMessage

func (*AddressUpdate) ProtoMessage()

func (*AddressUpdate) ProtoReflect

func (x *AddressUpdate) ProtoReflect() protoreflect.Message

func (*AddressUpdate) Reset

func (x *AddressUpdate) Reset()

func (*AddressUpdate) String

func (x *AddressUpdate) String() string

type Profile

type Profile struct {
	GivenName    string                  `protobuf:"bytes,1,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"`
	FamilyName   string                  `protobuf:"bytes,2,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"`
	PhoneNumbers []*types.PhoneNumberDTO `protobuf:"bytes,3,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"`
	Address      *Address                `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

func (*Profile) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAddress

func (x *Profile) GetAddress() *Address

func (*Profile) GetFamilyName

func (x *Profile) GetFamilyName() string

func (*Profile) GetGivenName

func (x *Profile) GetGivenName() string

func (*Profile) GetPhoneNumbers

func (x *Profile) GetPhoneNumbers() []*types.PhoneNumberDTO

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

func (x *Profile) ProtoReflect() protoreflect.Message

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type ProfileUpdate

type ProfileUpdate struct {
	GivenName    *wrapperspb.StringValue       `protobuf:"bytes,1,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"`
	FamilyName   *wrapperspb.StringValue       `protobuf:"bytes,2,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"`
	PhoneNumbers []*types.PhoneNumberDTOUpdate `protobuf:"bytes,3,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"`
	Address      *AddressUpdate                `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileUpdate) Descriptor deprecated

func (*ProfileUpdate) Descriptor() ([]byte, []int)

Deprecated: Use ProfileUpdate.ProtoReflect.Descriptor instead.

func (*ProfileUpdate) GetAddress

func (x *ProfileUpdate) GetAddress() *AddressUpdate

func (*ProfileUpdate) GetFamilyName

func (x *ProfileUpdate) GetFamilyName() *wrapperspb.StringValue

func (*ProfileUpdate) GetGivenName

func (x *ProfileUpdate) GetGivenName() *wrapperspb.StringValue

func (*ProfileUpdate) GetPhoneNumbers

func (x *ProfileUpdate) GetPhoneNumbers() []*types.PhoneNumberDTOUpdate

func (*ProfileUpdate) ProtoMessage

func (*ProfileUpdate) ProtoMessage()

func (*ProfileUpdate) ProtoReflect

func (x *ProfileUpdate) ProtoReflect() protoreflect.Message

func (*ProfileUpdate) Reset

func (x *ProfileUpdate) Reset()

func (*ProfileUpdate) String

func (x *ProfileUpdate) String() string

type User

type User struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	State    UserState         `protobuf:"varint,3,opt,name=state,proto3,enum=proto.external.models.UserState" json:"state,omitempty"`
	Profile  *Profile          `protobuf:"bytes,4,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() string

func (*User) GetMetadata

func (x *User) GetMetadata() map[string]string

func (*User) GetProfile

func (x *User) GetProfile() *Profile

func (*User) GetState

func (x *User) GetState() UserState

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserState

type UserState int32
const (
	UserState_USER_STATE_UNSPECIFIED UserState = 0
	UserState_USER_STATE_ACTIVE      UserState = 1
	UserState_USER_STATE_DISABLED    UserState = 2
	UserState_USER_STATE_DELETED     UserState = 3
	UserState_USER_STATE_PENDING     UserState = 4
)

func (UserState) Descriptor

func (UserState) Descriptor() protoreflect.EnumDescriptor

func (UserState) Enum

func (x UserState) Enum() *UserState

func (UserState) EnumDescriptor deprecated

func (UserState) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserState.Descriptor instead.

func (UserState) Number

func (x UserState) Number() protoreflect.EnumNumber

func (UserState) String

func (x UserState) String() string

func (UserState) Type

type UserStateFilterExpression

type UserStateFilterExpression struct {
	Eq UserState   `protobuf:"varint,1,opt,name=eq,proto3,enum=proto.external.models.UserState" json:"eq,omitempty"`
	In []UserState `protobuf:"varint,2,rep,packed,name=in,proto3,enum=proto.external.models.UserState" json:"in,omitempty"`
	// contains filtered or unexported fields
}

func (*UserStateFilterExpression) Descriptor deprecated

func (*UserStateFilterExpression) Descriptor() ([]byte, []int)

Deprecated: Use UserStateFilterExpression.ProtoReflect.Descriptor instead.

func (*UserStateFilterExpression) GetEq

func (*UserStateFilterExpression) GetIn

func (x *UserStateFilterExpression) GetIn() []UserState

func (*UserStateFilterExpression) ProtoMessage

func (*UserStateFilterExpression) ProtoMessage()

func (*UserStateFilterExpression) ProtoReflect

func (*UserStateFilterExpression) Reset

func (x *UserStateFilterExpression) Reset()

func (*UserStateFilterExpression) String

func (x *UserStateFilterExpression) String() string

type UserStateValue

type UserStateValue struct {
	Value UserState `protobuf:"varint,1,opt,name=value,proto3,enum=proto.external.models.UserState" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UserStateValue) Descriptor deprecated

func (*UserStateValue) Descriptor() ([]byte, []int)

Deprecated: Use UserStateValue.ProtoReflect.Descriptor instead.

func (*UserStateValue) GetValue

func (x *UserStateValue) GetValue() UserState

func (*UserStateValue) ProtoMessage

func (*UserStateValue) ProtoMessage()

func (*UserStateValue) ProtoReflect

func (x *UserStateValue) ProtoReflect() protoreflect.Message

func (*UserStateValue) Reset

func (x *UserStateValue) Reset()

func (*UserStateValue) String

func (x *UserStateValue) String() string

type UserUpdate

type UserUpdate struct {
	Id       string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Metadata *types.StringMapUpdate `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	State    *UserStateValue        `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	Profile  *ProfileUpdate         `protobuf:"bytes,4,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*UserUpdate) Descriptor deprecated

func (*UserUpdate) Descriptor() ([]byte, []int)

Deprecated: Use UserUpdate.ProtoReflect.Descriptor instead.

func (*UserUpdate) GetId

func (x *UserUpdate) GetId() string

func (*UserUpdate) GetMetadata

func (x *UserUpdate) GetMetadata() *types.StringMapUpdate

func (*UserUpdate) GetProfile

func (x *UserUpdate) GetProfile() *ProfileUpdate

func (*UserUpdate) GetState

func (x *UserUpdate) GetState() *UserStateValue

func (*UserUpdate) ProtoMessage

func (*UserUpdate) ProtoMessage()

func (*UserUpdate) ProtoReflect

func (x *UserUpdate) ProtoReflect() protoreflect.Message

func (*UserUpdate) Reset

func (x *UserUpdate) Reset()

func (*UserUpdate) String

func (x *UserUpdate) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL