hub changes for stream/repost with extensions #113
28 changed files with 371 additions and 8347 deletions
|
@ -764,7 +764,16 @@ INDEX_DEFAULT_SETTINGS = {
|
||||||
"claim_type": {"type": "byte"},
|
"claim_type": {"type": "byte"},
|
||||||
"censor_type": {"type": "byte"},
|
"censor_type": {"type": "byte"},
|
||||||
"trending_score": {"type": "double"},
|
"trending_score": {"type": "double"},
|
||||||
"release_time": {"type": "long"}
|
"release_time": {"type": "long"},
|
||||||
|
# top-level keys of extensions dict indexed as keywords
|
||||||
|
"extensions": {
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
|
# full contents of extensions dict available as "runtime" fields
|
||||||
|
"extensions_obj": {
|
||||||
|
"type": "object",
|
||||||
|
"dynamic": "runtime"
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -788,7 +797,7 @@ FIELDS = {
|
||||||
'reposted_claim_id', 'repost_count', 'sd_hash',
|
'reposted_claim_id', 'repost_count', 'sd_hash',
|
||||||
'trending_score', 'tx_num',
|
'trending_score', 'tx_num',
|
||||||
'channel_tx_id', 'channel_tx_position', 'channel_height', 'reposted_tx_id',
|
'channel_tx_id', 'channel_tx_position', 'channel_height', 'reposted_tx_id',
|
||||||
'reposted_tx_position', 'reposted_height',
|
'reposted_tx_position', 'reposted_height', 'extensions',
|
||||||
}
|
}
|
||||||
|
|
||||||
TEXT_FIELDS = {
|
TEXT_FIELDS = {
|
||||||
|
@ -807,7 +816,12 @@ RANGE_FIELDS = {
|
||||||
'channel_tx_position', 'channel_height',
|
'channel_tx_position', 'channel_height',
|
||||||
}
|
}
|
||||||
|
|
||||||
ALL_FIELDS = RANGE_FIELDS | TEXT_FIELDS | FIELDS
|
OBJECT_FIELDS = {
|
||||||
|
'extensions',
|
||||||
|
}
|
||||||
|
|
||||||
|
ALL_FIELDS = (RANGE_FIELDS | TEXT_FIELDS | FIELDS |
|
||||||
|
OBJECT_FIELDS | { f+'_obj' for f in OBJECT_FIELDS })
|
||||||
|
|
||||||
REPLACEMENTS = {
|
REPLACEMENTS = {
|
||||||
'claim_name': 'normalized_name',
|
'claim_name': 'normalized_name',
|
||||||
|
@ -826,6 +840,7 @@ REPLACEMENTS = {
|
||||||
|
|
||||||
|
|
||||||
def expand_query(**kwargs):
|
def expand_query(**kwargs):
|
||||||
|
#print(f'expand_query: >>> {kwargs}')
|
||||||
if "amount_order" in kwargs:
|
if "amount_order" in kwargs:
|
||||||
kwargs["limit"] = 1
|
kwargs["limit"] = 1
|
||||||
kwargs["order_by"] = "effective_amount"
|
kwargs["order_by"] = "effective_amount"
|
||||||
|
@ -848,7 +863,10 @@ def expand_query(**kwargs):
|
||||||
value = list(filter(None, value))
|
value = list(filter(None, value))
|
||||||
if value is None or isinstance(value, list) and len(value) == 0:
|
if value is None or isinstance(value, list) and len(value) == 0:
|
||||||
continue
|
continue
|
||||||
|
if key in OBJECT_FIELDS and not isinstance(value, dict):
|
||||||
|
continue
|
||||||
key = REPLACEMENTS.get(key, key)
|
key = REPLACEMENTS.get(key, key)
|
||||||
|
#print(f'expand_query: *** {key} = {value}')
|
||||||
if key in FIELDS:
|
if key in FIELDS:
|
||||||
partial_id = False
|
partial_id = False
|
||||||
if key == 'claim_type':
|
if key == 'claim_type':
|
||||||
|
@ -911,6 +929,25 @@ def expand_query(**kwargs):
|
||||||
]}
|
]}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
elif key in OBJECT_FIELDS:
|
||||||
|
def flatten(field, d):
|
||||||
|
if isinstance(d, dict) and len(d) > 0:
|
||||||
|
for k, v in d.items():
|
||||||
|
subfield = f'{field}.{k}' if field else k
|
||||||
|
yield from flatten(subfield, v)
|
||||||
|
elif isinstance(d, dict):
|
||||||
|
# require <field> be present
|
||||||
|
yield {"exists": {"field": field}}
|
||||||
|
elif isinstance(d, list):
|
||||||
|
# require <field> match all values <d>
|
||||||
|
yield {"bool": {"must": [{"match": {field: {"query": e}}} for e in d]}}
|
||||||
|
else:
|
||||||
|
# require <field> match value <d>
|
||||||
|
yield {"match": {field: {"query": d}}}
|
||||||
|
# query field <key> for list of top-level dictionary keys
|
||||||
|
query['must'].append({"terms": {key: list(value.keys())}})
|
||||||
|
# query field <key>_obj for nested properties
|
||||||
|
query['must'].extend(flatten(f'{key}_obj', value))
|
||||||
elif many:
|
elif many:
|
||||||
query['must'].append({"terms": {key: value}})
|
query['must'].append({"terms": {key: value}})
|
||||||
else:
|
else:
|
||||||
|
@ -1022,6 +1059,7 @@ def expand_query(**kwargs):
|
||||||
"sort": query["sort"]
|
"sort": query["sort"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#print(f'expand_query: <<< {query}')
|
||||||
return query
|
return query
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Optional, Set, Dict, List
|
from typing import Optional, Set, Dict, List
|
||||||
from concurrent.futures.thread import ThreadPoolExecutor
|
from concurrent.futures.thread import ThreadPoolExecutor
|
||||||
from hub.schema.claim import guess_stream_type
|
from hub.schema.claim import guess_stream_type, Claim
|
||||||
from hub.schema.result import Censor
|
from hub.schema.result import Censor
|
||||||
from hub.common import hash160, STREAM_TYPES, CLAIM_TYPES, LRUCache
|
from hub.common import hash160, STREAM_TYPES, CLAIM_TYPES, LRUCache
|
||||||
from hub.db import SecondaryDB
|
from hub.db import SecondaryDB
|
||||||
|
@ -43,9 +43,11 @@ class ElasticSyncDB(SecondaryDB):
|
||||||
metadatas.update(await self.get_claim_metadatas(list(needed_txos)))
|
metadatas.update(await self.get_claim_metadatas(list(needed_txos)))
|
||||||
|
|
||||||
for claim_hash, claim in claims.items():
|
for claim_hash, claim in claims.items():
|
||||||
|
assert isinstance(claim, ResolveResult)
|
||||||
metadata = metadatas.get((claim.tx_hash, claim.position))
|
metadata = metadatas.get((claim.tx_hash, claim.position))
|
||||||
if not metadata:
|
if not metadata:
|
||||||
continue
|
continue
|
||||||
|
assert isinstance(metadata, Claim)
|
||||||
if not metadata.is_stream or not metadata.stream.has_fee:
|
if not metadata.is_stream or not metadata.stream.has_fee:
|
||||||
fee_amount = 0
|
fee_amount = 0
|
||||||
else:
|
else:
|
||||||
|
@ -98,16 +100,24 @@ class ElasticSyncDB(SecondaryDB):
|
||||||
if reposted_metadata.is_stream and \
|
if reposted_metadata.is_stream and \
|
||||||
(reposted_metadata.stream.video.duration or reposted_metadata.stream.audio.duration):
|
(reposted_metadata.stream.video.duration or reposted_metadata.stream.audio.duration):
|
||||||
reposted_duration = reposted_metadata.stream.video.duration or reposted_metadata.stream.audio.duration
|
reposted_duration = reposted_metadata.stream.video.duration or reposted_metadata.stream.audio.duration
|
||||||
|
|
||||||
|
extensions = None
|
||||||
if metadata.is_stream:
|
if metadata.is_stream:
|
||||||
meta = metadata.stream
|
meta = metadata.stream
|
||||||
|
extensions = meta.extensions.to_dict()
|
||||||
elif metadata.is_channel:
|
elif metadata.is_channel:
|
||||||
meta = metadata.channel
|
meta = metadata.channel
|
||||||
elif metadata.is_collection:
|
elif metadata.is_collection:
|
||||||
meta = metadata.collection
|
meta = metadata.collection
|
||||||
elif metadata.is_repost:
|
elif metadata.is_repost:
|
||||||
meta = metadata.repost
|
meta = metadata.repost
|
||||||
|
modified = meta.reference.apply(reposted_metadata)
|
||||||
|
modified = getattr(modified, modified.claim_type)
|
||||||
|
if hasattr(modified, 'extensions'):
|
||||||
|
extensions = modified.extensions.to_dict()
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
claim_tags = [tag for tag in meta.tags]
|
claim_tags = [tag for tag in meta.tags]
|
||||||
claim_languages = [lang.language or 'none' for lang in meta.languages] or ['none']
|
claim_languages = [lang.language or 'none' for lang in meta.languages] or ['none']
|
||||||
tags = list(set(claim_tags).union(set(reposted_tags)))
|
tags = list(set(claim_tags).union(set(reposted_tags)))
|
||||||
|
@ -181,6 +191,8 @@ class ElasticSyncDB(SecondaryDB):
|
||||||
'channel_tx_id': None if not claim.channel_tx_hash else claim.channel_tx_hash[::-1].hex(),
|
'channel_tx_id': None if not claim.channel_tx_hash else claim.channel_tx_hash[::-1].hex(),
|
||||||
'channel_tx_position': claim.channel_tx_position,
|
'channel_tx_position': claim.channel_tx_position,
|
||||||
'channel_height': claim.channel_height,
|
'channel_height': claim.channel_height,
|
||||||
|
'extensions': list(extensions.keys()) if extensions else None,
|
||||||
|
'extensions_obj': extensions,
|
||||||
}
|
}
|
||||||
|
|
||||||
if metadata.is_repost and reposted_duration is not None:
|
if metadata.is_repost and reposted_duration is not None:
|
||||||
|
|
|
@ -134,6 +134,8 @@ class ElasticSyncService(BlockchainReaderService):
|
||||||
index_version = await self.get_index_version()
|
index_version = await self.get_index_version()
|
||||||
|
|
||||||
res = await self.sync_client.indices.create(self.index, INDEX_DEFAULT_SETTINGS, ignore=400)
|
res = await self.sync_client.indices.create(self.index, INDEX_DEFAULT_SETTINGS, ignore=400)
|
||||||
|
if 'error' in res:
|
||||||
|
self.log.warning("es index create failed: %s", res)
|
||||||
acked = res.get('acknowledged', False)
|
acked = res.get('acknowledged', False)
|
||||||
|
|
||||||
if acked:
|
if acked:
|
||||||
|
@ -189,7 +191,6 @@ class ElasticSyncService(BlockchainReaderService):
|
||||||
await self.sync_client.update_by_query(
|
await self.sync_client.update_by_query(
|
||||||
self.index, body=self.update_filter_query(censor_type, only_channels(batch), True),
|
self.index, body=self.update_filter_query(censor_type, only_channels(batch), True),
|
||||||
slices=4)
|
slices=4)
|
||||||
await self.sync_client.indices.refresh(self.index)
|
|
||||||
|
|
||||||
if filtered_streams:
|
if filtered_streams:
|
||||||
await batched_update_filter(filtered_streams, False, Censor.SEARCH)
|
await batched_update_filter(filtered_streams, False, Censor.SEARCH)
|
||||||
|
@ -199,6 +200,8 @@ class ElasticSyncService(BlockchainReaderService):
|
||||||
await batched_update_filter(blocked_streams, False, Censor.RESOLVE)
|
await batched_update_filter(blocked_streams, False, Censor.RESOLVE)
|
||||||
if blocked_channels:
|
if blocked_channels:
|
||||||
await batched_update_filter(blocked_channels, True, Censor.RESOLVE)
|
await batched_update_filter(blocked_channels, True, Censor.RESOLVE)
|
||||||
|
if filtered_streams or filtered_channels or blocked_streams or blocked_channels:
|
||||||
|
await self.sync_client.indices.refresh(self.index)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _upsert_claim_query(index, claim):
|
def _upsert_claim_query(index, claim):
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
build:
|
build:
|
||||||
rm types/v2/* -rf
|
rm -rf types/v2/*
|
||||||
touch types/v2/__init__.py
|
touch types/v2/__init__.py
|
||||||
cd types/v2/ && protoc --python_out=. -I ../../../../../types/v2/proto/ ../../../../../types/v2/proto/*.proto
|
cd types/v2/ && protoc --python_out=. -I ../../../../../types/v2/proto/ ../../../../../types/v2/proto/*.proto
|
||||||
sed -e 's/^import\ \(.*\)_pb2\ /from . import\ \1_pb2\ /g' -i types/v2/*.py
|
cd types/v2/ && cp ../../../../../types/jsonschema/* ./
|
||||||
|
sed -e 's/^import\ \(.*\)_pb2\ /from . import\ \1_pb2\ /g' -i.bak types/v2/*.py
|
||||||
|
|
|
@ -2,23 +2,27 @@ import json
|
||||||
import logging
|
import logging
|
||||||
import os.path
|
import os.path
|
||||||
import hashlib
|
import hashlib
|
||||||
|
from collections.abc import Mapping, Iterable
|
||||||
from typing import Tuple, List
|
from typing import Tuple, List
|
||||||
from string import ascii_letters
|
from string import ascii_letters
|
||||||
from decimal import Decimal, ROUND_UP
|
from decimal import Decimal, ROUND_UP
|
||||||
from google.protobuf.json_format import MessageToDict
|
from google.protobuf.json_format import MessageToDict, ParseDict, ParseError
|
||||||
|
|
||||||
from hub.schema.base58 import Base58, b58_encode
|
from hub.schema.base58 import Base58, b58_encode
|
||||||
from hub.error import MissingPublishedFileError, EmptyPublishedFileError
|
from hub.error import MissingPublishedFileError, EmptyPublishedFileError
|
||||||
|
|
||||||
|
import hub.schema.claim as claim
|
||||||
from hub.schema.mime_types import guess_media_type
|
from hub.schema.mime_types import guess_media_type
|
||||||
from hub.schema.base import Metadata, BaseMessageList
|
from hub.schema.base import Metadata, BaseMessageList
|
||||||
from hub.schema.tags import normalize_tag
|
from hub.schema.tags import normalize_tag
|
||||||
from hub.schema.types.v2.claim_pb2 import (
|
from google.protobuf.message import Message as ProtobufMessage
|
||||||
|
from lbry_types.v2.claim_pb2 import (
|
||||||
|
Claim as ClaimMessage,
|
||||||
Fee as FeeMessage,
|
Fee as FeeMessage,
|
||||||
Location as LocationMessage,
|
Location as LocationMessage,
|
||||||
Language as LanguageMessage
|
Language as LanguageMessage,
|
||||||
)
|
)
|
||||||
|
from lbry_types.v2.extension_pb2 import Extension as ExtensionMessage
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -371,6 +375,86 @@ class ClaimReference(Metadata):
|
||||||
def claim_hash(self, claim_hash: bytes):
|
def claim_hash(self, claim_hash: bytes):
|
||||||
self.message.claim_hash = claim_hash
|
self.message.claim_hash = claim_hash
|
||||||
|
|
||||||
|
class ModifyingClaimReference(ClaimReference):
|
||||||
|
|
||||||
|
__slots__ = ()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def modification_type(self) -> str:
|
||||||
|
return self.message.WhichOneof('type')
|
||||||
|
|
||||||
|
@modification_type.setter
|
||||||
|
def modification_type(self, claim_type: str):
|
||||||
|
"""Select the appropriate member (stream, channel, repost, or collection)"""
|
||||||
|
old_type = self.message.WhichOneof('type')
|
||||||
|
if old_type == claim_type:
|
||||||
|
return
|
||||||
|
if old_type and claim_type is None:
|
||||||
|
self.message.ClearField(old_type)
|
||||||
|
return
|
||||||
|
member = getattr(self.message, claim_type)
|
||||||
|
member.SetInParent()
|
||||||
|
|
||||||
|
def update(self, claim_type: str, **kwargs) -> dict:
|
||||||
|
"""
|
||||||
|
Store updates to modifiable fields in deletions/edits.
|
||||||
|
Currently, only the "extensions" field (StreamExtensionMap)
|
||||||
|
of a stream claim may be modified. Returns a dict containing
|
||||||
|
the unhandled portion of "kwargs".
|
||||||
|
"""
|
||||||
|
if claim_type != 'stream':
|
||||||
|
return kwargs
|
||||||
|
|
||||||
|
clr_exts = kwargs.pop('clear_extensions', None)
|
||||||
|
set_exts = kwargs.pop('extensions', None)
|
||||||
|
if clr_exts is None and set_exts is None:
|
||||||
|
return kwargs
|
||||||
|
|
||||||
|
self.modification_type = claim_type
|
||||||
|
if not self.modification_type == 'stream':
|
||||||
|
return kwargs
|
||||||
|
|
||||||
|
mods = getattr(self.message, self.modification_type)
|
||||||
|
|
||||||
|
if clr_exts is not None:
|
||||||
|
deletions = StreamModifiable(mods.deletions)
|
||||||
|
if isinstance(clr_exts, str) and clr_exts.startswith('{'):
|
||||||
|
clr_exts = json.loads(clr_exts)
|
||||||
|
deletions.extensions.merge(clr_exts)
|
||||||
|
|
||||||
|
if set_exts is not None:
|
||||||
|
edits = StreamModifiable(mods.edits)
|
||||||
|
if isinstance(set_exts, str) and set_exts.startswith('{'):
|
||||||
|
set_exts = json.loads(set_exts)
|
||||||
|
edits.extensions.merge(set_exts)
|
||||||
|
|
||||||
|
return kwargs
|
||||||
|
|
||||||
|
def apply(self, reposted: 'claim.Claim') -> 'claim.Claim':
|
||||||
|
"""
|
||||||
|
Given a reposted claim, apply the stored deletions/edits, and return
|
||||||
|
the modified claim. Returns the original claim if the claim type has
|
||||||
|
changed such that the modifications are not relevant.
|
||||||
|
"""
|
||||||
|
if not self.modification_type or self.modification_type != reposted.claim_type:
|
||||||
|
return reposted
|
||||||
|
if not reposted.claim_type == 'stream':
|
||||||
|
return reposted
|
||||||
|
|
||||||
|
m = ClaimMessage()
|
||||||
|
m.CopyFrom(reposted.message)
|
||||||
|
result = claim.Claim(m)
|
||||||
|
|
||||||
|
# only stream claims, and only stream extensions are handled
|
||||||
|
stream = getattr(result, result.claim_type)
|
||||||
|
exts = getattr(stream, 'extensions')
|
||||||
|
|
||||||
|
mods = getattr(self.message, self.modification_type)
|
||||||
|
# apply deletions
|
||||||
|
exts.merge(StreamModifiable(mods.deletions).extensions, delete=True)
|
||||||
|
# apply edits
|
||||||
|
exts.merge(StreamModifiable(mods.edits).extensions)
|
||||||
|
return result
|
||||||
|
|
||||||
class ClaimList(BaseMessageList[ClaimReference]):
|
class ClaimList(BaseMessageList[ClaimReference]):
|
||||||
|
|
||||||
|
@ -571,3 +655,169 @@ class TagList(BaseMessageList[str]):
|
||||||
tag = normalize_tag(tag)
|
tag = normalize_tag(tag)
|
||||||
if tag and tag not in self.message:
|
if tag and tag not in self.message:
|
||||||
self.message.append(tag)
|
self.message.append(tag)
|
||||||
|
|
||||||
|
class StreamExtension(Metadata):
|
||||||
|
__slots__ = Metadata.__slots__ + ('extension_schema',)
|
||||||
|
|
||||||
|
def __init__(self, schema, message):
|
||||||
|
super().__init__(message)
|
||||||
|
self.extension_schema = schema
|
||||||
|
|
||||||
|
def to_dict(self, include_schema=True):
|
||||||
|
attrs = self.unpacked.to_dict()
|
||||||
|
return { f'{self.schema}': attrs } if include_schema else attrs
|
||||||
|
|
||||||
|
def from_value(self, value):
|
||||||
|
schema = self.schema
|
||||||
|
|
||||||
|
# If incoming is an extension, we have an Extension message.
|
||||||
|
if isinstance(value, StreamExtension):
|
||||||
|
schema = value.schema or schema
|
||||||
|
|
||||||
|
# Translate str -> (JSON) dict.
|
||||||
|
if isinstance(value, str) and value.startswith('{'):
|
||||||
|
value = json.loads(value)
|
||||||
|
|
||||||
|
# Check for 1-element dictionary at top level: {<schema>: <attrs>}.
|
||||||
|
if isinstance(value, dict) and len(value) == 1:
|
||||||
|
k = next(iter(value.keys()))
|
||||||
|
if self.schema is None or self.schema == k:
|
||||||
|
# Schema is determined. Extract dict containining attrs.
|
||||||
|
schema = k
|
||||||
|
value = value[schema]
|
||||||
|
|
||||||
|
# Try to decode attrs dict -> Extension message containing protobuf.Struct.
|
||||||
|
if isinstance(value, dict):
|
||||||
|
try:
|
||||||
|
ext = StreamExtension(schema, ExtensionMessage())
|
||||||
|
ParseDict(value, ext.message.struct)
|
||||||
|
value = ext
|
||||||
|
except ParseError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
# Either we have an Extension message or decoding failed.
|
||||||
|
if isinstance(value, StreamExtension):
|
||||||
|
self.extension_schema = value.schema or schema
|
||||||
|
self.message.CopyFrom(value.message)
|
||||||
|
else:
|
||||||
|
log.info('Could not parse StreamExtension value: %s type: %s', value, type(value))
|
||||||
|
raise ValueError(f'Could not parse StreamExtension value: {value}')
|
||||||
|
|
||||||
|
@property
|
||||||
|
def schema(self):
|
||||||
|
return self.extension_schema
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unpacked(self):
|
||||||
|
return Struct(self.message.struct)
|
||||||
|
|
||||||
|
def merge(self, ext: 'StreamExtension', delete: bool = False) -> 'StreamExtension':
|
||||||
|
self.unpacked.merge(ext.unpacked, delete=delete)
|
||||||
|
return self
|
||||||
|
|
||||||
|
class Struct(Metadata, Mapping, Iterable):
|
||||||
|
__slots__ = ()
|
||||||
|
|
||||||
|
def to_dict(self) -> dict:
|
||||||
|
return MessageToDict(self.message)
|
||||||
|
|
||||||
|
def merge(self, other: 'Struct', delete: bool = False) -> 'Struct':
|
||||||
|
for k, v in other.message.fields.items():
|
||||||
|
if k not in self.message.fields:
|
||||||
|
if not delete:
|
||||||
|
self.message.fields[k].CopyFrom(v)
|
||||||
|
continue
|
||||||
|
my_value = self.message.fields[k]
|
||||||
|
my_kind = my_value.WhichOneof('kind')
|
||||||
|
kind = v.WhichOneof('kind')
|
||||||
|
if kind != my_kind:
|
||||||
|
continue
|
||||||
|
if kind == 'struct_value':
|
||||||
|
if len(v.struct_value.fields) > 0:
|
||||||
|
Struct(my_value).merge(v.struct_value, delete=delete)
|
||||||
|
elif delete:
|
||||||
|
del self.message.fields[k]
|
||||||
|
elif kind == 'list_value':
|
||||||
|
if len(v.list_value.values) > 0:
|
||||||
|
for _, o in enumerate(v.list_value.values):
|
||||||
|
for i, v in enumerate(my_value.list_value.values):
|
||||||
|
if v == o:
|
||||||
|
if delete:
|
||||||
|
del my_value.list_value.values[i]
|
||||||
|
break
|
||||||
|
if not delete:
|
||||||
|
if isinstance(o, ProtobufMessage):
|
||||||
|
my_value.list_value.values.add().CopyFrom(o)
|
||||||
|
else:
|
||||||
|
my_value.list_value.values.append(o)
|
||||||
|
elif delete:
|
||||||
|
del self.message.fields[k]
|
||||||
|
elif getattr(my_value, my_kind) == getattr(v, kind):
|
||||||
|
del self.message.fields[k]
|
||||||
|
return self
|
||||||
|
|
||||||
|
def __getitem__(self, key):
|
||||||
|
def extract(val):
|
||||||
|
if not isinstance(val, ProtobufMessage):
|
||||||
|
return val
|
||||||
|
kind = val.WhichOneof('kind')
|
||||||
|
if kind == 'struct_value':
|
||||||
|
return dict(Struct(val.struct_value))
|
||||||
|
elif kind == 'list_value':
|
||||||
|
return list(map(extract, val.list_value.values))
|
||||||
|
else:
|
||||||
|
return getattr(val, kind)
|
||||||
|
if key in self.message.fields:
|
||||||
|
val = self.message.fields[key]
|
||||||
|
return extract(val)
|
||||||
|
raise KeyError(key)
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
return iter(self.message.fields)
|
||||||
|
|
||||||
|
def __len__(self):
|
||||||
|
return len(self.message.fields)
|
||||||
|
|
||||||
|
class StreamExtensionMap(Metadata, Mapping, Iterable):
|
||||||
|
__slots__ = ()
|
||||||
|
item_class = StreamExtension
|
||||||
|
|
||||||
|
def to_dict(self):
|
||||||
|
return { k: v.to_dict(include_schema=False) for k, v in self.items() }
|
||||||
|
|
||||||
|
def merge(self, exts, delete: bool = False) -> 'StreamExtensionMap':
|
||||||
|
if isinstance(exts, StreamExtension):
|
||||||
|
exts = {exts.schema: exts}
|
||||||
|
if isinstance(exts, str) and exts.startswith('{'):
|
||||||
|
exts = json.loads(exts)
|
||||||
|
for schema, ext in exts.items():
|
||||||
|
obj = StreamExtension(schema, ExtensionMessage())
|
||||||
|
if isinstance(ext, StreamExtension):
|
||||||
|
obj.from_value(ext)
|
||||||
|
else:
|
||||||
|
obj.from_value({schema: ext})
|
||||||
|
if delete and not len(obj.unpacked):
|
||||||
|
del self.message[schema]
|
||||||
|
continue
|
||||||
|
existing = StreamExtension(schema, self.message[schema])
|
||||||
|
existing.merge(obj, delete=delete)
|
||||||
|
return self
|
||||||
|
|
||||||
|
def __getitem__(self, key):
|
||||||
|
if key in self.message:
|
||||||
|
return StreamExtension(key, self.message[key])
|
||||||
|
raise KeyError(key)
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
return iter(self.message)
|
||||||
|
|
||||||
|
def __len__(self):
|
||||||
|
return len(self.message)
|
||||||
|
|
||||||
|
|
||||||
|
class StreamModifiable(Metadata):
|
||||||
|
__slots__ = ()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def extensions(self) -> StreamExtensionMap:
|
||||||
|
return StreamExtensionMap(self.message.extensions)
|
||||||
|
|
|
@ -16,9 +16,10 @@ from hub.schema.base import Signable
|
||||||
from hub.schema.mime_types import guess_media_type, guess_stream_type
|
from hub.schema.mime_types import guess_media_type, guess_stream_type
|
||||||
from hub.schema.attrs import (
|
from hub.schema.attrs import (
|
||||||
Source, Playable, Dimmensional, Fee, Image, Video, Audio,
|
Source, Playable, Dimmensional, Fee, Image, Video, Audio,
|
||||||
LanguageList, LocationList, ClaimList, ClaimReference, TagList
|
LanguageList, LocationList, ClaimList, ModifyingClaimReference, TagList,
|
||||||
|
StreamExtensionMap
|
||||||
)
|
)
|
||||||
from hub.schema.types.v2.claim_pb2 import Claim as ClaimMessage
|
from lbry_types.v2.claim_pb2 import Claim as ClaimMessage
|
||||||
from hub.error import InputValueIsNoneError
|
from hub.error import InputValueIsNoneError
|
||||||
|
|
||||||
|
|
||||||
|
@ -211,6 +212,8 @@ class Stream(BaseClaim):
|
||||||
fee['address'] = self.fee.address
|
fee['address'] = self.fee.address
|
||||||
if 'amount' in fee:
|
if 'amount' in fee:
|
||||||
fee['amount'] = str(self.fee.amount)
|
fee['amount'] = str(self.fee.amount)
|
||||||
|
if 'extensions' in claim:
|
||||||
|
claim['extensions'] = self.extensions.to_dict()
|
||||||
return claim
|
return claim
|
||||||
|
|
||||||
def update(self, file_path=None, height=None, width=None, duration=None, **kwargs):
|
def update(self, file_path=None, height=None, width=None, duration=None, **kwargs):
|
||||||
|
@ -264,7 +267,24 @@ class Stream(BaseClaim):
|
||||||
media_args['width'] = width
|
media_args['width'] = width
|
||||||
media.update(**media_args)
|
media.update(**media_args)
|
||||||
|
|
||||||
super().update(**kwargs)
|
clr_exts = kwargs.pop('clear_extensions', None)
|
||||||
|
if clr_exts:
|
||||||
|
if isinstance(clr_exts, list):
|
||||||
|
for e in clr_exts:
|
||||||
|
self.extensions.merge(e, delete=True)
|
||||||
|
elif isinstance(clr_exts, (str, dict)):
|
||||||
|
self.extensions.merge(clr_exts, delete=True)
|
||||||
|
else:
|
||||||
|
self.message.ClearField('extensions')
|
||||||
|
set_exts = kwargs.pop('extensions', None)
|
||||||
|
if set_exts:
|
||||||
|
if isinstance(set_exts, list):
|
||||||
|
for e in set_exts:
|
||||||
|
self.extensions.merge(e)
|
||||||
|
else:
|
||||||
|
self.extensions.merge(set_exts)
|
||||||
|
|
||||||
|
return super().update(**kwargs)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def author(self) -> str:
|
def author(self) -> str:
|
||||||
|
@ -330,6 +350,10 @@ class Stream(BaseClaim):
|
||||||
def audio(self) -> Audio:
|
def audio(self) -> Audio:
|
||||||
return Audio(self.message.audio)
|
return Audio(self.message.audio)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def extensions(self) -> StreamExtensionMap:
|
||||||
|
return StreamExtensionMap(self.message.extensions)
|
||||||
|
|
||||||
|
|
||||||
class Channel(BaseClaim):
|
class Channel(BaseClaim):
|
||||||
|
|
||||||
|
@ -398,9 +422,26 @@ class Repost(BaseClaim):
|
||||||
|
|
||||||
claim_type = Claim.REPOST
|
claim_type = Claim.REPOST
|
||||||
|
|
||||||
|
def to_dict(self):
|
||||||
|
claim = super().to_dict()
|
||||||
|
if claim.pop('claim_hash', None):
|
||||||
|
claim['claim_id'] = self.reference.claim_id
|
||||||
|
return claim
|
||||||
|
|
||||||
|
def update(self, **kwargs):
|
||||||
|
claim_type = kwargs.pop('claim_type', None)
|
||||||
|
if claim_type:
|
||||||
|
# Try to apply updates to ClaimReference.
|
||||||
|
kwargs = self.reference.update(claim_type, **kwargs)
|
||||||
|
# Update common fields within BaseClaim.
|
||||||
|
super().update(**kwargs)
|
||||||
|
|
||||||
|
def apply(self, reposted: 'Claim'):
|
||||||
|
return self.reference.apply(reposted)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def reference(self) -> ClaimReference:
|
def reference(self) -> ModifyingClaimReference:
|
||||||
return ClaimReference(self.message)
|
return ModifyingClaimReference(self.message)
|
||||||
|
|
||||||
|
|
||||||
class Collection(BaseClaim):
|
class Collection(BaseClaim):
|
||||||
|
|
|
@ -3,9 +3,9 @@ from decimal import Decimal
|
||||||
|
|
||||||
from google.protobuf.message import DecodeError
|
from google.protobuf.message import DecodeError
|
||||||
|
|
||||||
from hub.schema.types.v1.legacy_claim_pb2 import Claim as OldClaimMessage
|
from lbry_types.v1.legacy_claim_pb2 import Claim as OldClaimMessage
|
||||||
from hub.schema.types.v1.certificate_pb2 import KeyType
|
from lbry_types.v1.certificate_pb2 import KeyType
|
||||||
from hub.schema.types.v1.fee_pb2 import Fee as FeeMessage
|
from lbry_types.v1.fee_pb2 import Fee as FeeMessage
|
||||||
|
|
||||||
|
|
||||||
def from_old_json_schema(claim, payload: bytes):
|
def from_old_json_schema(claim, payload: bytes):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from google.protobuf.message import DecodeError
|
from google.protobuf.message import DecodeError
|
||||||
from google.protobuf.json_format import MessageToDict
|
from google.protobuf.json_format import MessageToDict
|
||||||
from hub.schema.types.v2.purchase_pb2 import Purchase as PurchaseMessage
|
from lbry_types.v2.purchase_pb2 import Purchase as PurchaseMessage
|
||||||
from .attrs import ClaimReference
|
from .attrs import ClaimReference
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ from typing import List, TYPE_CHECKING, Union, Optional, Dict, Set, Tuple
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
|
||||||
from hub.error import ResolveCensoredError
|
from hub.error import ResolveCensoredError
|
||||||
from hub.schema.types.v2.result_pb2 import Outputs as OutputsMessage
|
from lbry_types.v2.result_pb2 import Outputs as OutputsMessage
|
||||||
from hub.schema.types.v2.result_pb2 import Error as ErrorMessage
|
from lbry_types.v2.result_pb2 import Error as ErrorMessage
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from hub.db.common import ResolveResult
|
from hub.db.common import ResolveResult
|
||||||
INVALID = ErrorMessage.Code.Name(ErrorMessage.INVALID)
|
INVALID = ErrorMessage.Code.Name(ErrorMessage.INVALID)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from hub.schema.base import Signable
|
from hub.schema.base import Signable
|
||||||
from hub.schema.types.v2.support_pb2 import Support as SupportMessage
|
from lbry_types.v2.support_pb2 import Support as SupportMessage
|
||||||
|
|
||||||
|
|
||||||
class Support(Signable):
|
class Support(Signable):
|
||||||
|
|
|
@ -1,146 +0,0 @@
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: certificate.proto
|
|
||||||
|
|
||||||
import sys
|
|
||||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
||||||
from google.protobuf.internal import enum_type_wrapper
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='certificate.proto',
|
|
||||||
package='legacy_pb',
|
|
||||||
syntax='proto2',
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_pb=_b('\n\x11\x63\x65rtificate.proto\x12\tlegacy_pb\"\xa2\x01\n\x0b\x43\x65rtificate\x12/\n\x07version\x18\x01 \x02(\x0e\x32\x1e.legacy_pb.Certificate.Version\x12#\n\x07keyType\x18\x02 \x02(\x0e\x32\x12.legacy_pb.KeyType\x12\x11\n\tpublicKey\x18\x04 \x02(\x0c\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01*Q\n\x07KeyType\x12\x1b\n\x17UNKNOWN_PUBLIC_KEY_TYPE\x10\x00\x12\x0c\n\x08NIST256p\x10\x01\x12\x0c\n\x08NIST384p\x10\x02\x12\r\n\tSECP256k1\x10\x03')
|
|
||||||
)
|
|
||||||
|
|
||||||
_KEYTYPE = _descriptor.EnumDescriptor(
|
|
||||||
name='KeyType',
|
|
||||||
full_name='legacy_pb.KeyType',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_PUBLIC_KEY_TYPE', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='NIST256p', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='NIST384p', index=2, number=2,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='SECP256k1', index=3, number=3,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=197,
|
|
||||||
serialized_end=278,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_KEYTYPE)
|
|
||||||
|
|
||||||
KeyType = enum_type_wrapper.EnumTypeWrapper(_KEYTYPE)
|
|
||||||
UNKNOWN_PUBLIC_KEY_TYPE = 0
|
|
||||||
NIST256p = 1
|
|
||||||
NIST384p = 2
|
|
||||||
SECP256k1 = 3
|
|
||||||
|
|
||||||
|
|
||||||
_CERTIFICATE_VERSION = _descriptor.EnumDescriptor(
|
|
||||||
name='Version',
|
|
||||||
full_name='legacy_pb.Certificate.Version',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_VERSION', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='_0_0_1', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=153,
|
|
||||||
serialized_end=195,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_CERTIFICATE_VERSION)
|
|
||||||
|
|
||||||
|
|
||||||
_CERTIFICATE = _descriptor.Descriptor(
|
|
||||||
name='Certificate',
|
|
||||||
full_name='legacy_pb.Certificate',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='version', full_name='legacy_pb.Certificate.version', index=0,
|
|
||||||
number=1, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='keyType', full_name='legacy_pb.Certificate.keyType', index=1,
|
|
||||||
number=2, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='publicKey', full_name='legacy_pb.Certificate.publicKey', index=2,
|
|
||||||
number=4, type=12, cpp_type=9, label=2,
|
|
||||||
has_default_value=False, default_value=_b(""),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
_CERTIFICATE_VERSION,
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto2',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=33,
|
|
||||||
serialized_end=195,
|
|
||||||
)
|
|
||||||
|
|
||||||
_CERTIFICATE.fields_by_name['version'].enum_type = _CERTIFICATE_VERSION
|
|
||||||
_CERTIFICATE.fields_by_name['keyType'].enum_type = _KEYTYPE
|
|
||||||
_CERTIFICATE_VERSION.containing_type = _CERTIFICATE
|
|
||||||
DESCRIPTOR.message_types_by_name['Certificate'] = _CERTIFICATE
|
|
||||||
DESCRIPTOR.enum_types_by_name['KeyType'] = _KEYTYPE
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
Certificate = _reflection.GeneratedProtocolMessageType('Certificate', (_message.Message,), dict(
|
|
||||||
DESCRIPTOR = _CERTIFICATE,
|
|
||||||
__module__ = 'certificate_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:legacy_pb.Certificate)
|
|
||||||
))
|
|
||||||
_sym_db.RegisterMessage(Certificate)
|
|
||||||
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
|
@ -1,148 +0,0 @@
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: fee.proto
|
|
||||||
|
|
||||||
import sys
|
|
||||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='fee.proto',
|
|
||||||
package='legacy_pb',
|
|
||||||
syntax='proto2',
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_pb=_b('\n\tfee.proto\x12\tlegacy_pb\"\xe3\x01\n\x03\x46\x65\x65\x12\'\n\x07version\x18\x01 \x02(\x0e\x32\x16.legacy_pb.Fee.Version\x12)\n\x08\x63urrency\x18\x02 \x02(\x0e\x32\x17.legacy_pb.Fee.Currency\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x02(\x0c\x12\x0e\n\x06\x61mount\x18\x04 \x02(\x02\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\";\n\x08\x43urrency\x12\x14\n\x10UNKNOWN_CURRENCY\x10\x00\x12\x07\n\x03LBC\x10\x01\x12\x07\n\x03\x42TC\x10\x02\x12\x07\n\x03USD\x10\x03')
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_FEE_VERSION = _descriptor.EnumDescriptor(
|
|
||||||
name='Version',
|
|
||||||
full_name='legacy_pb.Fee.Version',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_VERSION', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='_0_0_1', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=149,
|
|
||||||
serialized_end=191,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_FEE_VERSION)
|
|
||||||
|
|
||||||
_FEE_CURRENCY = _descriptor.EnumDescriptor(
|
|
||||||
name='Currency',
|
|
||||||
full_name='legacy_pb.Fee.Currency',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_CURRENCY', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='LBC', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='BTC', index=2, number=2,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='USD', index=3, number=3,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=193,
|
|
||||||
serialized_end=252,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_FEE_CURRENCY)
|
|
||||||
|
|
||||||
|
|
||||||
_FEE = _descriptor.Descriptor(
|
|
||||||
name='Fee',
|
|
||||||
full_name='legacy_pb.Fee',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='version', full_name='legacy_pb.Fee.version', index=0,
|
|
||||||
number=1, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='currency', full_name='legacy_pb.Fee.currency', index=1,
|
|
||||||
number=2, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='address', full_name='legacy_pb.Fee.address', index=2,
|
|
||||||
number=3, type=12, cpp_type=9, label=2,
|
|
||||||
has_default_value=False, default_value=_b(""),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='amount', full_name='legacy_pb.Fee.amount', index=3,
|
|
||||||
number=4, type=2, cpp_type=6, label=2,
|
|
||||||
has_default_value=False, default_value=float(0),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
_FEE_VERSION,
|
|
||||||
_FEE_CURRENCY,
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto2',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=25,
|
|
||||||
serialized_end=252,
|
|
||||||
)
|
|
||||||
|
|
||||||
_FEE.fields_by_name['version'].enum_type = _FEE_VERSION
|
|
||||||
_FEE.fields_by_name['currency'].enum_type = _FEE_CURRENCY
|
|
||||||
_FEE_VERSION.containing_type = _FEE
|
|
||||||
_FEE_CURRENCY.containing_type = _FEE
|
|
||||||
DESCRIPTOR.message_types_by_name['Fee'] = _FEE
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
Fee = _reflection.GeneratedProtocolMessageType('Fee', (_message.Message,), dict(
|
|
||||||
DESCRIPTOR = _FEE,
|
|
||||||
__module__ = 'fee_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:legacy_pb.Fee)
|
|
||||||
))
|
|
||||||
_sym_db.RegisterMessage(Fee)
|
|
||||||
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
|
@ -1,158 +0,0 @@
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: legacy_claim.proto
|
|
||||||
|
|
||||||
import sys
|
|
||||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
from . import stream_pb2 as stream__pb2
|
|
||||||
from . import certificate_pb2 as certificate__pb2
|
|
||||||
from . import signature_pb2 as signature__pb2
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='legacy_claim.proto',
|
|
||||||
package='legacy_pb',
|
|
||||||
syntax='proto2',
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_pb=_b('\n\x12legacy_claim.proto\x12\tlegacy_pb\x1a\x0cstream.proto\x1a\x11\x63\x65rtificate.proto\x1a\x0fsignature.proto\"\xd9\x02\n\x05\x43laim\x12)\n\x07version\x18\x01 \x02(\x0e\x32\x18.legacy_pb.Claim.Version\x12-\n\tclaimType\x18\x02 \x02(\x0e\x32\x1a.legacy_pb.Claim.ClaimType\x12!\n\x06stream\x18\x03 \x01(\x0b\x32\x11.legacy_pb.Stream\x12+\n\x0b\x63\x65rtificate\x18\x04 \x01(\x0b\x32\x16.legacy_pb.Certificate\x12\x30\n\x12publisherSignature\x18\x05 \x01(\x0b\x32\x14.legacy_pb.Signature\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\"H\n\tClaimType\x12\x16\n\x12UNKNOWN_CLAIM_TYPE\x10\x00\x12\x0e\n\nstreamType\x10\x01\x12\x13\n\x0f\x63\x65rtificateType\x10\x02')
|
|
||||||
,
|
|
||||||
dependencies=[stream__pb2.DESCRIPTOR,certificate__pb2.DESCRIPTOR,signature__pb2.DESCRIPTOR,])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_CLAIM_VERSION = _descriptor.EnumDescriptor(
|
|
||||||
name='Version',
|
|
||||||
full_name='legacy_pb.Claim.Version',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_VERSION', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='_0_0_1', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=313,
|
|
||||||
serialized_end=355,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_CLAIM_VERSION)
|
|
||||||
|
|
||||||
_CLAIM_CLAIMTYPE = _descriptor.EnumDescriptor(
|
|
||||||
name='ClaimType',
|
|
||||||
full_name='legacy_pb.Claim.ClaimType',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_CLAIM_TYPE', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='streamType', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='certificateType', index=2, number=2,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=357,
|
|
||||||
serialized_end=429,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_CLAIM_CLAIMTYPE)
|
|
||||||
|
|
||||||
|
|
||||||
_CLAIM = _descriptor.Descriptor(
|
|
||||||
name='Claim',
|
|
||||||
full_name='legacy_pb.Claim',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='version', full_name='legacy_pb.Claim.version', index=0,
|
|
||||||
number=1, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='claimType', full_name='legacy_pb.Claim.claimType', index=1,
|
|
||||||
number=2, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='stream', full_name='legacy_pb.Claim.stream', index=2,
|
|
||||||
number=3, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='certificate', full_name='legacy_pb.Claim.certificate', index=3,
|
|
||||||
number=4, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='publisherSignature', full_name='legacy_pb.Claim.publisherSignature', index=4,
|
|
||||||
number=5, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
_CLAIM_VERSION,
|
|
||||||
_CLAIM_CLAIMTYPE,
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto2',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=84,
|
|
||||||
serialized_end=429,
|
|
||||||
)
|
|
||||||
|
|
||||||
_CLAIM.fields_by_name['version'].enum_type = _CLAIM_VERSION
|
|
||||||
_CLAIM.fields_by_name['claimType'].enum_type = _CLAIM_CLAIMTYPE
|
|
||||||
_CLAIM.fields_by_name['stream'].message_type = stream__pb2._STREAM
|
|
||||||
_CLAIM.fields_by_name['certificate'].message_type = certificate__pb2._CERTIFICATE
|
|
||||||
_CLAIM.fields_by_name['publisherSignature'].message_type = signature__pb2._SIGNATURE
|
|
||||||
_CLAIM_VERSION.containing_type = _CLAIM
|
|
||||||
_CLAIM_CLAIMTYPE.containing_type = _CLAIM
|
|
||||||
DESCRIPTOR.message_types_by_name['Claim'] = _CLAIM
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
Claim = _reflection.GeneratedProtocolMessageType('Claim', (_message.Message,), dict(
|
|
||||||
DESCRIPTOR = _CLAIM,
|
|
||||||
__module__ = 'legacy_claim_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:legacy_pb.Claim)
|
|
||||||
))
|
|
||||||
_sym_db.RegisterMessage(Claim)
|
|
||||||
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
File diff suppressed because one or more lines are too long
|
@ -1,118 +0,0 @@
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: signature.proto
|
|
||||||
|
|
||||||
import sys
|
|
||||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
from . import certificate_pb2 as certificate__pb2
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='signature.proto',
|
|
||||||
package='legacy_pb',
|
|
||||||
syntax='proto2',
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_pb=_b('\n\x0fsignature.proto\x12\tlegacy_pb\x1a\x11\x63\x65rtificate.proto\"\xbb\x01\n\tSignature\x12-\n\x07version\x18\x01 \x02(\x0e\x32\x1c.legacy_pb.Signature.Version\x12)\n\rsignatureType\x18\x02 \x02(\x0e\x32\x12.legacy_pb.KeyType\x12\x11\n\tsignature\x18\x03 \x02(\x0c\x12\x15\n\rcertificateId\x18\x04 \x02(\x0c\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01')
|
|
||||||
,
|
|
||||||
dependencies=[certificate__pb2.DESCRIPTOR,])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_SIGNATURE_VERSION = _descriptor.EnumDescriptor(
|
|
||||||
name='Version',
|
|
||||||
full_name='legacy_pb.Signature.Version',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_VERSION', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='_0_0_1', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=195,
|
|
||||||
serialized_end=237,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_SIGNATURE_VERSION)
|
|
||||||
|
|
||||||
|
|
||||||
_SIGNATURE = _descriptor.Descriptor(
|
|
||||||
name='Signature',
|
|
||||||
full_name='legacy_pb.Signature',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='version', full_name='legacy_pb.Signature.version', index=0,
|
|
||||||
number=1, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='signatureType', full_name='legacy_pb.Signature.signatureType', index=1,
|
|
||||||
number=2, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='signature', full_name='legacy_pb.Signature.signature', index=2,
|
|
||||||
number=3, type=12, cpp_type=9, label=2,
|
|
||||||
has_default_value=False, default_value=_b(""),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='certificateId', full_name='legacy_pb.Signature.certificateId', index=3,
|
|
||||||
number=4, type=12, cpp_type=9, label=2,
|
|
||||||
has_default_value=False, default_value=_b(""),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
_SIGNATURE_VERSION,
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto2',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=50,
|
|
||||||
serialized_end=237,
|
|
||||||
)
|
|
||||||
|
|
||||||
_SIGNATURE.fields_by_name['version'].enum_type = _SIGNATURE_VERSION
|
|
||||||
_SIGNATURE.fields_by_name['signatureType'].enum_type = certificate__pb2._KEYTYPE
|
|
||||||
_SIGNATURE_VERSION.containing_type = _SIGNATURE
|
|
||||||
DESCRIPTOR.message_types_by_name['Signature'] = _SIGNATURE
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
Signature = _reflection.GeneratedProtocolMessageType('Signature', (_message.Message,), dict(
|
|
||||||
DESCRIPTOR = _SIGNATURE,
|
|
||||||
__module__ = 'signature_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:legacy_pb.Signature)
|
|
||||||
))
|
|
||||||
_sym_db.RegisterMessage(Signature)
|
|
||||||
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
|
@ -1,140 +0,0 @@
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: source.proto
|
|
||||||
|
|
||||||
import sys
|
|
||||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='source.proto',
|
|
||||||
package='legacy_pb',
|
|
||||||
syntax='proto2',
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_pb=_b('\n\x0csource.proto\x12\tlegacy_pb\"\xf2\x01\n\x06Source\x12*\n\x07version\x18\x01 \x02(\x0e\x32\x19.legacy_pb.Source.Version\x12\x31\n\nsourceType\x18\x02 \x02(\x0e\x32\x1d.legacy_pb.Source.SourceTypes\x12\x0e\n\x06source\x18\x03 \x02(\x0c\x12\x13\n\x0b\x63ontentType\x18\x04 \x02(\t\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\"8\n\x0bSourceTypes\x12\x17\n\x13UNKNOWN_SOURCE_TYPE\x10\x00\x12\x10\n\x0clbry_sd_hash\x10\x01')
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_SOURCE_VERSION = _descriptor.EnumDescriptor(
|
|
||||||
name='Version',
|
|
||||||
full_name='legacy_pb.Source.Version',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_VERSION', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='_0_0_1', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=170,
|
|
||||||
serialized_end=212,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_SOURCE_VERSION)
|
|
||||||
|
|
||||||
_SOURCE_SOURCETYPES = _descriptor.EnumDescriptor(
|
|
||||||
name='SourceTypes',
|
|
||||||
full_name='legacy_pb.Source.SourceTypes',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_SOURCE_TYPE', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='lbry_sd_hash', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=214,
|
|
||||||
serialized_end=270,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_SOURCE_SOURCETYPES)
|
|
||||||
|
|
||||||
|
|
||||||
_SOURCE = _descriptor.Descriptor(
|
|
||||||
name='Source',
|
|
||||||
full_name='legacy_pb.Source',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='version', full_name='legacy_pb.Source.version', index=0,
|
|
||||||
number=1, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='sourceType', full_name='legacy_pb.Source.sourceType', index=1,
|
|
||||||
number=2, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='source', full_name='legacy_pb.Source.source', index=2,
|
|
||||||
number=3, type=12, cpp_type=9, label=2,
|
|
||||||
has_default_value=False, default_value=_b(""),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='contentType', full_name='legacy_pb.Source.contentType', index=3,
|
|
||||||
number=4, type=9, cpp_type=9, label=2,
|
|
||||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
_SOURCE_VERSION,
|
|
||||||
_SOURCE_SOURCETYPES,
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto2',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=28,
|
|
||||||
serialized_end=270,
|
|
||||||
)
|
|
||||||
|
|
||||||
_SOURCE.fields_by_name['version'].enum_type = _SOURCE_VERSION
|
|
||||||
_SOURCE.fields_by_name['sourceType'].enum_type = _SOURCE_SOURCETYPES
|
|
||||||
_SOURCE_VERSION.containing_type = _SOURCE
|
|
||||||
_SOURCE_SOURCETYPES.containing_type = _SOURCE
|
|
||||||
DESCRIPTOR.message_types_by_name['Source'] = _SOURCE
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
Source = _reflection.GeneratedProtocolMessageType('Source', (_message.Message,), dict(
|
|
||||||
DESCRIPTOR = _SOURCE,
|
|
||||||
__module__ = 'source_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:legacy_pb.Source)
|
|
||||||
))
|
|
||||||
_sym_db.RegisterMessage(Source)
|
|
||||||
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
|
@ -1,113 +0,0 @@
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: stream.proto
|
|
||||||
|
|
||||||
import sys
|
|
||||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
from . import metadata_pb2 as metadata__pb2
|
|
||||||
from . import source_pb2 as source__pb2
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='stream.proto',
|
|
||||||
package='legacy_pb',
|
|
||||||
syntax='proto2',
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_pb=_b('\n\x0cstream.proto\x12\tlegacy_pb\x1a\x0emetadata.proto\x1a\x0csource.proto\"\xaa\x01\n\x06Stream\x12*\n\x07version\x18\x01 \x02(\x0e\x32\x19.legacy_pb.Stream.Version\x12%\n\x08metadata\x18\x02 \x02(\x0b\x32\x13.legacy_pb.Metadata\x12!\n\x06source\x18\x03 \x02(\x0b\x32\x11.legacy_pb.Source\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01')
|
|
||||||
,
|
|
||||||
dependencies=[metadata__pb2.DESCRIPTOR,source__pb2.DESCRIPTOR,])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_STREAM_VERSION = _descriptor.EnumDescriptor(
|
|
||||||
name='Version',
|
|
||||||
full_name='legacy_pb.Stream.Version',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_VERSION', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='_0_0_1', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=186,
|
|
||||||
serialized_end=228,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_STREAM_VERSION)
|
|
||||||
|
|
||||||
|
|
||||||
_STREAM = _descriptor.Descriptor(
|
|
||||||
name='Stream',
|
|
||||||
full_name='legacy_pb.Stream',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='version', full_name='legacy_pb.Stream.version', index=0,
|
|
||||||
number=1, type=14, cpp_type=8, label=2,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='metadata', full_name='legacy_pb.Stream.metadata', index=1,
|
|
||||||
number=2, type=11, cpp_type=10, label=2,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='source', full_name='legacy_pb.Stream.source', index=2,
|
|
||||||
number=3, type=11, cpp_type=10, label=2,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
_STREAM_VERSION,
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto2',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=58,
|
|
||||||
serialized_end=228,
|
|
||||||
)
|
|
||||||
|
|
||||||
_STREAM.fields_by_name['version'].enum_type = _STREAM_VERSION
|
|
||||||
_STREAM.fields_by_name['metadata'].message_type = metadata__pb2._METADATA
|
|
||||||
_STREAM.fields_by_name['source'].message_type = source__pb2._SOURCE
|
|
||||||
_STREAM_VERSION.containing_type = _STREAM
|
|
||||||
DESCRIPTOR.message_types_by_name['Stream'] = _STREAM
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
Stream = _reflection.GeneratedProtocolMessageType('Stream', (_message.Message,), dict(
|
|
||||||
DESCRIPTOR = _STREAM,
|
|
||||||
__module__ = 'stream_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:legacy_pb.Stream)
|
|
||||||
))
|
|
||||||
_sym_db.RegisterMessage(Stream)
|
|
||||||
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
File diff suppressed because one or more lines are too long
|
@ -1,960 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: hub.proto
|
|
||||||
"""Generated protocol buffer code."""
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
from . import result_pb2 as result__pb2
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='hub.proto',
|
|
||||||
package='pb',
|
|
||||||
syntax='proto3',
|
|
||||||
serialized_options=b'Z$github.com/lbryio/hub/protobuf/go/pb',
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
serialized_pb=b'\n\thub.proto\x12\x02pb\x1a\x0cresult.proto\"\x0e\n\x0c\x45mptyMessage\".\n\rServerMessage\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\t\"N\n\x0cHelloMessage\x12\x0c\n\x04port\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\"\n\x07servers\x18\x03 \x03(\x0b\x32\x11.pb.ServerMessage\"0\n\x0fInvertibleField\x12\x0e\n\x06invert\x18\x01 \x01(\x08\x12\r\n\x05value\x18\x02 \x03(\t\"\x1c\n\x0bStringValue\x12\r\n\x05value\x18\x01 \x01(\t\"\x1a\n\tBoolValue\x12\r\n\x05value\x18\x01 \x01(\x08\"\x1c\n\x0bUInt32Value\x12\r\n\x05value\x18\x01 \x01(\r\"j\n\nRangeField\x12\x1d\n\x02op\x18\x01 \x01(\x0e\x32\x11.pb.RangeField.Op\x12\r\n\x05value\x18\x02 \x03(\x05\".\n\x02Op\x12\x06\n\x02\x45Q\x10\x00\x12\x07\n\x03LTE\x10\x01\x12\x07\n\x03GTE\x10\x02\x12\x06\n\x02LT\x10\x03\x12\x06\n\x02GT\x10\x04\"\x8e\x0c\n\rSearchRequest\x12%\n\x08\x63laim_id\x18\x01 \x01(\x0b\x32\x13.pb.InvertibleField\x12\'\n\nchannel_id\x18\x02 \x01(\x0b\x32\x13.pb.InvertibleField\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\r\n\x05limit\x18\x04 \x01(\x05\x12\x10\n\x08order_by\x18\x05 \x03(\t\x12\x0e\n\x06offset\x18\x06 \x01(\r\x12\x16\n\x0eis_controlling\x18\x07 \x01(\x08\x12\x1d\n\x15last_take_over_height\x18\x08 \x01(\t\x12\x12\n\nclaim_name\x18\t \x01(\t\x12\x17\n\x0fnormalized_name\x18\n \x01(\t\x12#\n\x0btx_position\x18\x0b \x03(\x0b\x32\x0e.pb.RangeField\x12\x1e\n\x06\x61mount\x18\x0c \x03(\x0b\x32\x0e.pb.RangeField\x12!\n\ttimestamp\x18\r \x03(\x0b\x32\x0e.pb.RangeField\x12*\n\x12\x63reation_timestamp\x18\x0e \x03(\x0b\x32\x0e.pb.RangeField\x12\x1e\n\x06height\x18\x0f \x03(\x0b\x32\x0e.pb.RangeField\x12\'\n\x0f\x63reation_height\x18\x10 \x03(\x0b\x32\x0e.pb.RangeField\x12)\n\x11\x61\x63tivation_height\x18\x11 \x03(\x0b\x32\x0e.pb.RangeField\x12)\n\x11\x65xpiration_height\x18\x12 \x03(\x0b\x32\x0e.pb.RangeField\x12$\n\x0crelease_time\x18\x13 \x03(\x0b\x32\x0e.pb.RangeField\x12\x11\n\tshort_url\x18\x14 \x01(\t\x12\x15\n\rcanonical_url\x18\x15 \x01(\t\x12\r\n\x05title\x18\x16 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x17 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x18 \x01(\t\x12\x12\n\nclaim_type\x18\x19 \x03(\t\x12$\n\x0crepost_count\x18\x1a \x03(\x0b\x32\x0e.pb.RangeField\x12\x13\n\x0bstream_type\x18\x1b \x03(\t\x12\x12\n\nmedia_type\x18\x1c \x03(\t\x12\"\n\nfee_amount\x18\x1d \x03(\x0b\x32\x0e.pb.RangeField\x12\x14\n\x0c\x66\x65\x65_currency\x18\x1e \x01(\t\x12 \n\x08\x64uration\x18\x1f \x03(\x0b\x32\x0e.pb.RangeField\x12\x19\n\x11reposted_claim_id\x18 \x01(\t\x12#\n\x0b\x63\x65nsor_type\x18! \x03(\x0b\x32\x0e.pb.RangeField\x12\x19\n\x11\x63laims_in_channel\x18\" \x01(\t\x12)\n\x12is_signature_valid\x18$ \x01(\x0b\x32\r.pb.BoolValue\x12(\n\x10\x65\x66\x66\x65\x63tive_amount\x18% \x03(\x0b\x32\x0e.pb.RangeField\x12&\n\x0esupport_amount\x18& \x03(\x0b\x32\x0e.pb.RangeField\x12&\n\x0etrending_score\x18\' \x03(\x0b\x32\x0e.pb.RangeField\x12\r\n\x05tx_id\x18+ \x01(\t\x12 \n\x07tx_nout\x18, \x01(\x0b\x32\x0f.pb.UInt32Value\x12\x11\n\tsignature\x18- \x01(\t\x12\x18\n\x10signature_digest\x18. \x01(\t\x12\x18\n\x10public_key_bytes\x18/ \x01(\t\x12\x15\n\rpublic_key_id\x18\x30 \x01(\t\x12\x10\n\x08\x61ny_tags\x18\x31 \x03(\t\x12\x10\n\x08\x61ll_tags\x18\x32 \x03(\t\x12\x10\n\x08not_tags\x18\x33 \x03(\t\x12\x1d\n\x15has_channel_signature\x18\x34 \x01(\x08\x12!\n\nhas_source\x18\x35 \x01(\x0b\x32\r.pb.BoolValue\x12 \n\x18limit_claims_per_channel\x18\x36 \x01(\x05\x12\x15\n\rany_languages\x18\x37 \x03(\t\x12\x15\n\rall_languages\x18\x38 \x03(\t\x12\x19\n\x11remove_duplicates\x18\x39 \x01(\x08\x12\x11\n\tno_totals\x18: \x01(\x08\x12\x0f\n\x07sd_hash\x18; \x01(\t2\x88\x03\n\x03Hub\x12*\n\x06Search\x12\x11.pb.SearchRequest\x1a\x0b.pb.Outputs\"\x00\x12+\n\x04Ping\x12\x10.pb.EmptyMessage\x1a\x0f.pb.StringValue\"\x00\x12-\n\x05Hello\x12\x10.pb.HelloMessage\x1a\x10.pb.HelloMessage\"\x00\x12/\n\x07\x41\x64\x64Peer\x12\x11.pb.ServerMessage\x1a\x0f.pb.StringValue\"\x00\x12\x35\n\rPeerSubscribe\x12\x11.pb.ServerMessage\x1a\x0f.pb.StringValue\"\x00\x12.\n\x07Version\x12\x10.pb.EmptyMessage\x1a\x0f.pb.StringValue\"\x00\x12/\n\x08\x46\x65\x61tures\x12\x10.pb.EmptyMessage\x1a\x0f.pb.StringValue\"\x00\x12\x30\n\tBroadcast\x12\x10.pb.EmptyMessage\x1a\x0f.pb.UInt32Value\"\x00\x42&Z$github.com/lbryio/hub/protobuf/go/pbb\x06proto3'
|
|
||||||
,
|
|
||||||
dependencies=[result__pb2.DESCRIPTOR,])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_RANGEFIELD_OP = _descriptor.EnumDescriptor(
|
|
||||||
name='Op',
|
|
||||||
full_name='pb.RangeField.Op',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='EQ', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='LTE', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='GTE', index=2, number=2,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='LT', index=3, number=3,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='GT', index=4, number=4,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=373,
|
|
||||||
serialized_end=419,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_RANGEFIELD_OP)
|
|
||||||
|
|
||||||
|
|
||||||
_EMPTYMESSAGE = _descriptor.Descriptor(
|
|
||||||
name='EmptyMessage',
|
|
||||||
full_name='pb.EmptyMessage',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=31,
|
|
||||||
serialized_end=45,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_SERVERMESSAGE = _descriptor.Descriptor(
|
|
||||||
name='ServerMessage',
|
|
||||||
full_name='pb.ServerMessage',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='address', full_name='pb.ServerMessage.address', index=0,
|
|
||||||
number=1, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='port', full_name='pb.ServerMessage.port', index=1,
|
|
||||||
number=2, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=47,
|
|
||||||
serialized_end=93,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_HELLOMESSAGE = _descriptor.Descriptor(
|
|
||||||
name='HelloMessage',
|
|
||||||
full_name='pb.HelloMessage',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='port', full_name='pb.HelloMessage.port', index=0,
|
|
||||||
number=1, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='host', full_name='pb.HelloMessage.host', index=1,
|
|
||||||
number=2, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='servers', full_name='pb.HelloMessage.servers', index=2,
|
|
||||||
number=3, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=95,
|
|
||||||
serialized_end=173,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_INVERTIBLEFIELD = _descriptor.Descriptor(
|
|
||||||
name='InvertibleField',
|
|
||||||
full_name='pb.InvertibleField',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='invert', full_name='pb.InvertibleField.invert', index=0,
|
|
||||||
number=1, type=8, cpp_type=7, label=1,
|
|
||||||
has_default_value=False, default_value=False,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='value', full_name='pb.InvertibleField.value', index=1,
|
|
||||||
number=2, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=175,
|
|
||||||
serialized_end=223,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_STRINGVALUE = _descriptor.Descriptor(
|
|
||||||
name='StringValue',
|
|
||||||
full_name='pb.StringValue',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='value', full_name='pb.StringValue.value', index=0,
|
|
||||||
number=1, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=225,
|
|
||||||
serialized_end=253,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_BOOLVALUE = _descriptor.Descriptor(
|
|
||||||
name='BoolValue',
|
|
||||||
full_name='pb.BoolValue',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='value', full_name='pb.BoolValue.value', index=0,
|
|
||||||
number=1, type=8, cpp_type=7, label=1,
|
|
||||||
has_default_value=False, default_value=False,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=255,
|
|
||||||
serialized_end=281,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_UINT32VALUE = _descriptor.Descriptor(
|
|
||||||
name='UInt32Value',
|
|
||||||
full_name='pb.UInt32Value',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='value', full_name='pb.UInt32Value.value', index=0,
|
|
||||||
number=1, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=283,
|
|
||||||
serialized_end=311,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_RANGEFIELD = _descriptor.Descriptor(
|
|
||||||
name='RangeField',
|
|
||||||
full_name='pb.RangeField',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='op', full_name='pb.RangeField.op', index=0,
|
|
||||||
number=1, type=14, cpp_type=8, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='value', full_name='pb.RangeField.value', index=1,
|
|
||||||
number=2, type=5, cpp_type=1, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
_RANGEFIELD_OP,
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=313,
|
|
||||||
serialized_end=419,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_SEARCHREQUEST = _descriptor.Descriptor(
|
|
||||||
name='SearchRequest',
|
|
||||||
full_name='pb.SearchRequest',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='claim_id', full_name='pb.SearchRequest.claim_id', index=0,
|
|
||||||
number=1, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='channel_id', full_name='pb.SearchRequest.channel_id', index=1,
|
|
||||||
number=2, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='text', full_name='pb.SearchRequest.text', index=2,
|
|
||||||
number=3, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='limit', full_name='pb.SearchRequest.limit', index=3,
|
|
||||||
number=4, type=5, cpp_type=1, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='order_by', full_name='pb.SearchRequest.order_by', index=4,
|
|
||||||
number=5, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='offset', full_name='pb.SearchRequest.offset', index=5,
|
|
||||||
number=6, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='is_controlling', full_name='pb.SearchRequest.is_controlling', index=6,
|
|
||||||
number=7, type=8, cpp_type=7, label=1,
|
|
||||||
has_default_value=False, default_value=False,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='last_take_over_height', full_name='pb.SearchRequest.last_take_over_height', index=7,
|
|
||||||
number=8, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='claim_name', full_name='pb.SearchRequest.claim_name', index=8,
|
|
||||||
number=9, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='normalized_name', full_name='pb.SearchRequest.normalized_name', index=9,
|
|
||||||
number=10, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='tx_position', full_name='pb.SearchRequest.tx_position', index=10,
|
|
||||||
number=11, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='amount', full_name='pb.SearchRequest.amount', index=11,
|
|
||||||
number=12, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='timestamp', full_name='pb.SearchRequest.timestamp', index=12,
|
|
||||||
number=13, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='creation_timestamp', full_name='pb.SearchRequest.creation_timestamp', index=13,
|
|
||||||
number=14, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='height', full_name='pb.SearchRequest.height', index=14,
|
|
||||||
number=15, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='creation_height', full_name='pb.SearchRequest.creation_height', index=15,
|
|
||||||
number=16, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='activation_height', full_name='pb.SearchRequest.activation_height', index=16,
|
|
||||||
number=17, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='expiration_height', full_name='pb.SearchRequest.expiration_height', index=17,
|
|
||||||
number=18, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='release_time', full_name='pb.SearchRequest.release_time', index=18,
|
|
||||||
number=19, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='short_url', full_name='pb.SearchRequest.short_url', index=19,
|
|
||||||
number=20, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='canonical_url', full_name='pb.SearchRequest.canonical_url', index=20,
|
|
||||||
number=21, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='title', full_name='pb.SearchRequest.title', index=21,
|
|
||||||
number=22, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='author', full_name='pb.SearchRequest.author', index=22,
|
|
||||||
number=23, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='description', full_name='pb.SearchRequest.description', index=23,
|
|
||||||
number=24, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='claim_type', full_name='pb.SearchRequest.claim_type', index=24,
|
|
||||||
number=25, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='repost_count', full_name='pb.SearchRequest.repost_count', index=25,
|
|
||||||
number=26, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='stream_type', full_name='pb.SearchRequest.stream_type', index=26,
|
|
||||||
number=27, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='media_type', full_name='pb.SearchRequest.media_type', index=27,
|
|
||||||
number=28, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='fee_amount', full_name='pb.SearchRequest.fee_amount', index=28,
|
|
||||||
number=29, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='fee_currency', full_name='pb.SearchRequest.fee_currency', index=29,
|
|
||||||
number=30, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='duration', full_name='pb.SearchRequest.duration', index=30,
|
|
||||||
number=31, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='reposted_claim_id', full_name='pb.SearchRequest.reposted_claim_id', index=31,
|
|
||||||
number=32, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='censor_type', full_name='pb.SearchRequest.censor_type', index=32,
|
|
||||||
number=33, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='claims_in_channel', full_name='pb.SearchRequest.claims_in_channel', index=33,
|
|
||||||
number=34, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='is_signature_valid', full_name='pb.SearchRequest.is_signature_valid', index=34,
|
|
||||||
number=36, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='effective_amount', full_name='pb.SearchRequest.effective_amount', index=35,
|
|
||||||
number=37, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='support_amount', full_name='pb.SearchRequest.support_amount', index=36,
|
|
||||||
number=38, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='trending_score', full_name='pb.SearchRequest.trending_score', index=37,
|
|
||||||
number=39, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='tx_id', full_name='pb.SearchRequest.tx_id', index=38,
|
|
||||||
number=43, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='tx_nout', full_name='pb.SearchRequest.tx_nout', index=39,
|
|
||||||
number=44, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='signature', full_name='pb.SearchRequest.signature', index=40,
|
|
||||||
number=45, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='signature_digest', full_name='pb.SearchRequest.signature_digest', index=41,
|
|
||||||
number=46, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='public_key_bytes', full_name='pb.SearchRequest.public_key_bytes', index=42,
|
|
||||||
number=47, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='public_key_id', full_name='pb.SearchRequest.public_key_id', index=43,
|
|
||||||
number=48, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='any_tags', full_name='pb.SearchRequest.any_tags', index=44,
|
|
||||||
number=49, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='all_tags', full_name='pb.SearchRequest.all_tags', index=45,
|
|
||||||
number=50, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='not_tags', full_name='pb.SearchRequest.not_tags', index=46,
|
|
||||||
number=51, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='has_channel_signature', full_name='pb.SearchRequest.has_channel_signature', index=47,
|
|
||||||
number=52, type=8, cpp_type=7, label=1,
|
|
||||||
has_default_value=False, default_value=False,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='has_source', full_name='pb.SearchRequest.has_source', index=48,
|
|
||||||
number=53, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='limit_claims_per_channel', full_name='pb.SearchRequest.limit_claims_per_channel', index=49,
|
|
||||||
number=54, type=5, cpp_type=1, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='any_languages', full_name='pb.SearchRequest.any_languages', index=50,
|
|
||||||
number=55, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='all_languages', full_name='pb.SearchRequest.all_languages', index=51,
|
|
||||||
number=56, type=9, cpp_type=9, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='remove_duplicates', full_name='pb.SearchRequest.remove_duplicates', index=52,
|
|
||||||
number=57, type=8, cpp_type=7, label=1,
|
|
||||||
has_default_value=False, default_value=False,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='no_totals', full_name='pb.SearchRequest.no_totals', index=53,
|
|
||||||
number=58, type=8, cpp_type=7, label=1,
|
|
||||||
has_default_value=False, default_value=False,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='sd_hash', full_name='pb.SearchRequest.sd_hash', index=54,
|
|
||||||
number=59, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=422,
|
|
||||||
serialized_end=1972,
|
|
||||||
)
|
|
||||||
|
|
||||||
_HELLOMESSAGE.fields_by_name['servers'].message_type = _SERVERMESSAGE
|
|
||||||
_RANGEFIELD.fields_by_name['op'].enum_type = _RANGEFIELD_OP
|
|
||||||
_RANGEFIELD_OP.containing_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['claim_id'].message_type = _INVERTIBLEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['channel_id'].message_type = _INVERTIBLEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['tx_position'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['amount'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['timestamp'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['creation_timestamp'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['height'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['creation_height'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['activation_height'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['expiration_height'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['release_time'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['repost_count'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['fee_amount'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['duration'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['censor_type'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['is_signature_valid'].message_type = _BOOLVALUE
|
|
||||||
_SEARCHREQUEST.fields_by_name['effective_amount'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['support_amount'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['trending_score'].message_type = _RANGEFIELD
|
|
||||||
_SEARCHREQUEST.fields_by_name['tx_nout'].message_type = _UINT32VALUE
|
|
||||||
_SEARCHREQUEST.fields_by_name['has_source'].message_type = _BOOLVALUE
|
|
||||||
DESCRIPTOR.message_types_by_name['EmptyMessage'] = _EMPTYMESSAGE
|
|
||||||
DESCRIPTOR.message_types_by_name['ServerMessage'] = _SERVERMESSAGE
|
|
||||||
DESCRIPTOR.message_types_by_name['HelloMessage'] = _HELLOMESSAGE
|
|
||||||
DESCRIPTOR.message_types_by_name['InvertibleField'] = _INVERTIBLEFIELD
|
|
||||||
DESCRIPTOR.message_types_by_name['StringValue'] = _STRINGVALUE
|
|
||||||
DESCRIPTOR.message_types_by_name['BoolValue'] = _BOOLVALUE
|
|
||||||
DESCRIPTOR.message_types_by_name['UInt32Value'] = _UINT32VALUE
|
|
||||||
DESCRIPTOR.message_types_by_name['RangeField'] = _RANGEFIELD
|
|
||||||
DESCRIPTOR.message_types_by_name['SearchRequest'] = _SEARCHREQUEST
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
EmptyMessage = _reflection.GeneratedProtocolMessageType('EmptyMessage', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _EMPTYMESSAGE,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.EmptyMessage)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(EmptyMessage)
|
|
||||||
|
|
||||||
ServerMessage = _reflection.GeneratedProtocolMessageType('ServerMessage', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _SERVERMESSAGE,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.ServerMessage)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(ServerMessage)
|
|
||||||
|
|
||||||
HelloMessage = _reflection.GeneratedProtocolMessageType('HelloMessage', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _HELLOMESSAGE,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.HelloMessage)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(HelloMessage)
|
|
||||||
|
|
||||||
InvertibleField = _reflection.GeneratedProtocolMessageType('InvertibleField', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _INVERTIBLEFIELD,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.InvertibleField)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(InvertibleField)
|
|
||||||
|
|
||||||
StringValue = _reflection.GeneratedProtocolMessageType('StringValue', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _STRINGVALUE,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.StringValue)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(StringValue)
|
|
||||||
|
|
||||||
BoolValue = _reflection.GeneratedProtocolMessageType('BoolValue', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _BOOLVALUE,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.BoolValue)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(BoolValue)
|
|
||||||
|
|
||||||
UInt32Value = _reflection.GeneratedProtocolMessageType('UInt32Value', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _UINT32VALUE,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.UInt32Value)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(UInt32Value)
|
|
||||||
|
|
||||||
RangeField = _reflection.GeneratedProtocolMessageType('RangeField', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _RANGEFIELD,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.RangeField)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(RangeField)
|
|
||||||
|
|
||||||
SearchRequest = _reflection.GeneratedProtocolMessageType('SearchRequest', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _SEARCHREQUEST,
|
|
||||||
'__module__' : 'hub_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.SearchRequest)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(SearchRequest)
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR._options = None
|
|
||||||
|
|
||||||
_HUB = _descriptor.ServiceDescriptor(
|
|
||||||
name='Hub',
|
|
||||||
full_name='pb.Hub',
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
index=0,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
serialized_start=1975,
|
|
||||||
serialized_end=2367,
|
|
||||||
methods=[
|
|
||||||
_descriptor.MethodDescriptor(
|
|
||||||
name='Search',
|
|
||||||
full_name='pb.Hub.Search',
|
|
||||||
index=0,
|
|
||||||
containing_service=None,
|
|
||||||
input_type=_SEARCHREQUEST,
|
|
||||||
output_type=result__pb2._OUTPUTS,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
),
|
|
||||||
_descriptor.MethodDescriptor(
|
|
||||||
name='Ping',
|
|
||||||
full_name='pb.Hub.Ping',
|
|
||||||
index=1,
|
|
||||||
containing_service=None,
|
|
||||||
input_type=_EMPTYMESSAGE,
|
|
||||||
output_type=_STRINGVALUE,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
),
|
|
||||||
_descriptor.MethodDescriptor(
|
|
||||||
name='Hello',
|
|
||||||
full_name='pb.Hub.Hello',
|
|
||||||
index=2,
|
|
||||||
containing_service=None,
|
|
||||||
input_type=_HELLOMESSAGE,
|
|
||||||
output_type=_HELLOMESSAGE,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
),
|
|
||||||
_descriptor.MethodDescriptor(
|
|
||||||
name='AddPeer',
|
|
||||||
full_name='pb.Hub.AddPeer',
|
|
||||||
index=3,
|
|
||||||
containing_service=None,
|
|
||||||
input_type=_SERVERMESSAGE,
|
|
||||||
output_type=_STRINGVALUE,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
),
|
|
||||||
_descriptor.MethodDescriptor(
|
|
||||||
name='PeerSubscribe',
|
|
||||||
full_name='pb.Hub.PeerSubscribe',
|
|
||||||
index=4,
|
|
||||||
containing_service=None,
|
|
||||||
input_type=_SERVERMESSAGE,
|
|
||||||
output_type=_STRINGVALUE,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
),
|
|
||||||
_descriptor.MethodDescriptor(
|
|
||||||
name='Version',
|
|
||||||
full_name='pb.Hub.Version',
|
|
||||||
index=5,
|
|
||||||
containing_service=None,
|
|
||||||
input_type=_EMPTYMESSAGE,
|
|
||||||
output_type=_STRINGVALUE,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
),
|
|
||||||
_descriptor.MethodDescriptor(
|
|
||||||
name='Features',
|
|
||||||
full_name='pb.Hub.Features',
|
|
||||||
index=6,
|
|
||||||
containing_service=None,
|
|
||||||
input_type=_EMPTYMESSAGE,
|
|
||||||
output_type=_STRINGVALUE,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
),
|
|
||||||
_descriptor.MethodDescriptor(
|
|
||||||
name='Broadcast',
|
|
||||||
full_name='pb.Hub.Broadcast',
|
|
||||||
index=7,
|
|
||||||
containing_service=None,
|
|
||||||
input_type=_EMPTYMESSAGE,
|
|
||||||
output_type=_UINT32VALUE,
|
|
||||||
serialized_options=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
),
|
|
||||||
])
|
|
||||||
_sym_db.RegisterServiceDescriptor(_HUB)
|
|
||||||
|
|
||||||
DESCRIPTOR.services_by_name['Hub'] = _HUB
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
|
@ -1,298 +0,0 @@
|
||||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
||||||
"""Client and server classes corresponding to protobuf-defined services."""
|
|
||||||
import grpc
|
|
||||||
|
|
||||||
from . import hub_pb2 as hub__pb2
|
|
||||||
from . import result_pb2 as result__pb2
|
|
||||||
|
|
||||||
|
|
||||||
class HubStub(object):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
|
|
||||||
def __init__(self, channel):
|
|
||||||
"""Constructor.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
channel: A grpc.Channel.
|
|
||||||
"""
|
|
||||||
self.Search = channel.unary_unary(
|
|
||||||
'/pb.Hub/Search',
|
|
||||||
request_serializer=hub__pb2.SearchRequest.SerializeToString,
|
|
||||||
response_deserializer=result__pb2.Outputs.FromString,
|
|
||||||
)
|
|
||||||
self.Ping = channel.unary_unary(
|
|
||||||
'/pb.Hub/Ping',
|
|
||||||
request_serializer=hub__pb2.EmptyMessage.SerializeToString,
|
|
||||||
response_deserializer=hub__pb2.StringValue.FromString,
|
|
||||||
)
|
|
||||||
self.Hello = channel.unary_unary(
|
|
||||||
'/pb.Hub/Hello',
|
|
||||||
request_serializer=hub__pb2.HelloMessage.SerializeToString,
|
|
||||||
response_deserializer=hub__pb2.HelloMessage.FromString,
|
|
||||||
)
|
|
||||||
self.AddPeer = channel.unary_unary(
|
|
||||||
'/pb.Hub/AddPeer',
|
|
||||||
request_serializer=hub__pb2.ServerMessage.SerializeToString,
|
|
||||||
response_deserializer=hub__pb2.StringValue.FromString,
|
|
||||||
)
|
|
||||||
self.PeerSubscribe = channel.unary_unary(
|
|
||||||
'/pb.Hub/PeerSubscribe',
|
|
||||||
request_serializer=hub__pb2.ServerMessage.SerializeToString,
|
|
||||||
response_deserializer=hub__pb2.StringValue.FromString,
|
|
||||||
)
|
|
||||||
self.Version = channel.unary_unary(
|
|
||||||
'/pb.Hub/Version',
|
|
||||||
request_serializer=hub__pb2.EmptyMessage.SerializeToString,
|
|
||||||
response_deserializer=hub__pb2.StringValue.FromString,
|
|
||||||
)
|
|
||||||
self.Features = channel.unary_unary(
|
|
||||||
'/pb.Hub/Features',
|
|
||||||
request_serializer=hub__pb2.EmptyMessage.SerializeToString,
|
|
||||||
response_deserializer=hub__pb2.StringValue.FromString,
|
|
||||||
)
|
|
||||||
self.Broadcast = channel.unary_unary(
|
|
||||||
'/pb.Hub/Broadcast',
|
|
||||||
request_serializer=hub__pb2.EmptyMessage.SerializeToString,
|
|
||||||
response_deserializer=hub__pb2.UInt32Value.FromString,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class HubServicer(object):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
|
|
||||||
def Search(self, request, context):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
||||||
context.set_details('Method not implemented!')
|
|
||||||
raise NotImplementedError('Method not implemented!')
|
|
||||||
|
|
||||||
def Ping(self, request, context):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
||||||
context.set_details('Method not implemented!')
|
|
||||||
raise NotImplementedError('Method not implemented!')
|
|
||||||
|
|
||||||
def Hello(self, request, context):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
||||||
context.set_details('Method not implemented!')
|
|
||||||
raise NotImplementedError('Method not implemented!')
|
|
||||||
|
|
||||||
def AddPeer(self, request, context):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
||||||
context.set_details('Method not implemented!')
|
|
||||||
raise NotImplementedError('Method not implemented!')
|
|
||||||
|
|
||||||
def PeerSubscribe(self, request, context):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
||||||
context.set_details('Method not implemented!')
|
|
||||||
raise NotImplementedError('Method not implemented!')
|
|
||||||
|
|
||||||
def Version(self, request, context):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
||||||
context.set_details('Method not implemented!')
|
|
||||||
raise NotImplementedError('Method not implemented!')
|
|
||||||
|
|
||||||
def Features(self, request, context):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
||||||
context.set_details('Method not implemented!')
|
|
||||||
raise NotImplementedError('Method not implemented!')
|
|
||||||
|
|
||||||
def Broadcast(self, request, context):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
||||||
context.set_details('Method not implemented!')
|
|
||||||
raise NotImplementedError('Method not implemented!')
|
|
||||||
|
|
||||||
|
|
||||||
def add_HubServicer_to_server(servicer, server):
|
|
||||||
rpc_method_handlers = {
|
|
||||||
'Search': grpc.unary_unary_rpc_method_handler(
|
|
||||||
servicer.Search,
|
|
||||||
request_deserializer=hub__pb2.SearchRequest.FromString,
|
|
||||||
response_serializer=result__pb2.Outputs.SerializeToString,
|
|
||||||
),
|
|
||||||
'Ping': grpc.unary_unary_rpc_method_handler(
|
|
||||||
servicer.Ping,
|
|
||||||
request_deserializer=hub__pb2.EmptyMessage.FromString,
|
|
||||||
response_serializer=hub__pb2.StringValue.SerializeToString,
|
|
||||||
),
|
|
||||||
'Hello': grpc.unary_unary_rpc_method_handler(
|
|
||||||
servicer.Hello,
|
|
||||||
request_deserializer=hub__pb2.HelloMessage.FromString,
|
|
||||||
response_serializer=hub__pb2.HelloMessage.SerializeToString,
|
|
||||||
),
|
|
||||||
'AddPeer': grpc.unary_unary_rpc_method_handler(
|
|
||||||
servicer.AddPeer,
|
|
||||||
request_deserializer=hub__pb2.ServerMessage.FromString,
|
|
||||||
response_serializer=hub__pb2.StringValue.SerializeToString,
|
|
||||||
),
|
|
||||||
'PeerSubscribe': grpc.unary_unary_rpc_method_handler(
|
|
||||||
servicer.PeerSubscribe,
|
|
||||||
request_deserializer=hub__pb2.ServerMessage.FromString,
|
|
||||||
response_serializer=hub__pb2.StringValue.SerializeToString,
|
|
||||||
),
|
|
||||||
'Version': grpc.unary_unary_rpc_method_handler(
|
|
||||||
servicer.Version,
|
|
||||||
request_deserializer=hub__pb2.EmptyMessage.FromString,
|
|
||||||
response_serializer=hub__pb2.StringValue.SerializeToString,
|
|
||||||
),
|
|
||||||
'Features': grpc.unary_unary_rpc_method_handler(
|
|
||||||
servicer.Features,
|
|
||||||
request_deserializer=hub__pb2.EmptyMessage.FromString,
|
|
||||||
response_serializer=hub__pb2.StringValue.SerializeToString,
|
|
||||||
),
|
|
||||||
'Broadcast': grpc.unary_unary_rpc_method_handler(
|
|
||||||
servicer.Broadcast,
|
|
||||||
request_deserializer=hub__pb2.EmptyMessage.FromString,
|
|
||||||
response_serializer=hub__pb2.UInt32Value.SerializeToString,
|
|
||||||
),
|
|
||||||
}
|
|
||||||
generic_handler = grpc.method_handlers_generic_handler(
|
|
||||||
'pb.Hub', rpc_method_handlers)
|
|
||||||
server.add_generic_rpc_handlers((generic_handler,))
|
|
||||||
|
|
||||||
|
|
||||||
# This class is part of an EXPERIMENTAL API.
|
|
||||||
class Hub(object):
|
|
||||||
"""Missing associated documentation comment in .proto file."""
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def Search(request,
|
|
||||||
target,
|
|
||||||
options=(),
|
|
||||||
channel_credentials=None,
|
|
||||||
call_credentials=None,
|
|
||||||
insecure=False,
|
|
||||||
compression=None,
|
|
||||||
wait_for_ready=None,
|
|
||||||
timeout=None,
|
|
||||||
metadata=None):
|
|
||||||
return grpc.experimental.unary_unary(request, target, '/pb.Hub/Search',
|
|
||||||
hub__pb2.SearchRequest.SerializeToString,
|
|
||||||
result__pb2.Outputs.FromString,
|
|
||||||
options, channel_credentials,
|
|
||||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def Ping(request,
|
|
||||||
target,
|
|
||||||
options=(),
|
|
||||||
channel_credentials=None,
|
|
||||||
call_credentials=None,
|
|
||||||
insecure=False,
|
|
||||||
compression=None,
|
|
||||||
wait_for_ready=None,
|
|
||||||
timeout=None,
|
|
||||||
metadata=None):
|
|
||||||
return grpc.experimental.unary_unary(request, target, '/pb.Hub/Ping',
|
|
||||||
hub__pb2.EmptyMessage.SerializeToString,
|
|
||||||
hub__pb2.StringValue.FromString,
|
|
||||||
options, channel_credentials,
|
|
||||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def Hello(request,
|
|
||||||
target,
|
|
||||||
options=(),
|
|
||||||
channel_credentials=None,
|
|
||||||
call_credentials=None,
|
|
||||||
insecure=False,
|
|
||||||
compression=None,
|
|
||||||
wait_for_ready=None,
|
|
||||||
timeout=None,
|
|
||||||
metadata=None):
|
|
||||||
return grpc.experimental.unary_unary(request, target, '/pb.Hub/Hello',
|
|
||||||
hub__pb2.HelloMessage.SerializeToString,
|
|
||||||
hub__pb2.HelloMessage.FromString,
|
|
||||||
options, channel_credentials,
|
|
||||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def AddPeer(request,
|
|
||||||
target,
|
|
||||||
options=(),
|
|
||||||
channel_credentials=None,
|
|
||||||
call_credentials=None,
|
|
||||||
insecure=False,
|
|
||||||
compression=None,
|
|
||||||
wait_for_ready=None,
|
|
||||||
timeout=None,
|
|
||||||
metadata=None):
|
|
||||||
return grpc.experimental.unary_unary(request, target, '/pb.Hub/AddPeer',
|
|
||||||
hub__pb2.ServerMessage.SerializeToString,
|
|
||||||
hub__pb2.StringValue.FromString,
|
|
||||||
options, channel_credentials,
|
|
||||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def PeerSubscribe(request,
|
|
||||||
target,
|
|
||||||
options=(),
|
|
||||||
channel_credentials=None,
|
|
||||||
call_credentials=None,
|
|
||||||
insecure=False,
|
|
||||||
compression=None,
|
|
||||||
wait_for_ready=None,
|
|
||||||
timeout=None,
|
|
||||||
metadata=None):
|
|
||||||
return grpc.experimental.unary_unary(request, target, '/pb.Hub/PeerSubscribe',
|
|
||||||
hub__pb2.ServerMessage.SerializeToString,
|
|
||||||
hub__pb2.StringValue.FromString,
|
|
||||||
options, channel_credentials,
|
|
||||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def Version(request,
|
|
||||||
target,
|
|
||||||
options=(),
|
|
||||||
channel_credentials=None,
|
|
||||||
call_credentials=None,
|
|
||||||
insecure=False,
|
|
||||||
compression=None,
|
|
||||||
wait_for_ready=None,
|
|
||||||
timeout=None,
|
|
||||||
metadata=None):
|
|
||||||
return grpc.experimental.unary_unary(request, target, '/pb.Hub/Version',
|
|
||||||
hub__pb2.EmptyMessage.SerializeToString,
|
|
||||||
hub__pb2.StringValue.FromString,
|
|
||||||
options, channel_credentials,
|
|
||||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def Features(request,
|
|
||||||
target,
|
|
||||||
options=(),
|
|
||||||
channel_credentials=None,
|
|
||||||
call_credentials=None,
|
|
||||||
insecure=False,
|
|
||||||
compression=None,
|
|
||||||
wait_for_ready=None,
|
|
||||||
timeout=None,
|
|
||||||
metadata=None):
|
|
||||||
return grpc.experimental.unary_unary(request, target, '/pb.Hub/Features',
|
|
||||||
hub__pb2.EmptyMessage.SerializeToString,
|
|
||||||
hub__pb2.StringValue.FromString,
|
|
||||||
options, channel_credentials,
|
|
||||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def Broadcast(request,
|
|
||||||
target,
|
|
||||||
options=(),
|
|
||||||
channel_credentials=None,
|
|
||||||
call_credentials=None,
|
|
||||||
insecure=False,
|
|
||||||
compression=None,
|
|
||||||
wait_for_ready=None,
|
|
||||||
timeout=None,
|
|
||||||
metadata=None):
|
|
||||||
return grpc.experimental.unary_unary(request, target, '/pb.Hub/Broadcast',
|
|
||||||
hub__pb2.EmptyMessage.SerializeToString,
|
|
||||||
hub__pb2.UInt32Value.FromString,
|
|
||||||
options, channel_credentials,
|
|
||||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
@ -1,69 +0,0 @@
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: purchase.proto
|
|
||||||
|
|
||||||
import sys
|
|
||||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
from google.protobuf import descriptor_pb2
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='purchase.proto',
|
|
||||||
package='pb',
|
|
||||||
syntax='proto3',
|
|
||||||
serialized_pb=_b('\n\x0epurchase.proto\x12\x02pb\"\x1e\n\x08Purchase\x12\x12\n\nclaim_hash\x18\x01 \x01(\x0c\x62\x06proto3')
|
|
||||||
)
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_PURCHASE = _descriptor.Descriptor(
|
|
||||||
name='Purchase',
|
|
||||||
full_name='pb.Purchase',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='claim_hash', full_name='pb.Purchase.claim_hash', index=0,
|
|
||||||
number=1, type=12, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=_b(""),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
options=None),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=22,
|
|
||||||
serialized_end=52,
|
|
||||||
)
|
|
||||||
|
|
||||||
DESCRIPTOR.message_types_by_name['Purchase'] = _PURCHASE
|
|
||||||
|
|
||||||
Purchase = _reflection.GeneratedProtocolMessageType('Purchase', (_message.Message,), dict(
|
|
||||||
DESCRIPTOR = _PURCHASE,
|
|
||||||
__module__ = 'purchase_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.Purchase)
|
|
||||||
))
|
|
||||||
_sym_db.RegisterMessage(Purchase)
|
|
||||||
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
|
@ -1,464 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: result.proto
|
|
||||||
"""Generated protocol buffer code."""
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='result.proto',
|
|
||||||
package='pb',
|
|
||||||
syntax='proto3',
|
|
||||||
serialized_options=b'Z$github.com/lbryio/hub/protobuf/go/pb',
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
serialized_pb=b'\n\x0cresult.proto\x12\x02pb\"\x97\x01\n\x07Outputs\x12\x18\n\x04txos\x18\x01 \x03(\x0b\x32\n.pb.Output\x12\x1e\n\nextra_txos\x18\x02 \x03(\x0b\x32\n.pb.Output\x12\r\n\x05total\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\r\x12\x1c\n\x07\x62locked\x18\x05 \x03(\x0b\x32\x0b.pb.Blocked\x12\x15\n\rblocked_total\x18\x06 \x01(\r\"{\n\x06Output\x12\x0f\n\x07tx_hash\x18\x01 \x01(\x0c\x12\x0c\n\x04nout\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\x1e\n\x05\x63laim\x18\x07 \x01(\x0b\x32\r.pb.ClaimMetaH\x00\x12\x1a\n\x05\x65rror\x18\x0f \x01(\x0b\x32\t.pb.ErrorH\x00\x42\x06\n\x04meta\"\xe6\x02\n\tClaimMeta\x12\x1b\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\n.pb.Output\x12\x1a\n\x06repost\x18\x02 \x01(\x0b\x32\n.pb.Output\x12\x11\n\tshort_url\x18\x03 \x01(\t\x12\x15\n\rcanonical_url\x18\x04 \x01(\t\x12\x16\n\x0eis_controlling\x18\x05 \x01(\x08\x12\x18\n\x10take_over_height\x18\x06 \x01(\r\x12\x17\n\x0f\x63reation_height\x18\x07 \x01(\r\x12\x19\n\x11\x61\x63tivation_height\x18\x08 \x01(\r\x12\x19\n\x11\x65xpiration_height\x18\t \x01(\r\x12\x19\n\x11\x63laims_in_channel\x18\n \x01(\r\x12\x10\n\x08reposted\x18\x0b \x01(\r\x12\x18\n\x10\x65\x66\x66\x65\x63tive_amount\x18\x14 \x01(\x04\x12\x16\n\x0esupport_amount\x18\x15 \x01(\x04\x12\x16\n\x0etrending_score\x18\x16 \x01(\x01\"\x94\x01\n\x05\x45rror\x12\x1c\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0e.pb.Error.Code\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\x1c\n\x07\x62locked\x18\x03 \x01(\x0b\x32\x0b.pb.Blocked\"A\n\x04\x43ode\x12\x10\n\x0cUNKNOWN_CODE\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\x0b\n\x07\x42LOCKED\x10\x03\"5\n\x07\x42locked\x12\r\n\x05\x63ount\x18\x01 \x01(\r\x12\x1b\n\x07\x63hannel\x18\x02 \x01(\x0b\x32\n.pb.OutputB&Z$github.com/lbryio/hub/protobuf/go/pbb\x06proto3'
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_ERROR_CODE = _descriptor.EnumDescriptor(
|
|
||||||
name='Code',
|
|
||||||
full_name='pb.Error.Code',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
values=[
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='UNKNOWN_CODE', index=0, number=0,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='NOT_FOUND', index=1, number=1,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='INVALID', index=2, number=2,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.EnumValueDescriptor(
|
|
||||||
name='BLOCKED', index=3, number=3,
|
|
||||||
serialized_options=None,
|
|
||||||
type=None,
|
|
||||||
create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
containing_type=None,
|
|
||||||
serialized_options=None,
|
|
||||||
serialized_start=744,
|
|
||||||
serialized_end=809,
|
|
||||||
)
|
|
||||||
_sym_db.RegisterEnumDescriptor(_ERROR_CODE)
|
|
||||||
|
|
||||||
|
|
||||||
_OUTPUTS = _descriptor.Descriptor(
|
|
||||||
name='Outputs',
|
|
||||||
full_name='pb.Outputs',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='txos', full_name='pb.Outputs.txos', index=0,
|
|
||||||
number=1, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='extra_txos', full_name='pb.Outputs.extra_txos', index=1,
|
|
||||||
number=2, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='total', full_name='pb.Outputs.total', index=2,
|
|
||||||
number=3, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='offset', full_name='pb.Outputs.offset', index=3,
|
|
||||||
number=4, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='blocked', full_name='pb.Outputs.blocked', index=4,
|
|
||||||
number=5, type=11, cpp_type=10, label=3,
|
|
||||||
has_default_value=False, default_value=[],
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='blocked_total', full_name='pb.Outputs.blocked_total', index=5,
|
|
||||||
number=6, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=21,
|
|
||||||
serialized_end=172,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_OUTPUT = _descriptor.Descriptor(
|
|
||||||
name='Output',
|
|
||||||
full_name='pb.Output',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='tx_hash', full_name='pb.Output.tx_hash', index=0,
|
|
||||||
number=1, type=12, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"",
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='nout', full_name='pb.Output.nout', index=1,
|
|
||||||
number=2, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='height', full_name='pb.Output.height', index=2,
|
|
||||||
number=3, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='claim', full_name='pb.Output.claim', index=3,
|
|
||||||
number=7, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='error', full_name='pb.Output.error', index=4,
|
|
||||||
number=15, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
_descriptor.OneofDescriptor(
|
|
||||||
name='meta', full_name='pb.Output.meta',
|
|
||||||
index=0, containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[]),
|
|
||||||
],
|
|
||||||
serialized_start=174,
|
|
||||||
serialized_end=297,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_CLAIMMETA = _descriptor.Descriptor(
|
|
||||||
name='ClaimMeta',
|
|
||||||
full_name='pb.ClaimMeta',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='channel', full_name='pb.ClaimMeta.channel', index=0,
|
|
||||||
number=1, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='repost', full_name='pb.ClaimMeta.repost', index=1,
|
|
||||||
number=2, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='short_url', full_name='pb.ClaimMeta.short_url', index=2,
|
|
||||||
number=3, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='canonical_url', full_name='pb.ClaimMeta.canonical_url', index=3,
|
|
||||||
number=4, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='is_controlling', full_name='pb.ClaimMeta.is_controlling', index=4,
|
|
||||||
number=5, type=8, cpp_type=7, label=1,
|
|
||||||
has_default_value=False, default_value=False,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='take_over_height', full_name='pb.ClaimMeta.take_over_height', index=5,
|
|
||||||
number=6, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='creation_height', full_name='pb.ClaimMeta.creation_height', index=6,
|
|
||||||
number=7, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='activation_height', full_name='pb.ClaimMeta.activation_height', index=7,
|
|
||||||
number=8, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='expiration_height', full_name='pb.ClaimMeta.expiration_height', index=8,
|
|
||||||
number=9, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='claims_in_channel', full_name='pb.ClaimMeta.claims_in_channel', index=9,
|
|
||||||
number=10, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='reposted', full_name='pb.ClaimMeta.reposted', index=10,
|
|
||||||
number=11, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='effective_amount', full_name='pb.ClaimMeta.effective_amount', index=11,
|
|
||||||
number=20, type=4, cpp_type=4, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='support_amount', full_name='pb.ClaimMeta.support_amount', index=12,
|
|
||||||
number=21, type=4, cpp_type=4, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='trending_score', full_name='pb.ClaimMeta.trending_score', index=13,
|
|
||||||
number=22, type=1, cpp_type=5, label=1,
|
|
||||||
has_default_value=False, default_value=float(0),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=300,
|
|
||||||
serialized_end=658,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_ERROR = _descriptor.Descriptor(
|
|
||||||
name='Error',
|
|
||||||
full_name='pb.Error',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='code', full_name='pb.Error.code', index=0,
|
|
||||||
number=1, type=14, cpp_type=8, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='text', full_name='pb.Error.text', index=1,
|
|
||||||
number=2, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='blocked', full_name='pb.Error.blocked', index=2,
|
|
||||||
number=3, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
_ERROR_CODE,
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=661,
|
|
||||||
serialized_end=809,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
_BLOCKED = _descriptor.Descriptor(
|
|
||||||
name='Blocked',
|
|
||||||
full_name='pb.Blocked',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
create_key=_descriptor._internal_create_key,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='count', full_name='pb.Blocked.count', index=0,
|
|
||||||
number=1, type=13, cpp_type=3, label=1,
|
|
||||||
has_default_value=False, default_value=0,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='channel', full_name='pb.Blocked.channel', index=1,
|
|
||||||
number=2, type=11, cpp_type=10, label=1,
|
|
||||||
has_default_value=False, default_value=None,
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
serialized_options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=811,
|
|
||||||
serialized_end=864,
|
|
||||||
)
|
|
||||||
|
|
||||||
_OUTPUTS.fields_by_name['txos'].message_type = _OUTPUT
|
|
||||||
_OUTPUTS.fields_by_name['extra_txos'].message_type = _OUTPUT
|
|
||||||
_OUTPUTS.fields_by_name['blocked'].message_type = _BLOCKED
|
|
||||||
_OUTPUT.fields_by_name['claim'].message_type = _CLAIMMETA
|
|
||||||
_OUTPUT.fields_by_name['error'].message_type = _ERROR
|
|
||||||
_OUTPUT.oneofs_by_name['meta'].fields.append(
|
|
||||||
_OUTPUT.fields_by_name['claim'])
|
|
||||||
_OUTPUT.fields_by_name['claim'].containing_oneof = _OUTPUT.oneofs_by_name['meta']
|
|
||||||
_OUTPUT.oneofs_by_name['meta'].fields.append(
|
|
||||||
_OUTPUT.fields_by_name['error'])
|
|
||||||
_OUTPUT.fields_by_name['error'].containing_oneof = _OUTPUT.oneofs_by_name['meta']
|
|
||||||
_CLAIMMETA.fields_by_name['channel'].message_type = _OUTPUT
|
|
||||||
_CLAIMMETA.fields_by_name['repost'].message_type = _OUTPUT
|
|
||||||
_ERROR.fields_by_name['code'].enum_type = _ERROR_CODE
|
|
||||||
_ERROR.fields_by_name['blocked'].message_type = _BLOCKED
|
|
||||||
_ERROR_CODE.containing_type = _ERROR
|
|
||||||
_BLOCKED.fields_by_name['channel'].message_type = _OUTPUT
|
|
||||||
DESCRIPTOR.message_types_by_name['Outputs'] = _OUTPUTS
|
|
||||||
DESCRIPTOR.message_types_by_name['Output'] = _OUTPUT
|
|
||||||
DESCRIPTOR.message_types_by_name['ClaimMeta'] = _CLAIMMETA
|
|
||||||
DESCRIPTOR.message_types_by_name['Error'] = _ERROR
|
|
||||||
DESCRIPTOR.message_types_by_name['Blocked'] = _BLOCKED
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
Outputs = _reflection.GeneratedProtocolMessageType('Outputs', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _OUTPUTS,
|
|
||||||
'__module__' : 'result_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.Outputs)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(Outputs)
|
|
||||||
|
|
||||||
Output = _reflection.GeneratedProtocolMessageType('Output', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _OUTPUT,
|
|
||||||
'__module__' : 'result_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.Output)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(Output)
|
|
||||||
|
|
||||||
ClaimMeta = _reflection.GeneratedProtocolMessageType('ClaimMeta', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _CLAIMMETA,
|
|
||||||
'__module__' : 'result_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.ClaimMeta)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(ClaimMeta)
|
|
||||||
|
|
||||||
Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _ERROR,
|
|
||||||
'__module__' : 'result_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.Error)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(Error)
|
|
||||||
|
|
||||||
Blocked = _reflection.GeneratedProtocolMessageType('Blocked', (_message.Message,), {
|
|
||||||
'DESCRIPTOR' : _BLOCKED,
|
|
||||||
'__module__' : 'result_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.Blocked)
|
|
||||||
})
|
|
||||||
_sym_db.RegisterMessage(Blocked)
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR._options = None
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
|
@ -1,4 +0,0 @@
|
||||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
||||||
"""Client and server classes corresponding to protobuf-defined services."""
|
|
||||||
import grpc
|
|
||||||
|
|
|
@ -1,76 +0,0 @@
|
||||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
# source: support.proto
|
|
||||||
|
|
||||||
import sys
|
|
||||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
||||||
from google.protobuf import descriptor as _descriptor
|
|
||||||
from google.protobuf import message as _message
|
|
||||||
from google.protobuf import reflection as _reflection
|
|
||||||
from google.protobuf import symbol_database as _symbol_database
|
|
||||||
from google.protobuf import descriptor_pb2
|
|
||||||
# @@protoc_insertion_point(imports)
|
|
||||||
|
|
||||||
_sym_db = _symbol_database.Default()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
||||||
name='support.proto',
|
|
||||||
package='pb',
|
|
||||||
syntax='proto3',
|
|
||||||
serialized_pb=_b('\n\rsupport.proto\x12\x02pb\")\n\x07Support\x12\r\n\x05\x65moji\x18\x01 \x01(\t\x12\x0f\n\x07\x63omment\x18\x02 \x01(\tb\x06proto3')
|
|
||||||
)
|
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_SUPPORT = _descriptor.Descriptor(
|
|
||||||
name='Support',
|
|
||||||
full_name='pb.Support',
|
|
||||||
filename=None,
|
|
||||||
file=DESCRIPTOR,
|
|
||||||
containing_type=None,
|
|
||||||
fields=[
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='emoji', full_name='pb.Support.emoji', index=0,
|
|
||||||
number=1, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
options=None),
|
|
||||||
_descriptor.FieldDescriptor(
|
|
||||||
name='comment', full_name='pb.Support.comment', index=1,
|
|
||||||
number=2, type=9, cpp_type=9, label=1,
|
|
||||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
|
||||||
message_type=None, enum_type=None, containing_type=None,
|
|
||||||
is_extension=False, extension_scope=None,
|
|
||||||
options=None),
|
|
||||||
],
|
|
||||||
extensions=[
|
|
||||||
],
|
|
||||||
nested_types=[],
|
|
||||||
enum_types=[
|
|
||||||
],
|
|
||||||
options=None,
|
|
||||||
is_extendable=False,
|
|
||||||
syntax='proto3',
|
|
||||||
extension_ranges=[],
|
|
||||||
oneofs=[
|
|
||||||
],
|
|
||||||
serialized_start=21,
|
|
||||||
serialized_end=62,
|
|
||||||
)
|
|
||||||
|
|
||||||
DESCRIPTOR.message_types_by_name['Support'] = _SUPPORT
|
|
||||||
|
|
||||||
Support = _reflection.GeneratedProtocolMessageType('Support', (_message.Message,), dict(
|
|
||||||
DESCRIPTOR = _SUPPORT,
|
|
||||||
__module__ = 'support_pb2'
|
|
||||||
# @@protoc_insertion_point(class_scope:pb.Support)
|
|
||||||
))
|
|
||||||
_sym_db.RegisterMessage(Support)
|
|
||||||
|
|
||||||
|
|
||||||
# @@protoc_insertion_point(module_scope)
|
|
5
setup.py
5
setup.py
|
@ -33,7 +33,7 @@ setup(
|
||||||
'certifi>=2021.10.08',
|
'certifi>=2021.10.08',
|
||||||
'colorama==0.3.7',
|
'colorama==0.3.7',
|
||||||
'cffi==1.13.2',
|
'cffi==1.13.2',
|
||||||
'protobuf==3.18.3',
|
'protobuf==3.20.1',
|
||||||
'msgpack==0.6.1',
|
'msgpack==0.6.1',
|
||||||
'prometheus_client==0.7.1',
|
'prometheus_client==0.7.1',
|
||||||
'coincurve==15.0.0',
|
'coincurve==15.0.0',
|
||||||
|
@ -44,7 +44,8 @@ setup(
|
||||||
'filetype==1.0.9',
|
'filetype==1.0.9',
|
||||||
'grpcio==1.38.0',
|
'grpcio==1.38.0',
|
||||||
'lbry-rocksdb==0.8.2',
|
'lbry-rocksdb==0.8.2',
|
||||||
'ujson==5.4.0'
|
'ujson==5.4.0',
|
||||||
|
'lbry-types@git+https://github.com/moodyjon/types@repost_modify',
|
||||||
],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
'lint': ['pylint==2.10.0'],
|
'lint': ['pylint==2.10.0'],
|
||||||
|
|
Loading…
Reference in a new issue