// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v7.34.1 // source: cds2pb/cds2.proto package cds2pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 ClientRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Each ACI/UAK pair is a 32-byte buffer, containing the 16-byte ACI followed // by its 16-byte UAK. AciUakPairs []byte `protobuf:"bytes,1,opt,name=aci_uak_pairs,json=aciUakPairs,proto3" json:"aci_uak_pairs,omitempty"` // Each E164 is an 8-byte big-endian number, as 8 bytes. PrevE164S []byte `protobuf:"bytes,2,opt,name=prev_e164s,json=prevE164s,proto3" json:"prev_e164s,omitempty"` NewE164S []byte `protobuf:"bytes,3,opt,name=new_e164s,json=newE164s,proto3" json:"new_e164s,omitempty"` DiscardE164S []byte `protobuf:"bytes,4,opt,name=discard_e164s,json=discardE164s,proto3" json:"discard_e164s,omitempty"` // If set, a token which allows rate limiting to discount the e164s in // the request's prev_e164s, only counting new_e164s. If not set, then // rate limiting considers both prev_e164s' and new_e164s' size. Token []byte `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"` // After receiving a new token from the server, send back a message just // containing a token_ack. TokenAck bool `protobuf:"varint,7,opt,name=token_ack,json=tokenAck,proto3" json:"token_ack,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ClientRequest) Reset() { *x = ClientRequest{} mi := &file_cds2pb_cds2_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ClientRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ClientRequest) ProtoMessage() {} func (x *ClientRequest) ProtoReflect() protoreflect.Message { mi := &file_cds2pb_cds2_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 ClientRequest.ProtoReflect.Descriptor instead. func (*ClientRequest) Descriptor() ([]byte, []int) { return file_cds2pb_cds2_proto_rawDescGZIP(), []int{0} } func (x *ClientRequest) GetAciUakPairs() []byte { if x != nil { return x.AciUakPairs } return nil } func (x *ClientRequest) GetPrevE164S() []byte { if x != nil { return x.PrevE164S } return nil } func (x *ClientRequest) GetNewE164S() []byte { if x != nil { return x.NewE164S } return nil } func (x *ClientRequest) GetDiscardE164S() []byte { if x != nil { return x.DiscardE164S } return nil } func (x *ClientRequest) GetToken() []byte { if x != nil { return x.Token } return nil } func (x *ClientRequest) GetTokenAck() bool { if x != nil { return x.TokenAck } return false } type ClientResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Each triple is an 8-byte e164, a 16-byte PNI, and a 16-byte ACI. // If the e164 was not found, PNI and ACI are all zeros. If the PNI // was found but the ACI was not, the PNI will be non-zero and the ACI // will be all zeros. ACI will be returned if one of the returned // PNIs has an ACI/UAK pair that matches. // // Should the request be successful (IE: a successful status returned), // |e164_pni_aci_triple| will always equal |e164| of the request, // so the entire marshalled size of the response will be (2+32)*|e164|, // where the additional 2 bytes are the id/type/length additions of the // protobuf marshaling added to each byte array. This avoids any data // leakage based on the size of the encrypted output. E164PniAciTriples []byte `protobuf:"bytes,1,opt,name=e164_pni_aci_triples,json=e164PniAciTriples,proto3" json:"e164_pni_aci_triples,omitempty"` // A token which allows subsequent calls' rate limiting to discount the // e164s sent up in this request, only counting those in the next // request's new_e164s. Token []byte `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // On a successful response to a token_ack request, the number of permits // that were deducted from the user's rate-limit in order to process the // request DebugPermitsUsed int32 `protobuf:"varint,4,opt,name=debug_permits_used,json=debugPermitsUsed,proto3" json:"debug_permits_used,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ClientResponse) Reset() { *x = ClientResponse{} mi := &file_cds2pb_cds2_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ClientResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ClientResponse) ProtoMessage() {} func (x *ClientResponse) ProtoReflect() protoreflect.Message { mi := &file_cds2pb_cds2_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 ClientResponse.ProtoReflect.Descriptor instead. func (*ClientResponse) Descriptor() ([]byte, []int) { return file_cds2pb_cds2_proto_rawDescGZIP(), []int{1} } func (x *ClientResponse) GetE164PniAciTriples() []byte { if x != nil { return x.E164PniAciTriples } return nil } func (x *ClientResponse) GetToken() []byte { if x != nil { return x.Token } return nil } func (x *ClientResponse) GetDebugPermitsUsed() int32 { if x != nil { return x.DebugPermitsUsed } return 0 } var File_cds2pb_cds2_proto protoreflect.FileDescriptor const file_cds2pb_cds2_proto_rawDesc = "" + "\n" + "\x11cds2pb/cds2.proto\x12\x0forg.signal.cdsi\"\xd3\x01\n" + "\rClientRequest\x12\"\n" + "\raci_uak_pairs\x18\x01 \x01(\fR\vaciUakPairs\x12\x1d\n" + "\n" + "prev_e164s\x18\x02 \x01(\fR\tprevE164s\x12\x1b\n" + "\tnew_e164s\x18\x03 \x01(\fR\bnewE164s\x12#\n" + "\rdiscard_e164s\x18\x04 \x01(\fR\fdiscardE164s\x12\x14\n" + "\x05token\x18\x06 \x01(\fR\x05token\x12\x1b\n" + "\ttoken_ack\x18\a \x01(\bR\btokenAckJ\x04\b\x05\x10\x06J\x04\b\b\x10\t\"\x8b\x01\n" + "\x0eClientResponse\x12/\n" + "\x14e164_pni_aci_triples\x18\x01 \x01(\fR\x11e164PniAciTriples\x12\x14\n" + "\x05token\x18\x03 \x01(\fR\x05token\x12,\n" + "\x12debug_permits_used\x18\x04 \x01(\x05R\x10debugPermitsUsedJ\x04\b\x02\x10\x03b\x06proto3" var ( file_cds2pb_cds2_proto_rawDescOnce sync.Once file_cds2pb_cds2_proto_rawDescData []byte ) func file_cds2pb_cds2_proto_rawDescGZIP() []byte { file_cds2pb_cds2_proto_rawDescOnce.Do(func() { file_cds2pb_cds2_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cds2pb_cds2_proto_rawDesc), len(file_cds2pb_cds2_proto_rawDesc))) }) return file_cds2pb_cds2_proto_rawDescData } var file_cds2pb_cds2_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_cds2pb_cds2_proto_goTypes = []any{ (*ClientRequest)(nil), // 0: org.signal.cdsi.ClientRequest (*ClientResponse)(nil), // 1: org.signal.cdsi.ClientResponse } var file_cds2pb_cds2_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_cds2pb_cds2_proto_init() } func file_cds2pb_cds2_proto_init() { if File_cds2pb_cds2_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_cds2pb_cds2_proto_rawDesc), len(file_cds2pb_cds2_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_cds2pb_cds2_proto_goTypes, DependencyIndexes: file_cds2pb_cds2_proto_depIdxs, MessageInfos: file_cds2pb_cds2_proto_msgTypes, }.Build() File_cds2pb_cds2_proto = out.File file_cds2pb_cds2_proto_goTypes = nil file_cds2pb_cds2_proto_depIdxs = nil }