mirror of
https://github.com/mautrix/signal.git
synced 2026-09-16 15:52:04 -04:00
1217 lines
48 KiB
Go
Generated
1217 lines
48 KiB
Go
Generated
//
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.1
|
|
// source: org/signal/chat/keys.proto
|
|
|
|
package keys
|
|
|
|
import (
|
|
common "go.mau.fi/mautrix-signal/pkg/signalmeow/protobuf/rpc/common"
|
|
errors "go.mau.fi/mautrix-signal/pkg/signalmeow/protobuf/rpc/errors"
|
|
_ "go.mau.fi/mautrix-signal/pkg/signalmeow/protobuf/rpc/require"
|
|
_ "go.mau.fi/mautrix-signal/pkg/signalmeow/protobuf/rpc/tag"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type GetPreKeyCountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPreKeyCountRequest) Reset() {
|
|
*x = GetPreKeyCountRequest{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPreKeyCountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreKeyCountRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPreKeyCountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreKeyCountRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPreKeyCountRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type GetPreKeyCountResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The approximate number of one-time EC pre-keys stored for the
|
|
// authenticated device and associated with the caller's ACI.
|
|
AciEcPreKeyCount uint32 `protobuf:"varint,1,opt,name=aci_ec_pre_key_count,json=aciEcPreKeyCount,proto3" json:"aci_ec_pre_key_count,omitempty"`
|
|
// The approximate number of one-time Kyber pre-keys stored for the
|
|
// authenticated device and associated with the caller's ACI.
|
|
AciKemPreKeyCount uint32 `protobuf:"varint,2,opt,name=aci_kem_pre_key_count,json=aciKemPreKeyCount,proto3" json:"aci_kem_pre_key_count,omitempty"`
|
|
// The approximate number of one-time EC pre-keys stored for the
|
|
// authenticated device and associated with the caller's PNI. 0 if
|
|
// the account does not possess a phone number.
|
|
PniEcPreKeyCount uint32 `protobuf:"varint,3,opt,name=pni_ec_pre_key_count,json=pniEcPreKeyCount,proto3" json:"pni_ec_pre_key_count,omitempty"`
|
|
// The approximate number of one-time KEM pre-keys stored for the
|
|
// authenticated device and associated with the caller's PNI. 0 if
|
|
// the account does not possess a phone number.
|
|
PniKemPreKeyCount uint32 `protobuf:"varint,4,opt,name=pni_kem_pre_key_count,json=pniKemPreKeyCount,proto3" json:"pni_kem_pre_key_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPreKeyCountResponse) Reset() {
|
|
*x = GetPreKeyCountResponse{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPreKeyCountResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreKeyCountResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPreKeyCountResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreKeyCountResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPreKeyCountResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GetPreKeyCountResponse) GetAciEcPreKeyCount() uint32 {
|
|
if x != nil {
|
|
return x.AciEcPreKeyCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetPreKeyCountResponse) GetAciKemPreKeyCount() uint32 {
|
|
if x != nil {
|
|
return x.AciKemPreKeyCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetPreKeyCountResponse) GetPniEcPreKeyCount() uint32 {
|
|
if x != nil {
|
|
return x.PniEcPreKeyCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetPreKeyCountResponse) GetPniKemPreKeyCount() uint32 {
|
|
if x != nil {
|
|
return x.PniKemPreKeyCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPreKeysRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The service identifier of the account for which to retrieve pre-keys.
|
|
TargetIdentifier *common.ServiceIdentifier `protobuf:"bytes,1,opt,name=target_identifier,json=targetIdentifier,proto3" json:"target_identifier,omitempty"`
|
|
// The ID of the device associated with the targeted account for which to
|
|
// retrieve pre-keys. If not set, pre-keys are returned for all devices
|
|
// associated with the targeted account.
|
|
DeviceId *uint32 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3,oneof" json:"device_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPreKeysRequest) Reset() {
|
|
*x = GetPreKeysRequest{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPreKeysRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreKeysRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPreKeysRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreKeysRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPreKeysRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetPreKeysRequest) GetTargetIdentifier() *common.ServiceIdentifier {
|
|
if x != nil {
|
|
return x.TargetIdentifier
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysRequest) GetDeviceId() uint32 {
|
|
if x != nil && x.DeviceId != nil {
|
|
return *x.DeviceId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPreKeysAnonymousRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The request to retrieve pre-keys for a specific account/device(s).
|
|
Request *GetPreKeysRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
|
|
// A means to authorize the request.
|
|
//
|
|
// Types that are valid to be assigned to Authorization:
|
|
//
|
|
// *GetPreKeysAnonymousRequest_UnidentifiedAccessKey
|
|
// *GetPreKeysAnonymousRequest_GroupSendToken
|
|
// *GetPreKeysAnonymousRequest_UnrestrictedAccess
|
|
Authorization isGetPreKeysAnonymousRequest_Authorization `protobuf_oneof:"authorization"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousRequest) Reset() {
|
|
*x = GetPreKeysAnonymousRequest{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreKeysAnonymousRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPreKeysAnonymousRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreKeysAnonymousRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPreKeysAnonymousRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousRequest) GetRequest() *GetPreKeysRequest {
|
|
if x != nil {
|
|
return x.Request
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousRequest) GetAuthorization() isGetPreKeysAnonymousRequest_Authorization {
|
|
if x != nil {
|
|
return x.Authorization
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousRequest) GetUnidentifiedAccessKey() []byte {
|
|
if x != nil {
|
|
if x, ok := x.Authorization.(*GetPreKeysAnonymousRequest_UnidentifiedAccessKey); ok {
|
|
return x.UnidentifiedAccessKey
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousRequest) GetGroupSendToken() []byte {
|
|
if x != nil {
|
|
if x, ok := x.Authorization.(*GetPreKeysAnonymousRequest_GroupSendToken); ok {
|
|
return x.GroupSendToken
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousRequest) GetUnrestrictedAccess() *emptypb.Empty {
|
|
if x != nil {
|
|
if x, ok := x.Authorization.(*GetPreKeysAnonymousRequest_UnrestrictedAccess); ok {
|
|
return x.UnrestrictedAccess
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isGetPreKeysAnonymousRequest_Authorization interface {
|
|
isGetPreKeysAnonymousRequest_Authorization()
|
|
}
|
|
|
|
type GetPreKeysAnonymousRequest_UnidentifiedAccessKey struct {
|
|
// The unidentified access key (UAK) for the targeted account.
|
|
UnidentifiedAccessKey []byte `protobuf:"bytes,2,opt,name=unidentified_access_key,json=unidentifiedAccessKey,proto3,oneof"`
|
|
}
|
|
|
|
type GetPreKeysAnonymousRequest_GroupSendToken struct {
|
|
// A group send endorsement token for the targeted account.
|
|
GroupSendToken []byte `protobuf:"bytes,3,opt,name=group_send_token,json=groupSendToken,proto3,oneof"`
|
|
}
|
|
|
|
type GetPreKeysAnonymousRequest_UnrestrictedAccess struct {
|
|
// The destination account allows unrestricted unidentified access
|
|
UnrestrictedAccess *emptypb.Empty `protobuf:"bytes,4,opt,name=unrestricted_access,json=unrestrictedAccess,proto3,oneof"`
|
|
}
|
|
|
|
func (*GetPreKeysAnonymousRequest_UnidentifiedAccessKey) isGetPreKeysAnonymousRequest_Authorization() {
|
|
}
|
|
|
|
func (*GetPreKeysAnonymousRequest_GroupSendToken) isGetPreKeysAnonymousRequest_Authorization() {}
|
|
|
|
func (*GetPreKeysAnonymousRequest_UnrestrictedAccess) isGetPreKeysAnonymousRequest_Authorization() {}
|
|
|
|
type DevicePreKeyBundle struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The EC signed pre-key associated with the targeted
|
|
// account/device/identity.
|
|
EcSignedPreKey *common.EcSignedPreKey `protobuf:"bytes,1,opt,name=ec_signed_pre_key,json=ecSignedPreKey,proto3" json:"ec_signed_pre_key,omitempty"`
|
|
// A one-time EC pre-key for the targeted account/device/identity. May not
|
|
// be set if no one-time EC pre-keys are available.
|
|
EcOneTimePreKey *common.EcPreKey `protobuf:"bytes,2,opt,name=ec_one_time_pre_key,json=ecOneTimePreKey,proto3" json:"ec_one_time_pre_key,omitempty"`
|
|
// A one-time KEM pre-key (or a last-resort KEM pre-key) for the targeted
|
|
// account/device/identity.
|
|
KemOneTimePreKey *common.KemSignedPreKey `protobuf:"bytes,3,opt,name=kem_one_time_pre_key,json=kemOneTimePreKey,proto3" json:"kem_one_time_pre_key,omitempty"`
|
|
// The registration ID for the targeted account/device/identity.
|
|
RegistrationId uint32 `protobuf:"varint,4,opt,name=registration_id,json=registrationId,proto3" json:"registration_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DevicePreKeyBundle) Reset() {
|
|
*x = DevicePreKeyBundle{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DevicePreKeyBundle) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DevicePreKeyBundle) ProtoMessage() {}
|
|
|
|
func (x *DevicePreKeyBundle) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DevicePreKeyBundle.ProtoReflect.Descriptor instead.
|
|
func (*DevicePreKeyBundle) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *DevicePreKeyBundle) GetEcSignedPreKey() *common.EcSignedPreKey {
|
|
if x != nil {
|
|
return x.EcSignedPreKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DevicePreKeyBundle) GetEcOneTimePreKey() *common.EcPreKey {
|
|
if x != nil {
|
|
return x.EcOneTimePreKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DevicePreKeyBundle) GetKemOneTimePreKey() *common.KemSignedPreKey {
|
|
if x != nil {
|
|
return x.KemOneTimePreKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DevicePreKeyBundle) GetRegistrationId() uint32 {
|
|
if x != nil {
|
|
return x.RegistrationId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AccountPreKeyBundles struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The identity key associated with the targeted account/identity.
|
|
IdentityKey []byte `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"`
|
|
// A map of device IDs to pre-key "bundles" for the targeted account.
|
|
DevicePreKeys map[uint32]*DevicePreKeyBundle `protobuf:"bytes,2,rep,name=device_pre_keys,json=devicePreKeys,proto3" json:"device_pre_keys,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
// Whether the account has enabled sealed sender from anyone. Always false
|
|
// if the request was for a PNI, which does not allow any unidentified access.
|
|
UnrestrictedUnidentifiedAccess bool `protobuf:"varint,3,opt,name=unrestricted_unidentified_access,json=unrestrictedUnidentifiedAccess,proto3" json:"unrestricted_unidentified_access,omitempty"`
|
|
// If the target supports unidentified access and has an unidentified access
|
|
// key, a fingerprint of the target's UAK. This may be used to detect a change
|
|
// in the UAK that the sender has for the target before actually sending a message. Otherwise, empty.
|
|
UnidentifiedAccessKeyFingerprint []byte `protobuf:"bytes,4,opt,name=unidentified_access_key_fingerprint,json=unidentifiedAccessKeyFingerprint,proto3" json:"unidentified_access_key_fingerprint,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AccountPreKeyBundles) Reset() {
|
|
*x = AccountPreKeyBundles{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AccountPreKeyBundles) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AccountPreKeyBundles) ProtoMessage() {}
|
|
|
|
func (x *AccountPreKeyBundles) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AccountPreKeyBundles.ProtoReflect.Descriptor instead.
|
|
func (*AccountPreKeyBundles) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *AccountPreKeyBundles) GetIdentityKey() []byte {
|
|
if x != nil {
|
|
return x.IdentityKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AccountPreKeyBundles) GetDevicePreKeys() map[uint32]*DevicePreKeyBundle {
|
|
if x != nil {
|
|
return x.DevicePreKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AccountPreKeyBundles) GetUnrestrictedUnidentifiedAccess() bool {
|
|
if x != nil {
|
|
return x.UnrestrictedUnidentifiedAccess
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AccountPreKeyBundles) GetUnidentifiedAccessKeyFingerprint() []byte {
|
|
if x != nil {
|
|
return x.UnidentifiedAccessKeyFingerprint
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetPreKeysResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *GetPreKeysResponse_PreKeys
|
|
// *GetPreKeysResponse_TargetNotFound
|
|
Response isGetPreKeysResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPreKeysResponse) Reset() {
|
|
*x = GetPreKeysResponse{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPreKeysResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreKeysResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPreKeysResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreKeysResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPreKeysResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetPreKeysResponse) GetResponse() isGetPreKeysResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysResponse) GetPreKeys() *AccountPreKeyBundles {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetPreKeysResponse_PreKeys); ok {
|
|
return x.PreKeys
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysResponse) GetTargetNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetPreKeysResponse_TargetNotFound); ok {
|
|
return x.TargetNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isGetPreKeysResponse_Response interface {
|
|
isGetPreKeysResponse_Response()
|
|
}
|
|
|
|
type GetPreKeysResponse_PreKeys struct {
|
|
// The requested pre-key bundles
|
|
PreKeys *AccountPreKeyBundles `protobuf:"bytes,1,opt,name=pre_keys,json=preKeys,proto3,oneof"`
|
|
}
|
|
|
|
type GetPreKeysResponse_TargetNotFound struct {
|
|
// Either the target account was not found, no active device with the given
|
|
// ID (if specified) was found on the target account.
|
|
TargetNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=target_not_found,json=targetNotFound,proto3,oneof"`
|
|
}
|
|
|
|
func (*GetPreKeysResponse_PreKeys) isGetPreKeysResponse_Response() {}
|
|
|
|
func (*GetPreKeysResponse_TargetNotFound) isGetPreKeysResponse_Response() {}
|
|
|
|
type GetPreKeysAnonymousResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *GetPreKeysAnonymousResponse_PreKeys
|
|
// *GetPreKeysAnonymousResponse_TargetNotFound
|
|
// *GetPreKeysAnonymousResponse_FailedUnidentifiedAuthorization
|
|
Response isGetPreKeysAnonymousResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousResponse) Reset() {
|
|
*x = GetPreKeysAnonymousResponse{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreKeysAnonymousResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPreKeysAnonymousResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreKeysAnonymousResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPreKeysAnonymousResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousResponse) GetResponse() isGetPreKeysAnonymousResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousResponse) GetPreKeys() *AccountPreKeyBundles {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetPreKeysAnonymousResponse_PreKeys); ok {
|
|
return x.PreKeys
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousResponse) GetTargetNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetPreKeysAnonymousResponse_TargetNotFound); ok {
|
|
return x.TargetNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreKeysAnonymousResponse) GetFailedUnidentifiedAuthorization() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetPreKeysAnonymousResponse_FailedUnidentifiedAuthorization); ok {
|
|
return x.FailedUnidentifiedAuthorization
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isGetPreKeysAnonymousResponse_Response interface {
|
|
isGetPreKeysAnonymousResponse_Response()
|
|
}
|
|
|
|
type GetPreKeysAnonymousResponse_PreKeys struct {
|
|
// The requested pre-key bundles
|
|
PreKeys *AccountPreKeyBundles `protobuf:"bytes,1,opt,name=pre_keys,json=preKeys,proto3,oneof"`
|
|
}
|
|
|
|
type GetPreKeysAnonymousResponse_TargetNotFound struct {
|
|
// Either the target account was not found, no active device with the given
|
|
// ID (if specified) was found on the target account.
|
|
TargetNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=target_not_found,json=targetNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type GetPreKeysAnonymousResponse_FailedUnidentifiedAuthorization struct {
|
|
// The provided unidentified authorization credential was invalid
|
|
FailedUnidentifiedAuthorization *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,3,opt,name=failed_unidentified_authorization,json=failedUnidentifiedAuthorization,proto3,oneof"`
|
|
}
|
|
|
|
func (*GetPreKeysAnonymousResponse_PreKeys) isGetPreKeysAnonymousResponse_Response() {}
|
|
|
|
func (*GetPreKeysAnonymousResponse_TargetNotFound) isGetPreKeysAnonymousResponse_Response() {}
|
|
|
|
func (*GetPreKeysAnonymousResponse_FailedUnidentifiedAuthorization) isGetPreKeysAnonymousResponse_Response() {
|
|
}
|
|
|
|
type SetOneTimeEcPreKeysRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The identity type (i.e. ACI/PNI) with which the keys in this request are
|
|
// associated.
|
|
IdentityType common.IdentityType `protobuf:"varint,1,opt,name=identity_type,json=identityType,proto3,enum=org.signal.chat.common.IdentityType" json:"identity_type,omitempty"`
|
|
// The unsigned EC pre-keys to be stored.
|
|
PreKeys []*common.EcPreKey `protobuf:"bytes,2,rep,name=pre_keys,json=preKeys,proto3" json:"pre_keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetOneTimeEcPreKeysRequest) Reset() {
|
|
*x = SetOneTimeEcPreKeysRequest{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetOneTimeEcPreKeysRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetOneTimeEcPreKeysRequest) ProtoMessage() {}
|
|
|
|
func (x *SetOneTimeEcPreKeysRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetOneTimeEcPreKeysRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetOneTimeEcPreKeysRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *SetOneTimeEcPreKeysRequest) GetIdentityType() common.IdentityType {
|
|
if x != nil {
|
|
return x.IdentityType
|
|
}
|
|
return common.IdentityType(0)
|
|
}
|
|
|
|
func (x *SetOneTimeEcPreKeysRequest) GetPreKeys() []*common.EcPreKey {
|
|
if x != nil {
|
|
return x.PreKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetOneTimeKemSignedPreKeysRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The identity type (i.e. ACI/PNI) with which the keys in this request are
|
|
// associated.
|
|
IdentityType common.IdentityType `protobuf:"varint,1,opt,name=identity_type,json=identityType,proto3,enum=org.signal.chat.common.IdentityType" json:"identity_type,omitempty"`
|
|
// The KEM pre-keys to be stored.
|
|
PreKeys []*common.KemSignedPreKey `protobuf:"bytes,2,rep,name=pre_keys,json=preKeys,proto3" json:"pre_keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetOneTimeKemSignedPreKeysRequest) Reset() {
|
|
*x = SetOneTimeKemSignedPreKeysRequest{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetOneTimeKemSignedPreKeysRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetOneTimeKemSignedPreKeysRequest) ProtoMessage() {}
|
|
|
|
func (x *SetOneTimeKemSignedPreKeysRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetOneTimeKemSignedPreKeysRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetOneTimeKemSignedPreKeysRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *SetOneTimeKemSignedPreKeysRequest) GetIdentityType() common.IdentityType {
|
|
if x != nil {
|
|
return x.IdentityType
|
|
}
|
|
return common.IdentityType(0)
|
|
}
|
|
|
|
func (x *SetOneTimeKemSignedPreKeysRequest) GetPreKeys() []*common.KemSignedPreKey {
|
|
if x != nil {
|
|
return x.PreKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetEcSignedPreKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The identity type (i.e. ACI/PNI) with which this key is associated.
|
|
IdentityType common.IdentityType `protobuf:"varint,1,opt,name=identity_type,json=identityType,proto3,enum=org.signal.chat.common.IdentityType" json:"identity_type,omitempty"`
|
|
// The signed EC pre-key itself.
|
|
SignedPreKey *common.EcSignedPreKey `protobuf:"bytes,2,opt,name=signed_pre_key,json=signedPreKey,proto3" json:"signed_pre_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetEcSignedPreKeyRequest) Reset() {
|
|
*x = SetEcSignedPreKeyRequest{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetEcSignedPreKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetEcSignedPreKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *SetEcSignedPreKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetEcSignedPreKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetEcSignedPreKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *SetEcSignedPreKeyRequest) GetIdentityType() common.IdentityType {
|
|
if x != nil {
|
|
return x.IdentityType
|
|
}
|
|
return common.IdentityType(0)
|
|
}
|
|
|
|
func (x *SetEcSignedPreKeyRequest) GetSignedPreKey() *common.EcSignedPreKey {
|
|
if x != nil {
|
|
return x.SignedPreKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetKemLastResortPreKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The identity type (i.e. ACI/PNI) with which this key is associated.
|
|
IdentityType common.IdentityType `protobuf:"varint,1,opt,name=identity_type,json=identityType,proto3,enum=org.signal.chat.common.IdentityType" json:"identity_type,omitempty"`
|
|
// The signed KEM pre-key itself.
|
|
SignedPreKey *common.KemSignedPreKey `protobuf:"bytes,2,opt,name=signed_pre_key,json=signedPreKey,proto3" json:"signed_pre_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetKemLastResortPreKeyRequest) Reset() {
|
|
*x = SetKemLastResortPreKeyRequest{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetKemLastResortPreKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetKemLastResortPreKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *SetKemLastResortPreKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetKemLastResortPreKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetKemLastResortPreKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *SetKemLastResortPreKeyRequest) GetIdentityType() common.IdentityType {
|
|
if x != nil {
|
|
return x.IdentityType
|
|
}
|
|
return common.IdentityType(0)
|
|
}
|
|
|
|
func (x *SetKemLastResortPreKeyRequest) GetSignedPreKey() *common.KemSignedPreKey {
|
|
if x != nil {
|
|
return x.SignedPreKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetPreKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetPreKeyResponse) Reset() {
|
|
*x = SetPreKeyResponse{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetPreKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetPreKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *SetPreKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetPreKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*SetPreKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
type CheckIdentityKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The service identifier of the account for which we want to check the associated identity key fingerprint.
|
|
TargetIdentifier *common.ServiceIdentifier `protobuf:"bytes,1,opt,name=target_identifier,json=targetIdentifier,proto3" json:"target_identifier,omitempty"`
|
|
// The most significant 4 bytes of the SHA-256 hash of the identity key associated with the target account/identity type.
|
|
Fingerprint []byte `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckIdentityKeyRequest) Reset() {
|
|
*x = CheckIdentityKeyRequest{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckIdentityKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckIdentityKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *CheckIdentityKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CheckIdentityKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*CheckIdentityKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *CheckIdentityKeyRequest) GetTargetIdentifier() *common.ServiceIdentifier {
|
|
if x != nil {
|
|
return x.TargetIdentifier
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CheckIdentityKeyRequest) GetFingerprint() []byte {
|
|
if x != nil {
|
|
return x.Fingerprint
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CheckIdentityKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The service identifier of the account for which there is a mismatch between the client and server identity key fingerprints.
|
|
TargetIdentifier *common.ServiceIdentifier `protobuf:"bytes,1,opt,name=target_identifier,json=targetIdentifier,proto3" json:"target_identifier,omitempty"`
|
|
// The identity key that is stored by the server for the target account/identity type.
|
|
IdentityKey []byte `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckIdentityKeyResponse) Reset() {
|
|
*x = CheckIdentityKeyResponse{}
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckIdentityKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckIdentityKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *CheckIdentityKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_keys_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CheckIdentityKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*CheckIdentityKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_keys_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *CheckIdentityKeyResponse) GetTargetIdentifier() *common.ServiceIdentifier {
|
|
if x != nil {
|
|
return x.TargetIdentifier
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CheckIdentityKeyResponse) GetIdentityKey() []byte {
|
|
if x != nil {
|
|
return x.IdentityKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_org_signal_chat_keys_proto protoreflect.FileDescriptor
|
|
|
|
const file_org_signal_chat_keys_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1aorg/signal/chat/keys.proto\x12\x14org.signal.chat.keys\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1corg/signal/chat/common.proto\x1a\x1corg/signal/chat/errors.proto\x1a\x1dorg/signal/chat/require.proto\x1a\x19org/signal/chat/tag.proto\"\x17\n" +
|
|
"\x15GetPreKeyCountRequest\"\xdc\x01\n" +
|
|
"\x16GetPreKeyCountResponse\x12.\n" +
|
|
"\x14aci_ec_pre_key_count\x18\x01 \x01(\rR\x10aciEcPreKeyCount\x120\n" +
|
|
"\x15aci_kem_pre_key_count\x18\x02 \x01(\rR\x11aciKemPreKeyCount\x12.\n" +
|
|
"\x14pni_ec_pre_key_count\x18\x03 \x01(\rR\x10pniEcPreKeyCount\x120\n" +
|
|
"\x15pni_kem_pre_key_count\x18\x04 \x01(\rR\x11pniKemPreKeyCount\"\x9b\x01\n" +
|
|
"\x11GetPreKeysRequest\x12V\n" +
|
|
"\x11target_identifier\x18\x01 \x01(\v2).org.signal.chat.common.ServiceIdentifierR\x10targetIdentifier\x12 \n" +
|
|
"\tdevice_id\x18\x02 \x01(\rH\x00R\bdeviceId\x88\x01\x01B\f\n" +
|
|
"\n" +
|
|
"_device_id\"\xa1\x02\n" +
|
|
"\x1aGetPreKeysAnonymousRequest\x12A\n" +
|
|
"\arequest\x18\x01 \x01(\v2'.org.signal.chat.keys.GetPreKeysRequestR\arequest\x128\n" +
|
|
"\x17unidentified_access_key\x18\x02 \x01(\fH\x00R\x15unidentifiedAccessKey\x12*\n" +
|
|
"\x10group_send_token\x18\x03 \x01(\fH\x00R\x0egroupSendToken\x12I\n" +
|
|
"\x13unrestricted_access\x18\x04 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x12unrestrictedAccessB\x0f\n" +
|
|
"\rauthorization\"\xb9\x02\n" +
|
|
"\x12DevicePreKeyBundle\x12Q\n" +
|
|
"\x11ec_signed_pre_key\x18\x01 \x01(\v2&.org.signal.chat.common.EcSignedPreKeyR\x0eecSignedPreKey\x12N\n" +
|
|
"\x13ec_one_time_pre_key\x18\x02 \x01(\v2 .org.signal.chat.common.EcPreKeyR\x0fecOneTimePreKey\x12W\n" +
|
|
"\x14kem_one_time_pre_key\x18\x03 \x01(\v2'.org.signal.chat.common.KemSignedPreKeyR\x10kemOneTimePreKey\x12'\n" +
|
|
"\x0fregistration_id\x18\x04 \x01(\rR\x0eregistrationId\"\xa5\x03\n" +
|
|
"\x14AccountPreKeyBundles\x12!\n" +
|
|
"\fidentity_key\x18\x01 \x01(\fR\videntityKey\x12e\n" +
|
|
"\x0fdevice_pre_keys\x18\x02 \x03(\v2=.org.signal.chat.keys.AccountPreKeyBundles.DevicePreKeysEntryR\rdevicePreKeys\x12H\n" +
|
|
" unrestricted_unidentified_access\x18\x03 \x01(\bR\x1eunrestrictedUnidentifiedAccess\x12M\n" +
|
|
"#unidentified_access_key_fingerprint\x18\x04 \x01(\fR unidentifiedAccessKeyFingerprint\x1aj\n" +
|
|
"\x12DevicePreKeysEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\rR\x03key\x12>\n" +
|
|
"\x05value\x18\x02 \x01(\v2(.org.signal.chat.keys.DevicePreKeyBundleR\x05value:\x028\x01\"\xc6\x01\n" +
|
|
"\x12GetPreKeysResponse\x12G\n" +
|
|
"\bpre_keys\x18\x01 \x01(\v2*.org.signal.chat.keys.AccountPreKeyBundlesH\x00R\apreKeys\x12[\n" +
|
|
"\x10target_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\r\xc2\xd5\"\tnot_foundH\x00R\x0etargetNotFoundB\n" +
|
|
"\n" +
|
|
"\bresponse\"\xfe\x02\n" +
|
|
"\x1bGetPreKeysAnonymousResponse\x12G\n" +
|
|
"\bpre_keys\x18\x01 \x01(\v2*.org.signal.chat.keys.AccountPreKeyBundlesH\x00R\apreKeys\x12[\n" +
|
|
"\x10target_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\r\xc2\xd5\"\tnot_foundH\x00R\x0etargetNotFound\x12\xac\x01\n" +
|
|
"!failed_unidentified_authorization\x18\x03 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB%\xc2\xd5\"!failed_unidentified_authorizationH\x00R\x1ffailedUnidentifiedAuthorizationB\n" +
|
|
"\n" +
|
|
"\bresponse\"\xae\x01\n" +
|
|
"\x1aSetOneTimeEcPreKeysRequest\x12I\n" +
|
|
"\ridentity_type\x18\x01 \x01(\x0e2$.org.signal.chat.common.IdentityTypeR\fidentityType\x12E\n" +
|
|
"\bpre_keys\x18\x02 \x03(\v2 .org.signal.chat.common.EcPreKeyB\b\x9a\x97\"\x04\b\x01\x10dR\apreKeys\"\xbc\x01\n" +
|
|
"!SetOneTimeKemSignedPreKeysRequest\x12I\n" +
|
|
"\ridentity_type\x18\x01 \x01(\x0e2$.org.signal.chat.common.IdentityTypeR\fidentityType\x12L\n" +
|
|
"\bpre_keys\x18\x02 \x03(\v2'.org.signal.chat.common.KemSignedPreKeyB\b\x9a\x97\"\x04\b\x01\x10dR\apreKeys\"\xb9\x01\n" +
|
|
"\x18SetEcSignedPreKeyRequest\x12I\n" +
|
|
"\ridentity_type\x18\x01 \x01(\x0e2$.org.signal.chat.common.IdentityTypeR\fidentityType\x12R\n" +
|
|
"\x0esigned_pre_key\x18\x02 \x01(\v2&.org.signal.chat.common.EcSignedPreKeyB\x04\xb8\x97\"\x01R\fsignedPreKey\"\xbf\x01\n" +
|
|
"\x1dSetKemLastResortPreKeyRequest\x12I\n" +
|
|
"\ridentity_type\x18\x01 \x01(\x0e2$.org.signal.chat.common.IdentityTypeR\fidentityType\x12S\n" +
|
|
"\x0esigned_pre_key\x18\x02 \x01(\v2'.org.signal.chat.common.KemSignedPreKeyB\x04\xb8\x97\"\x01R\fsignedPreKey\"\x13\n" +
|
|
"\x11SetPreKeyResponse\"\x9a\x01\n" +
|
|
"\x17CheckIdentityKeyRequest\x12V\n" +
|
|
"\x11target_identifier\x18\x01 \x01(\v2).org.signal.chat.common.ServiceIdentifierR\x10targetIdentifier\x12'\n" +
|
|
"\vfingerprint\x18\x02 \x01(\fB\x05\xa2\x97\"\x01\x04R\vfingerprint\"\x95\x01\n" +
|
|
"\x18CheckIdentityKeyResponse\x12V\n" +
|
|
"\x11target_identifier\x18\x01 \x01(\v2).org.signal.chat.common.ServiceIdentifierR\x10targetIdentifier\x12!\n" +
|
|
"\fidentity_key\x18\x02 \x01(\fR\videntityKey2\xbf\x05\n" +
|
|
"\x04Keys\x12m\n" +
|
|
"\x0eGetPreKeyCount\x12+.org.signal.chat.keys.GetPreKeyCountRequest\x1a,.org.signal.chat.keys.GetPreKeyCountResponse\"\x00\x12a\n" +
|
|
"\n" +
|
|
"GetPreKeys\x12'.org.signal.chat.keys.GetPreKeysRequest\x1a(.org.signal.chat.keys.GetPreKeysResponse\"\x00\x12r\n" +
|
|
"\x13SetOneTimeEcPreKeys\x120.org.signal.chat.keys.SetOneTimeEcPreKeysRequest\x1a'.org.signal.chat.keys.SetPreKeyResponse\"\x00\x12\x80\x01\n" +
|
|
"\x1aSetOneTimeKemSignedPreKeys\x127.org.signal.chat.keys.SetOneTimeKemSignedPreKeysRequest\x1a'.org.signal.chat.keys.SetPreKeyResponse\"\x00\x12n\n" +
|
|
"\x11SetEcSignedPreKey\x12..org.signal.chat.keys.SetEcSignedPreKeyRequest\x1a'.org.signal.chat.keys.SetPreKeyResponse\"\x00\x12x\n" +
|
|
"\x16SetKemLastResortPreKey\x123.org.signal.chat.keys.SetKemLastResortPreKeyRequest\x1a'.org.signal.chat.keys.SetPreKeyResponse\"\x00\x1a\x04\xc8\xd5\"\x012\x84\x02\n" +
|
|
"\rKeysAnonymous\x12s\n" +
|
|
"\n" +
|
|
"GetPreKeys\x120.org.signal.chat.keys.GetPreKeysAnonymousRequest\x1a1.org.signal.chat.keys.GetPreKeysAnonymousResponse\"\x00\x12x\n" +
|
|
"\x11CheckIdentityKeys\x12-.org.signal.chat.keys.CheckIdentityKeyRequest\x1a..org.signal.chat.keys.CheckIdentityKeyResponse\"\x00(\x010\x01\x1a\x04\xc8\xd5\"\x02B\x02P\x01b\x06proto3"
|
|
|
|
var (
|
|
file_org_signal_chat_keys_proto_rawDescOnce sync.Once
|
|
file_org_signal_chat_keys_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_org_signal_chat_keys_proto_rawDescGZIP() []byte {
|
|
file_org_signal_chat_keys_proto_rawDescOnce.Do(func() {
|
|
file_org_signal_chat_keys_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_org_signal_chat_keys_proto_rawDesc), len(file_org_signal_chat_keys_proto_rawDesc)))
|
|
})
|
|
return file_org_signal_chat_keys_proto_rawDescData
|
|
}
|
|
|
|
var file_org_signal_chat_keys_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_org_signal_chat_keys_proto_goTypes = []any{
|
|
(*GetPreKeyCountRequest)(nil), // 0: org.signal.chat.keys.GetPreKeyCountRequest
|
|
(*GetPreKeyCountResponse)(nil), // 1: org.signal.chat.keys.GetPreKeyCountResponse
|
|
(*GetPreKeysRequest)(nil), // 2: org.signal.chat.keys.GetPreKeysRequest
|
|
(*GetPreKeysAnonymousRequest)(nil), // 3: org.signal.chat.keys.GetPreKeysAnonymousRequest
|
|
(*DevicePreKeyBundle)(nil), // 4: org.signal.chat.keys.DevicePreKeyBundle
|
|
(*AccountPreKeyBundles)(nil), // 5: org.signal.chat.keys.AccountPreKeyBundles
|
|
(*GetPreKeysResponse)(nil), // 6: org.signal.chat.keys.GetPreKeysResponse
|
|
(*GetPreKeysAnonymousResponse)(nil), // 7: org.signal.chat.keys.GetPreKeysAnonymousResponse
|
|
(*SetOneTimeEcPreKeysRequest)(nil), // 8: org.signal.chat.keys.SetOneTimeEcPreKeysRequest
|
|
(*SetOneTimeKemSignedPreKeysRequest)(nil), // 9: org.signal.chat.keys.SetOneTimeKemSignedPreKeysRequest
|
|
(*SetEcSignedPreKeyRequest)(nil), // 10: org.signal.chat.keys.SetEcSignedPreKeyRequest
|
|
(*SetKemLastResortPreKeyRequest)(nil), // 11: org.signal.chat.keys.SetKemLastResortPreKeyRequest
|
|
(*SetPreKeyResponse)(nil), // 12: org.signal.chat.keys.SetPreKeyResponse
|
|
(*CheckIdentityKeyRequest)(nil), // 13: org.signal.chat.keys.CheckIdentityKeyRequest
|
|
(*CheckIdentityKeyResponse)(nil), // 14: org.signal.chat.keys.CheckIdentityKeyResponse
|
|
nil, // 15: org.signal.chat.keys.AccountPreKeyBundles.DevicePreKeysEntry
|
|
(*common.ServiceIdentifier)(nil), // 16: org.signal.chat.common.ServiceIdentifier
|
|
(*emptypb.Empty)(nil), // 17: google.protobuf.Empty
|
|
(*common.EcSignedPreKey)(nil), // 18: org.signal.chat.common.EcSignedPreKey
|
|
(*common.EcPreKey)(nil), // 19: org.signal.chat.common.EcPreKey
|
|
(*common.KemSignedPreKey)(nil), // 20: org.signal.chat.common.KemSignedPreKey
|
|
(*errors.NotFound)(nil), // 21: org.signal.chat.errors.NotFound
|
|
(*errors.FailedUnidentifiedAuthorization)(nil), // 22: org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
(common.IdentityType)(0), // 23: org.signal.chat.common.IdentityType
|
|
}
|
|
var file_org_signal_chat_keys_proto_depIdxs = []int32{
|
|
16, // 0: org.signal.chat.keys.GetPreKeysRequest.target_identifier:type_name -> org.signal.chat.common.ServiceIdentifier
|
|
2, // 1: org.signal.chat.keys.GetPreKeysAnonymousRequest.request:type_name -> org.signal.chat.keys.GetPreKeysRequest
|
|
17, // 2: org.signal.chat.keys.GetPreKeysAnonymousRequest.unrestricted_access:type_name -> google.protobuf.Empty
|
|
18, // 3: org.signal.chat.keys.DevicePreKeyBundle.ec_signed_pre_key:type_name -> org.signal.chat.common.EcSignedPreKey
|
|
19, // 4: org.signal.chat.keys.DevicePreKeyBundle.ec_one_time_pre_key:type_name -> org.signal.chat.common.EcPreKey
|
|
20, // 5: org.signal.chat.keys.DevicePreKeyBundle.kem_one_time_pre_key:type_name -> org.signal.chat.common.KemSignedPreKey
|
|
15, // 6: org.signal.chat.keys.AccountPreKeyBundles.device_pre_keys:type_name -> org.signal.chat.keys.AccountPreKeyBundles.DevicePreKeysEntry
|
|
5, // 7: org.signal.chat.keys.GetPreKeysResponse.pre_keys:type_name -> org.signal.chat.keys.AccountPreKeyBundles
|
|
21, // 8: org.signal.chat.keys.GetPreKeysResponse.target_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
5, // 9: org.signal.chat.keys.GetPreKeysAnonymousResponse.pre_keys:type_name -> org.signal.chat.keys.AccountPreKeyBundles
|
|
21, // 10: org.signal.chat.keys.GetPreKeysAnonymousResponse.target_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
22, // 11: org.signal.chat.keys.GetPreKeysAnonymousResponse.failed_unidentified_authorization:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
23, // 12: org.signal.chat.keys.SetOneTimeEcPreKeysRequest.identity_type:type_name -> org.signal.chat.common.IdentityType
|
|
19, // 13: org.signal.chat.keys.SetOneTimeEcPreKeysRequest.pre_keys:type_name -> org.signal.chat.common.EcPreKey
|
|
23, // 14: org.signal.chat.keys.SetOneTimeKemSignedPreKeysRequest.identity_type:type_name -> org.signal.chat.common.IdentityType
|
|
20, // 15: org.signal.chat.keys.SetOneTimeKemSignedPreKeysRequest.pre_keys:type_name -> org.signal.chat.common.KemSignedPreKey
|
|
23, // 16: org.signal.chat.keys.SetEcSignedPreKeyRequest.identity_type:type_name -> org.signal.chat.common.IdentityType
|
|
18, // 17: org.signal.chat.keys.SetEcSignedPreKeyRequest.signed_pre_key:type_name -> org.signal.chat.common.EcSignedPreKey
|
|
23, // 18: org.signal.chat.keys.SetKemLastResortPreKeyRequest.identity_type:type_name -> org.signal.chat.common.IdentityType
|
|
20, // 19: org.signal.chat.keys.SetKemLastResortPreKeyRequest.signed_pre_key:type_name -> org.signal.chat.common.KemSignedPreKey
|
|
16, // 20: org.signal.chat.keys.CheckIdentityKeyRequest.target_identifier:type_name -> org.signal.chat.common.ServiceIdentifier
|
|
16, // 21: org.signal.chat.keys.CheckIdentityKeyResponse.target_identifier:type_name -> org.signal.chat.common.ServiceIdentifier
|
|
4, // 22: org.signal.chat.keys.AccountPreKeyBundles.DevicePreKeysEntry.value:type_name -> org.signal.chat.keys.DevicePreKeyBundle
|
|
0, // 23: org.signal.chat.keys.Keys.GetPreKeyCount:input_type -> org.signal.chat.keys.GetPreKeyCountRequest
|
|
2, // 24: org.signal.chat.keys.Keys.GetPreKeys:input_type -> org.signal.chat.keys.GetPreKeysRequest
|
|
8, // 25: org.signal.chat.keys.Keys.SetOneTimeEcPreKeys:input_type -> org.signal.chat.keys.SetOneTimeEcPreKeysRequest
|
|
9, // 26: org.signal.chat.keys.Keys.SetOneTimeKemSignedPreKeys:input_type -> org.signal.chat.keys.SetOneTimeKemSignedPreKeysRequest
|
|
10, // 27: org.signal.chat.keys.Keys.SetEcSignedPreKey:input_type -> org.signal.chat.keys.SetEcSignedPreKeyRequest
|
|
11, // 28: org.signal.chat.keys.Keys.SetKemLastResortPreKey:input_type -> org.signal.chat.keys.SetKemLastResortPreKeyRequest
|
|
3, // 29: org.signal.chat.keys.KeysAnonymous.GetPreKeys:input_type -> org.signal.chat.keys.GetPreKeysAnonymousRequest
|
|
13, // 30: org.signal.chat.keys.KeysAnonymous.CheckIdentityKeys:input_type -> org.signal.chat.keys.CheckIdentityKeyRequest
|
|
1, // 31: org.signal.chat.keys.Keys.GetPreKeyCount:output_type -> org.signal.chat.keys.GetPreKeyCountResponse
|
|
6, // 32: org.signal.chat.keys.Keys.GetPreKeys:output_type -> org.signal.chat.keys.GetPreKeysResponse
|
|
12, // 33: org.signal.chat.keys.Keys.SetOneTimeEcPreKeys:output_type -> org.signal.chat.keys.SetPreKeyResponse
|
|
12, // 34: org.signal.chat.keys.Keys.SetOneTimeKemSignedPreKeys:output_type -> org.signal.chat.keys.SetPreKeyResponse
|
|
12, // 35: org.signal.chat.keys.Keys.SetEcSignedPreKey:output_type -> org.signal.chat.keys.SetPreKeyResponse
|
|
12, // 36: org.signal.chat.keys.Keys.SetKemLastResortPreKey:output_type -> org.signal.chat.keys.SetPreKeyResponse
|
|
7, // 37: org.signal.chat.keys.KeysAnonymous.GetPreKeys:output_type -> org.signal.chat.keys.GetPreKeysAnonymousResponse
|
|
14, // 38: org.signal.chat.keys.KeysAnonymous.CheckIdentityKeys:output_type -> org.signal.chat.keys.CheckIdentityKeyResponse
|
|
31, // [31:39] is the sub-list for method output_type
|
|
23, // [23:31] is the sub-list for method input_type
|
|
23, // [23:23] is the sub-list for extension type_name
|
|
23, // [23:23] is the sub-list for extension extendee
|
|
0, // [0:23] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_org_signal_chat_keys_proto_init() }
|
|
func file_org_signal_chat_keys_proto_init() {
|
|
if File_org_signal_chat_keys_proto != nil {
|
|
return
|
|
}
|
|
file_org_signal_chat_keys_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_org_signal_chat_keys_proto_msgTypes[3].OneofWrappers = []any{
|
|
(*GetPreKeysAnonymousRequest_UnidentifiedAccessKey)(nil),
|
|
(*GetPreKeysAnonymousRequest_GroupSendToken)(nil),
|
|
(*GetPreKeysAnonymousRequest_UnrestrictedAccess)(nil),
|
|
}
|
|
file_org_signal_chat_keys_proto_msgTypes[6].OneofWrappers = []any{
|
|
(*GetPreKeysResponse_PreKeys)(nil),
|
|
(*GetPreKeysResponse_TargetNotFound)(nil),
|
|
}
|
|
file_org_signal_chat_keys_proto_msgTypes[7].OneofWrappers = []any{
|
|
(*GetPreKeysAnonymousResponse_PreKeys)(nil),
|
|
(*GetPreKeysAnonymousResponse_TargetNotFound)(nil),
|
|
(*GetPreKeysAnonymousResponse_FailedUnidentifiedAuthorization)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_org_signal_chat_keys_proto_rawDesc), len(file_org_signal_chat_keys_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 16,
|
|
NumExtensions: 0,
|
|
NumServices: 2,
|
|
},
|
|
GoTypes: file_org_signal_chat_keys_proto_goTypes,
|
|
DependencyIndexes: file_org_signal_chat_keys_proto_depIdxs,
|
|
MessageInfos: file_org_signal_chat_keys_proto_msgTypes,
|
|
}.Build()
|
|
File_org_signal_chat_keys_proto = out.File
|
|
file_org_signal_chat_keys_proto_goTypes = nil
|
|
file_org_signal_chat_keys_proto_depIdxs = nil
|
|
}
|