profilev1

package
v0.0.0-...-e947567 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: /home/j/code/antinvestor/apis/profile/v1/profile_grpc.pb.go

Generated by this command:

mockgen -source=/home/j/code/antinvestor/apis/profile/v1/profile_grpc.pb.go -self_package=github.com/antinvestor/apis/profile/v1 -package=profilev1 -destination=/home/j/code/antinvestor/apis/profile/v1/profile_grpc_mock.go

Package profilev1 is a generated GoMock package.

Index

Constants

View Source
const (
	ProfileService_GetById_FullMethodName            = "/profile.v1.ProfileService/GetById"
	ProfileService_GetByContact_FullMethodName       = "/profile.v1.ProfileService/GetByContact"
	ProfileService_Search_FullMethodName             = "/profile.v1.ProfileService/Search"
	ProfileService_Merge_FullMethodName              = "/profile.v1.ProfileService/Merge"
	ProfileService_Create_FullMethodName             = "/profile.v1.ProfileService/Create"
	ProfileService_Update_FullMethodName             = "/profile.v1.ProfileService/Update"
	ProfileService_AddContact_FullMethodName         = "/profile.v1.ProfileService/AddContact"
	ProfileService_AddAddress_FullMethodName         = "/profile.v1.ProfileService/AddAddress"
	ProfileService_AddRelationship_FullMethodName    = "/profile.v1.ProfileService/AddRelationship"
	ProfileService_DeleteRelationship_FullMethodName = "/profile.v1.ProfileService/DeleteRelationship"
	ProfileService_ListRelationship_FullMethodName   = "/profile.v1.ProfileService/ListRelationship"
)

Variables

View Source
var (
	ContactType_name = map[int32]string{
		0: "EMAIL",
		1: "PHONE",
	}
	ContactType_value = map[string]int32{
		"EMAIL": 0,
		"PHONE": 1,
	}
)

Enum value maps for ContactType.

View Source
var (
	CommunicationLevel_name = map[int32]string{
		0: "ALL",
		1: "INTERNAL_MARKETING",
		2: "IMPORTANT_ALERTS",
		3: "SYSTEM_ALERTS",
		4: "NO_CONTACT",
	}
	CommunicationLevel_value = map[string]int32{
		"ALL":                0,
		"INTERNAL_MARKETING": 1,
		"IMPORTANT_ALERTS":   2,
		"SYSTEM_ALERTS":      3,
		"NO_CONTACT":         4,
	}
)

Enum value maps for CommunicationLevel.

View Source
var (
	ProfileType_name = map[int32]string{
		0: "PERSON",
		1: "INSTITUTION",
		2: "BOT",
	}
	ProfileType_value = map[string]int32{
		"PERSON":      0,
		"INSTITUTION": 1,
		"BOT":         2,
	}
)

Enum value maps for ProfileType.

View Source
var (
	RelationshipType_name = map[int32]string{
		0: "MEMBER",
		1: "AFFILIATED",
		2: "BLACK_LISTED",
	}
	RelationshipType_value = map[string]int32{
		"MEMBER":       0,
		"AFFILIATED":   1,
		"BLACK_LISTED": 2,
	}
)

Enum value maps for RelationshipType.

View Source
var File_profile_v1_profile_proto protoreflect.FileDescriptor
View Source
var ProfileService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "profile.v1.ProfileService",
	HandlerType: (*ProfileServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetById",
			Handler:    _ProfileService_GetById_Handler,
		},
		{
			MethodName: "GetByContact",
			Handler:    _ProfileService_GetByContact_Handler,
		},
		{
			MethodName: "Merge",
			Handler:    _ProfileService_Merge_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _ProfileService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ProfileService_Update_Handler,
		},
		{
			MethodName: "AddContact",
			Handler:    _ProfileService_AddContact_Handler,
		},
		{
			MethodName: "AddAddress",
			Handler:    _ProfileService_AddAddress_Handler,
		},
		{
			MethodName: "AddRelationship",
			Handler:    _ProfileService_AddRelationship_Handler,
		},
		{
			MethodName: "DeleteRelationship",
			Handler:    _ProfileService_DeleteRelationship_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Search",
			Handler:       _ProfileService_Search_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListRelationship",
			Handler:       _ProfileService_ListRelationship_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "profile/v1/profile.proto",
}

ProfileService_ServiceDesc is the grpc.ServiceDesc for ProfileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterProfileServiceServer

func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)

func ToContext

func ToContext(ctx context.Context, profileClient *ProfileClient) context.Context

Types

type AddAddressRequest

type AddAddressRequest struct {
	Id      string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address *AddressObject `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the information necessary to create a profile

func (*AddAddressRequest) Descriptor deprecated

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

Deprecated: Use AddAddressRequest.ProtoReflect.Descriptor instead.

func (*AddAddressRequest) GetAddress

func (x *AddAddressRequest) GetAddress() *AddressObject

func (*AddAddressRequest) GetId

func (x *AddAddressRequest) GetId() string

func (*AddAddressRequest) ProtoMessage

func (*AddAddressRequest) ProtoMessage()

func (*AddAddressRequest) ProtoReflect

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

func (*AddAddressRequest) Reset

func (x *AddAddressRequest) Reset()

func (*AddAddressRequest) String

func (x *AddAddressRequest) String() string

type AddAddressResponse

type AddAddressResponse struct {
	Data *ProfileObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AddAddressResponse) Descriptor deprecated

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

Deprecated: Use AddAddressResponse.ProtoReflect.Descriptor instead.

func (*AddAddressResponse) GetData

func (x *AddAddressResponse) GetData() *ProfileObject

func (*AddAddressResponse) ProtoMessage

func (*AddAddressResponse) ProtoMessage()

func (*AddAddressResponse) ProtoReflect

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

func (*AddAddressResponse) Reset

func (x *AddAddressResponse) Reset()

func (*AddAddressResponse) String

func (x *AddAddressResponse) String() string

type AddContactRequest

type AddContactRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Contact string `protobuf:"bytes,2,opt,name=contact,proto3" json:"contact,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the information necessary to create a profile

func (*AddContactRequest) Descriptor deprecated

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

Deprecated: Use AddContactRequest.ProtoReflect.Descriptor instead.

func (*AddContactRequest) GetContact

func (x *AddContactRequest) GetContact() string

func (*AddContactRequest) GetId

func (x *AddContactRequest) GetId() string

func (*AddContactRequest) ProtoMessage

func (*AddContactRequest) ProtoMessage()

func (*AddContactRequest) ProtoReflect

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

func (*AddContactRequest) Reset

func (x *AddContactRequest) Reset()

func (*AddContactRequest) String

func (x *AddContactRequest) String() string

type AddContactResponse

type AddContactResponse struct {
	Data *ProfileObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AddContactResponse) Descriptor deprecated

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

Deprecated: Use AddContactResponse.ProtoReflect.Descriptor instead.

func (*AddContactResponse) GetData

func (x *AddContactResponse) GetData() *ProfileObject

func (*AddContactResponse) ProtoMessage

func (*AddContactResponse) ProtoMessage()

func (*AddContactResponse) ProtoReflect

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

func (*AddContactResponse) Reset

func (x *AddContactResponse) Reset()

func (*AddContactResponse) String

func (x *AddContactResponse) String() string

type AddRelationshipRequest

type AddRelationshipRequest struct {
	Id         string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Parent     string            `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	ParentId   string            `protobuf:"bytes,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Child      string            `protobuf:"bytes,4,opt,name=child,proto3" json:"child,omitempty"`
	ChildId    string            `protobuf:"bytes,5,opt,name=child_id,json=childId,proto3" json:"child_id,omitempty"`
	Type       RelationshipType  `protobuf:"varint,6,opt,name=type,proto3,enum=profile.v1.RelationshipType" json:"type,omitempty"`
	Properties map[string]string `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

The request message containing the information necessary to create a profile

func (*AddRelationshipRequest) Descriptor deprecated

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

Deprecated: Use AddRelationshipRequest.ProtoReflect.Descriptor instead.

func (*AddRelationshipRequest) GetChild

func (x *AddRelationshipRequest) GetChild() string

func (*AddRelationshipRequest) GetChildId

func (x *AddRelationshipRequest) GetChildId() string

func (*AddRelationshipRequest) GetId

func (x *AddRelationshipRequest) GetId() string

func (*AddRelationshipRequest) GetParent

func (x *AddRelationshipRequest) GetParent() string

func (*AddRelationshipRequest) GetParentId

func (x *AddRelationshipRequest) GetParentId() string

func (*AddRelationshipRequest) GetProperties

func (x *AddRelationshipRequest) GetProperties() map[string]string

func (*AddRelationshipRequest) GetType

func (*AddRelationshipRequest) ProtoMessage

func (*AddRelationshipRequest) ProtoMessage()

func (*AddRelationshipRequest) ProtoReflect

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

func (*AddRelationshipRequest) Reset

func (x *AddRelationshipRequest) Reset()

func (*AddRelationshipRequest) String

func (x *AddRelationshipRequest) String() string

type AddRelationshipResponse

type AddRelationshipResponse struct {
	Data *RelationshipObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRelationshipResponse) Descriptor deprecated

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

Deprecated: Use AddRelationshipResponse.ProtoReflect.Descriptor instead.

func (*AddRelationshipResponse) GetData

func (*AddRelationshipResponse) ProtoMessage

func (*AddRelationshipResponse) ProtoMessage()

func (*AddRelationshipResponse) ProtoReflect

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

func (*AddRelationshipResponse) Reset

func (x *AddRelationshipResponse) Reset()

func (*AddRelationshipResponse) String

func (x *AddRelationshipResponse) String() string

type AddressObject

type AddressObject struct {
	Id        string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Country   string  `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
	City      string  `protobuf:"bytes,4,opt,name=city,proto3" json:"city,omitempty"`
	Area      string  `protobuf:"bytes,5,opt,name=area,proto3" json:"area,omitempty"`
	Street    string  `protobuf:"bytes,6,opt,name=street,proto3" json:"street,omitempty"`
	House     string  `protobuf:"bytes,7,opt,name=house,proto3" json:"house,omitempty"`
	Postcode  string  `protobuf:"bytes,8,opt,name=postcode,proto3" json:"postcode,omitempty"`
	Latitude  float64 `protobuf:"fixed64,9,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude float64 `protobuf:"fixed64,10,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Extra     string  `protobuf:"bytes,11,opt,name=extra,proto3" json:"extra,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressObject) Descriptor deprecated

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

Deprecated: Use AddressObject.ProtoReflect.Descriptor instead.

func (*AddressObject) GetArea

func (x *AddressObject) GetArea() string

func (*AddressObject) GetCity

func (x *AddressObject) GetCity() string

func (*AddressObject) GetCountry

func (x *AddressObject) GetCountry() string

func (*AddressObject) GetExtra

func (x *AddressObject) GetExtra() string

func (*AddressObject) GetHouse

func (x *AddressObject) GetHouse() string

func (*AddressObject) GetId

func (x *AddressObject) GetId() string

func (*AddressObject) GetLatitude

func (x *AddressObject) GetLatitude() float64

func (*AddressObject) GetLongitude

func (x *AddressObject) GetLongitude() float64

func (*AddressObject) GetName

func (x *AddressObject) GetName() string

func (*AddressObject) GetPostcode

func (x *AddressObject) GetPostcode() string

func (*AddressObject) GetStreet

func (x *AddressObject) GetStreet() string

func (*AddressObject) ProtoMessage

func (*AddressObject) ProtoMessage()

func (*AddressObject) ProtoReflect

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

func (*AddressObject) Reset

func (x *AddressObject) Reset()

func (*AddressObject) String

func (x *AddressObject) String() string

type CommunicationLevel

type CommunicationLevel int32

buf:lint:ignore ENUM_VALUE_PREFIX

const (
	// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
	CommunicationLevel_ALL                CommunicationLevel = 0 // Any communication including 3rd party marketing is welcome.
	CommunicationLevel_INTERNAL_MARKETING CommunicationLevel = 1 // Can receive marketing messages from our services
	CommunicationLevel_IMPORTANT_ALERTS   CommunicationLevel = 2 // These can be things like policy changes
	CommunicationLevel_SYSTEM_ALERTS      CommunicationLevel = 3 // This include user actions expecting a response.
	CommunicationLevel_NO_CONTACT         CommunicationLevel = 4 // This one needs prayers
)

func (CommunicationLevel) Descriptor

func (CommunicationLevel) Enum

func (CommunicationLevel) EnumDescriptor deprecated

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

Deprecated: Use CommunicationLevel.Descriptor instead.

func (CommunicationLevel) Number

func (CommunicationLevel) String

func (x CommunicationLevel) String() string

func (CommunicationLevel) Type

type ContactObject

type ContactObject struct {
	Id                 string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type               ContactType        `protobuf:"varint,2,opt,name=type,proto3,enum=profile.v1.ContactType" json:"type,omitempty"`
	Detail             string             `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	Verified           bool               `protobuf:"varint,4,opt,name=verified,proto3" json:"verified,omitempty"`
	CommunicationLevel CommunicationLevel `` /* 151-byte string literal not displayed */
	State              v1.STATE           `protobuf:"varint,6,opt,name=state,proto3,enum=common.v1.STATE" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*ContactObject) Descriptor deprecated

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

Deprecated: Use ContactObject.ProtoReflect.Descriptor instead.

func (*ContactObject) GetCommunicationLevel

func (x *ContactObject) GetCommunicationLevel() CommunicationLevel

func (*ContactObject) GetDetail

func (x *ContactObject) GetDetail() string

func (*ContactObject) GetId

func (x *ContactObject) GetId() string

func (*ContactObject) GetState

func (x *ContactObject) GetState() v1.STATE

func (*ContactObject) GetType

func (x *ContactObject) GetType() ContactType

func (*ContactObject) GetVerified

func (x *ContactObject) GetVerified() bool

func (*ContactObject) ProtoMessage

func (*ContactObject) ProtoMessage()

func (*ContactObject) ProtoReflect

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

func (*ContactObject) Reset

func (x *ContactObject) Reset()

func (*ContactObject) String

func (x *ContactObject) String() string

type ContactType

type ContactType int32

buf:lint:ignore ENUM_VALUE_PREFIX

const (
	// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
	ContactType_EMAIL ContactType = 0
	ContactType_PHONE ContactType = 1
)

func (ContactType) Descriptor

func (ContactType) Enum

func (x ContactType) Enum() *ContactType

func (ContactType) EnumDescriptor deprecated

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

Deprecated: Use ContactType.Descriptor instead.

func (ContactType) Number

func (x ContactType) Number() protoreflect.EnumNumber

func (ContactType) String

func (x ContactType) String() string

func (ContactType) Type

type CreateRequest

type CreateRequest struct {
	Type       ProfileType       `protobuf:"varint,1,opt,name=type,proto3,enum=profile.v1.ProfileType" json:"type,omitempty"`
	Contact    string            `protobuf:"bytes,2,opt,name=contact,proto3" json:"contact,omitempty"`
	Properties map[string]string `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

The request message containing the information necessary to create a profile

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetContact

func (x *CreateRequest) GetContact() string

func (*CreateRequest) GetProperties

func (x *CreateRequest) GetProperties() map[string]string

func (*CreateRequest) GetType

func (x *CreateRequest) GetType() ProfileType

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Data *ProfileObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetData

func (x *CreateResponse) GetData() *ProfileObject

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteRelationshipRequest

type DeleteRelationshipRequest struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId string `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the information necessary to delete relationship to a profile

func (*DeleteRelationshipRequest) Descriptor deprecated

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

Deprecated: Use DeleteRelationshipRequest.ProtoReflect.Descriptor instead.

func (*DeleteRelationshipRequest) GetId

func (x *DeleteRelationshipRequest) GetId() string

func (*DeleteRelationshipRequest) GetParentId

func (x *DeleteRelationshipRequest) GetParentId() string

func (*DeleteRelationshipRequest) ProtoMessage

func (*DeleteRelationshipRequest) ProtoMessage()

func (*DeleteRelationshipRequest) ProtoReflect

func (*DeleteRelationshipRequest) Reset

func (x *DeleteRelationshipRequest) Reset()

func (*DeleteRelationshipRequest) String

func (x *DeleteRelationshipRequest) String() string

type DeleteRelationshipResponse

type DeleteRelationshipResponse struct {
	Data *RelationshipObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRelationshipResponse) Descriptor deprecated

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

Deprecated: Use DeleteRelationshipResponse.ProtoReflect.Descriptor instead.

func (*DeleteRelationshipResponse) GetData

func (*DeleteRelationshipResponse) ProtoMessage

func (*DeleteRelationshipResponse) ProtoMessage()

func (*DeleteRelationshipResponse) ProtoReflect

func (*DeleteRelationshipResponse) Reset

func (x *DeleteRelationshipResponse) Reset()

func (*DeleteRelationshipResponse) String

func (x *DeleteRelationshipResponse) String() string

type GetByContactRequest

type GetByContactRequest struct {
	Contact string `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"`
	// contains filtered or unexported fields
}

Request message containing a contact necessary to link to a profile

func (*GetByContactRequest) Descriptor deprecated

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

Deprecated: Use GetByContactRequest.ProtoReflect.Descriptor instead.

func (*GetByContactRequest) GetContact

func (x *GetByContactRequest) GetContact() string

func (*GetByContactRequest) ProtoMessage

func (*GetByContactRequest) ProtoMessage()

func (*GetByContactRequest) ProtoReflect

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

func (*GetByContactRequest) Reset

func (x *GetByContactRequest) Reset()

func (*GetByContactRequest) String

func (x *GetByContactRequest) String() string

type GetByContactResponse

type GetByContactResponse struct {
	Data *ProfileObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByContactResponse) Descriptor deprecated

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

Deprecated: Use GetByContactResponse.ProtoReflect.Descriptor instead.

func (*GetByContactResponse) GetData

func (x *GetByContactResponse) GetData() *ProfileObject

func (*GetByContactResponse) ProtoMessage

func (*GetByContactResponse) ProtoMessage()

func (*GetByContactResponse) ProtoReflect

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

func (*GetByContactResponse) Reset

func (x *GetByContactResponse) Reset()

func (*GetByContactResponse) String

func (x *GetByContactResponse) String() string

type GetByIdRequest

type GetByIdRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the profile's hash

func (*GetByIdRequest) Descriptor deprecated

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

Deprecated: Use GetByIdRequest.ProtoReflect.Descriptor instead.

func (*GetByIdRequest) GetId

func (x *GetByIdRequest) GetId() string

func (*GetByIdRequest) ProtoMessage

func (*GetByIdRequest) ProtoMessage()

func (*GetByIdRequest) ProtoReflect

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

func (*GetByIdRequest) Reset

func (x *GetByIdRequest) Reset()

func (*GetByIdRequest) String

func (x *GetByIdRequest) String() string

type GetByIdResponse

type GetByIdResponse struct {
	Data *ProfileObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByIdResponse) Descriptor deprecated

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

Deprecated: Use GetByIdResponse.ProtoReflect.Descriptor instead.

func (*GetByIdResponse) GetData

func (x *GetByIdResponse) GetData() *ProfileObject

func (*GetByIdResponse) ProtoMessage

func (*GetByIdResponse) ProtoMessage()

func (*GetByIdResponse) ProtoReflect

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

func (*GetByIdResponse) Reset

func (x *GetByIdResponse) Reset()

func (*GetByIdResponse) String

func (x *GetByIdResponse) String() string

type ListRelationshipRequest

type ListRelationshipRequest struct {
	Parent             string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	ParentId           string   `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	LastRelationshipId string   `protobuf:"bytes,3,opt,name=last_relationship_id,json=lastRelationshipId,proto3" json:"last_relationship_id,omitempty"`
	RelatedChildrenId  []string `protobuf:"bytes,4,rep,name=related_children_id,json=relatedChildrenId,proto3" json:"related_children_id,omitempty"` // Related profile ids to specifically search for.
	Count              int32    `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

Request message to list all profiles related to the supplied profile id

func (*ListRelationshipRequest) Descriptor deprecated

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

Deprecated: Use ListRelationshipRequest.ProtoReflect.Descriptor instead.

func (*ListRelationshipRequest) GetCount

func (x *ListRelationshipRequest) GetCount() int32

func (*ListRelationshipRequest) GetLastRelationshipId

func (x *ListRelationshipRequest) GetLastRelationshipId() string

func (*ListRelationshipRequest) GetParent

func (x *ListRelationshipRequest) GetParent() string

func (*ListRelationshipRequest) GetParentId

func (x *ListRelationshipRequest) GetParentId() string

func (*ListRelationshipRequest) GetRelatedChildrenId

func (x *ListRelationshipRequest) GetRelatedChildrenId() []string

func (*ListRelationshipRequest) ProtoMessage

func (*ListRelationshipRequest) ProtoMessage()

func (*ListRelationshipRequest) ProtoReflect

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

func (*ListRelationshipRequest) Reset

func (x *ListRelationshipRequest) Reset()

func (*ListRelationshipRequest) String

func (x *ListRelationshipRequest) String() string

type ListRelationshipResponse

type ListRelationshipResponse struct {
	Data []*RelationshipObject `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRelationshipResponse) Descriptor deprecated

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

Deprecated: Use ListRelationshipResponse.ProtoReflect.Descriptor instead.

func (*ListRelationshipResponse) GetData

func (*ListRelationshipResponse) ProtoMessage

func (*ListRelationshipResponse) ProtoMessage()

func (*ListRelationshipResponse) ProtoReflect

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

func (*ListRelationshipResponse) Reset

func (x *ListRelationshipResponse) Reset()

func (*ListRelationshipResponse) String

func (x *ListRelationshipResponse) String() string

type MergeRequest

type MergeRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Mergeid string `protobuf:"bytes,2,opt,name=mergeid,proto3" json:"mergeid,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the profile's hash

func (*MergeRequest) Descriptor deprecated

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

Deprecated: Use MergeRequest.ProtoReflect.Descriptor instead.

func (*MergeRequest) GetId

func (x *MergeRequest) GetId() string

func (*MergeRequest) GetMergeid

func (x *MergeRequest) GetMergeid() string

func (*MergeRequest) ProtoMessage

func (*MergeRequest) ProtoMessage()

func (*MergeRequest) ProtoReflect

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

func (*MergeRequest) Reset

func (x *MergeRequest) Reset()

func (*MergeRequest) String

func (x *MergeRequest) String() string

type MergeResponse

type MergeResponse struct {
	Data *ProfileObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*MergeResponse) Descriptor deprecated

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

Deprecated: Use MergeResponse.ProtoReflect.Descriptor instead.

func (*MergeResponse) GetData

func (x *MergeResponse) GetData() *ProfileObject

func (*MergeResponse) ProtoMessage

func (*MergeResponse) ProtoMessage()

func (*MergeResponse) ProtoReflect

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

func (*MergeResponse) Reset

func (x *MergeResponse) Reset()

func (*MergeResponse) String

func (x *MergeResponse) String() string

type MockProfileServiceClient

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

MockProfileServiceClient is a mock of ProfileServiceClient interface.

func NewMockProfileServiceClient

func NewMockProfileServiceClient(ctrl *gomock.Controller) *MockProfileServiceClient

NewMockProfileServiceClient creates a new mock instance.

func (*MockProfileServiceClient) AddAddress

AddAddress mocks base method.

func (*MockProfileServiceClient) AddContact

AddContact mocks base method.

func (*MockProfileServiceClient) AddRelationship

AddRelationship mocks base method.

func (*MockProfileServiceClient) Create

Create mocks base method.

func (*MockProfileServiceClient) DeleteRelationship

DeleteRelationship mocks base method.

func (*MockProfileServiceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProfileServiceClient) GetByContact

GetByContact mocks base method.

func (*MockProfileServiceClient) GetById

GetById mocks base method.

func (*MockProfileServiceClient) ListRelationship

ListRelationship mocks base method.

func (*MockProfileServiceClient) Merge

Merge mocks base method.

func (*MockProfileServiceClient) Search

Search mocks base method.

func (*MockProfileServiceClient) Update

Update mocks base method.

type MockProfileServiceClientMockRecorder

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

MockProfileServiceClientMockRecorder is the mock recorder for MockProfileServiceClient.

func (*MockProfileServiceClientMockRecorder) AddAddress

func (mr *MockProfileServiceClientMockRecorder) AddAddress(ctx, in any, opts ...any) *gomock.Call

AddAddress indicates an expected call of AddAddress.

func (*MockProfileServiceClientMockRecorder) AddContact

func (mr *MockProfileServiceClientMockRecorder) AddContact(ctx, in any, opts ...any) *gomock.Call

AddContact indicates an expected call of AddContact.

func (*MockProfileServiceClientMockRecorder) AddRelationship

func (mr *MockProfileServiceClientMockRecorder) AddRelationship(ctx, in any, opts ...any) *gomock.Call

AddRelationship indicates an expected call of AddRelationship.

func (*MockProfileServiceClientMockRecorder) Create

func (mr *MockProfileServiceClientMockRecorder) Create(ctx, in any, opts ...any) *gomock.Call

Create indicates an expected call of Create.

func (*MockProfileServiceClientMockRecorder) DeleteRelationship

func (mr *MockProfileServiceClientMockRecorder) DeleteRelationship(ctx, in any, opts ...any) *gomock.Call

DeleteRelationship indicates an expected call of DeleteRelationship.

func (*MockProfileServiceClientMockRecorder) GetByContact

func (mr *MockProfileServiceClientMockRecorder) GetByContact(ctx, in any, opts ...any) *gomock.Call

GetByContact indicates an expected call of GetByContact.

func (*MockProfileServiceClientMockRecorder) GetById

func (mr *MockProfileServiceClientMockRecorder) GetById(ctx, in any, opts ...any) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockProfileServiceClientMockRecorder) ListRelationship

func (mr *MockProfileServiceClientMockRecorder) ListRelationship(ctx, in any, opts ...any) *gomock.Call

ListRelationship indicates an expected call of ListRelationship.

func (*MockProfileServiceClientMockRecorder) Merge

func (mr *MockProfileServiceClientMockRecorder) Merge(ctx, in any, opts ...any) *gomock.Call

Merge indicates an expected call of Merge.

func (*MockProfileServiceClientMockRecorder) Search

func (mr *MockProfileServiceClientMockRecorder) Search(ctx, in any, opts ...any) *gomock.Call

Search indicates an expected call of Search.

func (*MockProfileServiceClientMockRecorder) Update

func (mr *MockProfileServiceClientMockRecorder) Update(ctx, in any, opts ...any) *gomock.Call

Update indicates an expected call of Update.

type MockProfileServiceServer

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

MockProfileServiceServer is a mock of ProfileServiceServer interface.

func NewMockProfileServiceServer

func NewMockProfileServiceServer(ctrl *gomock.Controller) *MockProfileServiceServer

NewMockProfileServiceServer creates a new mock instance.

func (*MockProfileServiceServer) AddAddress

AddAddress mocks base method.

func (*MockProfileServiceServer) AddContact

AddContact mocks base method.

func (*MockProfileServiceServer) AddRelationship

AddRelationship mocks base method.

func (*MockProfileServiceServer) Create

Create mocks base method.

func (*MockProfileServiceServer) DeleteRelationship

DeleteRelationship mocks base method.

func (*MockProfileServiceServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProfileServiceServer) GetByContact

GetByContact mocks base method.

func (*MockProfileServiceServer) GetById

GetById mocks base method.

func (*MockProfileServiceServer) ListRelationship

ListRelationship mocks base method.

func (*MockProfileServiceServer) Merge

Merge mocks base method.

func (*MockProfileServiceServer) Search

Search mocks base method.

func (*MockProfileServiceServer) Update

Update mocks base method.

type MockProfileServiceServerMockRecorder

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

MockProfileServiceServerMockRecorder is the mock recorder for MockProfileServiceServer.

func (*MockProfileServiceServerMockRecorder) AddAddress

func (mr *MockProfileServiceServerMockRecorder) AddAddress(arg0, arg1 any) *gomock.Call

AddAddress indicates an expected call of AddAddress.

func (*MockProfileServiceServerMockRecorder) AddContact

func (mr *MockProfileServiceServerMockRecorder) AddContact(arg0, arg1 any) *gomock.Call

AddContact indicates an expected call of AddContact.

func (*MockProfileServiceServerMockRecorder) AddRelationship

func (mr *MockProfileServiceServerMockRecorder) AddRelationship(arg0, arg1 any) *gomock.Call

AddRelationship indicates an expected call of AddRelationship.

func (*MockProfileServiceServerMockRecorder) Create

func (mr *MockProfileServiceServerMockRecorder) Create(arg0, arg1 any) *gomock.Call

Create indicates an expected call of Create.

func (*MockProfileServiceServerMockRecorder) DeleteRelationship

func (mr *MockProfileServiceServerMockRecorder) DeleteRelationship(arg0, arg1 any) *gomock.Call

DeleteRelationship indicates an expected call of DeleteRelationship.

func (*MockProfileServiceServerMockRecorder) GetByContact

func (mr *MockProfileServiceServerMockRecorder) GetByContact(arg0, arg1 any) *gomock.Call

GetByContact indicates an expected call of GetByContact.

func (*MockProfileServiceServerMockRecorder) GetById

func (mr *MockProfileServiceServerMockRecorder) GetById(arg0, arg1 any) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockProfileServiceServerMockRecorder) ListRelationship

func (mr *MockProfileServiceServerMockRecorder) ListRelationship(arg0, arg1 any) *gomock.Call

ListRelationship indicates an expected call of ListRelationship.

func (*MockProfileServiceServerMockRecorder) Merge

func (mr *MockProfileServiceServerMockRecorder) Merge(arg0, arg1 any) *gomock.Call

Merge indicates an expected call of Merge.

func (*MockProfileServiceServerMockRecorder) Search

func (mr *MockProfileServiceServerMockRecorder) Search(arg0, arg1 any) *gomock.Call

Search indicates an expected call of Search.

func (*MockProfileServiceServerMockRecorder) Update

func (mr *MockProfileServiceServerMockRecorder) Update(arg0, arg1 any) *gomock.Call

Update indicates an expected call of Update.

type MockProfileService_ListRelationshipClient

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

MockProfileService_ListRelationshipClient is a mock of ProfileService_ListRelationshipClient interface.

func NewMockProfileService_ListRelationshipClient

func NewMockProfileService_ListRelationshipClient(ctrl *gomock.Controller) *MockProfileService_ListRelationshipClient

NewMockProfileService_ListRelationshipClient creates a new mock instance.

func (*MockProfileService_ListRelationshipClient) CloseSend

CloseSend mocks base method.

func (*MockProfileService_ListRelationshipClient) Context

Context mocks base method.

func (*MockProfileService_ListRelationshipClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProfileService_ListRelationshipClient) Header

Header mocks base method.

func (*MockProfileService_ListRelationshipClient) Recv

Recv mocks base method.

func (*MockProfileService_ListRelationshipClient) RecvMsg

RecvMsg mocks base method.

func (*MockProfileService_ListRelationshipClient) SendMsg

SendMsg mocks base method.

func (*MockProfileService_ListRelationshipClient) Trailer

Trailer mocks base method.

type MockProfileService_ListRelationshipClientMockRecorder

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

MockProfileService_ListRelationshipClientMockRecorder is the mock recorder for MockProfileService_ListRelationshipClient.

func (*MockProfileService_ListRelationshipClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockProfileService_ListRelationshipClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockProfileService_ListRelationshipClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockProfileService_ListRelationshipClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockProfileService_ListRelationshipClientMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockProfileService_ListRelationshipClientMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockProfileService_ListRelationshipClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockProfileService_ListRelationshipServer

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

MockProfileService_ListRelationshipServer is a mock of ProfileService_ListRelationshipServer interface.

func NewMockProfileService_ListRelationshipServer

func NewMockProfileService_ListRelationshipServer(ctrl *gomock.Controller) *MockProfileService_ListRelationshipServer

NewMockProfileService_ListRelationshipServer creates a new mock instance.

func (*MockProfileService_ListRelationshipServer) Context

Context mocks base method.

func (*MockProfileService_ListRelationshipServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProfileService_ListRelationshipServer) RecvMsg

RecvMsg mocks base method.

func (*MockProfileService_ListRelationshipServer) Send

Send mocks base method.

func (*MockProfileService_ListRelationshipServer) SendHeader

SendHeader mocks base method.

func (*MockProfileService_ListRelationshipServer) SendMsg

SendMsg mocks base method.

func (*MockProfileService_ListRelationshipServer) SetHeader

SetHeader mocks base method.

func (*MockProfileService_ListRelationshipServer) SetTrailer

SetTrailer mocks base method.

type MockProfileService_ListRelationshipServerMockRecorder

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

MockProfileService_ListRelationshipServerMockRecorder is the mock recorder for MockProfileService_ListRelationshipServer.

func (*MockProfileService_ListRelationshipServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockProfileService_ListRelationshipServerMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockProfileService_ListRelationshipServerMockRecorder) Send

Send indicates an expected call of Send.

func (*MockProfileService_ListRelationshipServerMockRecorder) SendHeader

SendHeader indicates an expected call of SendHeader.

func (*MockProfileService_ListRelationshipServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockProfileService_ListRelationshipServerMockRecorder) SetHeader

SetHeader indicates an expected call of SetHeader.

func (*MockProfileService_ListRelationshipServerMockRecorder) SetTrailer

SetTrailer indicates an expected call of SetTrailer.

type MockProfileService_SearchClient

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

MockProfileService_SearchClient is a mock of ProfileService_SearchClient interface.

func NewMockProfileService_SearchClient

func NewMockProfileService_SearchClient(ctrl *gomock.Controller) *MockProfileService_SearchClient

NewMockProfileService_SearchClient creates a new mock instance.

func (*MockProfileService_SearchClient) CloseSend

func (m *MockProfileService_SearchClient) CloseSend() error

CloseSend mocks base method.

func (*MockProfileService_SearchClient) Context

Context mocks base method.

func (*MockProfileService_SearchClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProfileService_SearchClient) Header

Header mocks base method.

func (*MockProfileService_SearchClient) Recv

Recv mocks base method.

func (*MockProfileService_SearchClient) RecvMsg

func (m_2 *MockProfileService_SearchClient) RecvMsg(m any) error

RecvMsg mocks base method.

func (*MockProfileService_SearchClient) SendMsg

func (m_2 *MockProfileService_SearchClient) SendMsg(m any) error

SendMsg mocks base method.

func (*MockProfileService_SearchClient) Trailer

Trailer mocks base method.

type MockProfileService_SearchClientMockRecorder

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

MockProfileService_SearchClientMockRecorder is the mock recorder for MockProfileService_SearchClient.

func (*MockProfileService_SearchClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockProfileService_SearchClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockProfileService_SearchClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockProfileService_SearchClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockProfileService_SearchClientMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockProfileService_SearchClientMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockProfileService_SearchClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockProfileService_SearchServer

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

MockProfileService_SearchServer is a mock of ProfileService_SearchServer interface.

func NewMockProfileService_SearchServer

func NewMockProfileService_SearchServer(ctrl *gomock.Controller) *MockProfileService_SearchServer

NewMockProfileService_SearchServer creates a new mock instance.

func (*MockProfileService_SearchServer) Context

Context mocks base method.

func (*MockProfileService_SearchServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProfileService_SearchServer) RecvMsg

func (m_2 *MockProfileService_SearchServer) RecvMsg(m any) error

RecvMsg mocks base method.

func (*MockProfileService_SearchServer) Send

Send mocks base method.

func (*MockProfileService_SearchServer) SendHeader

func (m *MockProfileService_SearchServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockProfileService_SearchServer) SendMsg

func (m_2 *MockProfileService_SearchServer) SendMsg(m any) error

SendMsg mocks base method.

func (*MockProfileService_SearchServer) SetHeader

func (m *MockProfileService_SearchServer) SetHeader(arg0 metadata.MD) error

SetHeader mocks base method.

func (*MockProfileService_SearchServer) SetTrailer

func (m *MockProfileService_SearchServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockProfileService_SearchServerMockRecorder

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

MockProfileService_SearchServerMockRecorder is the mock recorder for MockProfileService_SearchServer.

func (*MockProfileService_SearchServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockProfileService_SearchServerMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockProfileService_SearchServerMockRecorder) Send

Send indicates an expected call of Send.

func (*MockProfileService_SearchServerMockRecorder) SendHeader

SendHeader indicates an expected call of SendHeader.

func (*MockProfileService_SearchServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockProfileService_SearchServerMockRecorder) SetHeader

SetHeader indicates an expected call of SetHeader.

func (*MockProfileService_SearchServerMockRecorder) SetTrailer

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeProfileServiceServer

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

MockUnsafeProfileServiceServer is a mock of UnsafeProfileServiceServer interface.

func NewMockUnsafeProfileServiceServer

func NewMockUnsafeProfileServiceServer(ctrl *gomock.Controller) *MockUnsafeProfileServiceServer

NewMockUnsafeProfileServiceServer creates a new mock instance.

func (*MockUnsafeProfileServiceServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockUnsafeProfileServiceServerMockRecorder

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

MockUnsafeProfileServiceServerMockRecorder is the mock recorder for MockUnsafeProfileServiceServer.

type ProfileClient

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

ProfileClient is a client for interacting with the profile service API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

func FromContext

func FromContext(ctx context.Context) *ProfileClient

func InstantiateProfileClient

func InstantiateProfileClient(
	clientConn *grpc.ClientConn,
	profileSrvCli ProfileServiceClient) *ProfileClient

func NewProfileClient

func NewProfileClient(ctx context.Context, opts ...apic.ClientOption) (*ProfileClient, error)

NewProfileClient creates a new notification client. The service that an application uses to send and access received messages

func (*ProfileClient) Close

func (pc *ProfileClient) Close() error

Close closes the connection to the API service. The user should invoke this when the client is no longer required.

func (*ProfileClient) CreateProfileByContactAndName

func (pc *ProfileClient) CreateProfileByContactAndName(
	ctx context.Context,
	contact string,
	name string) (*ProfileObject, error)

func (*ProfileClient) GetProfileByContact

func (pc *ProfileClient) GetProfileByContact(ctx context.Context, contact string) (*ProfileObject, error)

func (*ProfileClient) GetProfileByID

func (pc *ProfileClient) GetProfileByID(
	ctx context.Context,
	profileID string) (*ProfileObject, error)

type ProfileObject

type ProfileObject struct {
	Id         string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type       ProfileType       `protobuf:"varint,2,opt,name=type,proto3,enum=profile.v1.ProfileType" json:"type,omitempty"`
	Properties map[string]string `` /* 161-byte string literal not displayed */
	Contacts   []*ContactObject  `protobuf:"bytes,4,rep,name=contacts,proto3" json:"contacts,omitempty"`
	Addresses  []*AddressObject  `protobuf:"bytes,5,rep,name=addresses,proto3" json:"addresses,omitempty"`
	State      v1.STATE          `protobuf:"varint,6,opt,name=state,proto3,enum=common.v1.STATE" json:"state,omitempty"`
	// contains filtered or unexported fields
}

The response message containing the full profile object

func (*ProfileObject) Descriptor deprecated

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

Deprecated: Use ProfileObject.ProtoReflect.Descriptor instead.

func (*ProfileObject) GetAddresses

func (x *ProfileObject) GetAddresses() []*AddressObject

func (*ProfileObject) GetContacts

func (x *ProfileObject) GetContacts() []*ContactObject

func (*ProfileObject) GetId

func (x *ProfileObject) GetId() string

func (*ProfileObject) GetProperties

func (x *ProfileObject) GetProperties() map[string]string

func (*ProfileObject) GetState

func (x *ProfileObject) GetState() v1.STATE

func (*ProfileObject) GetType

func (x *ProfileObject) GetType() ProfileType

func (*ProfileObject) ProtoMessage

func (*ProfileObject) ProtoMessage()

func (*ProfileObject) ProtoReflect

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

func (*ProfileObject) Reset

func (x *ProfileObject) Reset()

func (*ProfileObject) String

func (x *ProfileObject) String() string

type ProfileServiceClient

type ProfileServiceClient interface {
	// Obtains a profile by its hash
	GetById(ctx context.Context, in *GetByIdRequest, opts ...grpc.CallOption) (*GetByIdResponse, error)
	// Obtains a profile by its hash
	GetByContact(ctx context.Context, in *GetByContactRequest, opts ...grpc.CallOption) (*GetByContactResponse, error)
	// Obtains a profile by its hash
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (ProfileService_SearchClient, error)
	// Uses data found in the profile from mergeHash to update the current profile.
	Merge(ctx context.Context, in *MergeRequest, opts ...grpc.CallOption) (*MergeResponse, error)
	// Creates a new profile based on the request.
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	// Creates a new profile based on the request.
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	// Adds a new contact based on the request/this leads to automatic verification.
	AddContact(ctx context.Context, in *AddContactRequest, opts ...grpc.CallOption) (*AddContactResponse, error)
	// Adds a new address based on the request.
	AddAddress(ctx context.Context, in *AddAddressRequest, opts ...grpc.CallOption) (*AddAddressResponse, error)
	// Adds a new relationship between different proiles.
	AddRelationship(ctx context.Context, in *AddRelationshipRequest, opts ...grpc.CallOption) (*AddRelationshipResponse, error)
	// Remove an existing relationship between profiles.
	DeleteRelationship(ctx context.Context, in *DeleteRelationshipRequest, opts ...grpc.CallOption) (*DeleteRelationshipResponse, error)
	// Lists relationships a profile has.
	ListRelationship(ctx context.Context, in *ListRelationshipRequest, opts ...grpc.CallOption) (ProfileService_ListRelationshipClient, error)
}

ProfileServiceClient is the client API for ProfileService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ProfileServiceServer

type ProfileServiceServer interface {
	// Obtains a profile by its hash
	GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error)
	// Obtains a profile by its hash
	GetByContact(context.Context, *GetByContactRequest) (*GetByContactResponse, error)
	// Obtains a profile by its hash
	Search(*SearchRequest, ProfileService_SearchServer) error
	// Uses data found in the profile from mergeHash to update the current profile.
	Merge(context.Context, *MergeRequest) (*MergeResponse, error)
	// Creates a new profile based on the request.
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	// Creates a new profile based on the request.
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// Adds a new contact based on the request/this leads to automatic verification.
	AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error)
	// Adds a new address based on the request.
	AddAddress(context.Context, *AddAddressRequest) (*AddAddressResponse, error)
	// Adds a new relationship between different proiles.
	AddRelationship(context.Context, *AddRelationshipRequest) (*AddRelationshipResponse, error)
	// Remove an existing relationship between profiles.
	DeleteRelationship(context.Context, *DeleteRelationshipRequest) (*DeleteRelationshipResponse, error)
	// Lists relationships a profile has.
	ListRelationship(*ListRelationshipRequest, ProfileService_ListRelationshipServer) error
	// contains filtered or unexported methods
}

ProfileServiceServer is the server API for ProfileService service. All implementations must embed UnimplementedProfileServiceServer for forward compatibility

type ProfileService_ListRelationshipClient

type ProfileService_ListRelationshipClient interface {
	Recv() (*ListRelationshipResponse, error)
	grpc.ClientStream
}

type ProfileService_ListRelationshipServer

type ProfileService_ListRelationshipServer interface {
	Send(*ListRelationshipResponse) error
	grpc.ServerStream
}

type ProfileService_SearchClient

type ProfileService_SearchClient interface {
	Recv() (*SearchResponse, error)
	grpc.ClientStream
}

type ProfileService_SearchServer

type ProfileService_SearchServer interface {
	Send(*SearchResponse) error
	grpc.ServerStream
}

type ProfileType

type ProfileType int32

buf:lint:ignore ENUM_VALUE_PREFIX

const (
	// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
	ProfileType_PERSON      ProfileType = 0
	ProfileType_INSTITUTION ProfileType = 1
	ProfileType_BOT         ProfileType = 2
)

func (ProfileType) Descriptor

func (ProfileType) Enum

func (x ProfileType) Enum() *ProfileType

func (ProfileType) EnumDescriptor deprecated

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

Deprecated: Use ProfileType.Descriptor instead.

func (ProfileType) Number

func (x ProfileType) Number() protoreflect.EnumNumber

func (ProfileType) String

func (x ProfileType) String() string

func (ProfileType) Type

type RelationshipObject

type RelationshipObject struct {
	Id         string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type       RelationshipType  `protobuf:"varint,2,opt,name=type,proto3,enum=profile.v1.RelationshipType" json:"type,omitempty"`
	Properties map[string]string `` /* 161-byte string literal not displayed */
	// Types that are assignable to Child:
	//
	//	*RelationshipObject_Profile
	//	*RelationshipObject_Contact
	Child isRelationshipObject_Child `protobuf_oneof:"child"`
	// contains filtered or unexported fields
}

A Relationship object

func (*RelationshipObject) Descriptor deprecated

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

Deprecated: Use RelationshipObject.ProtoReflect.Descriptor instead.

func (*RelationshipObject) GetChild

func (m *RelationshipObject) GetChild() isRelationshipObject_Child

func (*RelationshipObject) GetContact

func (x *RelationshipObject) GetContact() *ContactObject

func (*RelationshipObject) GetId

func (x *RelationshipObject) GetId() string

func (*RelationshipObject) GetProfile

func (x *RelationshipObject) GetProfile() *ProfileObject

func (*RelationshipObject) GetProperties

func (x *RelationshipObject) GetProperties() map[string]string

func (*RelationshipObject) GetType

func (x *RelationshipObject) GetType() RelationshipType

func (*RelationshipObject) ProtoMessage

func (*RelationshipObject) ProtoMessage()

func (*RelationshipObject) ProtoReflect

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

func (*RelationshipObject) Reset

func (x *RelationshipObject) Reset()

func (*RelationshipObject) String

func (x *RelationshipObject) String() string

type RelationshipObject_Contact

type RelationshipObject_Contact struct {
	Contact *ContactObject `protobuf:"bytes,5,opt,name=contact,proto3,oneof"`
}

type RelationshipObject_Profile

type RelationshipObject_Profile struct {
	Profile *ProfileObject `protobuf:"bytes,4,opt,name=profile,proto3,oneof"`
}

type RelationshipType

type RelationshipType int32

RelationshipType enum represents the way two profiles are linked. buf:lint:ignore ENUM_VALUE_PREFIX

const (
	// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
	RelationshipType_MEMBER       RelationshipType = 0
	RelationshipType_AFFILIATED   RelationshipType = 1
	RelationshipType_BLACK_LISTED RelationshipType = 2
)

func (RelationshipType) Descriptor

func (RelationshipType) Enum

func (RelationshipType) EnumDescriptor deprecated

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

Deprecated: Use RelationshipType.Descriptor instead.

func (RelationshipType) Number

func (RelationshipType) String

func (x RelationshipType) String() string

func (RelationshipType) Type

type SearchRequest

type SearchRequest struct {
	Query      string            `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Page       int64             `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Count      int32             `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	StartDate  string            `protobuf:"bytes,4,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate    string            `protobuf:"bytes,5,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	Properties []string          `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty"`
	Extras     map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetCount

func (x *SearchRequest) GetCount() int32

func (*SearchRequest) GetEndDate

func (x *SearchRequest) GetEndDate() string

func (*SearchRequest) GetExtras

func (x *SearchRequest) GetExtras() map[string]string

func (*SearchRequest) GetPage

func (x *SearchRequest) GetPage() int64

func (*SearchRequest) GetProperties

func (x *SearchRequest) GetProperties() []string

func (*SearchRequest) GetQuery

func (x *SearchRequest) GetQuery() string

func (*SearchRequest) GetStartDate

func (x *SearchRequest) GetStartDate() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

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

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

type SearchResponse

type SearchResponse struct {
	Data []*ProfileObject `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResponse) Descriptor deprecated

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetData

func (x *SearchResponse) GetData() []*ProfileObject

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

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

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type UnimplementedProfileServiceServer

type UnimplementedProfileServiceServer struct {
}

UnimplementedProfileServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedProfileServiceServer) AddAddress

func (UnimplementedProfileServiceServer) AddContact

func (UnimplementedProfileServiceServer) AddRelationship

func (UnimplementedProfileServiceServer) Create

func (UnimplementedProfileServiceServer) DeleteRelationship

func (UnimplementedProfileServiceServer) GetByContact

func (UnimplementedProfileServiceServer) GetById

func (UnimplementedProfileServiceServer) Merge

func (UnimplementedProfileServiceServer) Search

func (UnimplementedProfileServiceServer) Update

type UnsafeProfileServiceServer

type UnsafeProfileServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProfileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServiceServer will result in compilation errors.

type UpdateRequest

type UpdateRequest struct {
	Id         string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Properties map[string]string `` /* 161-byte string literal not displayed */
	State      v1.STATE          `protobuf:"varint,3,opt,name=state,proto3,enum=common.v1.STATE" json:"state,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the information necessary to create a profile

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetId

func (x *UpdateRequest) GetId() string

func (*UpdateRequest) GetProperties

func (x *UpdateRequest) GetProperties() map[string]string

func (*UpdateRequest) GetState

func (x *UpdateRequest) GetState() v1.STATE

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
	Data *ProfileObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetData

func (x *UpdateResponse) GetData() *ProfileObject

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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