Skip to content

Commit

Permalink
Add proto files from go-acoustid
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Feb 13, 2024
1 parent 2a3d639 commit 249e7c4
Show file tree
Hide file tree
Showing 14 changed files with 624 additions and 15 deletions.
Empty file added acoustid/proto/__init__.py
Empty file.
Empty file.
27 changes: 27 additions & 0 deletions acoustid/proto/common/fingerprint_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions acoustid/proto/common/fingerprint_pb2.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import sys

if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing_extensions.final
class Fingerprint(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

VERSION_FIELD_NUMBER: builtins.int
HASHES_FIELD_NUMBER: builtins.int
version: builtins.int
@property
def hashes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
def __init__(
self,
*,
version: builtins.int = ...,
hashes: collections.abc.Iterable[builtins.int] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["hashes", b"hashes", "version", b"version"]) -> None: ...

global___Fingerprint = Fingerprint
4 changes: 4 additions & 0 deletions acoustid/proto/common/fingerprint_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

Empty file.
55 changes: 55 additions & 0 deletions acoustid/proto/fpstore/fpstore_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

231 changes: 231 additions & 0 deletions acoustid/proto/fpstore/fpstore_pb2.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import collections.abc
import common.fingerprint_pb2
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import sys

if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions
from acoustid.proto.common.fingerprint_pb2 import (
Fingerprint as Fingerprint,
)

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing_extensions.final
class InsertFingerprintRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

FINGERPRINT_FIELD_NUMBER: builtins.int
@property
def Fingerprint(self) -> common.fingerprint_pb2.Fingerprint: ...
def __init__(
self,
*,
Fingerprint: common.fingerprint_pb2.Fingerprint | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["Fingerprint", b"Fingerprint"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["Fingerprint", b"Fingerprint"]) -> None: ...

global___InsertFingerprintRequest = InsertFingerprintRequest

@typing_extensions.final
class InsertFingerprintResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

ID_FIELD_NUMBER: builtins.int
id: builtins.int
def __init__(
self,
*,
id: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ...

global___InsertFingerprintResponse = InsertFingerprintResponse

@typing_extensions.final
class UpdateFingerprintRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

ID_FIELD_NUMBER: builtins.int
FINGERPRINT_FIELD_NUMBER: builtins.int
id: builtins.int
@property
def fingerprint(self) -> common.fingerprint_pb2.Fingerprint: ...
def __init__(
self,
*,
id: builtins.int = ...,
fingerprint: common.fingerprint_pb2.Fingerprint | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["fingerprint", b"fingerprint"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["fingerprint", b"fingerprint", "id", b"id"]) -> None: ...

global___UpdateFingerprintRequest = UpdateFingerprintRequest

@typing_extensions.final
class UpdateFingerprintResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

def __init__(
self,
) -> None: ...

global___UpdateFingerprintResponse = UpdateFingerprintResponse

@typing_extensions.final
class DeleteFingerprintRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

ID_FIELD_NUMBER: builtins.int
id: builtins.int
def __init__(
self,
*,
id: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ...

global___DeleteFingerprintRequest = DeleteFingerprintRequest

@typing_extensions.final
class DeleteFingerprintResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

def __init__(
self,
) -> None: ...

global___DeleteFingerprintResponse = DeleteFingerprintResponse

@typing_extensions.final
class GetFingerprintRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

ID_FIELD_NUMBER: builtins.int
id: builtins.int
def __init__(
self,
*,
id: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ...

global___GetFingerprintRequest = GetFingerprintRequest

@typing_extensions.final
class GetFingerprintResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

FINGERPRINT_FIELD_NUMBER: builtins.int
@property
def fingerprint(self) -> common.fingerprint_pb2.Fingerprint: ...
def __init__(
self,
*,
fingerprint: common.fingerprint_pb2.Fingerprint | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["fingerprint", b"fingerprint"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["fingerprint", b"fingerprint"]) -> None: ...

global___GetFingerprintResponse = GetFingerprintResponse

@typing_extensions.final
class CompareFingerprintRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

FINGERPRINT_FIELD_NUMBER: builtins.int
IDS_FIELD_NUMBER: builtins.int
@property
def fingerprint(self) -> common.fingerprint_pb2.Fingerprint: ...
@property
def ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
def __init__(
self,
*,
fingerprint: common.fingerprint_pb2.Fingerprint | None = ...,
ids: collections.abc.Iterable[builtins.int] | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["fingerprint", b"fingerprint"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["fingerprint", b"fingerprint", "ids", b"ids"]) -> None: ...

global___CompareFingerprintRequest = CompareFingerprintRequest

@typing_extensions.final
class MatchingFingerprint(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

ID_FIELD_NUMBER: builtins.int
SIMILARITY_FIELD_NUMBER: builtins.int
id: builtins.int
similarity: builtins.float
def __init__(
self,
*,
id: builtins.int = ...,
similarity: builtins.float = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "similarity", b"similarity"]) -> None: ...

global___MatchingFingerprint = MatchingFingerprint

@typing_extensions.final
class CompareFingerprintResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

RESULTS_FIELD_NUMBER: builtins.int
@property
def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MatchingFingerprint]: ...
def __init__(
self,
*,
results: collections.abc.Iterable[global___MatchingFingerprint] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["results", b"results"]) -> None: ...

global___CompareFingerprintResponse = CompareFingerprintResponse

@typing_extensions.final
class SearchFingerprintRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

FINGERPRINT_FIELD_NUMBER: builtins.int
LIMIT_FIELD_NUMBER: builtins.int
@property
def fingerprint(self) -> common.fingerprint_pb2.Fingerprint: ...
limit: builtins.int
def __init__(
self,
*,
fingerprint: common.fingerprint_pb2.Fingerprint | None = ...,
limit: builtins.int = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["fingerprint", b"fingerprint"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["fingerprint", b"fingerprint", "limit", b"limit"]) -> None: ...

global___SearchFingerprintRequest = SearchFingerprintRequest

@typing_extensions.final
class SearchFingerprintResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

RESULTS_FIELD_NUMBER: builtins.int
@property
def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MatchingFingerprint]: ...
def __init__(
self,
*,
results: collections.abc.Iterable[global___MatchingFingerprint] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["results", b"results"]) -> None: ...

global___SearchFingerprintResponse = SearchFingerprintResponse
Loading

0 comments on commit 249e7c4

Please sign in to comment.