iam_common

package
v0.4.37 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Invitation_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PENDING",
		2: "ACCEPTED",
		3: "DECLINED",
		4: "EXPIRED",
	}

	Invitation_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PENDING":           1,
		"ACCEPTED":          2,
		"DECLINED":          3,
		"EXPIRED":           4,
	}
)

Functions

This section is empty.

Types

type Actor

type Actor struct {
	User           *user.Reference            `protobuf:"bytes,1,opt,customtype=Reference,name=user,proto3" json:"user,omitempty" firestore:"user"`
	ServiceAccount *service_account.Reference `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

Actor is a party performing an action

func (*Actor) Clone

func (o *Actor) Clone() *Actor

func (*Actor) CloneRaw

func (o *Actor) CloneRaw() gotenobject.GotenObjectExt

func (*Actor) Descriptor

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

Deprecated, Use Actor.ProtoReflect.Descriptor instead.

func (*Actor) GetServiceAccount

func (m *Actor) GetServiceAccount() *service_account.Reference

func (*Actor) GetUser

func (m *Actor) GetUser() *user.Reference

func (*Actor) GotenMessage

func (*Actor) GotenMessage()

func (*Actor) GotenObjectExt

func (o *Actor) GotenObjectExt()

func (*Actor) GotenValidate

func (obj *Actor) GotenValidate() error

func (*Actor) MakeDiffFieldMask

func (o *Actor) MakeDiffFieldMask(other *Actor) *Actor_FieldMask

func (*Actor) MakeFullFieldMask

func (o *Actor) MakeFullFieldMask() *Actor_FieldMask

func (*Actor) MakeRawDiffFieldMask

func (o *Actor) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask

func (*Actor) MakeRawFullFieldMask

func (o *Actor) MakeRawFullFieldMask() gotenobject.FieldMask

func (*Actor) Marshal

func (m *Actor) Marshal() ([]byte, error)

func (*Actor) MarshalJSON

func (m *Actor) MarshalJSON() ([]byte, error)

func (*Actor) Merge

func (o *Actor) Merge(source *Actor)

func (*Actor) MergeRaw

func (o *Actor) MergeRaw(source gotenobject.GotenObjectExt)

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) ProtoReflect

func (m *Actor) ProtoReflect() preflect.Message

func (*Actor) Reset

func (m *Actor) Reset()

func (*Actor) SetServiceAccount

func (m *Actor) SetServiceAccount(fv *service_account.Reference)

func (*Actor) SetUser

func (m *Actor) SetUser(fv *user.Reference)

func (*Actor) String

func (m *Actor) String() string

func (*Actor) Unmarshal

func (m *Actor) Unmarshal(b []byte) error

func (*Actor) UnmarshalJSON

func (m *Actor) UnmarshalJSON(data []byte) error

type ActorFieldPathBuilder

type ActorFieldPathBuilder struct{}

func NewActorFieldPathBuilder

func NewActorFieldPathBuilder() ActorFieldPathBuilder

func (ActorFieldPathBuilder) ServiceAccount

func (ActorFieldPathBuilder) User

type ActorPathSelectorServiceAccount

type ActorPathSelectorServiceAccount struct{}

func (ActorPathSelectorServiceAccount) FieldPath

func (ActorPathSelectorServiceAccount) WithArrayOfValues

func (ActorPathSelectorServiceAccount) WithValue

type ActorPathSelectorUser

type ActorPathSelectorUser struct{}

func (ActorPathSelectorUser) FieldPath

func (ActorPathSelectorUser) WithArrayOfValues

func (ActorPathSelectorUser) WithValue

type Actor_FieldMask

type Actor_FieldMask struct {
	Paths []Actor_FieldPath
}

func FullActor_FieldMask

func FullActor_FieldMask() *Actor_FieldMask

func (*Actor_FieldMask) AppendPath

func (fieldMask *Actor_FieldMask) AppendPath(path Actor_FieldPath)

func (*Actor_FieldMask) AppendRawPath

func (fieldMask *Actor_FieldMask) AppendRawPath(path gotenobject.FieldPath)

func (*Actor_FieldMask) DecodeFirestore

func (fieldMask *Actor_FieldMask) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Actor_FieldMask) EncodeFirestore

func (fieldMask *Actor_FieldMask) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Actor_FieldMask) FilterInputFields

func (fieldMask *Actor_FieldMask) FilterInputFields() *Actor_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Actor_FieldMask) FromProtoFieldMask

func (fieldMask *Actor_FieldMask) FromProtoFieldMask(protoFieldMask *fieldmaskpb.FieldMask) error

func (*Actor_FieldMask) GetPaths

func (fieldMask *Actor_FieldMask) GetPaths() []Actor_FieldPath

func (*Actor_FieldMask) GetRawPaths

func (fieldMask *Actor_FieldMask) GetRawPaths() []gotenobject.FieldPath

func (*Actor_FieldMask) IsFull

func (fieldMask *Actor_FieldMask) IsFull() bool

func (Actor_FieldMask) Marshal

func (fieldMask Actor_FieldMask) Marshal() ([]byte, error)

implement methods required by customType

func (Actor_FieldMask) MarshalJSON

func (fieldMask Actor_FieldMask) MarshalJSON() ([]byte, error)

func (*Actor_FieldMask) PathsCount

func (fieldMask *Actor_FieldMask) PathsCount() int

func (*Actor_FieldMask) Project

func (fieldMask *Actor_FieldMask) Project(source *Actor) *Actor

func (*Actor_FieldMask) ProjectRaw

func (*Actor_FieldMask) ProtoMessage

func (fieldMask *Actor_FieldMask) ProtoMessage()

func (*Actor_FieldMask) ProtoReflect

func (fieldMask *Actor_FieldMask) ProtoReflect() preflect.Message

func (*Actor_FieldMask) Reset

func (fieldMask *Actor_FieldMask) Reset()

func (*Actor_FieldMask) Set

func (fieldMask *Actor_FieldMask) Set(target, source *Actor)

func (*Actor_FieldMask) SetFromCliFlag

func (fieldMask *Actor_FieldMask) SetFromCliFlag(raw string) error

func (*Actor_FieldMask) SetRaw

func (fieldMask *Actor_FieldMask) SetRaw(target, source gotenobject.GotenObjectExt)

func (*Actor_FieldMask) Size

func (fieldMask *Actor_FieldMask) Size() int

func (*Actor_FieldMask) String

func (fieldMask *Actor_FieldMask) String() string

func (*Actor_FieldMask) Subtract

func (fieldMask *Actor_FieldMask) Subtract(other *Actor_FieldMask) *Actor_FieldMask

func (*Actor_FieldMask) SubtractRaw

func (fieldMask *Actor_FieldMask) SubtractRaw(other gotenobject.FieldMask) gotenobject.FieldMask

func (*Actor_FieldMask) ToProtoFieldMask

func (fieldMask *Actor_FieldMask) ToProtoFieldMask() *fieldmaskpb.FieldMask

ToFieldMask is used for proto conversions

func (*Actor_FieldMask) Unmarshal

func (fieldMask *Actor_FieldMask) Unmarshal(data []byte) error

func (*Actor_FieldMask) UnmarshalJSON

func (fieldMask *Actor_FieldMask) UnmarshalJSON(data []byte) error

type Actor_FieldPath

type Actor_FieldPath interface {
	gotenobject.FieldPath
	Selector() Actor_FieldPathSelector
	Get(source *Actor) []interface{}
	GetSingle(source *Actor) (interface{}, bool)
	ClearValue(item *Actor)

	// Those methods build corresponding Actor_FieldPathValue
	// (or array of values) and holds passed value. Panics if injected type is incorrect.
	WithIValue(value interface{}) Actor_FieldPathValue
	WithIArrayOfValues(values interface{}) Actor_FieldPathArrayOfValues
	WithIArrayItemValue(value interface{}) Actor_FieldPathArrayItemValue
}

FieldPath provides implementation to handle https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto

func BuildActor_FieldPath

func BuildActor_FieldPath(fp gotenobject.RawFieldPath) (Actor_FieldPath, error)

func MustParseActor_FieldPath

func MustParseActor_FieldPath(rawField string) Actor_FieldPath

func ParseActor_FieldPath

func ParseActor_FieldPath(rawField string) (Actor_FieldPath, error)

type Actor_FieldPathArrayItemValue

type Actor_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Actor_FieldPath
	ContainsValue(*Actor) bool
}

Actor_FieldPathArrayItemValue allows storing single item in Path-specific values for Actor according to their type Present only for array (repeated) types.

func MustParseActor_FieldPathArrayItemValue

func MustParseActor_FieldPathArrayItemValue(pathStr, valueStr string) Actor_FieldPathArrayItemValue

func ParseActor_FieldPathArrayItemValue

func ParseActor_FieldPathArrayItemValue(pathStr, valueStr string) (Actor_FieldPathArrayItemValue, error)

ParseActor_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Actor_FieldPathArrayOfValues

type Actor_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Actor_FieldPath
}

Actor_FieldPathArrayOfValues allows storing slice of values for Actor fields according to their type

func MustParseActor_FieldPathArrayOfValues

func MustParseActor_FieldPathArrayOfValues(pathStr, valuesStr string) Actor_FieldPathArrayOfValues

func ParseActor_FieldPathArrayOfValues

func ParseActor_FieldPathArrayOfValues(pathStr, valuesStr string) (Actor_FieldPathArrayOfValues, error)

type Actor_FieldPathSelector

type Actor_FieldPathSelector int32
const (
	Actor_FieldPathSelectorUser           Actor_FieldPathSelector = 0
	Actor_FieldPathSelectorServiceAccount Actor_FieldPathSelector = 1
)

func (Actor_FieldPathSelector) String

func (s Actor_FieldPathSelector) String() string

type Actor_FieldPathValue

type Actor_FieldPathValue interface {
	Actor_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Actor)
	CompareWith(*Actor) (cmp int, comparable bool)
}

Actor_FieldPathValue allows storing values for Actor fields according to their type

func MustParseActor_FieldPathValue

func MustParseActor_FieldPathValue(pathStr, valueStr string) Actor_FieldPathValue

func ParseActor_FieldPathValue

func ParseActor_FieldPathValue(pathStr, valueStr string) (Actor_FieldPathValue, error)

type Actor_FieldTerminalPath

type Actor_FieldTerminalPath struct {
	// contains filtered or unexported fields
}

func (*Actor_FieldTerminalPath) ClearValue

func (fp *Actor_FieldTerminalPath) ClearValue(item *Actor)

func (*Actor_FieldTerminalPath) ClearValueRaw

func (fp *Actor_FieldTerminalPath) ClearValueRaw(item proto.Message)

func (*Actor_FieldTerminalPath) Get

func (fp *Actor_FieldTerminalPath) Get(source *Actor) (values []interface{})

Get returns all values pointed by specific field from source Actor

func (*Actor_FieldTerminalPath) GetDefault

func (fp *Actor_FieldTerminalPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Actor_FieldTerminalPath) GetRaw

func (fp *Actor_FieldTerminalPath) GetRaw(source proto.Message) []interface{}

func (*Actor_FieldTerminalPath) GetSingle

func (fp *Actor_FieldTerminalPath) GetSingle(source *Actor) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Actor

func (*Actor_FieldTerminalPath) GetSingleRaw

func (fp *Actor_FieldTerminalPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Actor_FieldTerminalPath) IsLeaf

func (fp *Actor_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Actor_FieldTerminalPath) JSONString

func (fp *Actor_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Actor_FieldTerminalPath) Selector

func (*Actor_FieldTerminalPath) String

func (fp *Actor_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Actor_FieldTerminalPath) WithIArrayItemValue

func (fp *Actor_FieldTerminalPath) WithIArrayItemValue(value interface{}) Actor_FieldPathArrayItemValue

func (*Actor_FieldTerminalPath) WithIArrayOfValues

func (fp *Actor_FieldTerminalPath) WithIArrayOfValues(values interface{}) Actor_FieldPathArrayOfValues

func (*Actor_FieldTerminalPath) WithIValue

func (fp *Actor_FieldTerminalPath) WithIValue(value interface{}) Actor_FieldPathValue

func (*Actor_FieldTerminalPath) WithRawIArrayItemValue

func (fp *Actor_FieldTerminalPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Actor_FieldTerminalPath) WithRawIArrayOfValues

func (fp *Actor_FieldTerminalPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Actor_FieldTerminalPath) WithRawIValue

func (fp *Actor_FieldTerminalPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Actor_FieldTerminalPathArrayItemValue

type Actor_FieldTerminalPathArrayItemValue struct {
	Actor_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Actor_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Actor_FieldTerminalPathArrayItemValue) ContainsValue(source *Actor) bool

Contains returns a boolean indicating if value that is being held is present in given 'Actor'

func (*Actor_FieldTerminalPathArrayItemValue) GetRawItemValue

func (fpaiv *Actor_FieldTerminalPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored element value for array in object Actor as interface{}

func (*Actor_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Actor_FieldTerminalPathArrayItemValue) GetSingle(source *Actor) (interface{}, bool)

func (*Actor_FieldTerminalPathArrayItemValue) GetSingleRaw

func (fpaiv *Actor_FieldTerminalPathArrayItemValue) GetSingleRaw(source proto.Message) (interface{}, bool)

type Actor_FieldTerminalPathArrayOfValues

type Actor_FieldTerminalPathArrayOfValues struct {
	Actor_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Actor_FieldTerminalPathArrayOfValues) AsServiceAccountArrayOfValues

func (fpaov *Actor_FieldTerminalPathArrayOfValues) AsServiceAccountArrayOfValues() ([]*service_account.Reference, bool)

func (*Actor_FieldTerminalPathArrayOfValues) AsUserArrayOfValues

func (fpaov *Actor_FieldTerminalPathArrayOfValues) AsUserArrayOfValues() ([]*user.Reference, bool)

func (*Actor_FieldTerminalPathArrayOfValues) GetRawValues

func (fpaov *Actor_FieldTerminalPathArrayOfValues) GetRawValues() (values []interface{})

type Actor_FieldTerminalPathValue

type Actor_FieldTerminalPathValue struct {
	Actor_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Actor_FieldTerminalPathValue) AsServiceAccountValue

func (fpv *Actor_FieldTerminalPathValue) AsServiceAccountValue() (*service_account.Reference, bool)

func (*Actor_FieldTerminalPathValue) AsUserValue

func (fpv *Actor_FieldTerminalPathValue) AsUserValue() (*user.Reference, bool)

func (*Actor_FieldTerminalPathValue) CompareWith

func (fpv *Actor_FieldTerminalPathValue) CompareWith(source *Actor) (int, bool)

CompareWith compares value in the 'Actor_FieldTerminalPathValue' with the value under path in 'Actor'.

func (*Actor_FieldTerminalPathValue) CompareWithRaw

func (fpv *Actor_FieldTerminalPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Actor_FieldTerminalPathValue) GetRawValue

func (fpv *Actor_FieldTerminalPathValue) GetRawValue() interface{}

GetRawValue returns raw value stored under selected path for 'Actor' as interface{}

func (*Actor_FieldTerminalPathValue) SetTo

func (fpv *Actor_FieldTerminalPathValue) SetTo(target **Actor)

SetTo stores value for selected field for object Actor

func (*Actor_FieldTerminalPathValue) SetToRaw

func (fpv *Actor_FieldTerminalPathValue) SetToRaw(target proto.Message)

type Invitation

type Invitation struct {

	// Invitee Email address
	InviteeEmail string `protobuf:"bytes,3,opt,name=invitee_email,json=inviteeEmail,proto3" json:"invitee_email,omitempty" firestore:"inviteeEmail"`
	// Inviter User
	InviterActor *Actor `protobuf:"bytes,6,opt,name=inviter_actor,json=inviterActor,proto3" json:"inviter_actor,omitempty" firestore:"inviterActor"`
	// Denormalized data - TODO: remove it
	InviterFullName string `` /* 136-byte string literal not displayed */
	// Inviter Email
	InviterEmail string `protobuf:"bytes,10,opt,name=inviter_email,json=inviterEmail,proto3" json:"inviter_email,omitempty" firestore:"inviterEmail"`
	// List of Roles to be granted on project when invitation is accepted
	Roles []*role.Reference `protobuf:"bytes,7,rep,customtype=Reference,name=roles,proto3" json:"roles,omitempty" firestore:"roles"`
	// Expiration date
	ExpirationDate *timestamp.Timestamp `` /* 130-byte string literal not displayed */
	// Status of Invitation
	State Invitation_State `protobuf:"varint,9,opt,name=state,proto3,enum=ntt.iam.v1alpha.Invitation_State" json:"state,omitempty" firestore:"state"`
	// contains filtered or unexported fields
}

Common invitation body. It's used in Project/Organization Invitations

func (*Invitation) Clone

func (o *Invitation) Clone() *Invitation

func (*Invitation) CloneRaw

func (o *Invitation) CloneRaw() gotenobject.GotenObjectExt

func (*Invitation) Descriptor

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

Deprecated, Use Invitation.ProtoReflect.Descriptor instead.

func (*Invitation) GetExpirationDate

func (m *Invitation) GetExpirationDate() *timestamp.Timestamp

func (*Invitation) GetInviteeEmail

func (m *Invitation) GetInviteeEmail() string

func (*Invitation) GetInviterActor

func (m *Invitation) GetInviterActor() *Actor

func (*Invitation) GetInviterEmail

func (m *Invitation) GetInviterEmail() string

func (*Invitation) GetInviterFullName

func (m *Invitation) GetInviterFullName() string

func (*Invitation) GetRoles

func (m *Invitation) GetRoles() []*role.Reference

func (*Invitation) GetState

func (m *Invitation) GetState() Invitation_State

func (*Invitation) GotenMessage

func (*Invitation) GotenMessage()

func (*Invitation) GotenObjectExt

func (o *Invitation) GotenObjectExt()

func (*Invitation) GotenValidate

func (obj *Invitation) GotenValidate() error

func (*Invitation) MakeDiffFieldMask

func (o *Invitation) MakeDiffFieldMask(other *Invitation) *Invitation_FieldMask

func (*Invitation) MakeFullFieldMask

func (o *Invitation) MakeFullFieldMask() *Invitation_FieldMask

func (*Invitation) MakeRawDiffFieldMask

func (o *Invitation) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask

func (*Invitation) MakeRawFullFieldMask

func (o *Invitation) MakeRawFullFieldMask() gotenobject.FieldMask

func (*Invitation) Marshal

func (m *Invitation) Marshal() ([]byte, error)

func (*Invitation) MarshalJSON

func (m *Invitation) MarshalJSON() ([]byte, error)

func (*Invitation) Merge

func (o *Invitation) Merge(source *Invitation)

func (*Invitation) MergeRaw

func (o *Invitation) MergeRaw(source gotenobject.GotenObjectExt)

func (*Invitation) ProtoMessage

func (*Invitation) ProtoMessage()

func (*Invitation) ProtoReflect

func (m *Invitation) ProtoReflect() preflect.Message

func (*Invitation) Reset

func (m *Invitation) Reset()

func (*Invitation) SetExpirationDate

func (m *Invitation) SetExpirationDate(fv *timestamp.Timestamp)

func (*Invitation) SetInviteeEmail

func (m *Invitation) SetInviteeEmail(fv string)

func (*Invitation) SetInviterActor

func (m *Invitation) SetInviterActor(fv *Actor)

func (*Invitation) SetInviterEmail

func (m *Invitation) SetInviterEmail(fv string)

func (*Invitation) SetInviterFullName

func (m *Invitation) SetInviterFullName(fv string)

func (*Invitation) SetRoles

func (m *Invitation) SetRoles(fv []*role.Reference)

func (*Invitation) SetState

func (m *Invitation) SetState(fv Invitation_State)

func (*Invitation) String

func (m *Invitation) String() string

func (*Invitation) Unmarshal

func (m *Invitation) Unmarshal(b []byte) error

func (*Invitation) UnmarshalJSON

func (m *Invitation) UnmarshalJSON(data []byte) error

type InvitationFieldPathBuilder

type InvitationFieldPathBuilder struct{}

func NewInvitationFieldPathBuilder

func NewInvitationFieldPathBuilder() InvitationFieldPathBuilder

func (InvitationFieldPathBuilder) ExpirationDate

func (InvitationFieldPathBuilder) InviteeEmail

func (InvitationFieldPathBuilder) InviterActor

func (InvitationFieldPathBuilder) InviterEmail

func (InvitationFieldPathBuilder) InviterFullName

func (InvitationFieldPathBuilder) Roles

func (InvitationFieldPathBuilder) State

type InvitationPathSelectorExpirationDate

type InvitationPathSelectorExpirationDate struct{}

func (InvitationPathSelectorExpirationDate) FieldPath

func (InvitationPathSelectorExpirationDate) WithArrayOfValues

func (InvitationPathSelectorExpirationDate) WithValue

type InvitationPathSelectorInviteeEmail

type InvitationPathSelectorInviteeEmail struct{}

func (InvitationPathSelectorInviteeEmail) FieldPath

func (InvitationPathSelectorInviteeEmail) WithArrayOfValues

func (InvitationPathSelectorInviteeEmail) WithValue

type InvitationPathSelectorInviterActor

type InvitationPathSelectorInviterActor struct{}

func (InvitationPathSelectorInviterActor) FieldPath

func (InvitationPathSelectorInviterActor) ServiceAccount

func (InvitationPathSelectorInviterActor) User

func (InvitationPathSelectorInviterActor) WithArrayOfValues

func (InvitationPathSelectorInviterActor) WithSubArrayItemValue

func (InvitationPathSelectorInviterActor) WithSubArrayOfValues

func (InvitationPathSelectorInviterActor) WithSubPath

func (InvitationPathSelectorInviterActor) WithSubValue

func (InvitationPathSelectorInviterActor) WithValue

type InvitationPathSelectorInviterActorServiceAccount

type InvitationPathSelectorInviterActorServiceAccount struct{}

func (InvitationPathSelectorInviterActorServiceAccount) FieldPath

func (InvitationPathSelectorInviterActorServiceAccount) WithArrayOfValues

func (InvitationPathSelectorInviterActorServiceAccount) WithValue

type InvitationPathSelectorInviterActorUser

type InvitationPathSelectorInviterActorUser struct{}

func (InvitationPathSelectorInviterActorUser) FieldPath

func (InvitationPathSelectorInviterActorUser) WithArrayOfValues

func (InvitationPathSelectorInviterActorUser) WithValue

type InvitationPathSelectorInviterEmail

type InvitationPathSelectorInviterEmail struct{}

func (InvitationPathSelectorInviterEmail) FieldPath

func (InvitationPathSelectorInviterEmail) WithArrayOfValues

func (InvitationPathSelectorInviterEmail) WithValue

type InvitationPathSelectorInviterFullName

type InvitationPathSelectorInviterFullName struct{}

func (InvitationPathSelectorInviterFullName) FieldPath

func (InvitationPathSelectorInviterFullName) WithArrayOfValues

func (InvitationPathSelectorInviterFullName) WithValue

type InvitationPathSelectorRoles

type InvitationPathSelectorRoles struct{}

func (InvitationPathSelectorRoles) FieldPath

func (InvitationPathSelectorRoles) WithArrayOfValues

func (InvitationPathSelectorRoles) WithItemValue

func (InvitationPathSelectorRoles) WithValue

type InvitationPathSelectorState

type InvitationPathSelectorState struct{}

func (InvitationPathSelectorState) FieldPath

func (InvitationPathSelectorState) WithArrayOfValues

func (InvitationPathSelectorState) WithValue

type Invitation_FieldMask

type Invitation_FieldMask struct {
	Paths []Invitation_FieldPath
}

func FullInvitation_FieldMask

func FullInvitation_FieldMask() *Invitation_FieldMask

func (*Invitation_FieldMask) AppendPath

func (fieldMask *Invitation_FieldMask) AppendPath(path Invitation_FieldPath)

func (*Invitation_FieldMask) AppendRawPath

func (fieldMask *Invitation_FieldMask) AppendRawPath(path gotenobject.FieldPath)

func (*Invitation_FieldMask) DecodeFirestore

func (fieldMask *Invitation_FieldMask) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Invitation_FieldMask) EncodeFirestore

func (fieldMask *Invitation_FieldMask) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Invitation_FieldMask) FilterInputFields

func (fieldMask *Invitation_FieldMask) FilterInputFields() *Invitation_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Invitation_FieldMask) FromProtoFieldMask

func (fieldMask *Invitation_FieldMask) FromProtoFieldMask(protoFieldMask *fieldmaskpb.FieldMask) error

func (*Invitation_FieldMask) GetPaths

func (fieldMask *Invitation_FieldMask) GetPaths() []Invitation_FieldPath

func (*Invitation_FieldMask) GetRawPaths

func (fieldMask *Invitation_FieldMask) GetRawPaths() []gotenobject.FieldPath

func (*Invitation_FieldMask) IsFull

func (fieldMask *Invitation_FieldMask) IsFull() bool

func (Invitation_FieldMask) Marshal

func (fieldMask Invitation_FieldMask) Marshal() ([]byte, error)

implement methods required by customType

func (Invitation_FieldMask) MarshalJSON

func (fieldMask Invitation_FieldMask) MarshalJSON() ([]byte, error)

func (*Invitation_FieldMask) PathsCount

func (fieldMask *Invitation_FieldMask) PathsCount() int

func (*Invitation_FieldMask) Project

func (fieldMask *Invitation_FieldMask) Project(source *Invitation) *Invitation

func (*Invitation_FieldMask) ProjectRaw

func (*Invitation_FieldMask) ProtoMessage

func (fieldMask *Invitation_FieldMask) ProtoMessage()

func (*Invitation_FieldMask) ProtoReflect

func (fieldMask *Invitation_FieldMask) ProtoReflect() preflect.Message

func (*Invitation_FieldMask) Reset

func (fieldMask *Invitation_FieldMask) Reset()

func (*Invitation_FieldMask) Set

func (fieldMask *Invitation_FieldMask) Set(target, source *Invitation)

func (*Invitation_FieldMask) SetFromCliFlag

func (fieldMask *Invitation_FieldMask) SetFromCliFlag(raw string) error

func (*Invitation_FieldMask) SetRaw

func (fieldMask *Invitation_FieldMask) SetRaw(target, source gotenobject.GotenObjectExt)

func (*Invitation_FieldMask) Size

func (fieldMask *Invitation_FieldMask) Size() int

func (*Invitation_FieldMask) String

func (fieldMask *Invitation_FieldMask) String() string

func (*Invitation_FieldMask) Subtract

func (fieldMask *Invitation_FieldMask) Subtract(other *Invitation_FieldMask) *Invitation_FieldMask

func (*Invitation_FieldMask) SubtractRaw

func (fieldMask *Invitation_FieldMask) SubtractRaw(other gotenobject.FieldMask) gotenobject.FieldMask

func (*Invitation_FieldMask) ToProtoFieldMask

func (fieldMask *Invitation_FieldMask) ToProtoFieldMask() *fieldmaskpb.FieldMask

ToFieldMask is used for proto conversions

func (*Invitation_FieldMask) Unmarshal

func (fieldMask *Invitation_FieldMask) Unmarshal(data []byte) error

func (*Invitation_FieldMask) UnmarshalJSON

func (fieldMask *Invitation_FieldMask) UnmarshalJSON(data []byte) error

type Invitation_FieldPath

type Invitation_FieldPath interface {
	gotenobject.FieldPath
	Selector() Invitation_FieldPathSelector
	Get(source *Invitation) []interface{}
	GetSingle(source *Invitation) (interface{}, bool)
	ClearValue(item *Invitation)

	// Those methods build corresponding Invitation_FieldPathValue
	// (or array of values) and holds passed value. Panics if injected type is incorrect.
	WithIValue(value interface{}) Invitation_FieldPathValue
	WithIArrayOfValues(values interface{}) Invitation_FieldPathArrayOfValues
	WithIArrayItemValue(value interface{}) Invitation_FieldPathArrayItemValue
}

FieldPath provides implementation to handle https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto

func BuildInvitation_FieldPath

func BuildInvitation_FieldPath(fp gotenobject.RawFieldPath) (Invitation_FieldPath, error)

func MustParseInvitation_FieldPath

func MustParseInvitation_FieldPath(rawField string) Invitation_FieldPath

func ParseInvitation_FieldPath

func ParseInvitation_FieldPath(rawField string) (Invitation_FieldPath, error)

type Invitation_FieldPathArrayItemValue

type Invitation_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Invitation_FieldPath
	ContainsValue(*Invitation) bool
}

Invitation_FieldPathArrayItemValue allows storing single item in Path-specific values for Invitation according to their type Present only for array (repeated) types.

func MustParseInvitation_FieldPathArrayItemValue

func MustParseInvitation_FieldPathArrayItemValue(pathStr, valueStr string) Invitation_FieldPathArrayItemValue

func ParseInvitation_FieldPathArrayItemValue

func ParseInvitation_FieldPathArrayItemValue(pathStr, valueStr string) (Invitation_FieldPathArrayItemValue, error)

ParseInvitation_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Invitation_FieldPathArrayOfValues

type Invitation_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Invitation_FieldPath
}

Invitation_FieldPathArrayOfValues allows storing slice of values for Invitation fields according to their type

func MustParseInvitation_FieldPathArrayOfValues

func MustParseInvitation_FieldPathArrayOfValues(pathStr, valuesStr string) Invitation_FieldPathArrayOfValues

func ParseInvitation_FieldPathArrayOfValues

func ParseInvitation_FieldPathArrayOfValues(pathStr, valuesStr string) (Invitation_FieldPathArrayOfValues, error)

type Invitation_FieldPathSelector

type Invitation_FieldPathSelector int32
const (
	Invitation_FieldPathSelectorInviteeEmail    Invitation_FieldPathSelector = 0
	Invitation_FieldPathSelectorInviterActor    Invitation_FieldPathSelector = 1
	Invitation_FieldPathSelectorInviterFullName Invitation_FieldPathSelector = 2
	Invitation_FieldPathSelectorInviterEmail    Invitation_FieldPathSelector = 3
	Invitation_FieldPathSelectorRoles           Invitation_FieldPathSelector = 4
	Invitation_FieldPathSelectorExpirationDate  Invitation_FieldPathSelector = 5
	Invitation_FieldPathSelectorState           Invitation_FieldPathSelector = 6
)

func (Invitation_FieldPathSelector) String

type Invitation_FieldPathValue

type Invitation_FieldPathValue interface {
	Invitation_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Invitation)
	CompareWith(*Invitation) (cmp int, comparable bool)
}

Invitation_FieldPathValue allows storing values for Invitation fields according to their type

func MustParseInvitation_FieldPathValue

func MustParseInvitation_FieldPathValue(pathStr, valueStr string) Invitation_FieldPathValue

func ParseInvitation_FieldPathValue

func ParseInvitation_FieldPathValue(pathStr, valueStr string) (Invitation_FieldPathValue, error)

type Invitation_FieldSubPath

type Invitation_FieldSubPath struct {
	// contains filtered or unexported fields
}

func (*Invitation_FieldSubPath) AsInviterActorSubPath

func (fps *Invitation_FieldSubPath) AsInviterActorSubPath() (Actor_FieldPath, bool)

func (*Invitation_FieldSubPath) ClearValue

func (fps *Invitation_FieldSubPath) ClearValue(item *Invitation)

func (*Invitation_FieldSubPath) ClearValueRaw

func (fps *Invitation_FieldSubPath) ClearValueRaw(item proto.Message)

func (*Invitation_FieldSubPath) Get

func (fps *Invitation_FieldSubPath) Get(source *Invitation) (values []interface{})

Get returns all values pointed by selected field from source Invitation

func (*Invitation_FieldSubPath) GetDefault

func (fps *Invitation_FieldSubPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Invitation_FieldSubPath) GetRaw

func (fps *Invitation_FieldSubPath) GetRaw(source proto.Message) []interface{}

func (*Invitation_FieldSubPath) GetSingle

func (fps *Invitation_FieldSubPath) GetSingle(source *Invitation) (interface{}, bool)

GetSingle returns value of selected field from source Invitation

func (*Invitation_FieldSubPath) GetSingleRaw

func (fps *Invitation_FieldSubPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Invitation_FieldSubPath) IsLeaf

func (fps *Invitation_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Invitation_FieldSubPath) JSONString

func (fps *Invitation_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Invitation_FieldSubPath) Selector

func (*Invitation_FieldSubPath) String

func (fps *Invitation_FieldSubPath) String() string

String returns path representation in proto convention

func (*Invitation_FieldSubPath) WithIArrayItemValue

func (fps *Invitation_FieldSubPath) WithIArrayItemValue(value interface{}) Invitation_FieldPathArrayItemValue

func (*Invitation_FieldSubPath) WithIArrayOfValues

func (fps *Invitation_FieldSubPath) WithIArrayOfValues(values interface{}) Invitation_FieldPathArrayOfValues

func (*Invitation_FieldSubPath) WithIValue

func (fps *Invitation_FieldSubPath) WithIValue(value interface{}) Invitation_FieldPathValue

func (*Invitation_FieldSubPath) WithRawIArrayItemValue

func (fps *Invitation_FieldSubPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Invitation_FieldSubPath) WithRawIArrayOfValues

func (fps *Invitation_FieldSubPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Invitation_FieldSubPath) WithRawIValue

func (fps *Invitation_FieldSubPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Invitation_FieldSubPathArrayItemValue

type Invitation_FieldSubPathArrayItemValue struct {
	Invitation_FieldPath
	// contains filtered or unexported fields
}

func (*Invitation_FieldSubPathArrayItemValue) AsInviterActorPathItemValue

func (fpaivs *Invitation_FieldSubPathArrayItemValue) AsInviterActorPathItemValue() (Actor_FieldPathArrayItemValue, bool)

func (*Invitation_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *Invitation_FieldSubPathArrayItemValue) ContainsValue(source *Invitation) bool

Contains returns a boolean indicating if value that is being held is present in given 'Invitation'

func (*Invitation_FieldSubPathArrayItemValue) GetRawItemValue

func (fpaivs *Invitation_FieldSubPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored array item value

type Invitation_FieldSubPathArrayOfValues

type Invitation_FieldSubPathArrayOfValues struct {
	Invitation_FieldPath
	// contains filtered or unexported fields
}

func (*Invitation_FieldSubPathArrayOfValues) AsInviterActorPathArrayOfValues

func (fpsaov *Invitation_FieldSubPathArrayOfValues) AsInviterActorPathArrayOfValues() (Actor_FieldPathArrayOfValues, bool)

func (*Invitation_FieldSubPathArrayOfValues) GetRawValues

func (fpsaov *Invitation_FieldSubPathArrayOfValues) GetRawValues() []interface{}

type Invitation_FieldSubPathValue

type Invitation_FieldSubPathValue struct {
	Invitation_FieldPath
	// contains filtered or unexported fields
}

func (*Invitation_FieldSubPathValue) AsInviterActorPathValue

func (fpvs *Invitation_FieldSubPathValue) AsInviterActorPathValue() (Actor_FieldPathValue, bool)

func (*Invitation_FieldSubPathValue) CompareWith

func (fpvs *Invitation_FieldSubPathValue) CompareWith(source *Invitation) (int, bool)

func (*Invitation_FieldSubPathValue) CompareWithRaw

func (fpvs *Invitation_FieldSubPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Invitation_FieldSubPathValue) GetRawValue

func (fpvs *Invitation_FieldSubPathValue) GetRawValue() interface{}

func (*Invitation_FieldSubPathValue) SetTo

func (fpvs *Invitation_FieldSubPathValue) SetTo(target **Invitation)

func (*Invitation_FieldSubPathValue) SetToRaw

func (fpvs *Invitation_FieldSubPathValue) SetToRaw(target proto.Message)

type Invitation_FieldTerminalPath

type Invitation_FieldTerminalPath struct {
	// contains filtered or unexported fields
}

func (*Invitation_FieldTerminalPath) ClearValue

func (fp *Invitation_FieldTerminalPath) ClearValue(item *Invitation)

func (*Invitation_FieldTerminalPath) ClearValueRaw

func (fp *Invitation_FieldTerminalPath) ClearValueRaw(item proto.Message)

func (*Invitation_FieldTerminalPath) Get

func (fp *Invitation_FieldTerminalPath) Get(source *Invitation) (values []interface{})

Get returns all values pointed by specific field from source Invitation

func (*Invitation_FieldTerminalPath) GetDefault

func (fp *Invitation_FieldTerminalPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Invitation_FieldTerminalPath) GetRaw

func (fp *Invitation_FieldTerminalPath) GetRaw(source proto.Message) []interface{}

func (*Invitation_FieldTerminalPath) GetSingle

func (fp *Invitation_FieldTerminalPath) GetSingle(source *Invitation) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Invitation

func (*Invitation_FieldTerminalPath) GetSingleRaw

func (fp *Invitation_FieldTerminalPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Invitation_FieldTerminalPath) IsLeaf

func (fp *Invitation_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Invitation_FieldTerminalPath) JSONString

func (fp *Invitation_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Invitation_FieldTerminalPath) Selector

func (*Invitation_FieldTerminalPath) String

func (fp *Invitation_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Invitation_FieldTerminalPath) WithIArrayItemValue

func (fp *Invitation_FieldTerminalPath) WithIArrayItemValue(value interface{}) Invitation_FieldPathArrayItemValue

func (*Invitation_FieldTerminalPath) WithIArrayOfValues

func (fp *Invitation_FieldTerminalPath) WithIArrayOfValues(values interface{}) Invitation_FieldPathArrayOfValues

func (*Invitation_FieldTerminalPath) WithIValue

func (fp *Invitation_FieldTerminalPath) WithIValue(value interface{}) Invitation_FieldPathValue

func (*Invitation_FieldTerminalPath) WithRawIArrayItemValue

func (fp *Invitation_FieldTerminalPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Invitation_FieldTerminalPath) WithRawIArrayOfValues

func (fp *Invitation_FieldTerminalPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Invitation_FieldTerminalPath) WithRawIValue

func (fp *Invitation_FieldTerminalPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Invitation_FieldTerminalPathArrayItemValue

type Invitation_FieldTerminalPathArrayItemValue struct {
	Invitation_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Invitation_FieldTerminalPathArrayItemValue) AsRolesItemValue

func (fpaiv *Invitation_FieldTerminalPathArrayItemValue) AsRolesItemValue() (*role.Reference, bool)

func (*Invitation_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Invitation_FieldTerminalPathArrayItemValue) ContainsValue(source *Invitation) bool

Contains returns a boolean indicating if value that is being held is present in given 'Invitation'

func (*Invitation_FieldTerminalPathArrayItemValue) GetRawItemValue

func (fpaiv *Invitation_FieldTerminalPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored element value for array in object Invitation as interface{}

func (*Invitation_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Invitation_FieldTerminalPathArrayItemValue) GetSingle(source *Invitation) (interface{}, bool)

func (*Invitation_FieldTerminalPathArrayItemValue) GetSingleRaw

func (fpaiv *Invitation_FieldTerminalPathArrayItemValue) GetSingleRaw(source proto.Message) (interface{}, bool)

type Invitation_FieldTerminalPathArrayOfValues

type Invitation_FieldTerminalPathArrayOfValues struct {
	Invitation_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Invitation_FieldTerminalPathArrayOfValues) AsExpirationDateArrayOfValues

func (fpaov *Invitation_FieldTerminalPathArrayOfValues) AsExpirationDateArrayOfValues() ([]*timestamp.Timestamp, bool)

func (*Invitation_FieldTerminalPathArrayOfValues) AsInviteeEmailArrayOfValues

func (fpaov *Invitation_FieldTerminalPathArrayOfValues) AsInviteeEmailArrayOfValues() ([]string, bool)

func (*Invitation_FieldTerminalPathArrayOfValues) AsInviterActorArrayOfValues

func (fpaov *Invitation_FieldTerminalPathArrayOfValues) AsInviterActorArrayOfValues() ([]*Actor, bool)

func (*Invitation_FieldTerminalPathArrayOfValues) AsInviterEmailArrayOfValues

func (fpaov *Invitation_FieldTerminalPathArrayOfValues) AsInviterEmailArrayOfValues() ([]string, bool)

func (*Invitation_FieldTerminalPathArrayOfValues) AsInviterFullNameArrayOfValues

func (fpaov *Invitation_FieldTerminalPathArrayOfValues) AsInviterFullNameArrayOfValues() ([]string, bool)

func (*Invitation_FieldTerminalPathArrayOfValues) AsRolesArrayOfValues

func (fpaov *Invitation_FieldTerminalPathArrayOfValues) AsRolesArrayOfValues() ([][]*role.Reference, bool)

func (*Invitation_FieldTerminalPathArrayOfValues) AsStateArrayOfValues

func (fpaov *Invitation_FieldTerminalPathArrayOfValues) AsStateArrayOfValues() ([]Invitation_State, bool)

func (*Invitation_FieldTerminalPathArrayOfValues) GetRawValues

func (fpaov *Invitation_FieldTerminalPathArrayOfValues) GetRawValues() (values []interface{})

type Invitation_FieldTerminalPathValue

type Invitation_FieldTerminalPathValue struct {
	Invitation_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Invitation_FieldTerminalPathValue) AsExpirationDateValue

func (fpv *Invitation_FieldTerminalPathValue) AsExpirationDateValue() (*timestamp.Timestamp, bool)

func (*Invitation_FieldTerminalPathValue) AsInviteeEmailValue

func (fpv *Invitation_FieldTerminalPathValue) AsInviteeEmailValue() (string, bool)

func (*Invitation_FieldTerminalPathValue) AsInviterActorValue

func (fpv *Invitation_FieldTerminalPathValue) AsInviterActorValue() (*Actor, bool)

func (*Invitation_FieldTerminalPathValue) AsInviterEmailValue

func (fpv *Invitation_FieldTerminalPathValue) AsInviterEmailValue() (string, bool)

func (*Invitation_FieldTerminalPathValue) AsInviterFullNameValue

func (fpv *Invitation_FieldTerminalPathValue) AsInviterFullNameValue() (string, bool)

func (*Invitation_FieldTerminalPathValue) AsRolesValue

func (fpv *Invitation_FieldTerminalPathValue) AsRolesValue() ([]*role.Reference, bool)

func (*Invitation_FieldTerminalPathValue) AsStateValue

func (*Invitation_FieldTerminalPathValue) CompareWith

func (fpv *Invitation_FieldTerminalPathValue) CompareWith(source *Invitation) (int, bool)

CompareWith compares value in the 'Invitation_FieldTerminalPathValue' with the value under path in 'Invitation'.

func (*Invitation_FieldTerminalPathValue) CompareWithRaw

func (fpv *Invitation_FieldTerminalPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Invitation_FieldTerminalPathValue) GetRawValue

func (fpv *Invitation_FieldTerminalPathValue) GetRawValue() interface{}

GetRawValue returns raw value stored under selected path for 'Invitation' as interface{}

func (*Invitation_FieldTerminalPathValue) SetTo

func (fpv *Invitation_FieldTerminalPathValue) SetTo(target **Invitation)

SetTo stores value for selected field for object Invitation

func (*Invitation_FieldTerminalPathValue) SetToRaw

func (fpv *Invitation_FieldTerminalPathValue) SetToRaw(target proto.Message)

type Invitation_State

type Invitation_State int32

Invitation FSM States

const (
	Invitation_STATE_UNSPECIFIED Invitation_State = 0
	Invitation_PENDING           Invitation_State = 1
	Invitation_ACCEPTED          Invitation_State = 2
	Invitation_DECLINED          Invitation_State = 3
	Invitation_EXPIRED           Invitation_State = 4
)

func (Invitation_State) Descriptor

func (Invitation_State) Enum

func (Invitation_State) EnumDescriptor

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

Deprecated, Use Invitation_State.ProtoReflect.Descriptor instead.

func (Invitation_State) Number

func (Invitation_State) String

func (x Invitation_State) String() string

func (Invitation_State) Type

Jump to

Keyboard shortcuts

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