Documentation ¶
Index ¶
- Variables
- func RegisterContactListServer(s grpc.ServiceRegistrar, srv ContactListServer)
- type AddContactsRequest
- func (*AddContactsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddContactsRequest) GetContacts() []*v1.PhoneNumber
- func (x *AddContactsRequest) GetContainerId() *v1.DataContainerId
- func (x *AddContactsRequest) GetOwnerAccountId() *v1.SolanaAccountId
- func (x *AddContactsRequest) GetSignature() *v1.Signature
- func (*AddContactsRequest) ProtoMessage()
- func (x *AddContactsRequest) ProtoReflect() protoreflect.Message
- func (x *AddContactsRequest) Reset()
- func (x *AddContactsRequest) String() string
- func (m *AddContactsRequest) Validate() error
- type AddContactsRequestValidationError
- func (e AddContactsRequestValidationError) Cause() error
- func (e AddContactsRequestValidationError) Error() string
- func (e AddContactsRequestValidationError) ErrorName() string
- func (e AddContactsRequestValidationError) Field() string
- func (e AddContactsRequestValidationError) Key() bool
- func (e AddContactsRequestValidationError) Reason() string
- type AddContactsResponse
- func (*AddContactsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddContactsResponse) GetContactStatus() map[string]*ContactStatus
- func (x *AddContactsResponse) GetResult() AddContactsResponse_Result
- func (*AddContactsResponse) ProtoMessage()
- func (x *AddContactsResponse) ProtoReflect() protoreflect.Message
- func (x *AddContactsResponse) Reset()
- func (x *AddContactsResponse) String() string
- func (m *AddContactsResponse) Validate() error
- type AddContactsResponseValidationError
- func (e AddContactsResponseValidationError) Cause() error
- func (e AddContactsResponseValidationError) Error() string
- func (e AddContactsResponseValidationError) ErrorName() string
- func (e AddContactsResponseValidationError) Field() string
- func (e AddContactsResponseValidationError) Key() bool
- func (e AddContactsResponseValidationError) Reason() string
- type AddContactsResponse_Result
- func (AddContactsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x AddContactsResponse_Result) Enum() *AddContactsResponse_Result
- func (AddContactsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddContactsResponse_Result) Number() protoreflect.EnumNumber
- func (x AddContactsResponse_Result) String() string
- func (AddContactsResponse_Result) Type() protoreflect.EnumType
- type Contact
- func (*Contact) Descriptor() ([]byte, []int)deprecated
- func (x *Contact) GetPhoneNumber() *v1.PhoneNumber
- func (x *Contact) GetStatus() *ContactStatus
- func (*Contact) ProtoMessage()
- func (x *Contact) ProtoReflect() protoreflect.Message
- func (x *Contact) Reset()
- func (x *Contact) String() string
- func (m *Contact) Validate() error
- type ContactListClient
- type ContactListServer
- type ContactStatus
- func (*ContactStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ContactStatus) GetIsInviteRevoked() bool
- func (x *ContactStatus) GetIsInvited() bool
- func (x *ContactStatus) GetIsRegistered() bool
- func (*ContactStatus) ProtoMessage()
- func (x *ContactStatus) ProtoReflect() protoreflect.Message
- func (x *ContactStatus) Reset()
- func (x *ContactStatus) String() string
- func (m *ContactStatus) Validate() error
- type ContactStatusValidationError
- func (e ContactStatusValidationError) Cause() error
- func (e ContactStatusValidationError) Error() string
- func (e ContactStatusValidationError) ErrorName() string
- func (e ContactStatusValidationError) Field() string
- func (e ContactStatusValidationError) Key() bool
- func (e ContactStatusValidationError) Reason() string
- type ContactValidationError
- type GetContactsRequest
- func (*GetContactsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetContactsRequest) GetContainerId() *v1.DataContainerId
- func (x *GetContactsRequest) GetIncludeOnlyInAppContacts() bool
- func (x *GetContactsRequest) GetOwnerAccountId() *v1.SolanaAccountId
- func (x *GetContactsRequest) GetPageToken() *PageToken
- func (x *GetContactsRequest) GetSignature() *v1.Signature
- func (*GetContactsRequest) ProtoMessage()
- func (x *GetContactsRequest) ProtoReflect() protoreflect.Message
- func (x *GetContactsRequest) Reset()
- func (x *GetContactsRequest) String() string
- func (m *GetContactsRequest) Validate() error
- type GetContactsRequestValidationError
- func (e GetContactsRequestValidationError) Cause() error
- func (e GetContactsRequestValidationError) Error() string
- func (e GetContactsRequestValidationError) ErrorName() string
- func (e GetContactsRequestValidationError) Field() string
- func (e GetContactsRequestValidationError) Key() bool
- func (e GetContactsRequestValidationError) Reason() string
- type GetContactsResponse
- func (*GetContactsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContactsResponse) GetContacts() []*Contact
- func (x *GetContactsResponse) GetNextPageToken() *PageToken
- func (x *GetContactsResponse) GetResult() GetContactsResponse_Result
- func (*GetContactsResponse) ProtoMessage()
- func (x *GetContactsResponse) ProtoReflect() protoreflect.Message
- func (x *GetContactsResponse) Reset()
- func (x *GetContactsResponse) String() string
- func (m *GetContactsResponse) Validate() error
- type GetContactsResponseValidationError
- func (e GetContactsResponseValidationError) Cause() error
- func (e GetContactsResponseValidationError) Error() string
- func (e GetContactsResponseValidationError) ErrorName() string
- func (e GetContactsResponseValidationError) Field() string
- func (e GetContactsResponseValidationError) Key() bool
- func (e GetContactsResponseValidationError) Reason() string
- type GetContactsResponse_Result
- func (GetContactsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetContactsResponse_Result) Enum() *GetContactsResponse_Result
- func (GetContactsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetContactsResponse_Result) Number() protoreflect.EnumNumber
- func (x GetContactsResponse_Result) String() string
- func (GetContactsResponse_Result) Type() protoreflect.EnumType
- type PageToken
- type PageTokenValidationError
- type RemoveContactsRequest
- func (*RemoveContactsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveContactsRequest) GetContacts() []*v1.PhoneNumber
- func (x *RemoveContactsRequest) GetContainerId() *v1.DataContainerId
- func (x *RemoveContactsRequest) GetOwnerAccountId() *v1.SolanaAccountId
- func (x *RemoveContactsRequest) GetSignature() *v1.Signature
- func (*RemoveContactsRequest) ProtoMessage()
- func (x *RemoveContactsRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveContactsRequest) Reset()
- func (x *RemoveContactsRequest) String() string
- func (m *RemoveContactsRequest) Validate() error
- type RemoveContactsRequestValidationError
- func (e RemoveContactsRequestValidationError) Cause() error
- func (e RemoveContactsRequestValidationError) Error() string
- func (e RemoveContactsRequestValidationError) ErrorName() string
- func (e RemoveContactsRequestValidationError) Field() string
- func (e RemoveContactsRequestValidationError) Key() bool
- func (e RemoveContactsRequestValidationError) Reason() string
- type RemoveContactsResponse
- func (*RemoveContactsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveContactsResponse) GetResult() RemoveContactsResponse_Result
- func (*RemoveContactsResponse) ProtoMessage()
- func (x *RemoveContactsResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveContactsResponse) Reset()
- func (x *RemoveContactsResponse) String() string
- func (m *RemoveContactsResponse) Validate() error
- type RemoveContactsResponseValidationError
- func (e RemoveContactsResponseValidationError) Cause() error
- func (e RemoveContactsResponseValidationError) Error() string
- func (e RemoveContactsResponseValidationError) ErrorName() string
- func (e RemoveContactsResponseValidationError) Field() string
- func (e RemoveContactsResponseValidationError) Key() bool
- func (e RemoveContactsResponseValidationError) Reason() string
- type RemoveContactsResponse_Result
- func (RemoveContactsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x RemoveContactsResponse_Result) Enum() *RemoveContactsResponse_Result
- func (RemoveContactsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x RemoveContactsResponse_Result) Number() protoreflect.EnumNumber
- func (x RemoveContactsResponse_Result) String() string
- func (RemoveContactsResponse_Result) Type() protoreflect.EnumType
- type UnimplementedContactListServer
- func (UnimplementedContactListServer) AddContacts(context.Context, *AddContactsRequest) (*AddContactsResponse, error)
- func (UnimplementedContactListServer) GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error)
- func (UnimplementedContactListServer) RemoveContacts(context.Context, *RemoveContactsRequest) (*RemoveContactsResponse, error)
- type UnsafeContactListServer
Constants ¶
This section is empty.
Variables ¶
var ( AddContactsResponse_Result_name = map[int32]string{ 0: "OK", } AddContactsResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for AddContactsResponse_Result.
var ( RemoveContactsResponse_Result_name = map[int32]string{ 0: "OK", } RemoveContactsResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for RemoveContactsResponse_Result.
var ( GetContactsResponse_Result_name = map[int32]string{ 0: "OK", } GetContactsResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for GetContactsResponse_Result.
var ContactList_ServiceDesc = grpc.ServiceDesc{ ServiceName: "code.contact.v1.ContactList", HandlerType: (*ContactListServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddContacts", Handler: _ContactList_AddContacts_Handler, }, { MethodName: "RemoveContacts", Handler: _ContactList_RemoveContacts_Handler, }, { MethodName: "GetContacts", Handler: _ContactList_GetContacts_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "contact/v1/contact_list_service.proto", }
ContactList_ServiceDesc is the grpc.ServiceDesc for ContactList service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_contact_v1_contact_list_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContactListServer ¶
func RegisterContactListServer(s grpc.ServiceRegistrar, srv ContactListServer)
Types ¶
type AddContactsRequest ¶
type AddContactsRequest struct { // The public key of the owner account that signed this request message. OwnerAccountId *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner_account_id,json=ownerAccountId,proto3" json:"owner_account_id,omitempty"` // The signature is of serialize(AddContactsRequest) without this field set // using the private key of owner_account_id. This provides an authentication // mechanism to the RPC. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // The data container for the copy of the contact list being added to. ContainerId *v1.DataContainerId `protobuf:"bytes,3,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // The set of contacts to add to the contact list Contacts []*v1.PhoneNumber `protobuf:"bytes,4,rep,name=contacts,proto3" json:"contacts,omitempty"` // contains filtered or unexported fields }
func (*AddContactsRequest) Descriptor
deprecated
func (*AddContactsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddContactsRequest.ProtoReflect.Descriptor instead.
func (*AddContactsRequest) GetContacts ¶
func (x *AddContactsRequest) GetContacts() []*v1.PhoneNumber
func (*AddContactsRequest) GetContainerId ¶
func (x *AddContactsRequest) GetContainerId() *v1.DataContainerId
func (*AddContactsRequest) GetOwnerAccountId ¶
func (x *AddContactsRequest) GetOwnerAccountId() *v1.SolanaAccountId
func (*AddContactsRequest) GetSignature ¶
func (x *AddContactsRequest) GetSignature() *v1.Signature
func (*AddContactsRequest) ProtoMessage ¶
func (*AddContactsRequest) ProtoMessage()
func (*AddContactsRequest) ProtoReflect ¶
func (x *AddContactsRequest) ProtoReflect() protoreflect.Message
func (*AddContactsRequest) Reset ¶
func (x *AddContactsRequest) Reset()
func (*AddContactsRequest) String ¶
func (x *AddContactsRequest) String() string
func (*AddContactsRequest) Validate ¶
func (m *AddContactsRequest) Validate() error
Validate checks the field values on AddContactsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AddContactsRequestValidationError ¶
type AddContactsRequestValidationError struct {
// contains filtered or unexported fields
}
AddContactsRequestValidationError is the validation error returned by AddContactsRequest.Validate if the designated constraints aren't met.
func (AddContactsRequestValidationError) Cause ¶
func (e AddContactsRequestValidationError) Cause() error
Cause function returns cause value.
func (AddContactsRequestValidationError) Error ¶
func (e AddContactsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddContactsRequestValidationError) ErrorName ¶
func (e AddContactsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddContactsRequestValidationError) Field ¶
func (e AddContactsRequestValidationError) Field() string
Field function returns field value.
func (AddContactsRequestValidationError) Key ¶
func (e AddContactsRequestValidationError) Key() bool
Key function returns key value.
func (AddContactsRequestValidationError) Reason ¶
func (e AddContactsRequestValidationError) Reason() string
Reason function returns reason value.
type AddContactsResponse ¶
type AddContactsResponse struct { Result AddContactsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.contact.v1.AddContactsResponse_Result" json:"result,omitempty"` // The contacts' current status keyed by phone number. This is an optimization // so that clients can populate initial state without needing an extra network // call. ContactStatus map[string]*ContactStatus `` /* 188-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddContactsResponse) Descriptor
deprecated
func (*AddContactsResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddContactsResponse.ProtoReflect.Descriptor instead.
func (*AddContactsResponse) GetContactStatus ¶
func (x *AddContactsResponse) GetContactStatus() map[string]*ContactStatus
func (*AddContactsResponse) GetResult ¶
func (x *AddContactsResponse) GetResult() AddContactsResponse_Result
func (*AddContactsResponse) ProtoMessage ¶
func (*AddContactsResponse) ProtoMessage()
func (*AddContactsResponse) ProtoReflect ¶
func (x *AddContactsResponse) ProtoReflect() protoreflect.Message
func (*AddContactsResponse) Reset ¶
func (x *AddContactsResponse) Reset()
func (*AddContactsResponse) String ¶
func (x *AddContactsResponse) String() string
func (*AddContactsResponse) Validate ¶
func (m *AddContactsResponse) Validate() error
Validate checks the field values on AddContactsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AddContactsResponseValidationError ¶
type AddContactsResponseValidationError struct {
// contains filtered or unexported fields
}
AddContactsResponseValidationError is the validation error returned by AddContactsResponse.Validate if the designated constraints aren't met.
func (AddContactsResponseValidationError) Cause ¶
func (e AddContactsResponseValidationError) Cause() error
Cause function returns cause value.
func (AddContactsResponseValidationError) Error ¶
func (e AddContactsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AddContactsResponseValidationError) ErrorName ¶
func (e AddContactsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AddContactsResponseValidationError) Field ¶
func (e AddContactsResponseValidationError) Field() string
Field function returns field value.
func (AddContactsResponseValidationError) Key ¶
func (e AddContactsResponseValidationError) Key() bool
Key function returns key value.
func (AddContactsResponseValidationError) Reason ¶
func (e AddContactsResponseValidationError) Reason() string
Reason function returns reason value.
type AddContactsResponse_Result ¶
type AddContactsResponse_Result int32
const (
AddContactsResponse_OK AddContactsResponse_Result = 0
)
func (AddContactsResponse_Result) Descriptor ¶
func (AddContactsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (AddContactsResponse_Result) Enum ¶
func (x AddContactsResponse_Result) Enum() *AddContactsResponse_Result
func (AddContactsResponse_Result) EnumDescriptor
deprecated
func (AddContactsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use AddContactsResponse_Result.Descriptor instead.
func (AddContactsResponse_Result) Number ¶
func (x AddContactsResponse_Result) Number() protoreflect.EnumNumber
func (AddContactsResponse_Result) String ¶
func (x AddContactsResponse_Result) String() string
func (AddContactsResponse_Result) Type ¶
func (AddContactsResponse_Result) Type() protoreflect.EnumType
type Contact ¶
type Contact struct { // The contact's phone number PhoneNumber *v1.PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // The contact's current status Status *ContactStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Contact) Descriptor
deprecated
func (*Contact) GetPhoneNumber ¶
func (x *Contact) GetPhoneNumber() *v1.PhoneNumber
func (*Contact) GetStatus ¶
func (x *Contact) GetStatus() *ContactStatus
func (*Contact) ProtoMessage ¶
func (*Contact) ProtoMessage()
func (*Contact) ProtoReflect ¶
func (x *Contact) ProtoReflect() protoreflect.Message
type ContactListClient ¶
type ContactListClient interface { // AddContacts adds a batch of contacts to a user's contact list AddContacts(ctx context.Context, in *AddContactsRequest, opts ...grpc.CallOption) (*AddContactsResponse, error) // RemoveContacts removes a batch of contacts from a user's contact list RemoveContacts(ctx context.Context, in *RemoveContactsRequest, opts ...grpc.CallOption) (*RemoveContactsResponse, error) // GetContacts gets a subset of contacts from a user's contact list GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*GetContactsResponse, error) }
ContactListClient is the client API for ContactList 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.
func NewContactListClient ¶
func NewContactListClient(cc grpc.ClientConnInterface) ContactListClient
type ContactListServer ¶
type ContactListServer interface { // AddContacts adds a batch of contacts to a user's contact list AddContacts(context.Context, *AddContactsRequest) (*AddContactsResponse, error) // RemoveContacts removes a batch of contacts from a user's contact list RemoveContacts(context.Context, *RemoveContactsRequest) (*RemoveContactsResponse, error) // GetContacts gets a subset of contacts from a user's contact list GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error) // contains filtered or unexported methods }
ContactListServer is the server API for ContactList service. All implementations must embed UnimplementedContactListServer for forward compatibility
type ContactStatus ¶
type ContactStatus struct { // Flag to indicate whether a user has registered with Code and used the app // at least once. IsRegistered bool `protobuf:"varint,1,opt,name=is_registered,json=isRegistered,proto3" json:"is_registered,omitempty"` // Flag to indicate whether a user has been invited to Code. // // todo: This field will be deprecated after the invite phase is complete. IsInvited bool `protobuf:"varint,2,opt,name=is_invited,json=isInvited,proto3" json:"is_invited,omitempty"` // Flag to indicate whether a user's invitation to Code has been revoked. // // todo: This field will be deprecated after the invite phase is complete. IsInviteRevoked bool `protobuf:"varint,3,opt,name=is_invite_revoked,json=isInviteRevoked,proto3" json:"is_invite_revoked,omitempty"` // contains filtered or unexported fields }
func (*ContactStatus) Descriptor
deprecated
func (*ContactStatus) Descriptor() ([]byte, []int)
Deprecated: Use ContactStatus.ProtoReflect.Descriptor instead.
func (*ContactStatus) GetIsInviteRevoked ¶
func (x *ContactStatus) GetIsInviteRevoked() bool
func (*ContactStatus) GetIsInvited ¶
func (x *ContactStatus) GetIsInvited() bool
func (*ContactStatus) GetIsRegistered ¶
func (x *ContactStatus) GetIsRegistered() bool
func (*ContactStatus) ProtoMessage ¶
func (*ContactStatus) ProtoMessage()
func (*ContactStatus) ProtoReflect ¶
func (x *ContactStatus) ProtoReflect() protoreflect.Message
func (*ContactStatus) Reset ¶
func (x *ContactStatus) Reset()
func (*ContactStatus) String ¶
func (x *ContactStatus) String() string
func (*ContactStatus) Validate ¶
func (m *ContactStatus) Validate() error
Validate checks the field values on ContactStatus with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ContactStatusValidationError ¶
type ContactStatusValidationError struct {
// contains filtered or unexported fields
}
ContactStatusValidationError is the validation error returned by ContactStatus.Validate if the designated constraints aren't met.
func (ContactStatusValidationError) Cause ¶
func (e ContactStatusValidationError) Cause() error
Cause function returns cause value.
func (ContactStatusValidationError) Error ¶
func (e ContactStatusValidationError) Error() string
Error satisfies the builtin error interface
func (ContactStatusValidationError) ErrorName ¶
func (e ContactStatusValidationError) ErrorName() string
ErrorName returns error name.
func (ContactStatusValidationError) Field ¶
func (e ContactStatusValidationError) Field() string
Field function returns field value.
func (ContactStatusValidationError) Key ¶
func (e ContactStatusValidationError) Key() bool
Key function returns key value.
func (ContactStatusValidationError) Reason ¶
func (e ContactStatusValidationError) Reason() string
Reason function returns reason value.
type ContactValidationError ¶
type ContactValidationError struct {
// contains filtered or unexported fields
}
ContactValidationError is the validation error returned by Contact.Validate if the designated constraints aren't met.
func (ContactValidationError) Cause ¶
func (e ContactValidationError) Cause() error
Cause function returns cause value.
func (ContactValidationError) Error ¶
func (e ContactValidationError) Error() string
Error satisfies the builtin error interface
func (ContactValidationError) ErrorName ¶
func (e ContactValidationError) ErrorName() string
ErrorName returns error name.
func (ContactValidationError) Field ¶
func (e ContactValidationError) Field() string
Field function returns field value.
func (ContactValidationError) Key ¶
func (e ContactValidationError) Key() bool
Key function returns key value.
func (ContactValidationError) Reason ¶
func (e ContactValidationError) Reason() string
Reason function returns reason value.
type GetContactsRequest ¶
type GetContactsRequest struct { // The public key of the owner account that signed this request message. OwnerAccountId *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner_account_id,json=ownerAccountId,proto3" json:"owner_account_id,omitempty"` // The signature is of serialize(GetContactsRequest) without this field set // using the private key of owner_account_id. This provides an authentication // mechanism to the RPC. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // The data container for the copy of the contact list being fetched. ContainerId *v1.DataContainerId `protobuf:"bytes,3,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // The page token, which is retreived from a previous response, to get the next // set of contacts. The first page is returned when not set. PageToken *PageToken `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Filter out contacts that have an association with Code. This includes users // that have both been invited and registered with the app. IncludeOnlyInAppContacts bool `` /* 140-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetContactsRequest) Descriptor
deprecated
func (*GetContactsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetContactsRequest.ProtoReflect.Descriptor instead.
func (*GetContactsRequest) GetContainerId ¶
func (x *GetContactsRequest) GetContainerId() *v1.DataContainerId
func (*GetContactsRequest) GetIncludeOnlyInAppContacts ¶
func (x *GetContactsRequest) GetIncludeOnlyInAppContacts() bool
func (*GetContactsRequest) GetOwnerAccountId ¶
func (x *GetContactsRequest) GetOwnerAccountId() *v1.SolanaAccountId
func (*GetContactsRequest) GetPageToken ¶
func (x *GetContactsRequest) GetPageToken() *PageToken
func (*GetContactsRequest) GetSignature ¶
func (x *GetContactsRequest) GetSignature() *v1.Signature
func (*GetContactsRequest) ProtoMessage ¶
func (*GetContactsRequest) ProtoMessage()
func (*GetContactsRequest) ProtoReflect ¶
func (x *GetContactsRequest) ProtoReflect() protoreflect.Message
func (*GetContactsRequest) Reset ¶
func (x *GetContactsRequest) Reset()
func (*GetContactsRequest) String ¶
func (x *GetContactsRequest) String() string
func (*GetContactsRequest) Validate ¶
func (m *GetContactsRequest) Validate() error
Validate checks the field values on GetContactsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetContactsRequestValidationError ¶
type GetContactsRequestValidationError struct {
// contains filtered or unexported fields
}
GetContactsRequestValidationError is the validation error returned by GetContactsRequest.Validate if the designated constraints aren't met.
func (GetContactsRequestValidationError) Cause ¶
func (e GetContactsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetContactsRequestValidationError) Error ¶
func (e GetContactsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetContactsRequestValidationError) ErrorName ¶
func (e GetContactsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetContactsRequestValidationError) Field ¶
func (e GetContactsRequestValidationError) Field() string
Field function returns field value.
func (GetContactsRequestValidationError) Key ¶
func (e GetContactsRequestValidationError) Key() bool
Key function returns key value.
func (GetContactsRequestValidationError) Reason ¶
func (e GetContactsRequestValidationError) Reason() string
Reason function returns reason value.
type GetContactsResponse ¶
type GetContactsResponse struct { Result GetContactsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.contact.v1.GetContactsResponse_Result" json:"result,omitempty"` // A page of contacts Contacts []*Contact `protobuf:"bytes,2,rep,name=contacts,proto3" json:"contacts,omitempty"` // The page token to include in a subsequent request to get the next set of // contacts. This will not be set for the last response in the list of // pages. NextPageToken *PageToken `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*GetContactsResponse) Descriptor
deprecated
func (*GetContactsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetContactsResponse.ProtoReflect.Descriptor instead.
func (*GetContactsResponse) GetContacts ¶
func (x *GetContactsResponse) GetContacts() []*Contact
func (*GetContactsResponse) GetNextPageToken ¶
func (x *GetContactsResponse) GetNextPageToken() *PageToken
func (*GetContactsResponse) GetResult ¶
func (x *GetContactsResponse) GetResult() GetContactsResponse_Result
func (*GetContactsResponse) ProtoMessage ¶
func (*GetContactsResponse) ProtoMessage()
func (*GetContactsResponse) ProtoReflect ¶
func (x *GetContactsResponse) ProtoReflect() protoreflect.Message
func (*GetContactsResponse) Reset ¶
func (x *GetContactsResponse) Reset()
func (*GetContactsResponse) String ¶
func (x *GetContactsResponse) String() string
func (*GetContactsResponse) Validate ¶
func (m *GetContactsResponse) Validate() error
Validate checks the field values on GetContactsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetContactsResponseValidationError ¶
type GetContactsResponseValidationError struct {
// contains filtered or unexported fields
}
GetContactsResponseValidationError is the validation error returned by GetContactsResponse.Validate if the designated constraints aren't met.
func (GetContactsResponseValidationError) Cause ¶
func (e GetContactsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetContactsResponseValidationError) Error ¶
func (e GetContactsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetContactsResponseValidationError) ErrorName ¶
func (e GetContactsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetContactsResponseValidationError) Field ¶
func (e GetContactsResponseValidationError) Field() string
Field function returns field value.
func (GetContactsResponseValidationError) Key ¶
func (e GetContactsResponseValidationError) Key() bool
Key function returns key value.
func (GetContactsResponseValidationError) Reason ¶
func (e GetContactsResponseValidationError) Reason() string
Reason function returns reason value.
type GetContactsResponse_Result ¶
type GetContactsResponse_Result int32
const (
GetContactsResponse_OK GetContactsResponse_Result = 0
)
func (GetContactsResponse_Result) Descriptor ¶
func (GetContactsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetContactsResponse_Result) Enum ¶
func (x GetContactsResponse_Result) Enum() *GetContactsResponse_Result
func (GetContactsResponse_Result) EnumDescriptor
deprecated
func (GetContactsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetContactsResponse_Result.Descriptor instead.
func (GetContactsResponse_Result) Number ¶
func (x GetContactsResponse_Result) Number() protoreflect.EnumNumber
func (GetContactsResponse_Result) String ¶
func (x GetContactsResponse_Result) String() string
func (GetContactsResponse_Result) Type ¶
func (GetContactsResponse_Result) Type() protoreflect.EnumType
type PageToken ¶
type PageToken struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*PageToken) Descriptor
deprecated
func (*PageToken) ProtoMessage ¶
func (*PageToken) ProtoMessage()
func (*PageToken) ProtoReflect ¶
func (x *PageToken) ProtoReflect() protoreflect.Message
type PageTokenValidationError ¶
type PageTokenValidationError struct {
// contains filtered or unexported fields
}
PageTokenValidationError is the validation error returned by PageToken.Validate if the designated constraints aren't met.
func (PageTokenValidationError) Cause ¶
func (e PageTokenValidationError) Cause() error
Cause function returns cause value.
func (PageTokenValidationError) Error ¶
func (e PageTokenValidationError) Error() string
Error satisfies the builtin error interface
func (PageTokenValidationError) ErrorName ¶
func (e PageTokenValidationError) ErrorName() string
ErrorName returns error name.
func (PageTokenValidationError) Field ¶
func (e PageTokenValidationError) Field() string
Field function returns field value.
func (PageTokenValidationError) Key ¶
func (e PageTokenValidationError) Key() bool
Key function returns key value.
func (PageTokenValidationError) Reason ¶
func (e PageTokenValidationError) Reason() string
Reason function returns reason value.
type RemoveContactsRequest ¶
type RemoveContactsRequest struct { // The public key of the owner account that signed this request message. OwnerAccountId *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner_account_id,json=ownerAccountId,proto3" json:"owner_account_id,omitempty"` // The signature is of serialize(RemoveContactsRequest) without this field // set using the private key of owner_account_id. This provides an // authentication mechanism to the RPC. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // The data container for the copy of the contact list being removed from. ContainerId *v1.DataContainerId `protobuf:"bytes,3,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // The set of contacts to remove from the contact list Contacts []*v1.PhoneNumber `protobuf:"bytes,4,rep,name=contacts,proto3" json:"contacts,omitempty"` // contains filtered or unexported fields }
func (*RemoveContactsRequest) Descriptor
deprecated
func (*RemoveContactsRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveContactsRequest.ProtoReflect.Descriptor instead.
func (*RemoveContactsRequest) GetContacts ¶
func (x *RemoveContactsRequest) GetContacts() []*v1.PhoneNumber
func (*RemoveContactsRequest) GetContainerId ¶
func (x *RemoveContactsRequest) GetContainerId() *v1.DataContainerId
func (*RemoveContactsRequest) GetOwnerAccountId ¶
func (x *RemoveContactsRequest) GetOwnerAccountId() *v1.SolanaAccountId
func (*RemoveContactsRequest) GetSignature ¶
func (x *RemoveContactsRequest) GetSignature() *v1.Signature
func (*RemoveContactsRequest) ProtoMessage ¶
func (*RemoveContactsRequest) ProtoMessage()
func (*RemoveContactsRequest) ProtoReflect ¶
func (x *RemoveContactsRequest) ProtoReflect() protoreflect.Message
func (*RemoveContactsRequest) Reset ¶
func (x *RemoveContactsRequest) Reset()
func (*RemoveContactsRequest) String ¶
func (x *RemoveContactsRequest) String() string
func (*RemoveContactsRequest) Validate ¶
func (m *RemoveContactsRequest) Validate() error
Validate checks the field values on RemoveContactsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RemoveContactsRequestValidationError ¶
type RemoveContactsRequestValidationError struct {
// contains filtered or unexported fields
}
RemoveContactsRequestValidationError is the validation error returned by RemoveContactsRequest.Validate if the designated constraints aren't met.
func (RemoveContactsRequestValidationError) Cause ¶
func (e RemoveContactsRequestValidationError) Cause() error
Cause function returns cause value.
func (RemoveContactsRequestValidationError) Error ¶
func (e RemoveContactsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RemoveContactsRequestValidationError) ErrorName ¶
func (e RemoveContactsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RemoveContactsRequestValidationError) Field ¶
func (e RemoveContactsRequestValidationError) Field() string
Field function returns field value.
func (RemoveContactsRequestValidationError) Key ¶
func (e RemoveContactsRequestValidationError) Key() bool
Key function returns key value.
func (RemoveContactsRequestValidationError) Reason ¶
func (e RemoveContactsRequestValidationError) Reason() string
Reason function returns reason value.
type RemoveContactsResponse ¶
type RemoveContactsResponse struct { Result RemoveContactsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.contact.v1.RemoveContactsResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*RemoveContactsResponse) Descriptor
deprecated
func (*RemoveContactsResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveContactsResponse.ProtoReflect.Descriptor instead.
func (*RemoveContactsResponse) GetResult ¶
func (x *RemoveContactsResponse) GetResult() RemoveContactsResponse_Result
func (*RemoveContactsResponse) ProtoMessage ¶
func (*RemoveContactsResponse) ProtoMessage()
func (*RemoveContactsResponse) ProtoReflect ¶
func (x *RemoveContactsResponse) ProtoReflect() protoreflect.Message
func (*RemoveContactsResponse) Reset ¶
func (x *RemoveContactsResponse) Reset()
func (*RemoveContactsResponse) String ¶
func (x *RemoveContactsResponse) String() string
func (*RemoveContactsResponse) Validate ¶
func (m *RemoveContactsResponse) Validate() error
Validate checks the field values on RemoveContactsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RemoveContactsResponseValidationError ¶
type RemoveContactsResponseValidationError struct {
// contains filtered or unexported fields
}
RemoveContactsResponseValidationError is the validation error returned by RemoveContactsResponse.Validate if the designated constraints aren't met.
func (RemoveContactsResponseValidationError) Cause ¶
func (e RemoveContactsResponseValidationError) Cause() error
Cause function returns cause value.
func (RemoveContactsResponseValidationError) Error ¶
func (e RemoveContactsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RemoveContactsResponseValidationError) ErrorName ¶
func (e RemoveContactsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RemoveContactsResponseValidationError) Field ¶
func (e RemoveContactsResponseValidationError) Field() string
Field function returns field value.
func (RemoveContactsResponseValidationError) Key ¶
func (e RemoveContactsResponseValidationError) Key() bool
Key function returns key value.
func (RemoveContactsResponseValidationError) Reason ¶
func (e RemoveContactsResponseValidationError) Reason() string
Reason function returns reason value.
type RemoveContactsResponse_Result ¶
type RemoveContactsResponse_Result int32
const (
RemoveContactsResponse_OK RemoveContactsResponse_Result = 0
)
func (RemoveContactsResponse_Result) Descriptor ¶
func (RemoveContactsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (RemoveContactsResponse_Result) Enum ¶
func (x RemoveContactsResponse_Result) Enum() *RemoveContactsResponse_Result
func (RemoveContactsResponse_Result) EnumDescriptor
deprecated
func (RemoveContactsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use RemoveContactsResponse_Result.Descriptor instead.
func (RemoveContactsResponse_Result) Number ¶
func (x RemoveContactsResponse_Result) Number() protoreflect.EnumNumber
func (RemoveContactsResponse_Result) String ¶
func (x RemoveContactsResponse_Result) String() string
func (RemoveContactsResponse_Result) Type ¶
func (RemoveContactsResponse_Result) Type() protoreflect.EnumType
type UnimplementedContactListServer ¶
type UnimplementedContactListServer struct { }
UnimplementedContactListServer must be embedded to have forward compatible implementations.
func (UnimplementedContactListServer) AddContacts ¶
func (UnimplementedContactListServer) AddContacts(context.Context, *AddContactsRequest) (*AddContactsResponse, error)
func (UnimplementedContactListServer) GetContacts ¶
func (UnimplementedContactListServer) GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error)
func (UnimplementedContactListServer) RemoveContacts ¶
func (UnimplementedContactListServer) RemoveContacts(context.Context, *RemoveContactsRequest) (*RemoveContactsResponse, error)
type UnsafeContactListServer ¶
type UnsafeContactListServer interface {
// contains filtered or unexported methods
}
UnsafeContactListServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContactListServer will result in compilation errors.