// // 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/profile.proto package profile 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 CredentialType int32 const ( CredentialType_CREDENTIAL_TYPE_UNSPECIFIED CredentialType = 0 CredentialType_CREDENTIAL_TYPE_EXPIRING_PROFILE_KEY CredentialType = 1 ) // Enum value maps for CredentialType. var ( CredentialType_name = map[int32]string{ 0: "CREDENTIAL_TYPE_UNSPECIFIED", 1: "CREDENTIAL_TYPE_EXPIRING_PROFILE_KEY", } CredentialType_value = map[string]int32{ "CREDENTIAL_TYPE_UNSPECIFIED": 0, "CREDENTIAL_TYPE_EXPIRING_PROFILE_KEY": 1, } ) func (x CredentialType) Enum() *CredentialType { p := new(CredentialType) *p = x return p } func (x CredentialType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (CredentialType) Descriptor() protoreflect.EnumDescriptor { return file_org_signal_chat_profile_proto_enumTypes[0].Descriptor() } func (CredentialType) Type() protoreflect.EnumType { return &file_org_signal_chat_profile_proto_enumTypes[0] } func (x CredentialType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use CredentialType.Descriptor instead. func (CredentialType) EnumDescriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{0} } type SetProfileV1Request_AvatarChange int32 const ( SetProfileV1Request_AVATAR_CHANGE_UNCHANGED SetProfileV1Request_AvatarChange = 0 SetProfileV1Request_AVATAR_CHANGE_CLEAR SetProfileV1Request_AvatarChange = 1 SetProfileV1Request_AVATAR_CHANGE_UPDATE SetProfileV1Request_AvatarChange = 2 ) // Enum value maps for SetProfileV1Request_AvatarChange. var ( SetProfileV1Request_AvatarChange_name = map[int32]string{ 0: "AVATAR_CHANGE_UNCHANGED", 1: "AVATAR_CHANGE_CLEAR", 2: "AVATAR_CHANGE_UPDATE", } SetProfileV1Request_AvatarChange_value = map[string]int32{ "AVATAR_CHANGE_UNCHANGED": 0, "AVATAR_CHANGE_CLEAR": 1, "AVATAR_CHANGE_UPDATE": 2, } ) func (x SetProfileV1Request_AvatarChange) Enum() *SetProfileV1Request_AvatarChange { p := new(SetProfileV1Request_AvatarChange) *p = x return p } func (x SetProfileV1Request_AvatarChange) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (SetProfileV1Request_AvatarChange) Descriptor() protoreflect.EnumDescriptor { return file_org_signal_chat_profile_proto_enumTypes[1].Descriptor() } func (SetProfileV1Request_AvatarChange) Type() protoreflect.EnumType { return &file_org_signal_chat_profile_proto_enumTypes[1] } func (x SetProfileV1Request_AvatarChange) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use SetProfileV1Request_AvatarChange.Descriptor instead. func (SetProfileV1Request_AvatarChange) EnumDescriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{0, 0} } type SetProfileV1Request struct { state protoimpl.MessageState `protogen:"open.v1"` // The ciphertext of a name that users must set on the profile. Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // An enum to indicate what change, if any, is made to the avatar with this request. AvatarChange SetProfileV1Request_AvatarChange `protobuf:"varint,2,opt,name=avatar_change,json=avatarChange,proto3,enum=org.signal.chat.profile.SetProfileV1Request_AvatarChange" json:"avatar_change,omitempty"` // The ciphertext of an emoji that users can set on their profile. AboutEmoji []byte `protobuf:"bytes,3,opt,name=about_emoji,json=aboutEmoji,proto3" json:"about_emoji,omitempty"` // The ciphertext of a description that users can set on their profile. About []byte `protobuf:"bytes,4,opt,name=about,proto3" json:"about,omitempty"` // The ciphertext of the phone-number sharing setting on the profile. 29-byte encrypted boolean. PhoneNumberSharing []byte `protobuf:"bytes,6,opt,name=phone_number_sharing,json=phoneNumberSharing,proto3" json:"phone_number_sharing,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetProfileV1Request) Reset() { *x = SetProfileV1Request{} mi := &file_org_signal_chat_profile_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetProfileV1Request) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetProfileV1Request) ProtoMessage() {} func (x *SetProfileV1Request) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 SetProfileV1Request.ProtoReflect.Descriptor instead. func (*SetProfileV1Request) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{0} } func (x *SetProfileV1Request) GetName() []byte { if x != nil { return x.Name } return nil } func (x *SetProfileV1Request) GetAvatarChange() SetProfileV1Request_AvatarChange { if x != nil { return x.AvatarChange } return SetProfileV1Request_AVATAR_CHANGE_UNCHANGED } func (x *SetProfileV1Request) GetAboutEmoji() []byte { if x != nil { return x.AboutEmoji } return nil } func (x *SetProfileV1Request) GetAbout() []byte { if x != nil { return x.About } return nil } func (x *SetProfileV1Request) GetPhoneNumberSharing() []byte { if x != nil { return x.PhoneNumberSharing } return nil } type SetProfileRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // The profile version. Required. Version []byte `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // The ciphertext of a serialized Profile protobuf. Required. // 937 max length = 909 plaintext serialization + 28 bytes encryption overhead Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // The SHA-256 hash of the Profile ciphertext being replaced. // This is used an optimistic lock against concurrent changes. // // Optional, if this is the initial request to create a version. ExpectedCurrentDataHash []byte `protobuf:"bytes,3,opt,name=expected_current_data_hash,json=expectedCurrentDataHash,proto3" json:"expected_current_data_hash,omitempty"` // The current profile version being updated. // This is used as an optimistic lock against concurrent changes. // // Optional, if there is no current profile version for the account. ExpectedCurrentVersion []byte `protobuf:"bytes,4,opt,name=expected_current_version,json=expectedCurrentVersion,proto3" json:"expected_current_version,omitempty"` // The ciphertext of the MobileCoin wallet ID on the profile. PaymentAddress []byte `protobuf:"bytes,5,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"` // A list of badge IDs associated with the profile. BadgeIds []string `protobuf:"bytes,6,rep,name=badge_ids,json=badgeIds,proto3" json:"badge_ids,omitempty"` // The profile key commitment. Used to issue a profile key credential response. // // Required during the v1 -> v2 migration period. Afterwards will be optional, if this is an update to an existing version. Commitment []byte `protobuf:"bytes,7,opt,name=commitment,proto3" json:"commitment,omitempty"` // An embedded v1 request. Required during the v1 -> v2 migration period. // // Because this is a temporary field during the migration, it has the highest // field number without serialization overhead. This is purely aesthetic. V1Request *SetProfileV1Request `protobuf:"bytes,15,opt,name=v1Request,proto3" json:"v1Request,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetProfileRequest) Reset() { *x = SetProfileRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetProfileRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetProfileRequest) ProtoMessage() {} func (x *SetProfileRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 SetProfileRequest.ProtoReflect.Descriptor instead. func (*SetProfileRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{1} } func (x *SetProfileRequest) GetVersion() []byte { if x != nil { return x.Version } return nil } func (x *SetProfileRequest) GetData() []byte { if x != nil { return x.Data } return nil } func (x *SetProfileRequest) GetExpectedCurrentDataHash() []byte { if x != nil { return x.ExpectedCurrentDataHash } return nil } func (x *SetProfileRequest) GetExpectedCurrentVersion() []byte { if x != nil { return x.ExpectedCurrentVersion } return nil } func (x *SetProfileRequest) GetPaymentAddress() []byte { if x != nil { return x.PaymentAddress } return nil } func (x *SetProfileRequest) GetBadgeIds() []string { if x != nil { return x.BadgeIds } return nil } func (x *SetProfileRequest) GetCommitment() []byte { if x != nil { return x.Commitment } return nil } func (x *SetProfileRequest) GetV1Request() *SetProfileV1Request { if x != nil { return x.V1Request } return nil } // Indicates that the account is not permitted to set a payment address, // due to a disallowed country prefix on the account's phone number. type PaymentsForbiddenInRegion struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PaymentsForbiddenInRegion) Reset() { *x = PaymentsForbiddenInRegion{} mi := &file_org_signal_chat_profile_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PaymentsForbiddenInRegion) String() string { return protoimpl.X.MessageStringOf(x) } func (*PaymentsForbiddenInRegion) ProtoMessage() {} func (x *PaymentsForbiddenInRegion) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 PaymentsForbiddenInRegion.ProtoReflect.Descriptor instead. func (*PaymentsForbiddenInRegion) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{2} } // Indicates that the account does not have the Profiles v2 capability, which // is required to call Profiles.SetProfile type ProfilesV2CapabilityRequired struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ProfilesV2CapabilityRequired) Reset() { *x = ProfilesV2CapabilityRequired{} mi := &file_org_signal_chat_profile_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ProfilesV2CapabilityRequired) String() string { return protoimpl.X.MessageStringOf(x) } func (*ProfilesV2CapabilityRequired) ProtoMessage() {} func (x *ProfilesV2CapabilityRequired) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 ProfilesV2CapabilityRequired.ProtoReflect.Descriptor instead. func (*ProfilesV2CapabilityRequired) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{3} } type SetProfileResult struct { state protoimpl.MessageState `protogen:"open.v1"` // If the request included a v1 avatar change, this field contains the policy // and credential used by clients to upload an avatar to the CDN. // // Because this is a temporary field during the migration, it has the highest // field number without serialization overhead. This is purely aesthetic. V1AvatarUploadForm *common.S3UploadForm `protobuf:"bytes,15,opt,name=v1_avatar_upload_form,json=v1AvatarUploadForm,proto3,oneof" json:"v1_avatar_upload_form,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetProfileResult) Reset() { *x = SetProfileResult{} mi := &file_org_signal_chat_profile_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetProfileResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetProfileResult) ProtoMessage() {} func (x *SetProfileResult) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 SetProfileResult.ProtoReflect.Descriptor instead. func (*SetProfileResult) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{4} } func (x *SetProfileResult) GetV1AvatarUploadForm() *common.S3UploadForm { if x != nil { return x.V1AvatarUploadForm } return nil } type SetProfileResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Response: // // *SetProfileResponse_Result // *SetProfileResponse_ExpectedDataWriteConflict // *SetProfileResponse_PaymentsForbiddenInRegion // *SetProfileResponse_ExpectedVersionWriteConflict // *SetProfileResponse_ProfilesV2CapabilityRequired Response isSetProfileResponse_Response `protobuf_oneof:"response"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetProfileResponse) Reset() { *x = SetProfileResponse{} mi := &file_org_signal_chat_profile_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetProfileResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetProfileResponse) ProtoMessage() {} func (x *SetProfileResponse) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 SetProfileResponse.ProtoReflect.Descriptor instead. func (*SetProfileResponse) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{5} } func (x *SetProfileResponse) GetResponse() isSetProfileResponse_Response { if x != nil { return x.Response } return nil } func (x *SetProfileResponse) GetResult() *SetProfileResult { if x != nil { if x, ok := x.Response.(*SetProfileResponse_Result); ok { return x.Result } } return nil } func (x *SetProfileResponse) GetExpectedDataWriteConflict() *errors.FailedPrecondition { if x != nil { if x, ok := x.Response.(*SetProfileResponse_ExpectedDataWriteConflict); ok { return x.ExpectedDataWriteConflict } } return nil } func (x *SetProfileResponse) GetPaymentsForbiddenInRegion() *PaymentsForbiddenInRegion { if x != nil { if x, ok := x.Response.(*SetProfileResponse_PaymentsForbiddenInRegion); ok { return x.PaymentsForbiddenInRegion } } return nil } func (x *SetProfileResponse) GetExpectedVersionWriteConflict() *errors.FailedPrecondition { if x != nil { if x, ok := x.Response.(*SetProfileResponse_ExpectedVersionWriteConflict); ok { return x.ExpectedVersionWriteConflict } } return nil } func (x *SetProfileResponse) GetProfilesV2CapabilityRequired() *ProfilesV2CapabilityRequired { if x != nil { if x, ok := x.Response.(*SetProfileResponse_ProfilesV2CapabilityRequired); ok { return x.ProfilesV2CapabilityRequired } } return nil } type isSetProfileResponse_Response interface { isSetProfileResponse_Response() } type SetProfileResponse_Result struct { Result *SetProfileResult `protobuf:"bytes,1,opt,name=result,proto3,oneof"` } type SetProfileResponse_ExpectedDataWriteConflict struct { // The current data hash did not match the request's expectation, indicating // another device on the account may have written an update the caller does not know about. ExpectedDataWriteConflict *errors.FailedPrecondition `protobuf:"bytes,2,opt,name=expected_data_write_conflict,json=expectedDataWriteConflict,proto3,oneof"` } type SetProfileResponse_PaymentsForbiddenInRegion struct { // Payments are not permitted in the account's region, based on its phone // number or the caller's IP address if the account does not have a phone // number. The request should be retried without `payment_address. PaymentsForbiddenInRegion *PaymentsForbiddenInRegion `protobuf:"bytes,3,opt,name=payments_forbidden_in_region,json=paymentsForbiddenInRegion,proto3,oneof"` } type SetProfileResponse_ExpectedVersionWriteConflict struct { // The current version did not match the request's expectation, indicating // another device on the account may have created a new version the caller does not know about. ExpectedVersionWriteConflict *errors.FailedPrecondition `protobuf:"bytes,4,opt,name=expected_version_write_conflict,json=expectedVersionWriteConflict,proto3,oneof"` } type SetProfileResponse_ProfilesV2CapabilityRequired struct { // Because this is a temporary field during the migration, it has the highest // field number without serialization overhead. This is purely aesthetic. ProfilesV2CapabilityRequired *ProfilesV2CapabilityRequired `protobuf:"bytes,15,opt,name=profiles_v2_capability_required,json=profilesV2CapabilityRequired,proto3,oneof"` } func (*SetProfileResponse_Result) isSetProfileResponse_Response() {} func (*SetProfileResponse_ExpectedDataWriteConflict) isSetProfileResponse_Response() {} func (*SetProfileResponse_PaymentsForbiddenInRegion) isSetProfileResponse_Response() {} func (*SetProfileResponse_ExpectedVersionWriteConflict) isSetProfileResponse_Response() {} func (*SetProfileResponse_ProfilesV2CapabilityRequired) isSetProfileResponse_Response() {} type GetProfileRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // The ACI of the account for which to get profile data. AccountIdentifier *common.ServiceIdentifier `protobuf:"bytes,1,opt,name=account_identifier,json=accountIdentifier,proto3" json:"account_identifier,omitempty"` // The profile version to retrieve. Version []byte `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // The `etag` from the previous request for this Profile version. If // unchanged, the response will omit `profile` and `etag_matched` will be // `true`. Etag []byte `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProfileRequest) Reset() { *x = GetProfileRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProfileRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProfileRequest) ProtoMessage() {} func (x *GetProfileRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 GetProfileRequest.ProtoReflect.Descriptor instead. func (*GetProfileRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{6} } func (x *GetProfileRequest) GetAccountIdentifier() *common.ServiceIdentifier { if x != nil { return x.AccountIdentifier } return nil } func (x *GetProfileRequest) GetVersion() []byte { if x != nil { return x.Version } return nil } func (x *GetProfileRequest) GetEtag() []byte { if x != nil { return x.Etag } return nil } type GetProfileAnonymousRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Contains the data necessary to request a profile. Request *GetProfileRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` // Types that are valid to be assigned to Authentication: // // *GetProfileAnonymousRequest_UnidentifiedAccessKey // *GetProfileAnonymousRequest_GroupSendToken Authentication isGetProfileAnonymousRequest_Authentication `protobuf_oneof:"authentication"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProfileAnonymousRequest) Reset() { *x = GetProfileAnonymousRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProfileAnonymousRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProfileAnonymousRequest) ProtoMessage() {} func (x *GetProfileAnonymousRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 GetProfileAnonymousRequest.ProtoReflect.Descriptor instead. func (*GetProfileAnonymousRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{7} } func (x *GetProfileAnonymousRequest) GetRequest() *GetProfileRequest { if x != nil { return x.Request } return nil } func (x *GetProfileAnonymousRequest) GetAuthentication() isGetProfileAnonymousRequest_Authentication { if x != nil { return x.Authentication } return nil } func (x *GetProfileAnonymousRequest) GetUnidentifiedAccessKey() []byte { if x != nil { if x, ok := x.Authentication.(*GetProfileAnonymousRequest_UnidentifiedAccessKey); ok { return x.UnidentifiedAccessKey } } return nil } func (x *GetProfileAnonymousRequest) GetGroupSendToken() []byte { if x != nil { if x, ok := x.Authentication.(*GetProfileAnonymousRequest_GroupSendToken); ok { return x.GroupSendToken } } return nil } type isGetProfileAnonymousRequest_Authentication interface { isGetProfileAnonymousRequest_Authentication() } type GetProfileAnonymousRequest_UnidentifiedAccessKey struct { // The unidentified access key for the targeted account. UnidentifiedAccessKey []byte `protobuf:"bytes,2,opt,name=unidentified_access_key,json=unidentifiedAccessKey,proto3,oneof"` } type GetProfileAnonymousRequest_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"` } func (*GetProfileAnonymousRequest_UnidentifiedAccessKey) isGetProfileAnonymousRequest_Authentication() { } func (*GetProfileAnonymousRequest_GroupSendToken) isGetProfileAnonymousRequest_Authentication() {} type AccountInfo struct { state protoimpl.MessageState `protogen:"open.v1"` // The account identity key of the targeted account. IdentityKey []byte `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` // A checksum of the unidentified access key for the targeted account. UnidentifiedAccessKeyFingerprint []byte `protobuf:"bytes,2,opt,name=unidentified_access_key_fingerprint,json=unidentifiedAccessKeyFingerprint,proto3" json:"unidentified_access_key_fingerprint,omitempty"` // Whether the account has enabled sealed sender from anyone. UnrestrictedUnidentifiedAccess bool `protobuf:"varint,3,opt,name=unrestricted_unidentified_access,json=unrestrictedUnidentifiedAccess,proto3" json:"unrestricted_unidentified_access,omitempty"` // A list of the badges ids associated with the account. Metadata to display // badges may be obtained by cross-referencing badge ids with // RemoteConfiguration.GetBadges. BadgeIds []string `protobuf:"bytes,4,rep,name=badge_ids,json=badgeIds,proto3" json:"badge_ids,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AccountInfo) Reset() { *x = AccountInfo{} mi := &file_org_signal_chat_profile_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AccountInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*AccountInfo) ProtoMessage() {} func (x *AccountInfo) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 AccountInfo.ProtoReflect.Descriptor instead. func (*AccountInfo) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{8} } func (x *AccountInfo) GetIdentityKey() []byte { if x != nil { return x.IdentityKey } return nil } func (x *AccountInfo) GetUnidentifiedAccessKeyFingerprint() []byte { if x != nil { return x.UnidentifiedAccessKeyFingerprint } return nil } func (x *AccountInfo) GetUnrestrictedUnidentifiedAccess() bool { if x != nil { return x.UnrestrictedUnidentifiedAccess } return false } func (x *AccountInfo) GetBadgeIds() []string { if x != nil { return x.BadgeIds } return nil } type ProfileResult struct { state protoimpl.MessageState `protogen:"open.v1"` // The ciphertext of the requested version of the profile Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // The ciphertext of the MobileCoin wallet ID on the profile. PaymentAddress []byte `protobuf:"bytes,2,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"` // Information about the targeted account AccountInfo *AccountInfo `protobuf:"bytes,3,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` // An entity tag for the profile. This may be used in subsequent requests // for this profile version to optimize bandwidth. // // Note that this hash will not match the expected_data_hash used on // SetProfile for concurrency control. // // Clients may validate that the value has been correctly calculated by // calculating a 10-byte truncated TupleHash256 as follows: // // ``` // TupleHash256(S = "ProfileETag/v1", L = 80 bits, tuple = [ // // data, // payment_address, // account_info.identity_key, // account_info.unidentified_access_key_fingerprint, // account_info.unrestricted_unidentified_access ? 0x01 : 0x00, // uint32BE(count(account_info.badge_ids)), // utf8(id) for each id in sortLexAscendingByUtf8Bytes(account_info.badge_ids), // // ]) // ``` // // Absent/empty fields contribute an empty element (not zero bytes omitted): // a missing payment_address is still a present, zero-length tuple element. // // This etag will always exclusively cover the documented fields. If fields // are added in the future, a new etag field must be introduced. Etag []byte `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ProfileResult) Reset() { *x = ProfileResult{} mi := &file_org_signal_chat_profile_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ProfileResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*ProfileResult) ProtoMessage() {} func (x *ProfileResult) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 ProfileResult.ProtoReflect.Descriptor instead. func (*ProfileResult) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{9} } func (x *ProfileResult) GetData() []byte { if x != nil { return x.Data } return nil } func (x *ProfileResult) GetPaymentAddress() []byte { if x != nil { return x.PaymentAddress } return nil } func (x *ProfileResult) GetAccountInfo() *AccountInfo { if x != nil { return x.AccountInfo } return nil } func (x *ProfileResult) GetEtag() []byte { if x != nil { return x.Etag } return nil } type LegacyProfileResult struct { state protoimpl.MessageState `protogen:"open.v1"` // The ciphertext of the name on the profile. Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The ciphertext of the description on the profile. About []byte `protobuf:"bytes,2,opt,name=about,proto3" json:"about,omitempty"` // The ciphertext of the emoji on the profile. AboutEmoji []byte `protobuf:"bytes,3,opt,name=about_emoji,json=aboutEmoji,proto3" json:"about_emoji,omitempty"` // The cdn0 path of the avatar on the profile. Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` // The ciphertext of the phone-number sharing setting on the profile. PhoneNumberSharing []byte `protobuf:"bytes,5,opt,name=phone_number_sharing,json=phoneNumberSharing,proto3" json:"phone_number_sharing,omitempty"` // The ciphertext of the MobileCoin wallet ID on the profile. PaymentAddress []byte `protobuf:"bytes,6,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"` // Information about the targeted account AccountInfo *AccountInfo `protobuf:"bytes,7,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LegacyProfileResult) Reset() { *x = LegacyProfileResult{} mi := &file_org_signal_chat_profile_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LegacyProfileResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*LegacyProfileResult) ProtoMessage() {} func (x *LegacyProfileResult) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 LegacyProfileResult.ProtoReflect.Descriptor instead. func (*LegacyProfileResult) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{10} } func (x *LegacyProfileResult) GetName() []byte { if x != nil { return x.Name } return nil } func (x *LegacyProfileResult) GetAbout() []byte { if x != nil { return x.About } return nil } func (x *LegacyProfileResult) GetAboutEmoji() []byte { if x != nil { return x.AboutEmoji } return nil } func (x *LegacyProfileResult) GetAvatar() string { if x != nil { return x.Avatar } return "" } func (x *LegacyProfileResult) GetPhoneNumberSharing() []byte { if x != nil { return x.PhoneNumberSharing } return nil } func (x *LegacyProfileResult) GetPaymentAddress() []byte { if x != nil { return x.PaymentAddress } return nil } func (x *LegacyProfileResult) GetAccountInfo() *AccountInfo { if x != nil { return x.AccountInfo } return nil } type GetProfileResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Response: // // *GetProfileResponse_Profile // *GetProfileResponse_EtagMatched // *GetProfileResponse_NotFound // *GetProfileResponse_LegacyProfile Response isGetProfileResponse_Response `protobuf_oneof:"response"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProfileResponse) Reset() { *x = GetProfileResponse{} mi := &file_org_signal_chat_profile_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProfileResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProfileResponse) ProtoMessage() {} func (x *GetProfileResponse) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 GetProfileResponse.ProtoReflect.Descriptor instead. func (*GetProfileResponse) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{11} } func (x *GetProfileResponse) GetResponse() isGetProfileResponse_Response { if x != nil { return x.Response } return nil } func (x *GetProfileResponse) GetProfile() *ProfileResult { if x != nil { if x, ok := x.Response.(*GetProfileResponse_Profile); ok { return x.Profile } } return nil } func (x *GetProfileResponse) GetEtagMatched() bool { if x != nil { if x, ok := x.Response.(*GetProfileResponse_EtagMatched); ok { return x.EtagMatched } } return false } func (x *GetProfileResponse) GetNotFound() *errors.NotFound { if x != nil { if x, ok := x.Response.(*GetProfileResponse_NotFound); ok { return x.NotFound } } return nil } func (x *GetProfileResponse) GetLegacyProfile() *LegacyProfileResult { if x != nil { if x, ok := x.Response.(*GetProfileResponse_LegacyProfile); ok { return x.LegacyProfile } } return nil } type isGetProfileResponse_Response interface { isGetProfileResponse_Response() } type GetProfileResponse_Profile struct { // The full profile data. The current profile did not match the provided // etag (or no etag was provided). Profile *ProfileResult `protobuf:"bytes,1,opt,name=profile,proto3,oneof"` } type GetProfileResponse_EtagMatched struct { // The current profile matched the provided etag. If present, this will always be true. EtagMatched bool `protobuf:"varint,2,opt,name=etag_matched,json=etagMatched,proto3,oneof"` } type GetProfileResponse_NotFound struct { NotFound *errors.NotFound `protobuf:"bytes,3,opt,name=not_found,json=notFound,proto3,oneof"` } type GetProfileResponse_LegacyProfile struct { // Will be present if there is no v2 Profile data for this version. // // Because this is a temporary field during the migration, it has the highest // field number without serialization overhead. This is purely aesthetic. LegacyProfile *LegacyProfileResult `protobuf:"bytes,15,opt,name=legacy_profile,json=legacyProfile,proto3,oneof"` } func (*GetProfileResponse_Profile) isGetProfileResponse_Response() {} func (*GetProfileResponse_EtagMatched) isGetProfileResponse_Response() {} func (*GetProfileResponse_NotFound) isGetProfileResponse_Response() {} func (*GetProfileResponse_LegacyProfile) isGetProfileResponse_Response() {} type GetProfileAnonymousResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Response: // // *GetProfileAnonymousResponse_Profile // *GetProfileAnonymousResponse_EtagMatched // *GetProfileAnonymousResponse_NotFound // *GetProfileAnonymousResponse_FailedUnidentifiedAuthorization // *GetProfileAnonymousResponse_ProfileV1 Response isGetProfileAnonymousResponse_Response `protobuf_oneof:"response"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProfileAnonymousResponse) Reset() { *x = GetProfileAnonymousResponse{} mi := &file_org_signal_chat_profile_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProfileAnonymousResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProfileAnonymousResponse) ProtoMessage() {} func (x *GetProfileAnonymousResponse) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 GetProfileAnonymousResponse.ProtoReflect.Descriptor instead. func (*GetProfileAnonymousResponse) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{12} } func (x *GetProfileAnonymousResponse) GetResponse() isGetProfileAnonymousResponse_Response { if x != nil { return x.Response } return nil } func (x *GetProfileAnonymousResponse) GetProfile() *ProfileResult { if x != nil { if x, ok := x.Response.(*GetProfileAnonymousResponse_Profile); ok { return x.Profile } } return nil } func (x *GetProfileAnonymousResponse) GetEtagMatched() bool { if x != nil { if x, ok := x.Response.(*GetProfileAnonymousResponse_EtagMatched); ok { return x.EtagMatched } } return false } func (x *GetProfileAnonymousResponse) GetNotFound() *errors.NotFound { if x != nil { if x, ok := x.Response.(*GetProfileAnonymousResponse_NotFound); ok { return x.NotFound } } return nil } func (x *GetProfileAnonymousResponse) GetFailedUnidentifiedAuthorization() *errors.FailedUnidentifiedAuthorization { if x != nil { if x, ok := x.Response.(*GetProfileAnonymousResponse_FailedUnidentifiedAuthorization); ok { return x.FailedUnidentifiedAuthorization } } return nil } func (x *GetProfileAnonymousResponse) GetProfileV1() *LegacyProfileResult { if x != nil { if x, ok := x.Response.(*GetProfileAnonymousResponse_ProfileV1); ok { return x.ProfileV1 } } return nil } type isGetProfileAnonymousResponse_Response interface { isGetProfileAnonymousResponse_Response() } type GetProfileAnonymousResponse_Profile struct { // The full profile data. The current profile did not match the provided // etag (or no etag was provided). Profile *ProfileResult `protobuf:"bytes,1,opt,name=profile,proto3,oneof"` } type GetProfileAnonymousResponse_EtagMatched struct { // The current profile matched the provided etag. If present, this will always be true. EtagMatched bool `protobuf:"varint,2,opt,name=etag_matched,json=etagMatched,proto3,oneof"` } type GetProfileAnonymousResponse_NotFound struct { NotFound *errors.NotFound `protobuf:"bytes,3,opt,name=not_found,json=notFound,proto3,oneof"` } type GetProfileAnonymousResponse_FailedUnidentifiedAuthorization struct { FailedUnidentifiedAuthorization *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,4,opt,name=failed_unidentified_authorization,json=failedUnidentifiedAuthorization,proto3,oneof"` } type GetProfileAnonymousResponse_ProfileV1 struct { // Will be present if there is no v2 Profile data for this version. // // Because this is a temporary field during the migration, it has the highest // field number without serialization overhead. This is purely aesthetic. ProfileV1 *LegacyProfileResult `protobuf:"bytes,15,opt,name=profile_v1,json=profileV1,proto3,oneof"` } func (*GetProfileAnonymousResponse_Profile) isGetProfileAnonymousResponse_Response() {} func (*GetProfileAnonymousResponse_EtagMatched) isGetProfileAnonymousResponse_Response() {} func (*GetProfileAnonymousResponse_NotFound) isGetProfileAnonymousResponse_Response() {} func (*GetProfileAnonymousResponse_FailedUnidentifiedAuthorization) isGetProfileAnonymousResponse_Response() { } func (*GetProfileAnonymousResponse_ProfileV1) isGetProfileAnonymousResponse_Response() {} type GetExpiringProfileKeyCredentialRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // The ACI of the account for which to get a profile key credential. AccountIdentifier *common.ServiceIdentifier `protobuf:"bytes,1,opt,name=account_identifier,json=accountIdentifier,proto3" json:"account_identifier,omitempty"` // A zkgroup request for a profile key credential. CredentialRequest []byte `protobuf:"bytes,2,opt,name=credential_request,json=credentialRequest,proto3" json:"credential_request,omitempty"` // The type of credential being requested. CredentialType CredentialType `protobuf:"varint,3,opt,name=credential_type,json=credentialType,proto3,enum=org.signal.chat.profile.CredentialType" json:"credential_type,omitempty"` // The profile version for which to generate a profile key credential. Version []byte `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetExpiringProfileKeyCredentialRequest) Reset() { *x = GetExpiringProfileKeyCredentialRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetExpiringProfileKeyCredentialRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetExpiringProfileKeyCredentialRequest) ProtoMessage() {} func (x *GetExpiringProfileKeyCredentialRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 GetExpiringProfileKeyCredentialRequest.ProtoReflect.Descriptor instead. func (*GetExpiringProfileKeyCredentialRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{13} } func (x *GetExpiringProfileKeyCredentialRequest) GetAccountIdentifier() *common.ServiceIdentifier { if x != nil { return x.AccountIdentifier } return nil } func (x *GetExpiringProfileKeyCredentialRequest) GetCredentialRequest() []byte { if x != nil { return x.CredentialRequest } return nil } func (x *GetExpiringProfileKeyCredentialRequest) GetCredentialType() CredentialType { if x != nil { return x.CredentialType } return CredentialType_CREDENTIAL_TYPE_UNSPECIFIED } func (x *GetExpiringProfileKeyCredentialRequest) GetVersion() []byte { if x != nil { return x.Version } return nil } type GetExpiringProfileKeyCredentialAnonymousRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Contains the data necessary to request an expiring profile key credential. Request *GetExpiringProfileKeyCredentialRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` // The unidentified access key for the targeted account. UnidentifiedAccessKey []byte `protobuf:"bytes,2,opt,name=unidentified_access_key,json=unidentifiedAccessKey,proto3" json:"unidentified_access_key,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetExpiringProfileKeyCredentialAnonymousRequest) Reset() { *x = GetExpiringProfileKeyCredentialAnonymousRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetExpiringProfileKeyCredentialAnonymousRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetExpiringProfileKeyCredentialAnonymousRequest) ProtoMessage() {} func (x *GetExpiringProfileKeyCredentialAnonymousRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_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 GetExpiringProfileKeyCredentialAnonymousRequest.ProtoReflect.Descriptor instead. func (*GetExpiringProfileKeyCredentialAnonymousRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{14} } func (x *GetExpiringProfileKeyCredentialAnonymousRequest) GetRequest() *GetExpiringProfileKeyCredentialRequest { if x != nil { return x.Request } return nil } func (x *GetExpiringProfileKeyCredentialAnonymousRequest) GetUnidentifiedAccessKey() []byte { if x != nil { return x.UnidentifiedAccessKey } return nil } type GetExpiringProfileKeyCredentialResult struct { state protoimpl.MessageState `protogen:"open.v1"` // A zkgroup credential used by a client to prove that it has the profile key // of a targeted account. ProfileKeyCredential []byte `protobuf:"bytes,1,opt,name=profile_key_credential,json=profileKeyCredential,proto3" json:"profile_key_credential,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetExpiringProfileKeyCredentialResult) Reset() { *x = GetExpiringProfileKeyCredentialResult{} mi := &file_org_signal_chat_profile_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetExpiringProfileKeyCredentialResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetExpiringProfileKeyCredentialResult) ProtoMessage() {} func (x *GetExpiringProfileKeyCredentialResult) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[15] 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 GetExpiringProfileKeyCredentialResult.ProtoReflect.Descriptor instead. func (*GetExpiringProfileKeyCredentialResult) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{15} } func (x *GetExpiringProfileKeyCredentialResult) GetProfileKeyCredential() []byte { if x != nil { return x.ProfileKeyCredential } return nil } type GetExpiringProfileKeyCredentialAnonymousResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Response: // // *GetExpiringProfileKeyCredentialAnonymousResponse_Result // *GetExpiringProfileKeyCredentialAnonymousResponse_NotFound // *GetExpiringProfileKeyCredentialAnonymousResponse_FailedUnidentifiedAuthorization Response isGetExpiringProfileKeyCredentialAnonymousResponse_Response `protobuf_oneof:"response"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetExpiringProfileKeyCredentialAnonymousResponse) Reset() { *x = GetExpiringProfileKeyCredentialAnonymousResponse{} mi := &file_org_signal_chat_profile_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetExpiringProfileKeyCredentialAnonymousResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetExpiringProfileKeyCredentialAnonymousResponse) ProtoMessage() {} func (x *GetExpiringProfileKeyCredentialAnonymousResponse) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[16] 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 GetExpiringProfileKeyCredentialAnonymousResponse.ProtoReflect.Descriptor instead. func (*GetExpiringProfileKeyCredentialAnonymousResponse) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{16} } func (x *GetExpiringProfileKeyCredentialAnonymousResponse) GetResponse() isGetExpiringProfileKeyCredentialAnonymousResponse_Response { if x != nil { return x.Response } return nil } func (x *GetExpiringProfileKeyCredentialAnonymousResponse) GetResult() *GetExpiringProfileKeyCredentialResult { if x != nil { if x, ok := x.Response.(*GetExpiringProfileKeyCredentialAnonymousResponse_Result); ok { return x.Result } } return nil } func (x *GetExpiringProfileKeyCredentialAnonymousResponse) GetNotFound() *errors.NotFound { if x != nil { if x, ok := x.Response.(*GetExpiringProfileKeyCredentialAnonymousResponse_NotFound); ok { return x.NotFound } } return nil } func (x *GetExpiringProfileKeyCredentialAnonymousResponse) GetFailedUnidentifiedAuthorization() *errors.FailedUnidentifiedAuthorization { if x != nil { if x, ok := x.Response.(*GetExpiringProfileKeyCredentialAnonymousResponse_FailedUnidentifiedAuthorization); ok { return x.FailedUnidentifiedAuthorization } } return nil } type isGetExpiringProfileKeyCredentialAnonymousResponse_Response interface { isGetExpiringProfileKeyCredentialAnonymousResponse_Response() } type GetExpiringProfileKeyCredentialAnonymousResponse_Result struct { Result *GetExpiringProfileKeyCredentialResult `protobuf:"bytes,1,opt,name=result,proto3,oneof"` } type GetExpiringProfileKeyCredentialAnonymousResponse_NotFound struct { NotFound *errors.NotFound `protobuf:"bytes,2,opt,name=not_found,json=notFound,proto3,oneof"` } type GetExpiringProfileKeyCredentialAnonymousResponse_FailedUnidentifiedAuthorization struct { FailedUnidentifiedAuthorization *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,3,opt,name=failed_unidentified_authorization,json=failedUnidentifiedAuthorization,proto3,oneof"` } func (*GetExpiringProfileKeyCredentialAnonymousResponse_Result) isGetExpiringProfileKeyCredentialAnonymousResponse_Response() { } func (*GetExpiringProfileKeyCredentialAnonymousResponse_NotFound) isGetExpiringProfileKeyCredentialAnonymousResponse_Response() { } func (*GetExpiringProfileKeyCredentialAnonymousResponse_FailedUnidentifiedAuthorization) isGetExpiringProfileKeyCredentialAnonymousResponse_Response() { } type GetAvatarCredentialsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AvatarCredentialsRequest []byte `protobuf:"bytes,1,opt,name=avatar_credentials_request,json=avatarCredentialsRequest,proto3" json:"avatar_credentials_request,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAvatarCredentialsRequest) Reset() { *x = GetAvatarCredentialsRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAvatarCredentialsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAvatarCredentialsRequest) ProtoMessage() {} func (x *GetAvatarCredentialsRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[17] 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 GetAvatarCredentialsRequest.ProtoReflect.Descriptor instead. func (*GetAvatarCredentialsRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{17} } func (x *GetAvatarCredentialsRequest) GetAvatarCredentialsRequest() []byte { if x != nil { return x.AvatarCredentialsRequest } return nil } type GetAvatarCredentialsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Response: // // *GetAvatarCredentialsResponse_AvatarCredentials // *GetAvatarCredentialsResponse_MissingZkCredentialKey Response isGetAvatarCredentialsResponse_Response `protobuf_oneof:"response"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAvatarCredentialsResponse) Reset() { *x = GetAvatarCredentialsResponse{} mi := &file_org_signal_chat_profile_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAvatarCredentialsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAvatarCredentialsResponse) ProtoMessage() {} func (x *GetAvatarCredentialsResponse) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[18] 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 GetAvatarCredentialsResponse.ProtoReflect.Descriptor instead. func (*GetAvatarCredentialsResponse) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{18} } func (x *GetAvatarCredentialsResponse) GetResponse() isGetAvatarCredentialsResponse_Response { if x != nil { return x.Response } return nil } func (x *GetAvatarCredentialsResponse) GetAvatarCredentials() []byte { if x != nil { if x, ok := x.Response.(*GetAvatarCredentialsResponse_AvatarCredentials); ok { return x.AvatarCredentials } } return nil } func (x *GetAvatarCredentialsResponse) GetMissingZkCredentialKey() *errors.FailedPrecondition { if x != nil { if x, ok := x.Response.(*GetAvatarCredentialsResponse_MissingZkCredentialKey); ok { return x.MissingZkCredentialKey } } return nil } type isGetAvatarCredentialsResponse_Response interface { isGetAvatarCredentialsResponse_Response() } type GetAvatarCredentialsResponse_AvatarCredentials struct { AvatarCredentials []byte `protobuf:"bytes,1,opt,name=avatar_credentials,json=avatarCredentials,proto3,oneof"` } type GetAvatarCredentialsResponse_MissingZkCredentialKey struct { // the client must call Accounts.SetZkCredentialKey to call this method MissingZkCredentialKey *errors.FailedPrecondition `protobuf:"bytes,2,opt,name=missing_zk_credential_key,json=missingZkCredentialKey,proto3,oneof"` } func (*GetAvatarCredentialsResponse_AvatarCredentials) isGetAvatarCredentialsResponse_Response() {} func (*GetAvatarCredentialsResponse_MissingZkCredentialKey) isGetAvatarCredentialsResponse_Response() { } type GetAvatarUploadFormRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AvatarCredentialsPresentation []byte `protobuf:"bytes,1,opt,name=avatar_credentials_presentation,json=avatarCredentialsPresentation,proto3" json:"avatar_credentials_presentation,omitempty"` // The length of the attachment for the requested upload form. Uploads // performed with this form will be limited to the provided length. UploadLength uint32 `protobuf:"varint,2,opt,name=upload_length,json=uploadLength,proto3" json:"upload_length,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAvatarUploadFormRequest) Reset() { *x = GetAvatarUploadFormRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAvatarUploadFormRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAvatarUploadFormRequest) ProtoMessage() {} func (x *GetAvatarUploadFormRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[19] 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 GetAvatarUploadFormRequest.ProtoReflect.Descriptor instead. func (*GetAvatarUploadFormRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{19} } func (x *GetAvatarUploadFormRequest) GetAvatarCredentialsPresentation() []byte { if x != nil { return x.AvatarCredentialsPresentation } return nil } func (x *GetAvatarUploadFormRequest) GetUploadLength() uint32 { if x != nil { return x.UploadLength } return 0 } type GetAvatarUploadFormResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Response: // // *GetAvatarUploadFormResponse_AvatarUploadForm // *GetAvatarUploadFormResponse_InvalidCredentialsPresentation Response isGetAvatarUploadFormResponse_Response `protobuf_oneof:"response"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAvatarUploadFormResponse) Reset() { *x = GetAvatarUploadFormResponse{} mi := &file_org_signal_chat_profile_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAvatarUploadFormResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAvatarUploadFormResponse) ProtoMessage() {} func (x *GetAvatarUploadFormResponse) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[20] 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 GetAvatarUploadFormResponse.ProtoReflect.Descriptor instead. func (*GetAvatarUploadFormResponse) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{20} } func (x *GetAvatarUploadFormResponse) GetResponse() isGetAvatarUploadFormResponse_Response { if x != nil { return x.Response } return nil } func (x *GetAvatarUploadFormResponse) GetAvatarUploadForm() *common.S3UploadForm { if x != nil { if x, ok := x.Response.(*GetAvatarUploadFormResponse_AvatarUploadForm); ok { return x.AvatarUploadForm } } return nil } func (x *GetAvatarUploadFormResponse) GetInvalidCredentialsPresentation() *errors.FailedZkAuthentication { if x != nil { if x, ok := x.Response.(*GetAvatarUploadFormResponse_InvalidCredentialsPresentation); ok { return x.InvalidCredentialsPresentation } } return nil } type isGetAvatarUploadFormResponse_Response interface { isGetAvatarUploadFormResponse_Response() } type GetAvatarUploadFormResponse_AvatarUploadForm struct { AvatarUploadForm *common.S3UploadForm `protobuf:"bytes,1,opt,name=avatar_upload_form,json=avatarUploadForm,proto3,oneof"` } type GetAvatarUploadFormResponse_InvalidCredentialsPresentation struct { InvalidCredentialsPresentation *errors.FailedZkAuthentication `protobuf:"bytes,2,opt,name=invalid_credentials_presentation,json=invalidCredentialsPresentation,proto3,oneof"` } func (*GetAvatarUploadFormResponse_AvatarUploadForm) isGetAvatarUploadFormResponse_Response() {} func (*GetAvatarUploadFormResponse_InvalidCredentialsPresentation) isGetAvatarUploadFormResponse_Response() { } type ExtendAvatarTTLRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AvatarCredentialsPresentation []byte `protobuf:"bytes,1,opt,name=avatar_credentials_presentation,json=avatarCredentialsPresentation,proto3" json:"avatar_credentials_presentation,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ExtendAvatarTTLRequest) Reset() { *x = ExtendAvatarTTLRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ExtendAvatarTTLRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ExtendAvatarTTLRequest) ProtoMessage() {} func (x *ExtendAvatarTTLRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[21] 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 ExtendAvatarTTLRequest.ProtoReflect.Descriptor instead. func (*ExtendAvatarTTLRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{21} } func (x *ExtendAvatarTTLRequest) GetAvatarCredentialsPresentation() []byte { if x != nil { return x.AvatarCredentialsPresentation } return nil } type ExtendAvatarTTLResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Response: // // *ExtendAvatarTTLResponse_Path // *ExtendAvatarTTLResponse_InvalidCredentialsPresentation // *ExtendAvatarTTLResponse_NotFound Response isExtendAvatarTTLResponse_Response `protobuf_oneof:"response"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ExtendAvatarTTLResponse) Reset() { *x = ExtendAvatarTTLResponse{} mi := &file_org_signal_chat_profile_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ExtendAvatarTTLResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ExtendAvatarTTLResponse) ProtoMessage() {} func (x *ExtendAvatarTTLResponse) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[22] 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 ExtendAvatarTTLResponse.ProtoReflect.Descriptor instead. func (*ExtendAvatarTTLResponse) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{22} } func (x *ExtendAvatarTTLResponse) GetResponse() isExtendAvatarTTLResponse_Response { if x != nil { return x.Response } return nil } func (x *ExtendAvatarTTLResponse) GetPath() string { if x != nil { if x, ok := x.Response.(*ExtendAvatarTTLResponse_Path); ok { return x.Path } } return "" } func (x *ExtendAvatarTTLResponse) GetInvalidCredentialsPresentation() *errors.FailedZkAuthentication { if x != nil { if x, ok := x.Response.(*ExtendAvatarTTLResponse_InvalidCredentialsPresentation); ok { return x.InvalidCredentialsPresentation } } return nil } func (x *ExtendAvatarTTLResponse) GetNotFound() *errors.NotFound { if x != nil { if x, ok := x.Response.(*ExtendAvatarTTLResponse_NotFound); ok { return x.NotFound } } return nil } type isExtendAvatarTTLResponse_Response interface { isExtendAvatarTTLResponse_Response() } type ExtendAvatarTTLResponse_Path struct { // The avatar that was extended. May be used as a check against state de-synchronization. Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"` } type ExtendAvatarTTLResponse_InvalidCredentialsPresentation struct { InvalidCredentialsPresentation *errors.FailedZkAuthentication `protobuf:"bytes,2,opt,name=invalid_credentials_presentation,json=invalidCredentialsPresentation,proto3,oneof"` } type ExtendAvatarTTLResponse_NotFound struct { // the identity does not have an active avatar NotFound *errors.NotFound `protobuf:"bytes,3,opt,name=not_found,json=notFound,proto3,oneof"` } func (*ExtendAvatarTTLResponse_Path) isExtendAvatarTTLResponse_Response() {} func (*ExtendAvatarTTLResponse_InvalidCredentialsPresentation) isExtendAvatarTTLResponse_Response() {} func (*ExtendAvatarTTLResponse_NotFound) isExtendAvatarTTLResponse_Response() {} type DeleteAvatarRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AvatarCredentialsPresentation []byte `protobuf:"bytes,1,opt,name=avatar_credentials_presentation,json=avatarCredentialsPresentation,proto3" json:"avatar_credentials_presentation,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeleteAvatarRequest) Reset() { *x = DeleteAvatarRequest{} mi := &file_org_signal_chat_profile_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DeleteAvatarRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteAvatarRequest) ProtoMessage() {} func (x *DeleteAvatarRequest) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[23] 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 DeleteAvatarRequest.ProtoReflect.Descriptor instead. func (*DeleteAvatarRequest) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{23} } func (x *DeleteAvatarRequest) GetAvatarCredentialsPresentation() []byte { if x != nil { return x.AvatarCredentialsPresentation } return nil } type DeleteAvatarResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Response: // // *DeleteAvatarResponse_Success // *DeleteAvatarResponse_InvalidCredentialsPresentation Response isDeleteAvatarResponse_Response `protobuf_oneof:"response"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeleteAvatarResponse) Reset() { *x = DeleteAvatarResponse{} mi := &file_org_signal_chat_profile_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DeleteAvatarResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteAvatarResponse) ProtoMessage() {} func (x *DeleteAvatarResponse) ProtoReflect() protoreflect.Message { mi := &file_org_signal_chat_profile_proto_msgTypes[24] 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 DeleteAvatarResponse.ProtoReflect.Descriptor instead. func (*DeleteAvatarResponse) Descriptor() ([]byte, []int) { return file_org_signal_chat_profile_proto_rawDescGZIP(), []int{24} } func (x *DeleteAvatarResponse) GetResponse() isDeleteAvatarResponse_Response { if x != nil { return x.Response } return nil } func (x *DeleteAvatarResponse) GetSuccess() *emptypb.Empty { if x != nil { if x, ok := x.Response.(*DeleteAvatarResponse_Success); ok { return x.Success } } return nil } func (x *DeleteAvatarResponse) GetInvalidCredentialsPresentation() *errors.FailedZkAuthentication { if x != nil { if x, ok := x.Response.(*DeleteAvatarResponse_InvalidCredentialsPresentation); ok { return x.InvalidCredentialsPresentation } } return nil } type isDeleteAvatarResponse_Response interface { isDeleteAvatarResponse_Response() } type DeleteAvatarResponse_Success struct { Success *emptypb.Empty `protobuf:"bytes,1,opt,name=success,proto3,oneof"` } type DeleteAvatarResponse_InvalidCredentialsPresentation struct { InvalidCredentialsPresentation *errors.FailedZkAuthentication `protobuf:"bytes,2,opt,name=invalid_credentials_presentation,json=invalidCredentialsPresentation,proto3,oneof"` } func (*DeleteAvatarResponse_Success) isDeleteAvatarResponse_Response() {} func (*DeleteAvatarResponse_InvalidCredentialsPresentation) isDeleteAvatarResponse_Response() {} var File_org_signal_chat_profile_proto protoreflect.FileDescriptor const file_org_signal_chat_profile_proto_rawDesc = "" + "\n" + "\x1dorg/signal/chat/profile.proto\x12\x17org.signal.chat.profile\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\"\xf7\x02\n" + "\x13SetProfileV1Request\x12\x1b\n" + "\x04name\x18\x01 \x01(\fB\a\xa2\x97\"\x03Q\x9d\x02R\x04name\x12^\n" + "\ravatar_change\x18\x02 \x01(\x0e29.org.signal.chat.profile.SetProfileV1Request.AvatarChangeR\favatarChange\x12'\n" + "\vabout_emoji\x18\x03 \x01(\fB\x06\xa2\x97\"\x02\x00.org.signal.chat.profile.GetExpiringProfileKeyCredentialResultH\x00R\x06result\x12N\n" + "\tnot_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\r\xc2\xd5\"\tnot_foundH\x00R\bnotFound\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\"[\n" + "\x1bGetAvatarCredentialsRequest\x12<\n" + "\x1aavatar_credentials_request\x18\x01 \x01(\fR\x18avatarCredentialsRequest\"\xe4\x01\n" + "\x1cGetAvatarCredentialsResponse\x12/\n" + "\x12avatar_credentials\x18\x01 \x01(\fH\x00R\x11avatarCredentials\x12\x86\x01\n" + "\x19missing_zk_credential_key\x18\x02 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x1d\xc2\xd5\"\x19missing_zk_credential_keyH\x00R\x16missingZkCredentialKeyB\n" + "\n" + "\bresponse\"\x96\x01\n" + "\x1aGetAvatarUploadFormRequest\x12F\n" + "\x1favatar_credentials_presentation\x18\x01 \x01(\fR\x1davatarCredentialsPresentation\x120\n" + "\rupload_length\x18\x02 \x01(\rB\v\xb2\x97\"\a\b\x01\x10\x80\x80\x80\x05R\fuploadLength\"\xa2\x02\n" + "\x1bGetAvatarUploadFormResponse\x12T\n" + "\x12avatar_upload_form\x18\x01 \x01(\v2$.org.signal.chat.common.S3UploadFormH\x00R\x10avatarUploadForm\x12\xa0\x01\n" + " invalid_credentials_presentation\x18\x02 \x01(\v2..org.signal.chat.errors.FailedZkAuthenticationB$\xc2\xd5\" invalid_credentials_presentationH\x00R\x1einvalidCredentialsPresentationB\n" + "\n" + "\bresponse\"`\n" + "\x16ExtendAvatarTTLRequest\x12F\n" + "\x1favatar_credentials_presentation\x18\x01 \x01(\fR\x1davatarCredentialsPresentation\"\xb5\x02\n" + "\x17ExtendAvatarTTLResponse\x12\x14\n" + "\x04path\x18\x01 \x01(\tH\x00R\x04path\x12\xa0\x01\n" + " invalid_credentials_presentation\x18\x02 \x01(\v2..org.signal.chat.errors.FailedZkAuthenticationB$\xc2\xd5\" invalid_credentials_presentationH\x00R\x1einvalidCredentialsPresentation\x12U\n" + "\tnot_found\x18\x03 \x01(\v2 .org.signal.chat.errors.NotFoundB\x14\xc2\xd5\"\x10no_active_avatarH\x00R\bnotFoundB\n" + "\n" + "\bresponse\"]\n" + "\x13DeleteAvatarRequest\x12F\n" + "\x1favatar_credentials_presentation\x18\x01 \x01(\fR\x1davatarCredentialsPresentation\"\xf9\x01\n" + "\x14DeleteAvatarResponse\x122\n" + "\asuccess\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\asuccess\x12\xa0\x01\n" + " invalid_credentials_presentation\x18\x02 \x01(\v2..org.signal.chat.errors.FailedZkAuthenticationB$\xc2\xd5\" invalid_credentials_presentationH\x00R\x1einvalidCredentialsPresentationB\n" + "\n" + "\bresponse*[\n" + "\x0eCredentialType\x12\x1f\n" + "\x1bCREDENTIAL_TYPE_UNSPECIFIED\x10\x00\x12(\n" + "$CREDENTIAL_TYPE_EXPIRING_PROFILE_KEY\x10\x012\xe9\x02\n" + "\aProfile\x12g\n" + "\n" + "SetProfile\x12*.org.signal.chat.profile.SetProfileRequest\x1a+.org.signal.chat.profile.SetProfileResponse\"\x00\x12g\n" + "\n" + "GetProfile\x12*.org.signal.chat.profile.GetProfileRequest\x1a+.org.signal.chat.profile.GetProfileResponse\"\x00\x12\x85\x01\n" + "\x14GetAvatarCredentials\x124.org.signal.chat.profile.GetAvatarCredentialsRequest\x1a5.org.signal.chat.profile.GetAvatarCredentialsResponse\"\x00\x1a\x04\xc8\xd5\"\x012\xba\x05\n" + "\x10ProfileAnonymous\x12y\n" + "\n" + "GetProfile\x123.org.signal.chat.profile.GetProfileAnonymousRequest\x1a4.org.signal.chat.profile.GetProfileAnonymousResponse\"\x00\x12\xb8\x01\n" + "\x1fGetExpiringProfileKeyCredential\x12H.org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousRequest\x1aI.org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousResponse\"\x00\x12\x82\x01\n" + "\x13GetAvatarUploadForm\x123.org.signal.chat.profile.GetAvatarUploadFormRequest\x1a4.org.signal.chat.profile.GetAvatarUploadFormResponse\"\x00\x12v\n" + "\x0fExtendAvatarTTL\x12/.org.signal.chat.profile.ExtendAvatarTTLRequest\x1a0.org.signal.chat.profile.ExtendAvatarTTLResponse\"\x00\x12m\n" + "\fDeleteAvatar\x12,.org.signal.chat.profile.DeleteAvatarRequest\x1a-.org.signal.chat.profile.DeleteAvatarResponse\"\x00\x1a\x04\xc8\xd5\"\x02B\x02P\x01b\x06proto3" var ( file_org_signal_chat_profile_proto_rawDescOnce sync.Once file_org_signal_chat_profile_proto_rawDescData []byte ) func file_org_signal_chat_profile_proto_rawDescGZIP() []byte { file_org_signal_chat_profile_proto_rawDescOnce.Do(func() { file_org_signal_chat_profile_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_org_signal_chat_profile_proto_rawDesc), len(file_org_signal_chat_profile_proto_rawDesc))) }) return file_org_signal_chat_profile_proto_rawDescData } var file_org_signal_chat_profile_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_org_signal_chat_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 25) var file_org_signal_chat_profile_proto_goTypes = []any{ (CredentialType)(0), // 0: org.signal.chat.profile.CredentialType (SetProfileV1Request_AvatarChange)(0), // 1: org.signal.chat.profile.SetProfileV1Request.AvatarChange (*SetProfileV1Request)(nil), // 2: org.signal.chat.profile.SetProfileV1Request (*SetProfileRequest)(nil), // 3: org.signal.chat.profile.SetProfileRequest (*PaymentsForbiddenInRegion)(nil), // 4: org.signal.chat.profile.PaymentsForbiddenInRegion (*ProfilesV2CapabilityRequired)(nil), // 5: org.signal.chat.profile.ProfilesV2CapabilityRequired (*SetProfileResult)(nil), // 6: org.signal.chat.profile.SetProfileResult (*SetProfileResponse)(nil), // 7: org.signal.chat.profile.SetProfileResponse (*GetProfileRequest)(nil), // 8: org.signal.chat.profile.GetProfileRequest (*GetProfileAnonymousRequest)(nil), // 9: org.signal.chat.profile.GetProfileAnonymousRequest (*AccountInfo)(nil), // 10: org.signal.chat.profile.AccountInfo (*ProfileResult)(nil), // 11: org.signal.chat.profile.ProfileResult (*LegacyProfileResult)(nil), // 12: org.signal.chat.profile.LegacyProfileResult (*GetProfileResponse)(nil), // 13: org.signal.chat.profile.GetProfileResponse (*GetProfileAnonymousResponse)(nil), // 14: org.signal.chat.profile.GetProfileAnonymousResponse (*GetExpiringProfileKeyCredentialRequest)(nil), // 15: org.signal.chat.profile.GetExpiringProfileKeyCredentialRequest (*GetExpiringProfileKeyCredentialAnonymousRequest)(nil), // 16: org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousRequest (*GetExpiringProfileKeyCredentialResult)(nil), // 17: org.signal.chat.profile.GetExpiringProfileKeyCredentialResult (*GetExpiringProfileKeyCredentialAnonymousResponse)(nil), // 18: org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousResponse (*GetAvatarCredentialsRequest)(nil), // 19: org.signal.chat.profile.GetAvatarCredentialsRequest (*GetAvatarCredentialsResponse)(nil), // 20: org.signal.chat.profile.GetAvatarCredentialsResponse (*GetAvatarUploadFormRequest)(nil), // 21: org.signal.chat.profile.GetAvatarUploadFormRequest (*GetAvatarUploadFormResponse)(nil), // 22: org.signal.chat.profile.GetAvatarUploadFormResponse (*ExtendAvatarTTLRequest)(nil), // 23: org.signal.chat.profile.ExtendAvatarTTLRequest (*ExtendAvatarTTLResponse)(nil), // 24: org.signal.chat.profile.ExtendAvatarTTLResponse (*DeleteAvatarRequest)(nil), // 25: org.signal.chat.profile.DeleteAvatarRequest (*DeleteAvatarResponse)(nil), // 26: org.signal.chat.profile.DeleteAvatarResponse (*common.S3UploadForm)(nil), // 27: org.signal.chat.common.S3UploadForm (*errors.FailedPrecondition)(nil), // 28: org.signal.chat.errors.FailedPrecondition (*common.ServiceIdentifier)(nil), // 29: org.signal.chat.common.ServiceIdentifier (*errors.NotFound)(nil), // 30: org.signal.chat.errors.NotFound (*errors.FailedUnidentifiedAuthorization)(nil), // 31: org.signal.chat.errors.FailedUnidentifiedAuthorization (*errors.FailedZkAuthentication)(nil), // 32: org.signal.chat.errors.FailedZkAuthentication (*emptypb.Empty)(nil), // 33: google.protobuf.Empty } var file_org_signal_chat_profile_proto_depIdxs = []int32{ 1, // 0: org.signal.chat.profile.SetProfileV1Request.avatar_change:type_name -> org.signal.chat.profile.SetProfileV1Request.AvatarChange 2, // 1: org.signal.chat.profile.SetProfileRequest.v1Request:type_name -> org.signal.chat.profile.SetProfileV1Request 27, // 2: org.signal.chat.profile.SetProfileResult.v1_avatar_upload_form:type_name -> org.signal.chat.common.S3UploadForm 6, // 3: org.signal.chat.profile.SetProfileResponse.result:type_name -> org.signal.chat.profile.SetProfileResult 28, // 4: org.signal.chat.profile.SetProfileResponse.expected_data_write_conflict:type_name -> org.signal.chat.errors.FailedPrecondition 4, // 5: org.signal.chat.profile.SetProfileResponse.payments_forbidden_in_region:type_name -> org.signal.chat.profile.PaymentsForbiddenInRegion 28, // 6: org.signal.chat.profile.SetProfileResponse.expected_version_write_conflict:type_name -> org.signal.chat.errors.FailedPrecondition 5, // 7: org.signal.chat.profile.SetProfileResponse.profiles_v2_capability_required:type_name -> org.signal.chat.profile.ProfilesV2CapabilityRequired 29, // 8: org.signal.chat.profile.GetProfileRequest.account_identifier:type_name -> org.signal.chat.common.ServiceIdentifier 8, // 9: org.signal.chat.profile.GetProfileAnonymousRequest.request:type_name -> org.signal.chat.profile.GetProfileRequest 10, // 10: org.signal.chat.profile.ProfileResult.account_info:type_name -> org.signal.chat.profile.AccountInfo 10, // 11: org.signal.chat.profile.LegacyProfileResult.account_info:type_name -> org.signal.chat.profile.AccountInfo 11, // 12: org.signal.chat.profile.GetProfileResponse.profile:type_name -> org.signal.chat.profile.ProfileResult 30, // 13: org.signal.chat.profile.GetProfileResponse.not_found:type_name -> org.signal.chat.errors.NotFound 12, // 14: org.signal.chat.profile.GetProfileResponse.legacy_profile:type_name -> org.signal.chat.profile.LegacyProfileResult 11, // 15: org.signal.chat.profile.GetProfileAnonymousResponse.profile:type_name -> org.signal.chat.profile.ProfileResult 30, // 16: org.signal.chat.profile.GetProfileAnonymousResponse.not_found:type_name -> org.signal.chat.errors.NotFound 31, // 17: org.signal.chat.profile.GetProfileAnonymousResponse.failed_unidentified_authorization:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization 12, // 18: org.signal.chat.profile.GetProfileAnonymousResponse.profile_v1:type_name -> org.signal.chat.profile.LegacyProfileResult 29, // 19: org.signal.chat.profile.GetExpiringProfileKeyCredentialRequest.account_identifier:type_name -> org.signal.chat.common.ServiceIdentifier 0, // 20: org.signal.chat.profile.GetExpiringProfileKeyCredentialRequest.credential_type:type_name -> org.signal.chat.profile.CredentialType 15, // 21: org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousRequest.request:type_name -> org.signal.chat.profile.GetExpiringProfileKeyCredentialRequest 17, // 22: org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousResponse.result:type_name -> org.signal.chat.profile.GetExpiringProfileKeyCredentialResult 30, // 23: org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousResponse.not_found:type_name -> org.signal.chat.errors.NotFound 31, // 24: org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousResponse.failed_unidentified_authorization:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization 28, // 25: org.signal.chat.profile.GetAvatarCredentialsResponse.missing_zk_credential_key:type_name -> org.signal.chat.errors.FailedPrecondition 27, // 26: org.signal.chat.profile.GetAvatarUploadFormResponse.avatar_upload_form:type_name -> org.signal.chat.common.S3UploadForm 32, // 27: org.signal.chat.profile.GetAvatarUploadFormResponse.invalid_credentials_presentation:type_name -> org.signal.chat.errors.FailedZkAuthentication 32, // 28: org.signal.chat.profile.ExtendAvatarTTLResponse.invalid_credentials_presentation:type_name -> org.signal.chat.errors.FailedZkAuthentication 30, // 29: org.signal.chat.profile.ExtendAvatarTTLResponse.not_found:type_name -> org.signal.chat.errors.NotFound 33, // 30: org.signal.chat.profile.DeleteAvatarResponse.success:type_name -> google.protobuf.Empty 32, // 31: org.signal.chat.profile.DeleteAvatarResponse.invalid_credentials_presentation:type_name -> org.signal.chat.errors.FailedZkAuthentication 3, // 32: org.signal.chat.profile.Profile.SetProfile:input_type -> org.signal.chat.profile.SetProfileRequest 8, // 33: org.signal.chat.profile.Profile.GetProfile:input_type -> org.signal.chat.profile.GetProfileRequest 19, // 34: org.signal.chat.profile.Profile.GetAvatarCredentials:input_type -> org.signal.chat.profile.GetAvatarCredentialsRequest 9, // 35: org.signal.chat.profile.ProfileAnonymous.GetProfile:input_type -> org.signal.chat.profile.GetProfileAnonymousRequest 16, // 36: org.signal.chat.profile.ProfileAnonymous.GetExpiringProfileKeyCredential:input_type -> org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousRequest 21, // 37: org.signal.chat.profile.ProfileAnonymous.GetAvatarUploadForm:input_type -> org.signal.chat.profile.GetAvatarUploadFormRequest 23, // 38: org.signal.chat.profile.ProfileAnonymous.ExtendAvatarTTL:input_type -> org.signal.chat.profile.ExtendAvatarTTLRequest 25, // 39: org.signal.chat.profile.ProfileAnonymous.DeleteAvatar:input_type -> org.signal.chat.profile.DeleteAvatarRequest 7, // 40: org.signal.chat.profile.Profile.SetProfile:output_type -> org.signal.chat.profile.SetProfileResponse 13, // 41: org.signal.chat.profile.Profile.GetProfile:output_type -> org.signal.chat.profile.GetProfileResponse 20, // 42: org.signal.chat.profile.Profile.GetAvatarCredentials:output_type -> org.signal.chat.profile.GetAvatarCredentialsResponse 14, // 43: org.signal.chat.profile.ProfileAnonymous.GetProfile:output_type -> org.signal.chat.profile.GetProfileAnonymousResponse 18, // 44: org.signal.chat.profile.ProfileAnonymous.GetExpiringProfileKeyCredential:output_type -> org.signal.chat.profile.GetExpiringProfileKeyCredentialAnonymousResponse 22, // 45: org.signal.chat.profile.ProfileAnonymous.GetAvatarUploadForm:output_type -> org.signal.chat.profile.GetAvatarUploadFormResponse 24, // 46: org.signal.chat.profile.ProfileAnonymous.ExtendAvatarTTL:output_type -> org.signal.chat.profile.ExtendAvatarTTLResponse 26, // 47: org.signal.chat.profile.ProfileAnonymous.DeleteAvatar:output_type -> org.signal.chat.profile.DeleteAvatarResponse 40, // [40:48] is the sub-list for method output_type 32, // [32:40] is the sub-list for method input_type 32, // [32:32] is the sub-list for extension type_name 32, // [32:32] is the sub-list for extension extendee 0, // [0:32] is the sub-list for field type_name } func init() { file_org_signal_chat_profile_proto_init() } func file_org_signal_chat_profile_proto_init() { if File_org_signal_chat_profile_proto != nil { return } file_org_signal_chat_profile_proto_msgTypes[4].OneofWrappers = []any{} file_org_signal_chat_profile_proto_msgTypes[5].OneofWrappers = []any{ (*SetProfileResponse_Result)(nil), (*SetProfileResponse_ExpectedDataWriteConflict)(nil), (*SetProfileResponse_PaymentsForbiddenInRegion)(nil), (*SetProfileResponse_ExpectedVersionWriteConflict)(nil), (*SetProfileResponse_ProfilesV2CapabilityRequired)(nil), } file_org_signal_chat_profile_proto_msgTypes[7].OneofWrappers = []any{ (*GetProfileAnonymousRequest_UnidentifiedAccessKey)(nil), (*GetProfileAnonymousRequest_GroupSendToken)(nil), } file_org_signal_chat_profile_proto_msgTypes[11].OneofWrappers = []any{ (*GetProfileResponse_Profile)(nil), (*GetProfileResponse_EtagMatched)(nil), (*GetProfileResponse_NotFound)(nil), (*GetProfileResponse_LegacyProfile)(nil), } file_org_signal_chat_profile_proto_msgTypes[12].OneofWrappers = []any{ (*GetProfileAnonymousResponse_Profile)(nil), (*GetProfileAnonymousResponse_EtagMatched)(nil), (*GetProfileAnonymousResponse_NotFound)(nil), (*GetProfileAnonymousResponse_FailedUnidentifiedAuthorization)(nil), (*GetProfileAnonymousResponse_ProfileV1)(nil), } file_org_signal_chat_profile_proto_msgTypes[16].OneofWrappers = []any{ (*GetExpiringProfileKeyCredentialAnonymousResponse_Result)(nil), (*GetExpiringProfileKeyCredentialAnonymousResponse_NotFound)(nil), (*GetExpiringProfileKeyCredentialAnonymousResponse_FailedUnidentifiedAuthorization)(nil), } file_org_signal_chat_profile_proto_msgTypes[18].OneofWrappers = []any{ (*GetAvatarCredentialsResponse_AvatarCredentials)(nil), (*GetAvatarCredentialsResponse_MissingZkCredentialKey)(nil), } file_org_signal_chat_profile_proto_msgTypes[20].OneofWrappers = []any{ (*GetAvatarUploadFormResponse_AvatarUploadForm)(nil), (*GetAvatarUploadFormResponse_InvalidCredentialsPresentation)(nil), } file_org_signal_chat_profile_proto_msgTypes[22].OneofWrappers = []any{ (*ExtendAvatarTTLResponse_Path)(nil), (*ExtendAvatarTTLResponse_InvalidCredentialsPresentation)(nil), (*ExtendAvatarTTLResponse_NotFound)(nil), } file_org_signal_chat_profile_proto_msgTypes[24].OneofWrappers = []any{ (*DeleteAvatarResponse_Success)(nil), (*DeleteAvatarResponse_InvalidCredentialsPresentation)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_org_signal_chat_profile_proto_rawDesc), len(file_org_signal_chat_profile_proto_rawDesc)), NumEnums: 2, NumMessages: 25, NumExtensions: 0, NumServices: 2, }, GoTypes: file_org_signal_chat_profile_proto_goTypes, DependencyIndexes: file_org_signal_chat_profile_proto_depIdxs, EnumInfos: file_org_signal_chat_profile_proto_enumTypes, MessageInfos: file_org_signal_chat_profile_proto_msgTypes, }.Build() File_org_signal_chat_profile_proto = out.File file_org_signal_chat_profile_proto_goTypes = nil file_org_signal_chat_profile_proto_depIdxs = nil }