From acd98f1786e11acb49c70d019e85f83104e02f91 Mon Sep 17 00:00:00 2001 From: Pavel Borobov Date: Mon, 19 Apr 2021 16:51:42 -0700 Subject: [PATCH 1/5] Added support for s3 registry and template for aws provider --- sdk/python/feast/infra/aws_dynamo_provider.py | 7 +- sdk/python/feast/registry.py | 77 ++ sdk/python/feast/repo_config.py | 20 +- .../templates/aws_dynamo/feature_store.yaml | 6 + .../tensorflow_metadata/proto/v0/path_pb2.py | 2 +- .../tensorflow_metadata/proto/v0/path_pb2.pyi | 50 +- .../proto/v0/schema_pb2.py | 2 +- .../proto/v0/schema_pb2.pyi | 1095 ++++++++--------- .../proto/v0/statistics_pb2.py | 2 +- .../proto/v0/statistics_pb2.pyi | 861 ++++++------- 10 files changed, 1059 insertions(+), 1063 deletions(-) create mode 100644 sdk/python/feast/templates/aws_dynamo/feature_store.yaml diff --git a/sdk/python/feast/infra/aws_dynamo_provider.py b/sdk/python/feast/infra/aws_dynamo_provider.py index 5fd069f4b2..2395c71c98 100644 --- a/sdk/python/feast/infra/aws_dynamo_provider.py +++ b/sdk/python/feast/infra/aws_dynamo_provider.py @@ -27,9 +27,9 @@ class AwsDynamoProvider(Provider): _aws_project_id: Optional[str] - def __init__(self, config: Optional[DatastoreOnlineStoreConfig]): - if config: - self._aws_project_id = config.project_id + def __init__(self, config: Optional[RepoConfig]): + if config and config.online_store and config.online_store.project_id: + self._aws_project_id = config.online_store.project_id else: self._aws_project_id = None @@ -48,6 +48,7 @@ def update_infra( client = self._initialize_client() for table_name in tables_to_keep: + # TODO: add table creation to dynamo. table = client.Table(table_name.name) table.update_item( Key={ diff --git a/sdk/python/feast/registry.py b/sdk/python/feast/registry.py index 61259b2407..ec45aff97e 100644 --- a/sdk/python/feast/registry.py +++ b/sdk/python/feast/registry.py @@ -56,6 +56,8 @@ def __init__(self, registry_path: str, cache_ttl: timedelta): uri = urlparse(registry_path) if uri.scheme == "gs": self._registry_store: RegistryStore = GCSRegistryStore(registry_path) + elif uri.scheme == "s3": + self._registry_store: RegistryStore = AwsS3RegistryStore(registry_path) elif uri.scheme == "file" or uri.scheme == "": self._registry_store = LocalRegistryStore(registry_path) else: @@ -477,3 +479,78 @@ def _write_registry(self, registry_proto: RegistryProto): file_obj.seek(0) blob.upload_from_file(file_obj) return + + +class AwsS3RegistryStore(RegistryStore): + def __init__(self, uri: str): + try: + import boto3 + except ImportError: + raise ImportError( + "Install package boto3==1.17.* for gcs support" + "run ```pip install boto3==1.17.*```" + ) + self._uri = urlparse(uri) + self._bucket = self._uri.hostname + self._key = self._uri.path.lstrip("/") + return + + def get_registry_proto(self): + import boto3 + import botocore + + file_obj = TemporaryFile() + registry_proto = RegistryProto() + s3 = boto3.resource('s3') + try: + bucket = s3.Bucket(self._bucket) + s3.meta.client.head_bucket(Bucket=bucket.name) + except botocore.client.ClientError as e: + # If a client error is thrown, then check that it was a 404 error. + # If it was a 404 error, then the bucket does not exist. + error_code = int(e.response['Error']['Code']) + if error_code == 404: + raise Exception( + f"No bucket named {self._bucket} exists; please create it first." + ) + else: + raise Exception(f'Private Registry Bucket {self._bucket}. Forbidden Access!') + + try: + obj = bucket.Object(self._key) + obj.download_fileobj(file_obj) + file_obj.seek(0) + registry_proto.ParseFromString(file_obj.read()) + return registry_proto + except botocore.exceptions.ClientError as e: + if e.response['Error']['Code'] == "404": + raise FileNotFoundError( + f'Registry not found at path "{self._uri.geturl()}". Have you run "feast apply"?' + ) + else: + raise FileNotFoundError( + f'Registry is not able to locate data under path "{self._uri.geturl()}" with [original error]: {e.response}' + ) + + def update_registry_proto(self, updater: Callable[[RegistryProto], RegistryProto]): + try: + registry_proto = self.get_registry_proto() + except FileNotFoundError: + registry_proto = RegistryProto() + registry_proto.registry_schema_version = REGISTRY_SCHEMA_VERSION + registry_proto = updater(registry_proto) + self._write_registry(registry_proto) + return + + def _write_registry(self, registry_proto: RegistryProto): + import boto3 + registry_proto.version_id = str(uuid.uuid4()) + registry_proto.last_updated.FromDatetime(datetime.utcnow()) + # we have already checked the bucket exists so no need to do it again + registry_bucket = boto3.resource('s3').Bucket(self._bucket) + registry_db = registry_bucket.Object(self._key) + file_obj = TemporaryFile() + file_obj.write(registry_proto.SerializeToString()) + file_obj.seek(0) + registry_db.upload_fileobj(file_obj) + return diff --git a/sdk/python/feast/repo_config.py b/sdk/python/feast/repo_config.py index 212b355d4d..e5a5f7942d 100644 --- a/sdk/python/feast/repo_config.py +++ b/sdk/python/feast/repo_config.py @@ -33,8 +33,13 @@ class DatastoreOnlineStoreConfig(FeastBaseModel): project_id: Optional[StrictStr] = None """ (optional) GCP Project Id """ +class DynamoOnlineStoreConfig(FeastBaseModel): + """Online store config for DynamoDB store""" + type: Literal["dynamo"] = "dynamo" + """Online store type selector""" + project_id: Optional[StrictStr] = None -OnlineStoreConfig = Union[DatastoreOnlineStoreConfig, SqliteOnlineStoreConfig] +OnlineStoreConfig = Union[DatastoreOnlineStoreConfig, SqliteOnlineStoreConfig, DynamoOnlineStoreConfig] class RegistryConfig(FeastBaseModel): @@ -63,7 +68,7 @@ class RepoConfig(FeastBaseModel): """ provider: StrictStr - """ str: local or gcp """ + """ str: local or gcp or aws_dynamo """ online_store: OnlineStoreConfig = SqliteOnlineStoreConfig() """ OnlineStoreConfig: Online store configuration (optional depending on provider) """ @@ -102,18 +107,21 @@ def _validate_online_store_config(cls, values): values["online_store"]["type"] = "datastore" elif values["provider"] == "aws_dynamo": values["online_store"]["type"] = "datastore" - + elif values["provider"] == "aws_dynamo": + values["online_store"]["type"] = "dynamo" online_store_type = values["online_store"]["type"] - # Make sure the user hasn't provided the wrong type - assert online_store_type in ["datastore", "sqlite"] + assert online_store_type in ["datastore", "sqlite", "dynamo"] # Validate the dict to ensure one of the union types match try: if online_store_type == "sqlite": SqliteOnlineStoreConfig(**values["online_store"]) - elif values["online_store"]["type"] == "datastore": + elif online_store_type == "datastore": DatastoreOnlineStoreConfig(**values["online_store"]) + elif online_store_type == "dynamo": + print("govno") + DynamoOnlineStoreConfig(**values["online_store"]) else: raise ValidationError( f"Invalid online store type {online_store_type}" diff --git a/sdk/python/feast/templates/aws_dynamo/feature_store.yaml b/sdk/python/feast/templates/aws_dynamo/feature_store.yaml new file mode 100644 index 0000000000..7e09357d57 --- /dev/null +++ b/sdk/python/feast/templates/aws_dynamo/feature_store.yaml @@ -0,0 +1,6 @@ +project: my_project +registry: data/registry.db +provider: aws_dynamo +offline_store: + path: s3://test-bucket/data/ +online_store: diff --git a/sdk/python/tensorflow_metadata/proto/v0/path_pb2.py b/sdk/python/tensorflow_metadata/proto/v0/path_pb2.py index 4b6dec828c..d732119ead 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/path_pb2.py +++ b/sdk/python/tensorflow_metadata/proto/v0/path_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_metadata/proto/v0/path.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 diff --git a/sdk/python/tensorflow_metadata/proto/v0/path_pb2.pyi b/sdk/python/tensorflow_metadata/proto/v0/path_pb2.pyi index e316ac06c4..82fccfa5fa 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/path_pb2.pyi +++ b/sdk/python/tensorflow_metadata/proto/v0/path_pb2.pyi @@ -2,23 +2,45 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, +) -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +from google.protobuf.internal.containers import ( + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) -class Path(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - STEP_FIELD_NUMBER: builtins.int - step: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) + + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... + +class Path(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + step: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... def __init__(self, *, - step : typing.Optional[typing.Iterable[typing.Text]] = ..., + step : typing___Optional[typing___Iterable[typing___Text]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"step",b"step"]) -> None: ... -global___Path = Path + def ClearField(self, field_name: typing_extensions___Literal[u"step",b"step"]) -> None: ... +type___Path = Path diff --git a/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py b/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py index d3bfc50616..78fda8003d 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py +++ b/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_metadata/proto/v0/schema.proto -"""Generated protocol buffer code.""" + from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message diff --git a/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.pyi b/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.pyi index 53fa89d390..f08b330a2f 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.pyi +++ b/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.pyi @@ -2,842 +2,785 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import tensorflow_metadata.proto.v0.path_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -global___LifecycleStage = LifecycleStage -class _LifecycleStage(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[LifecycleStage.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - UNKNOWN_STAGE = LifecycleStage.V(0) - PLANNED = LifecycleStage.V(1) - ALPHA = LifecycleStage.V(2) - BETA = LifecycleStage.V(3) - PRODUCTION = LifecycleStage.V(4) - DEPRECATED = LifecycleStage.V(5) - DEBUG_ONLY = LifecycleStage.V(6) -class LifecycleStage(metaclass=_LifecycleStage): - V = typing.NewType('V', builtins.int) -UNKNOWN_STAGE = LifecycleStage.V(0) -PLANNED = LifecycleStage.V(1) -ALPHA = LifecycleStage.V(2) -BETA = LifecycleStage.V(3) -PRODUCTION = LifecycleStage.V(4) -DEPRECATED = LifecycleStage.V(5) -DEBUG_ONLY = LifecycleStage.V(6) - -global___FeatureType = FeatureType -class _FeatureType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FeatureType.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - TYPE_UNKNOWN = FeatureType.V(0) - BYTES = FeatureType.V(1) - INT = FeatureType.V(2) - FLOAT = FeatureType.V(3) - STRUCT = FeatureType.V(4) -class FeatureType(metaclass=_FeatureType): - V = typing.NewType('V', builtins.int) -TYPE_UNKNOWN = FeatureType.V(0) -BYTES = FeatureType.V(1) -INT = FeatureType.V(2) -FLOAT = FeatureType.V(3) -STRUCT = FeatureType.V(4) - -class Schema(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class TensorRepresentationGroupEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: typing.Text = ... +from google.protobuf.any_pb2 import ( + Any as google___protobuf___any_pb2___Any, +) + +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, +) + +from google.protobuf.internal.containers import ( + MessageMap as google___protobuf___internal___containers___MessageMap, + RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) + +from google.protobuf.internal.enum_type_wrapper import ( + _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, +) + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from tensorflow_metadata.proto.v0.path_pb2 import ( + Path as tensorflow_metadata___proto___v0___path_pb2___Path, +) + +from typing import ( + Iterable as typing___Iterable, + Mapping as typing___Mapping, + NewType as typing___NewType, + Optional as typing___Optional, + Text as typing___Text, + cast as typing___cast, + overload as typing___overload, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) + + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... + +LifecycleStageValue = typing___NewType('LifecycleStageValue', builtin___int) +type___LifecycleStageValue = LifecycleStageValue +LifecycleStage: _LifecycleStage +class _LifecycleStage(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[LifecycleStageValue]): + DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + UNKNOWN_STAGE = typing___cast(LifecycleStageValue, 0) + PLANNED = typing___cast(LifecycleStageValue, 1) + ALPHA = typing___cast(LifecycleStageValue, 2) + BETA = typing___cast(LifecycleStageValue, 3) + PRODUCTION = typing___cast(LifecycleStageValue, 4) + DEPRECATED = typing___cast(LifecycleStageValue, 5) + DEBUG_ONLY = typing___cast(LifecycleStageValue, 6) +UNKNOWN_STAGE = typing___cast(LifecycleStageValue, 0) +PLANNED = typing___cast(LifecycleStageValue, 1) +ALPHA = typing___cast(LifecycleStageValue, 2) +BETA = typing___cast(LifecycleStageValue, 3) +PRODUCTION = typing___cast(LifecycleStageValue, 4) +DEPRECATED = typing___cast(LifecycleStageValue, 5) +DEBUG_ONLY = typing___cast(LifecycleStageValue, 6) + +FeatureTypeValue = typing___NewType('FeatureTypeValue', builtin___int) +type___FeatureTypeValue = FeatureTypeValue +FeatureType: _FeatureType +class _FeatureType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FeatureTypeValue]): + DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + TYPE_UNKNOWN = typing___cast(FeatureTypeValue, 0) + BYTES = typing___cast(FeatureTypeValue, 1) + INT = typing___cast(FeatureTypeValue, 2) + FLOAT = typing___cast(FeatureTypeValue, 3) + STRUCT = typing___cast(FeatureTypeValue, 4) +TYPE_UNKNOWN = typing___cast(FeatureTypeValue, 0) +BYTES = typing___cast(FeatureTypeValue, 1) +INT = typing___cast(FeatureTypeValue, 2) +FLOAT = typing___cast(FeatureTypeValue, 3) +STRUCT = typing___cast(FeatureTypeValue, 4) + +class Schema(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class TensorRepresentationGroupEntry(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + key: typing___Text = ... @property - def value(self) -> global___TensorRepresentationGroup: ... + def value(self) -> type___TensorRepresentationGroup: ... def __init__(self, *, - key : typing.Optional[typing.Text] = ..., - value : typing.Optional[global___TensorRepresentationGroup] = ..., + key : typing___Optional[typing___Text] = None, + value : typing___Optional[type___TensorRepresentationGroup] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... + type___TensorRepresentationGroupEntry = TensorRepresentationGroupEntry - FEATURE_FIELD_NUMBER: builtins.int - SPARSE_FEATURE_FIELD_NUMBER: builtins.int - WEIGHTED_FEATURE_FIELD_NUMBER: builtins.int - STRING_DOMAIN_FIELD_NUMBER: builtins.int - FLOAT_DOMAIN_FIELD_NUMBER: builtins.int - INT_DOMAIN_FIELD_NUMBER: builtins.int - DEFAULT_ENVIRONMENT_FIELD_NUMBER: builtins.int - ANNOTATION_FIELD_NUMBER: builtins.int - DATASET_CONSTRAINTS_FIELD_NUMBER: builtins.int - TENSOR_REPRESENTATION_GROUP_FIELD_NUMBER: builtins.int - default_environment: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... + default_environment: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... @property - def feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Feature]: ... + def feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Feature]: ... @property - def sparse_feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SparseFeature]: ... + def sparse_feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SparseFeature]: ... @property - def weighted_feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WeightedFeature]: ... + def weighted_feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___WeightedFeature]: ... @property - def string_domain(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringDomain]: ... + def string_domain(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___StringDomain]: ... @property - def float_domain(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FloatDomain]: ... + def float_domain(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FloatDomain]: ... @property - def int_domain(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IntDomain]: ... + def int_domain(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntDomain]: ... @property - def annotation(self) -> global___Annotation: ... + def annotation(self) -> type___Annotation: ... @property - def dataset_constraints(self) -> global___DatasetConstraints: ... + def dataset_constraints(self) -> type___DatasetConstraints: ... @property - def tensor_representation_group(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___TensorRepresentationGroup]: ... + def tensor_representation_group(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___TensorRepresentationGroup]: ... def __init__(self, *, - feature : typing.Optional[typing.Iterable[global___Feature]] = ..., - sparse_feature : typing.Optional[typing.Iterable[global___SparseFeature]] = ..., - weighted_feature : typing.Optional[typing.Iterable[global___WeightedFeature]] = ..., - string_domain : typing.Optional[typing.Iterable[global___StringDomain]] = ..., - float_domain : typing.Optional[typing.Iterable[global___FloatDomain]] = ..., - int_domain : typing.Optional[typing.Iterable[global___IntDomain]] = ..., - default_environment : typing.Optional[typing.Iterable[typing.Text]] = ..., - annotation : typing.Optional[global___Annotation] = ..., - dataset_constraints : typing.Optional[global___DatasetConstraints] = ..., - tensor_representation_group : typing.Optional[typing.Mapping[typing.Text, global___TensorRepresentationGroup]] = ..., + feature : typing___Optional[typing___Iterable[type___Feature]] = None, + sparse_feature : typing___Optional[typing___Iterable[type___SparseFeature]] = None, + weighted_feature : typing___Optional[typing___Iterable[type___WeightedFeature]] = None, + string_domain : typing___Optional[typing___Iterable[type___StringDomain]] = None, + float_domain : typing___Optional[typing___Iterable[type___FloatDomain]] = None, + int_domain : typing___Optional[typing___Iterable[type___IntDomain]] = None, + default_environment : typing___Optional[typing___Iterable[typing___Text]] = None, + annotation : typing___Optional[type___Annotation] = None, + dataset_constraints : typing___Optional[type___DatasetConstraints] = None, + tensor_representation_group : typing___Optional[typing___Mapping[typing___Text, type___TensorRepresentationGroup]] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation",u"dataset_constraints",b"dataset_constraints"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation",u"dataset_constraints",b"dataset_constraints",u"default_environment",b"default_environment",u"feature",b"feature",u"float_domain",b"float_domain",u"int_domain",b"int_domain",u"sparse_feature",b"sparse_feature",u"string_domain",b"string_domain",u"tensor_representation_group",b"tensor_representation_group",u"weighted_feature",b"weighted_feature"]) -> None: ... -global___Schema = Schema + def HasField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation",u"dataset_constraints",b"dataset_constraints"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation",u"dataset_constraints",b"dataset_constraints",u"default_environment",b"default_environment",u"feature",b"feature",u"float_domain",b"float_domain",u"int_domain",b"int_domain",u"sparse_feature",b"sparse_feature",u"string_domain",b"string_domain",u"tensor_representation_group",b"tensor_representation_group",u"weighted_feature",b"weighted_feature"]) -> None: ... +type___Schema = Schema -class Feature(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - DEPRECATED_FIELD_NUMBER: builtins.int - PRESENCE_FIELD_NUMBER: builtins.int - GROUP_PRESENCE_FIELD_NUMBER: builtins.int - SHAPE_FIELD_NUMBER: builtins.int - VALUE_COUNT_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - DOMAIN_FIELD_NUMBER: builtins.int - INT_DOMAIN_FIELD_NUMBER: builtins.int - FLOAT_DOMAIN_FIELD_NUMBER: builtins.int - STRING_DOMAIN_FIELD_NUMBER: builtins.int - BOOL_DOMAIN_FIELD_NUMBER: builtins.int - STRUCT_DOMAIN_FIELD_NUMBER: builtins.int - NATURAL_LANGUAGE_DOMAIN_FIELD_NUMBER: builtins.int - IMAGE_DOMAIN_FIELD_NUMBER: builtins.int - MID_DOMAIN_FIELD_NUMBER: builtins.int - URL_DOMAIN_FIELD_NUMBER: builtins.int - TIME_DOMAIN_FIELD_NUMBER: builtins.int - TIME_OF_DAY_DOMAIN_FIELD_NUMBER: builtins.int - DISTRIBUTION_CONSTRAINTS_FIELD_NUMBER: builtins.int - ANNOTATION_FIELD_NUMBER: builtins.int - SKEW_COMPARATOR_FIELD_NUMBER: builtins.int - DRIFT_COMPARATOR_FIELD_NUMBER: builtins.int - IN_ENVIRONMENT_FIELD_NUMBER: builtins.int - NOT_IN_ENVIRONMENT_FIELD_NUMBER: builtins.int - LIFECYCLE_STAGE_FIELD_NUMBER: builtins.int - name: typing.Text = ... - deprecated: builtins.bool = ... - type: global___FeatureType.V = ... - domain: typing.Text = ... - in_environment: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... - not_in_environment: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... - lifecycle_stage: global___LifecycleStage.V = ... +class Feature(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + deprecated: builtin___bool = ... + type: type___FeatureTypeValue = ... + domain: typing___Text = ... + in_environment: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + not_in_environment: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + lifecycle_stage: type___LifecycleStageValue = ... @property - def presence(self) -> global___FeaturePresence: ... + def presence(self) -> type___FeaturePresence: ... @property - def group_presence(self) -> global___FeaturePresenceWithinGroup: ... + def group_presence(self) -> type___FeaturePresenceWithinGroup: ... @property - def shape(self) -> global___FixedShape: ... + def shape(self) -> type___FixedShape: ... @property - def value_count(self) -> global___ValueCount: ... + def value_count(self) -> type___ValueCount: ... @property - def int_domain(self) -> global___IntDomain: ... + def int_domain(self) -> type___IntDomain: ... @property - def float_domain(self) -> global___FloatDomain: ... + def float_domain(self) -> type___FloatDomain: ... @property - def string_domain(self) -> global___StringDomain: ... + def string_domain(self) -> type___StringDomain: ... @property - def bool_domain(self) -> global___BoolDomain: ... + def bool_domain(self) -> type___BoolDomain: ... @property - def struct_domain(self) -> global___StructDomain: ... + def struct_domain(self) -> type___StructDomain: ... @property - def natural_language_domain(self) -> global___NaturalLanguageDomain: ... + def natural_language_domain(self) -> type___NaturalLanguageDomain: ... @property - def image_domain(self) -> global___ImageDomain: ... + def image_domain(self) -> type___ImageDomain: ... @property - def mid_domain(self) -> global___MIDDomain: ... + def mid_domain(self) -> type___MIDDomain: ... @property - def url_domain(self) -> global___URLDomain: ... + def url_domain(self) -> type___URLDomain: ... @property - def time_domain(self) -> global___TimeDomain: ... + def time_domain(self) -> type___TimeDomain: ... @property - def time_of_day_domain(self) -> global___TimeOfDayDomain: ... + def time_of_day_domain(self) -> type___TimeOfDayDomain: ... @property - def distribution_constraints(self) -> global___DistributionConstraints: ... + def distribution_constraints(self) -> type___DistributionConstraints: ... @property - def annotation(self) -> global___Annotation: ... + def annotation(self) -> type___Annotation: ... @property - def skew_comparator(self) -> global___FeatureComparator: ... + def skew_comparator(self) -> type___FeatureComparator: ... @property - def drift_comparator(self) -> global___FeatureComparator: ... + def drift_comparator(self) -> type___FeatureComparator: ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - deprecated : typing.Optional[builtins.bool] = ..., - presence : typing.Optional[global___FeaturePresence] = ..., - group_presence : typing.Optional[global___FeaturePresenceWithinGroup] = ..., - shape : typing.Optional[global___FixedShape] = ..., - value_count : typing.Optional[global___ValueCount] = ..., - type : typing.Optional[global___FeatureType.V] = ..., - domain : typing.Optional[typing.Text] = ..., - int_domain : typing.Optional[global___IntDomain] = ..., - float_domain : typing.Optional[global___FloatDomain] = ..., - string_domain : typing.Optional[global___StringDomain] = ..., - bool_domain : typing.Optional[global___BoolDomain] = ..., - struct_domain : typing.Optional[global___StructDomain] = ..., - natural_language_domain : typing.Optional[global___NaturalLanguageDomain] = ..., - image_domain : typing.Optional[global___ImageDomain] = ..., - mid_domain : typing.Optional[global___MIDDomain] = ..., - url_domain : typing.Optional[global___URLDomain] = ..., - time_domain : typing.Optional[global___TimeDomain] = ..., - time_of_day_domain : typing.Optional[global___TimeOfDayDomain] = ..., - distribution_constraints : typing.Optional[global___DistributionConstraints] = ..., - annotation : typing.Optional[global___Annotation] = ..., - skew_comparator : typing.Optional[global___FeatureComparator] = ..., - drift_comparator : typing.Optional[global___FeatureComparator] = ..., - in_environment : typing.Optional[typing.Iterable[typing.Text]] = ..., - not_in_environment : typing.Optional[typing.Iterable[typing.Text]] = ..., - lifecycle_stage : typing.Optional[global___LifecycleStage.V] = ..., + name : typing___Optional[typing___Text] = None, + deprecated : typing___Optional[builtin___bool] = None, + presence : typing___Optional[type___FeaturePresence] = None, + group_presence : typing___Optional[type___FeaturePresenceWithinGroup] = None, + shape : typing___Optional[type___FixedShape] = None, + value_count : typing___Optional[type___ValueCount] = None, + type : typing___Optional[type___FeatureTypeValue] = None, + domain : typing___Optional[typing___Text] = None, + int_domain : typing___Optional[type___IntDomain] = None, + float_domain : typing___Optional[type___FloatDomain] = None, + string_domain : typing___Optional[type___StringDomain] = None, + bool_domain : typing___Optional[type___BoolDomain] = None, + struct_domain : typing___Optional[type___StructDomain] = None, + natural_language_domain : typing___Optional[type___NaturalLanguageDomain] = None, + image_domain : typing___Optional[type___ImageDomain] = None, + mid_domain : typing___Optional[type___MIDDomain] = None, + url_domain : typing___Optional[type___URLDomain] = None, + time_domain : typing___Optional[type___TimeDomain] = None, + time_of_day_domain : typing___Optional[type___TimeOfDayDomain] = None, + distribution_constraints : typing___Optional[type___DistributionConstraints] = None, + annotation : typing___Optional[type___Annotation] = None, + skew_comparator : typing___Optional[type___FeatureComparator] = None, + drift_comparator : typing___Optional[type___FeatureComparator] = None, + in_environment : typing___Optional[typing___Iterable[typing___Text]] = None, + not_in_environment : typing___Optional[typing___Iterable[typing___Text]] = None, + lifecycle_stage : typing___Optional[type___LifecycleStageValue] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation",u"bool_domain",b"bool_domain",u"deprecated",b"deprecated",u"distribution_constraints",b"distribution_constraints",u"domain",b"domain",u"domain_info",b"domain_info",u"drift_comparator",b"drift_comparator",u"float_domain",b"float_domain",u"group_presence",b"group_presence",u"image_domain",b"image_domain",u"int_domain",b"int_domain",u"lifecycle_stage",b"lifecycle_stage",u"mid_domain",b"mid_domain",u"name",b"name",u"natural_language_domain",b"natural_language_domain",u"presence",b"presence",u"presence_constraints",b"presence_constraints",u"shape",b"shape",u"shape_type",b"shape_type",u"skew_comparator",b"skew_comparator",u"string_domain",b"string_domain",u"struct_domain",b"struct_domain",u"time_domain",b"time_domain",u"time_of_day_domain",b"time_of_day_domain",u"type",b"type",u"url_domain",b"url_domain",u"value_count",b"value_count"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation",u"bool_domain",b"bool_domain",u"deprecated",b"deprecated",u"distribution_constraints",b"distribution_constraints",u"domain",b"domain",u"domain_info",b"domain_info",u"drift_comparator",b"drift_comparator",u"float_domain",b"float_domain",u"group_presence",b"group_presence",u"image_domain",b"image_domain",u"in_environment",b"in_environment",u"int_domain",b"int_domain",u"lifecycle_stage",b"lifecycle_stage",u"mid_domain",b"mid_domain",u"name",b"name",u"natural_language_domain",b"natural_language_domain",u"not_in_environment",b"not_in_environment",u"presence",b"presence",u"presence_constraints",b"presence_constraints",u"shape",b"shape",u"shape_type",b"shape_type",u"skew_comparator",b"skew_comparator",u"string_domain",b"string_domain",u"struct_domain",b"struct_domain",u"time_domain",b"time_domain",u"time_of_day_domain",b"time_of_day_domain",u"type",b"type",u"url_domain",b"url_domain",u"value_count",b"value_count"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"domain_info",b"domain_info"]) -> typing_extensions.Literal["domain","int_domain","float_domain","string_domain","bool_domain","struct_domain","natural_language_domain","image_domain","mid_domain","url_domain","time_domain","time_of_day_domain"]: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"presence_constraints",b"presence_constraints"]) -> typing_extensions.Literal["presence","group_presence"]: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"shape_type",b"shape_type"]) -> typing_extensions.Literal["shape","value_count"]: ... -global___Feature = Feature - -class Annotation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TAG_FIELD_NUMBER: builtins.int - COMMENT_FIELD_NUMBER: builtins.int - EXTRA_METADATA_FIELD_NUMBER: builtins.int - tag: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... - comment: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... - - @property - def extra_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def HasField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation",u"bool_domain",b"bool_domain",u"deprecated",b"deprecated",u"distribution_constraints",b"distribution_constraints",u"domain",b"domain",u"domain_info",b"domain_info",u"drift_comparator",b"drift_comparator",u"float_domain",b"float_domain",u"group_presence",b"group_presence",u"image_domain",b"image_domain",u"int_domain",b"int_domain",u"lifecycle_stage",b"lifecycle_stage",u"mid_domain",b"mid_domain",u"name",b"name",u"natural_language_domain",b"natural_language_domain",u"presence",b"presence",u"presence_constraints",b"presence_constraints",u"shape",b"shape",u"shape_type",b"shape_type",u"skew_comparator",b"skew_comparator",u"string_domain",b"string_domain",u"struct_domain",b"struct_domain",u"time_domain",b"time_domain",u"time_of_day_domain",b"time_of_day_domain",u"type",b"type",u"url_domain",b"url_domain",u"value_count",b"value_count"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation",u"bool_domain",b"bool_domain",u"deprecated",b"deprecated",u"distribution_constraints",b"distribution_constraints",u"domain",b"domain",u"domain_info",b"domain_info",u"drift_comparator",b"drift_comparator",u"float_domain",b"float_domain",u"group_presence",b"group_presence",u"image_domain",b"image_domain",u"in_environment",b"in_environment",u"int_domain",b"int_domain",u"lifecycle_stage",b"lifecycle_stage",u"mid_domain",b"mid_domain",u"name",b"name",u"natural_language_domain",b"natural_language_domain",u"not_in_environment",b"not_in_environment",u"presence",b"presence",u"presence_constraints",b"presence_constraints",u"shape",b"shape",u"shape_type",b"shape_type",u"skew_comparator",b"skew_comparator",u"string_domain",b"string_domain",u"struct_domain",b"struct_domain",u"time_domain",b"time_domain",u"time_of_day_domain",b"time_of_day_domain",u"type",b"type",u"url_domain",b"url_domain",u"value_count",b"value_count"]) -> None: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"domain_info",b"domain_info"]) -> typing_extensions___Literal["domain","int_domain","float_domain","string_domain","bool_domain","struct_domain","natural_language_domain","image_domain","mid_domain","url_domain","time_domain","time_of_day_domain"]: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"presence_constraints",b"presence_constraints"]) -> typing_extensions___Literal["presence","group_presence"]: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"shape_type",b"shape_type"]) -> typing_extensions___Literal["shape","value_count"]: ... +type___Feature = Feature + +class Annotation(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + tag: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + comment: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + + @property + def extra_metadata(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___any_pb2___Any]: ... def __init__(self, *, - tag : typing.Optional[typing.Iterable[typing.Text]] = ..., - comment : typing.Optional[typing.Iterable[typing.Text]] = ..., - extra_metadata : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + tag : typing___Optional[typing___Iterable[typing___Text]] = None, + comment : typing___Optional[typing___Iterable[typing___Text]] = None, + extra_metadata : typing___Optional[typing___Iterable[google___protobuf___any_pb2___Any]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"comment",b"comment",u"extra_metadata",b"extra_metadata",u"tag",b"tag"]) -> None: ... -global___Annotation = Annotation + def ClearField(self, field_name: typing_extensions___Literal[u"comment",b"comment",u"extra_metadata",b"extra_metadata",u"tag",b"tag"]) -> None: ... +type___Annotation = Annotation -class NumericValueComparator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MIN_FRACTION_THRESHOLD_FIELD_NUMBER: builtins.int - MAX_FRACTION_THRESHOLD_FIELD_NUMBER: builtins.int - min_fraction_threshold: builtins.float = ... - max_fraction_threshold: builtins.float = ... +class NumericValueComparator(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + min_fraction_threshold: builtin___float = ... + max_fraction_threshold: builtin___float = ... def __init__(self, *, - min_fraction_threshold : typing.Optional[builtins.float] = ..., - max_fraction_threshold : typing.Optional[builtins.float] = ..., + min_fraction_threshold : typing___Optional[builtin___float] = None, + max_fraction_threshold : typing___Optional[builtin___float] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"max_fraction_threshold",b"max_fraction_threshold",u"min_fraction_threshold",b"min_fraction_threshold"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max_fraction_threshold",b"max_fraction_threshold",u"min_fraction_threshold",b"min_fraction_threshold"]) -> None: ... -global___NumericValueComparator = NumericValueComparator + def HasField(self, field_name: typing_extensions___Literal[u"max_fraction_threshold",b"max_fraction_threshold",u"min_fraction_threshold",b"min_fraction_threshold"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"max_fraction_threshold",b"max_fraction_threshold",u"min_fraction_threshold",b"min_fraction_threshold"]) -> None: ... +type___NumericValueComparator = NumericValueComparator -class DatasetConstraints(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NUM_EXAMPLES_DRIFT_COMPARATOR_FIELD_NUMBER: builtins.int - NUM_EXAMPLES_VERSION_COMPARATOR_FIELD_NUMBER: builtins.int - MIN_EXAMPLES_COUNT_FIELD_NUMBER: builtins.int - min_examples_count: builtins.int = ... +class DatasetConstraints(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + min_examples_count: builtin___int = ... @property - def num_examples_drift_comparator(self) -> global___NumericValueComparator: ... + def num_examples_drift_comparator(self) -> type___NumericValueComparator: ... @property - def num_examples_version_comparator(self) -> global___NumericValueComparator: ... + def num_examples_version_comparator(self) -> type___NumericValueComparator: ... def __init__(self, *, - num_examples_drift_comparator : typing.Optional[global___NumericValueComparator] = ..., - num_examples_version_comparator : typing.Optional[global___NumericValueComparator] = ..., - min_examples_count : typing.Optional[builtins.int] = ..., + num_examples_drift_comparator : typing___Optional[type___NumericValueComparator] = None, + num_examples_version_comparator : typing___Optional[type___NumericValueComparator] = None, + min_examples_count : typing___Optional[builtin___int] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"min_examples_count",b"min_examples_count",u"num_examples_drift_comparator",b"num_examples_drift_comparator",u"num_examples_version_comparator",b"num_examples_version_comparator"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"min_examples_count",b"min_examples_count",u"num_examples_drift_comparator",b"num_examples_drift_comparator",u"num_examples_version_comparator",b"num_examples_version_comparator"]) -> None: ... -global___DatasetConstraints = DatasetConstraints - -class FixedShape(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Dim(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIZE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - size: builtins.int = ... - name: typing.Text = ... + def HasField(self, field_name: typing_extensions___Literal[u"min_examples_count",b"min_examples_count",u"num_examples_drift_comparator",b"num_examples_drift_comparator",u"num_examples_version_comparator",b"num_examples_version_comparator"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"min_examples_count",b"min_examples_count",u"num_examples_drift_comparator",b"num_examples_drift_comparator",u"num_examples_version_comparator",b"num_examples_version_comparator"]) -> None: ... +type___DatasetConstraints = DatasetConstraints + +class FixedShape(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class Dim(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + size: builtin___int = ... + name: typing___Text = ... def __init__(self, *, - size : typing.Optional[builtins.int] = ..., - name : typing.Optional[typing.Text] = ..., + size : typing___Optional[builtin___int] = None, + name : typing___Optional[typing___Text] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"name",b"name",u"size",b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"size",b"size"]) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"size",b"size"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"size",b"size"]) -> None: ... + type___Dim = Dim - DIM_FIELD_NUMBER: builtins.int @property - def dim(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FixedShape.Dim]: ... + def dim(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FixedShape.Dim]: ... def __init__(self, *, - dim : typing.Optional[typing.Iterable[global___FixedShape.Dim]] = ..., + dim : typing___Optional[typing___Iterable[type___FixedShape.Dim]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"dim",b"dim"]) -> None: ... -global___FixedShape = FixedShape + def ClearField(self, field_name: typing_extensions___Literal[u"dim",b"dim"]) -> None: ... +type___FixedShape = FixedShape -class ValueCount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MIN_FIELD_NUMBER: builtins.int - MAX_FIELD_NUMBER: builtins.int - min: builtins.int = ... - max: builtins.int = ... +class ValueCount(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + min: builtin___int = ... + max: builtin___int = ... def __init__(self, *, - min : typing.Optional[builtins.int] = ..., - max : typing.Optional[builtins.int] = ..., + min : typing___Optional[builtin___int] = None, + max : typing___Optional[builtin___int] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"max",b"max",u"min",b"min"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max",b"max",u"min",b"min"]) -> None: ... -global___ValueCount = ValueCount + def HasField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min"]) -> None: ... +type___ValueCount = ValueCount -class WeightedFeature(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - FEATURE_FIELD_NUMBER: builtins.int - WEIGHT_FEATURE_FIELD_NUMBER: builtins.int - LIFECYCLE_STAGE_FIELD_NUMBER: builtins.int - name: typing.Text = ... - lifecycle_stage: global___LifecycleStage.V = ... +class WeightedFeature(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + lifecycle_stage: type___LifecycleStageValue = ... @property - def feature(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... + def feature(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... @property - def weight_feature(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... + def weight_feature(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - feature : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., - weight_feature : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., - lifecycle_stage : typing.Optional[global___LifecycleStage.V] = ..., + name : typing___Optional[typing___Text] = None, + feature : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, + weight_feature : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, + lifecycle_stage : typing___Optional[type___LifecycleStageValue] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"feature",b"feature",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"weight_feature",b"weight_feature"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"feature",b"feature",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"weight_feature",b"weight_feature"]) -> None: ... -global___WeightedFeature = WeightedFeature + def HasField(self, field_name: typing_extensions___Literal[u"feature",b"feature",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"weight_feature",b"weight_feature"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"feature",b"feature",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"weight_feature",b"weight_feature"]) -> None: ... +type___WeightedFeature = WeightedFeature -class SparseFeature(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class IndexFeature(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - name: typing.Text = ... +class SparseFeature(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class IndexFeature(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., + name : typing___Optional[typing___Text] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... + type___IndexFeature = IndexFeature - class ValueFeature(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - name: typing.Text = ... + class ValueFeature(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., + name : typing___Optional[typing___Text] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... + type___ValueFeature = ValueFeature - NAME_FIELD_NUMBER: builtins.int - DEPRECATED_FIELD_NUMBER: builtins.int - LIFECYCLE_STAGE_FIELD_NUMBER: builtins.int - PRESENCE_FIELD_NUMBER: builtins.int - DENSE_SHAPE_FIELD_NUMBER: builtins.int - INDEX_FEATURE_FIELD_NUMBER: builtins.int - IS_SORTED_FIELD_NUMBER: builtins.int - VALUE_FEATURE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - name: typing.Text = ... - deprecated: builtins.bool = ... - lifecycle_stage: global___LifecycleStage.V = ... - is_sorted: builtins.bool = ... - type: global___FeatureType.V = ... + name: typing___Text = ... + deprecated: builtin___bool = ... + lifecycle_stage: type___LifecycleStageValue = ... + is_sorted: builtin___bool = ... + type: type___FeatureTypeValue = ... @property - def presence(self) -> global___FeaturePresence: ... + def presence(self) -> type___FeaturePresence: ... @property - def dense_shape(self) -> global___FixedShape: ... + def dense_shape(self) -> type___FixedShape: ... @property - def index_feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SparseFeature.IndexFeature]: ... + def index_feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SparseFeature.IndexFeature]: ... @property - def value_feature(self) -> global___SparseFeature.ValueFeature: ... + def value_feature(self) -> type___SparseFeature.ValueFeature: ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - deprecated : typing.Optional[builtins.bool] = ..., - lifecycle_stage : typing.Optional[global___LifecycleStage.V] = ..., - presence : typing.Optional[global___FeaturePresence] = ..., - dense_shape : typing.Optional[global___FixedShape] = ..., - index_feature : typing.Optional[typing.Iterable[global___SparseFeature.IndexFeature]] = ..., - is_sorted : typing.Optional[builtins.bool] = ..., - value_feature : typing.Optional[global___SparseFeature.ValueFeature] = ..., - type : typing.Optional[global___FeatureType.V] = ..., + name : typing___Optional[typing___Text] = None, + deprecated : typing___Optional[builtin___bool] = None, + lifecycle_stage : typing___Optional[type___LifecycleStageValue] = None, + presence : typing___Optional[type___FeaturePresence] = None, + dense_shape : typing___Optional[type___FixedShape] = None, + index_feature : typing___Optional[typing___Iterable[type___SparseFeature.IndexFeature]] = None, + is_sorted : typing___Optional[builtin___bool] = None, + value_feature : typing___Optional[type___SparseFeature.ValueFeature] = None, + type : typing___Optional[type___FeatureTypeValue] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"dense_shape",b"dense_shape",u"deprecated",b"deprecated",u"is_sorted",b"is_sorted",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"presence",b"presence",u"type",b"type",u"value_feature",b"value_feature"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"dense_shape",b"dense_shape",u"deprecated",b"deprecated",u"index_feature",b"index_feature",u"is_sorted",b"is_sorted",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"presence",b"presence",u"type",b"type",u"value_feature",b"value_feature"]) -> None: ... -global___SparseFeature = SparseFeature + def HasField(self, field_name: typing_extensions___Literal[u"dense_shape",b"dense_shape",u"deprecated",b"deprecated",u"is_sorted",b"is_sorted",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"presence",b"presence",u"type",b"type",u"value_feature",b"value_feature"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"dense_shape",b"dense_shape",u"deprecated",b"deprecated",u"index_feature",b"index_feature",u"is_sorted",b"is_sorted",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"presence",b"presence",u"type",b"type",u"value_feature",b"value_feature"]) -> None: ... +type___SparseFeature = SparseFeature -class DistributionConstraints(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MIN_DOMAIN_MASS_FIELD_NUMBER: builtins.int - min_domain_mass: builtins.float = ... +class DistributionConstraints(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + min_domain_mass: builtin___float = ... def __init__(self, *, - min_domain_mass : typing.Optional[builtins.float] = ..., + min_domain_mass : typing___Optional[builtin___float] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"min_domain_mass",b"min_domain_mass"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"min_domain_mass",b"min_domain_mass"]) -> None: ... -global___DistributionConstraints = DistributionConstraints - -class IntDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - MIN_FIELD_NUMBER: builtins.int - MAX_FIELD_NUMBER: builtins.int - IS_CATEGORICAL_FIELD_NUMBER: builtins.int - name: typing.Text = ... - min: builtins.int = ... - max: builtins.int = ... - is_categorical: builtins.bool = ... + def HasField(self, field_name: typing_extensions___Literal[u"min_domain_mass",b"min_domain_mass"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"min_domain_mass",b"min_domain_mass"]) -> None: ... +type___DistributionConstraints = DistributionConstraints + +class IntDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + min: builtin___int = ... + max: builtin___int = ... + is_categorical: builtin___bool = ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - min : typing.Optional[builtins.int] = ..., - max : typing.Optional[builtins.int] = ..., - is_categorical : typing.Optional[builtins.bool] = ..., + name : typing___Optional[typing___Text] = None, + min : typing___Optional[builtin___int] = None, + max : typing___Optional[builtin___int] = None, + is_categorical : typing___Optional[builtin___bool] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"is_categorical",b"is_categorical",u"max",b"max",u"min",b"min",u"name",b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"is_categorical",b"is_categorical",u"max",b"max",u"min",b"min",u"name",b"name"]) -> None: ... -global___IntDomain = IntDomain - -class FloatDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - MIN_FIELD_NUMBER: builtins.int - MAX_FIELD_NUMBER: builtins.int - name: typing.Text = ... - min: builtins.float = ... - max: builtins.float = ... + def HasField(self, field_name: typing_extensions___Literal[u"is_categorical",b"is_categorical",u"max",b"max",u"min",b"min",u"name",b"name"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"is_categorical",b"is_categorical",u"max",b"max",u"min",b"min",u"name",b"name"]) -> None: ... +type___IntDomain = IntDomain + +class FloatDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + min: builtin___float = ... + max: builtin___float = ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - min : typing.Optional[builtins.float] = ..., - max : typing.Optional[builtins.float] = ..., + name : typing___Optional[typing___Text] = None, + min : typing___Optional[builtin___float] = None, + max : typing___Optional[builtin___float] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"max",b"max",u"min",b"min",u"name",b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max",b"max",u"min",b"min",u"name",b"name"]) -> None: ... -global___FloatDomain = FloatDomain + def HasField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min",u"name",b"name"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min",u"name",b"name"]) -> None: ... +type___FloatDomain = FloatDomain -class StructDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - FEATURE_FIELD_NUMBER: builtins.int - SPARSE_FEATURE_FIELD_NUMBER: builtins.int +class StructDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... @property - def feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Feature]: ... + def feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Feature]: ... @property - def sparse_feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SparseFeature]: ... + def sparse_feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SparseFeature]: ... def __init__(self, *, - feature : typing.Optional[typing.Iterable[global___Feature]] = ..., - sparse_feature : typing.Optional[typing.Iterable[global___SparseFeature]] = ..., + feature : typing___Optional[typing___Iterable[type___Feature]] = None, + sparse_feature : typing___Optional[typing___Iterable[type___SparseFeature]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"feature",b"feature",u"sparse_feature",b"sparse_feature"]) -> None: ... -global___StructDomain = StructDomain + def ClearField(self, field_name: typing_extensions___Literal[u"feature",b"feature",u"sparse_feature",b"sparse_feature"]) -> None: ... +type___StructDomain = StructDomain -class StringDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - name: typing.Text = ... - value: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... +class StringDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - value : typing.Optional[typing.Iterable[typing.Text]] = ..., + name : typing___Optional[typing___Text] = None, + value : typing___Optional[typing___Iterable[typing___Text]] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"value",b"value"]) -> None: ... -global___StringDomain = StringDomain - -class BoolDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - TRUE_VALUE_FIELD_NUMBER: builtins.int - FALSE_VALUE_FIELD_NUMBER: builtins.int - name: typing.Text = ... - true_value: typing.Text = ... - false_value: typing.Text = ... + def HasField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"value",b"value"]) -> None: ... +type___StringDomain = StringDomain + +class BoolDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + true_value: typing___Text = ... + false_value: typing___Text = ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - true_value : typing.Optional[typing.Text] = ..., - false_value : typing.Optional[typing.Text] = ..., + name : typing___Optional[typing___Text] = None, + true_value : typing___Optional[typing___Text] = None, + false_value : typing___Optional[typing___Text] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"false_value",b"false_value",u"name",b"name",u"true_value",b"true_value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"false_value",b"false_value",u"name",b"name",u"true_value",b"true_value"]) -> None: ... -global___BoolDomain = BoolDomain + def HasField(self, field_name: typing_extensions___Literal[u"false_value",b"false_value",u"name",b"name",u"true_value",b"true_value"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"false_value",b"false_value",u"name",b"name",u"true_value",b"true_value"]) -> None: ... +type___BoolDomain = BoolDomain -class NaturalLanguageDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... +class NaturalLanguageDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... def __init__(self, ) -> None: ... -global___NaturalLanguageDomain = NaturalLanguageDomain +type___NaturalLanguageDomain = NaturalLanguageDomain -class ImageDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... +class ImageDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... def __init__(self, ) -> None: ... -global___ImageDomain = ImageDomain +type___ImageDomain = ImageDomain -class MIDDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... +class MIDDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... def __init__(self, ) -> None: ... -global___MIDDomain = MIDDomain +type___MIDDomain = MIDDomain -class URLDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... +class URLDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... def __init__(self, ) -> None: ... -global___URLDomain = URLDomain - -class TimeDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class _IntegerTimeFormat(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[IntegerTimeFormat.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - FORMAT_UNKNOWN = TimeDomain.IntegerTimeFormat.V(0) - UNIX_DAYS = TimeDomain.IntegerTimeFormat.V(5) - UNIX_SECONDS = TimeDomain.IntegerTimeFormat.V(1) - UNIX_MILLISECONDS = TimeDomain.IntegerTimeFormat.V(2) - UNIX_MICROSECONDS = TimeDomain.IntegerTimeFormat.V(3) - UNIX_NANOSECONDS = TimeDomain.IntegerTimeFormat.V(4) - class IntegerTimeFormat(metaclass=_IntegerTimeFormat): - V = typing.NewType('V', builtins.int) - FORMAT_UNKNOWN = TimeDomain.IntegerTimeFormat.V(0) - UNIX_DAYS = TimeDomain.IntegerTimeFormat.V(5) - UNIX_SECONDS = TimeDomain.IntegerTimeFormat.V(1) - UNIX_MILLISECONDS = TimeDomain.IntegerTimeFormat.V(2) - UNIX_MICROSECONDS = TimeDomain.IntegerTimeFormat.V(3) - UNIX_NANOSECONDS = TimeDomain.IntegerTimeFormat.V(4) - - STRING_FORMAT_FIELD_NUMBER: builtins.int - INTEGER_FORMAT_FIELD_NUMBER: builtins.int - string_format: typing.Text = ... - integer_format: global___TimeDomain.IntegerTimeFormat.V = ... +type___URLDomain = URLDomain + +class TimeDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + IntegerTimeFormatValue = typing___NewType('IntegerTimeFormatValue', builtin___int) + type___IntegerTimeFormatValue = IntegerTimeFormatValue + IntegerTimeFormat: _IntegerTimeFormat + class _IntegerTimeFormat(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[TimeDomain.IntegerTimeFormatValue]): + DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + FORMAT_UNKNOWN = typing___cast(TimeDomain.IntegerTimeFormatValue, 0) + UNIX_DAYS = typing___cast(TimeDomain.IntegerTimeFormatValue, 5) + UNIX_SECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 1) + UNIX_MILLISECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 2) + UNIX_MICROSECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 3) + UNIX_NANOSECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 4) + FORMAT_UNKNOWN = typing___cast(TimeDomain.IntegerTimeFormatValue, 0) + UNIX_DAYS = typing___cast(TimeDomain.IntegerTimeFormatValue, 5) + UNIX_SECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 1) + UNIX_MILLISECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 2) + UNIX_MICROSECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 3) + UNIX_NANOSECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 4) + + string_format: typing___Text = ... + integer_format: type___TimeDomain.IntegerTimeFormatValue = ... def __init__(self, *, - string_format : typing.Optional[typing.Text] = ..., - integer_format : typing.Optional[global___TimeDomain.IntegerTimeFormat.V] = ..., + string_format : typing___Optional[typing___Text] = None, + integer_format : typing___Optional[type___TimeDomain.IntegerTimeFormatValue] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"format",b"format"]) -> typing_extensions.Literal["string_format","integer_format"]: ... -global___TimeDomain = TimeDomain - -class TimeOfDayDomain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class _IntegerTimeOfDayFormat(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[IntegerTimeOfDayFormat.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - FORMAT_UNKNOWN = TimeOfDayDomain.IntegerTimeOfDayFormat.V(0) - PACKED_64_NANOS = TimeOfDayDomain.IntegerTimeOfDayFormat.V(1) - class IntegerTimeOfDayFormat(metaclass=_IntegerTimeOfDayFormat): - V = typing.NewType('V', builtins.int) - FORMAT_UNKNOWN = TimeOfDayDomain.IntegerTimeOfDayFormat.V(0) - PACKED_64_NANOS = TimeOfDayDomain.IntegerTimeOfDayFormat.V(1) - - STRING_FORMAT_FIELD_NUMBER: builtins.int - INTEGER_FORMAT_FIELD_NUMBER: builtins.int - string_format: typing.Text = ... - integer_format: global___TimeOfDayDomain.IntegerTimeOfDayFormat.V = ... + def HasField(self, field_name: typing_extensions___Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"format",b"format"]) -> typing_extensions___Literal["string_format","integer_format"]: ... +type___TimeDomain = TimeDomain + +class TimeOfDayDomain(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + IntegerTimeOfDayFormatValue = typing___NewType('IntegerTimeOfDayFormatValue', builtin___int) + type___IntegerTimeOfDayFormatValue = IntegerTimeOfDayFormatValue + IntegerTimeOfDayFormat: _IntegerTimeOfDayFormat + class _IntegerTimeOfDayFormat(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[TimeOfDayDomain.IntegerTimeOfDayFormatValue]): + DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + FORMAT_UNKNOWN = typing___cast(TimeOfDayDomain.IntegerTimeOfDayFormatValue, 0) + PACKED_64_NANOS = typing___cast(TimeOfDayDomain.IntegerTimeOfDayFormatValue, 1) + FORMAT_UNKNOWN = typing___cast(TimeOfDayDomain.IntegerTimeOfDayFormatValue, 0) + PACKED_64_NANOS = typing___cast(TimeOfDayDomain.IntegerTimeOfDayFormatValue, 1) + + string_format: typing___Text = ... + integer_format: type___TimeOfDayDomain.IntegerTimeOfDayFormatValue = ... def __init__(self, *, - string_format : typing.Optional[typing.Text] = ..., - integer_format : typing.Optional[global___TimeOfDayDomain.IntegerTimeOfDayFormat.V] = ..., + string_format : typing___Optional[typing___Text] = None, + integer_format : typing___Optional[type___TimeOfDayDomain.IntegerTimeOfDayFormatValue] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"format",b"format"]) -> typing_extensions.Literal["string_format","integer_format"]: ... -global___TimeOfDayDomain = TimeOfDayDomain - -class FeaturePresence(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MIN_FRACTION_FIELD_NUMBER: builtins.int - MIN_COUNT_FIELD_NUMBER: builtins.int - min_fraction: builtins.float = ... - min_count: builtins.int = ... + def HasField(self, field_name: typing_extensions___Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"format",b"format"]) -> typing_extensions___Literal["string_format","integer_format"]: ... +type___TimeOfDayDomain = TimeOfDayDomain + +class FeaturePresence(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + min_fraction: builtin___float = ... + min_count: builtin___int = ... def __init__(self, *, - min_fraction : typing.Optional[builtins.float] = ..., - min_count : typing.Optional[builtins.int] = ..., + min_fraction : typing___Optional[builtin___float] = None, + min_count : typing___Optional[builtin___int] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"min_count",b"min_count",u"min_fraction",b"min_fraction"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"min_count",b"min_count",u"min_fraction",b"min_fraction"]) -> None: ... -global___FeaturePresence = FeaturePresence + def HasField(self, field_name: typing_extensions___Literal[u"min_count",b"min_count",u"min_fraction",b"min_fraction"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"min_count",b"min_count",u"min_fraction",b"min_fraction"]) -> None: ... +type___FeaturePresence = FeaturePresence -class FeaturePresenceWithinGroup(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUIRED_FIELD_NUMBER: builtins.int - required: builtins.bool = ... +class FeaturePresenceWithinGroup(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + required: builtin___bool = ... def __init__(self, *, - required : typing.Optional[builtins.bool] = ..., + required : typing___Optional[builtin___bool] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"required",b"required"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"required",b"required"]) -> None: ... -global___FeaturePresenceWithinGroup = FeaturePresenceWithinGroup + def HasField(self, field_name: typing_extensions___Literal[u"required",b"required"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"required",b"required"]) -> None: ... +type___FeaturePresenceWithinGroup = FeaturePresenceWithinGroup -class InfinityNorm(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - THRESHOLD_FIELD_NUMBER: builtins.int - threshold: builtins.float = ... +class InfinityNorm(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + threshold: builtin___float = ... def __init__(self, *, - threshold : typing.Optional[builtins.float] = ..., + threshold : typing___Optional[builtin___float] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"threshold",b"threshold"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"threshold",b"threshold"]) -> None: ... -global___InfinityNorm = InfinityNorm + def HasField(self, field_name: typing_extensions___Literal[u"threshold",b"threshold"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"threshold",b"threshold"]) -> None: ... +type___InfinityNorm = InfinityNorm -class FeatureComparator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INFINITY_NORM_FIELD_NUMBER: builtins.int +class FeatureComparator(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... @property - def infinity_norm(self) -> global___InfinityNorm: ... + def infinity_norm(self) -> type___InfinityNorm: ... def __init__(self, *, - infinity_norm : typing.Optional[global___InfinityNorm] = ..., + infinity_norm : typing___Optional[type___InfinityNorm] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"infinity_norm",b"infinity_norm"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"infinity_norm",b"infinity_norm"]) -> None: ... -global___FeatureComparator = FeatureComparator - -class TensorRepresentation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class DefaultValue(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - FLOAT_VALUE_FIELD_NUMBER: builtins.int - INT_VALUE_FIELD_NUMBER: builtins.int - BYTES_VALUE_FIELD_NUMBER: builtins.int - UINT_VALUE_FIELD_NUMBER: builtins.int - float_value: builtins.float = ... - int_value: builtins.int = ... - bytes_value: builtins.bytes = ... - uint_value: builtins.int = ... + def HasField(self, field_name: typing_extensions___Literal[u"infinity_norm",b"infinity_norm"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"infinity_norm",b"infinity_norm"]) -> None: ... +type___FeatureComparator = FeatureComparator + +class TensorRepresentation(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class DefaultValue(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + float_value: builtin___float = ... + int_value: builtin___int = ... + bytes_value: builtin___bytes = ... + uint_value: builtin___int = ... def __init__(self, *, - float_value : typing.Optional[builtins.float] = ..., - int_value : typing.Optional[builtins.int] = ..., - bytes_value : typing.Optional[builtins.bytes] = ..., - uint_value : typing.Optional[builtins.int] = ..., + float_value : typing___Optional[builtin___float] = None, + int_value : typing___Optional[builtin___int] = None, + bytes_value : typing___Optional[builtin___bytes] = None, + uint_value : typing___Optional[builtin___int] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"bytes_value",b"bytes_value",u"float_value",b"float_value",u"int_value",b"int_value",u"kind",b"kind",u"uint_value",b"uint_value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"bytes_value",b"bytes_value",u"float_value",b"float_value",u"int_value",b"int_value",u"kind",b"kind",u"uint_value",b"uint_value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"kind",b"kind"]) -> typing_extensions.Literal["float_value","int_value","bytes_value","uint_value"]: ... + def HasField(self, field_name: typing_extensions___Literal[u"bytes_value",b"bytes_value",u"float_value",b"float_value",u"int_value",b"int_value",u"kind",b"kind",u"uint_value",b"uint_value"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"bytes_value",b"bytes_value",u"float_value",b"float_value",u"int_value",b"int_value",u"kind",b"kind",u"uint_value",b"uint_value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"kind",b"kind"]) -> typing_extensions___Literal["float_value","int_value","bytes_value","uint_value"]: ... + type___DefaultValue = DefaultValue - class DenseTensor(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COLUMN_NAME_FIELD_NUMBER: builtins.int - SHAPE_FIELD_NUMBER: builtins.int - DEFAULT_VALUE_FIELD_NUMBER: builtins.int - column_name: typing.Text = ... + class DenseTensor(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + column_name: typing___Text = ... @property - def shape(self) -> global___FixedShape: ... + def shape(self) -> type___FixedShape: ... @property - def default_value(self) -> global___TensorRepresentation.DefaultValue: ... + def default_value(self) -> type___TensorRepresentation.DefaultValue: ... def __init__(self, *, - column_name : typing.Optional[typing.Text] = ..., - shape : typing.Optional[global___FixedShape] = ..., - default_value : typing.Optional[global___TensorRepresentation.DefaultValue] = ..., + column_name : typing___Optional[typing___Text] = None, + shape : typing___Optional[type___FixedShape] = None, + default_value : typing___Optional[type___TensorRepresentation.DefaultValue] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"column_name",b"column_name",u"default_value",b"default_value",u"shape",b"shape"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"column_name",b"column_name",u"default_value",b"default_value",u"shape",b"shape"]) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"column_name",b"column_name",u"default_value",b"default_value",u"shape",b"shape"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"column_name",b"column_name",u"default_value",b"default_value",u"shape",b"shape"]) -> None: ... + type___DenseTensor = DenseTensor - class VarLenSparseTensor(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COLUMN_NAME_FIELD_NUMBER: builtins.int - column_name: typing.Text = ... + class VarLenSparseTensor(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + column_name: typing___Text = ... def __init__(self, *, - column_name : typing.Optional[typing.Text] = ..., + column_name : typing___Optional[typing___Text] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"column_name",b"column_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"column_name",b"column_name"]) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"column_name",b"column_name"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"column_name",b"column_name"]) -> None: ... + type___VarLenSparseTensor = VarLenSparseTensor - class SparseTensor(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENSE_SHAPE_FIELD_NUMBER: builtins.int - INDEX_COLUMN_NAMES_FIELD_NUMBER: builtins.int - VALUE_COLUMN_NAME_FIELD_NUMBER: builtins.int - index_column_names: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... - value_column_name: typing.Text = ... + class SparseTensor(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + index_column_names: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + value_column_name: typing___Text = ... @property - def dense_shape(self) -> global___FixedShape: ... + def dense_shape(self) -> type___FixedShape: ... def __init__(self, *, - dense_shape : typing.Optional[global___FixedShape] = ..., - index_column_names : typing.Optional[typing.Iterable[typing.Text]] = ..., - value_column_name : typing.Optional[typing.Text] = ..., + dense_shape : typing___Optional[type___FixedShape] = None, + index_column_names : typing___Optional[typing___Iterable[typing___Text]] = None, + value_column_name : typing___Optional[typing___Text] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"dense_shape",b"dense_shape",u"value_column_name",b"value_column_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"dense_shape",b"dense_shape",u"index_column_names",b"index_column_names",u"value_column_name",b"value_column_name"]) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"dense_shape",b"dense_shape",u"value_column_name",b"value_column_name"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"dense_shape",b"dense_shape",u"index_column_names",b"index_column_names",u"value_column_name",b"value_column_name"]) -> None: ... + type___SparseTensor = SparseTensor - DENSE_TENSOR_FIELD_NUMBER: builtins.int - VARLEN_SPARSE_TENSOR_FIELD_NUMBER: builtins.int - SPARSE_TENSOR_FIELD_NUMBER: builtins.int @property - def dense_tensor(self) -> global___TensorRepresentation.DenseTensor: ... + def dense_tensor(self) -> type___TensorRepresentation.DenseTensor: ... @property - def varlen_sparse_tensor(self) -> global___TensorRepresentation.VarLenSparseTensor: ... + def varlen_sparse_tensor(self) -> type___TensorRepresentation.VarLenSparseTensor: ... @property - def sparse_tensor(self) -> global___TensorRepresentation.SparseTensor: ... + def sparse_tensor(self) -> type___TensorRepresentation.SparseTensor: ... def __init__(self, *, - dense_tensor : typing.Optional[global___TensorRepresentation.DenseTensor] = ..., - varlen_sparse_tensor : typing.Optional[global___TensorRepresentation.VarLenSparseTensor] = ..., - sparse_tensor : typing.Optional[global___TensorRepresentation.SparseTensor] = ..., + dense_tensor : typing___Optional[type___TensorRepresentation.DenseTensor] = None, + varlen_sparse_tensor : typing___Optional[type___TensorRepresentation.VarLenSparseTensor] = None, + sparse_tensor : typing___Optional[type___TensorRepresentation.SparseTensor] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"dense_tensor",b"dense_tensor",u"kind",b"kind",u"sparse_tensor",b"sparse_tensor",u"varlen_sparse_tensor",b"varlen_sparse_tensor"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"dense_tensor",b"dense_tensor",u"kind",b"kind",u"sparse_tensor",b"sparse_tensor",u"varlen_sparse_tensor",b"varlen_sparse_tensor"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"kind",b"kind"]) -> typing_extensions.Literal["dense_tensor","varlen_sparse_tensor","sparse_tensor"]: ... -global___TensorRepresentation = TensorRepresentation - -class TensorRepresentationGroup(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class TensorRepresentationEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: typing.Text = ... + def HasField(self, field_name: typing_extensions___Literal[u"dense_tensor",b"dense_tensor",u"kind",b"kind",u"sparse_tensor",b"sparse_tensor",u"varlen_sparse_tensor",b"varlen_sparse_tensor"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"dense_tensor",b"dense_tensor",u"kind",b"kind",u"sparse_tensor",b"sparse_tensor",u"varlen_sparse_tensor",b"varlen_sparse_tensor"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"kind",b"kind"]) -> typing_extensions___Literal["dense_tensor","varlen_sparse_tensor","sparse_tensor"]: ... +type___TensorRepresentation = TensorRepresentation + +class TensorRepresentationGroup(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class TensorRepresentationEntry(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + key: typing___Text = ... @property - def value(self) -> global___TensorRepresentation: ... + def value(self) -> type___TensorRepresentation: ... def __init__(self, *, - key : typing.Optional[typing.Text] = ..., - value : typing.Optional[global___TensorRepresentation] = ..., + key : typing___Optional[typing___Text] = None, + value : typing___Optional[type___TensorRepresentation] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... + type___TensorRepresentationEntry = TensorRepresentationEntry - TENSOR_REPRESENTATION_FIELD_NUMBER: builtins.int @property - def tensor_representation(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___TensorRepresentation]: ... + def tensor_representation(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___TensorRepresentation]: ... def __init__(self, *, - tensor_representation : typing.Optional[typing.Mapping[typing.Text, global___TensorRepresentation]] = ..., + tensor_representation : typing___Optional[typing___Mapping[typing___Text, type___TensorRepresentation]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"tensor_representation",b"tensor_representation"]) -> None: ... -global___TensorRepresentationGroup = TensorRepresentationGroup + def ClearField(self, field_name: typing_extensions___Literal[u"tensor_representation",b"tensor_representation"]) -> None: ... +type___TensorRepresentationGroup = TensorRepresentationGroup diff --git a/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py b/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py index 21473adc75..d8e12bd120 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py +++ b/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_metadata/proto/v0/statistics.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 diff --git a/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.pyi b/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.pyi index 40eadae745..e2e3923bf0 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.pyi +++ b/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.pyi @@ -2,653 +2,592 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import tensorflow_metadata.proto.v0.path_pb2 -import typing -import typing_extensions +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, +) -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +from google.protobuf.internal.containers import ( + RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, +) -class DatasetFeatureStatisticsList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATASETS_FIELD_NUMBER: builtins.int +from google.protobuf.internal.enum_type_wrapper import ( + _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, +) + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from tensorflow_metadata.proto.v0.path_pb2 import ( + Path as tensorflow_metadata___proto___v0___path_pb2___Path, +) + +from typing import ( + Iterable as typing___Iterable, + NewType as typing___NewType, + Optional as typing___Optional, + Text as typing___Text, + cast as typing___cast, + overload as typing___overload, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) + + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... + +class DatasetFeatureStatisticsList(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... @property - def datasets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DatasetFeatureStatistics]: ... + def datasets(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DatasetFeatureStatistics]: ... def __init__(self, *, - datasets : typing.Optional[typing.Iterable[global___DatasetFeatureStatistics]] = ..., + datasets : typing___Optional[typing___Iterable[type___DatasetFeatureStatistics]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"datasets",b"datasets"]) -> None: ... -global___DatasetFeatureStatisticsList = DatasetFeatureStatisticsList + def ClearField(self, field_name: typing_extensions___Literal[u"datasets",b"datasets"]) -> None: ... +type___DatasetFeatureStatisticsList = DatasetFeatureStatisticsList -class DatasetFeatureStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - NUM_EXAMPLES_FIELD_NUMBER: builtins.int - WEIGHTED_NUM_EXAMPLES_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - CROSS_FEATURES_FIELD_NUMBER: builtins.int - name: typing.Text = ... - num_examples: builtins.int = ... - weighted_num_examples: builtins.float = ... +class DatasetFeatureStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + num_examples: builtin___int = ... + weighted_num_examples: builtin___float = ... @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureNameStatistics]: ... + def features(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FeatureNameStatistics]: ... @property - def cross_features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CrossFeatureStatistics]: ... + def cross_features(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___CrossFeatureStatistics]: ... def __init__(self, *, - name : typing.Text = ..., - num_examples : builtins.int = ..., - weighted_num_examples : builtins.float = ..., - features : typing.Optional[typing.Iterable[global___FeatureNameStatistics]] = ..., - cross_features : typing.Optional[typing.Iterable[global___CrossFeatureStatistics]] = ..., + name : typing___Optional[typing___Text] = None, + num_examples : typing___Optional[builtin___int] = None, + weighted_num_examples : typing___Optional[builtin___float] = None, + features : typing___Optional[typing___Iterable[type___FeatureNameStatistics]] = None, + cross_features : typing___Optional[typing___Iterable[type___CrossFeatureStatistics]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"cross_features",b"cross_features",u"features",b"features",u"name",b"name",u"num_examples",b"num_examples",u"weighted_num_examples",b"weighted_num_examples"]) -> None: ... -global___DatasetFeatureStatistics = DatasetFeatureStatistics + def ClearField(self, field_name: typing_extensions___Literal[u"cross_features",b"cross_features",u"features",b"features",u"name",b"name",u"num_examples",b"num_examples",u"weighted_num_examples",b"weighted_num_examples"]) -> None: ... +type___DatasetFeatureStatistics = DatasetFeatureStatistics -class CrossFeatureStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_X_FIELD_NUMBER: builtins.int - PATH_Y_FIELD_NUMBER: builtins.int - COUNT_FIELD_NUMBER: builtins.int - NUM_CROSS_STATS_FIELD_NUMBER: builtins.int - CATEGORICAL_CROSS_STATS_FIELD_NUMBER: builtins.int - count: builtins.int = ... +class CrossFeatureStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + count: builtin___int = ... @property - def path_x(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... + def path_x(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... @property - def path_y(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... + def path_y(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... @property - def num_cross_stats(self) -> global___NumericCrossStatistics: ... + def num_cross_stats(self) -> type___NumericCrossStatistics: ... @property - def categorical_cross_stats(self) -> global___CategoricalCrossStatistics: ... + def categorical_cross_stats(self) -> type___CategoricalCrossStatistics: ... def __init__(self, *, - path_x : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., - path_y : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., - count : builtins.int = ..., - num_cross_stats : typing.Optional[global___NumericCrossStatistics] = ..., - categorical_cross_stats : typing.Optional[global___CategoricalCrossStatistics] = ..., + path_x : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, + path_y : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, + count : typing___Optional[builtin___int] = None, + num_cross_stats : typing___Optional[type___NumericCrossStatistics] = None, + categorical_cross_stats : typing___Optional[type___CategoricalCrossStatistics] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"categorical_cross_stats",b"categorical_cross_stats",u"cross_stats",b"cross_stats",u"num_cross_stats",b"num_cross_stats",u"path_x",b"path_x",u"path_y",b"path_y"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"categorical_cross_stats",b"categorical_cross_stats",u"count",b"count",u"cross_stats",b"cross_stats",u"num_cross_stats",b"num_cross_stats",u"path_x",b"path_x",u"path_y",b"path_y"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"cross_stats",b"cross_stats"]) -> typing_extensions.Literal["num_cross_stats","categorical_cross_stats"]: ... -global___CrossFeatureStatistics = CrossFeatureStatistics - -class NumericCrossStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CORRELATION_FIELD_NUMBER: builtins.int - COVARIANCE_FIELD_NUMBER: builtins.int - correlation: builtins.float = ... - covariance: builtins.float = ... + def HasField(self, field_name: typing_extensions___Literal[u"categorical_cross_stats",b"categorical_cross_stats",u"cross_stats",b"cross_stats",u"num_cross_stats",b"num_cross_stats",u"path_x",b"path_x",u"path_y",b"path_y"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"categorical_cross_stats",b"categorical_cross_stats",u"count",b"count",u"cross_stats",b"cross_stats",u"num_cross_stats",b"num_cross_stats",u"path_x",b"path_x",u"path_y",b"path_y"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"cross_stats",b"cross_stats"]) -> typing_extensions___Literal["num_cross_stats","categorical_cross_stats"]: ... +type___CrossFeatureStatistics = CrossFeatureStatistics + +class NumericCrossStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + correlation: builtin___float = ... + covariance: builtin___float = ... def __init__(self, *, - correlation : builtins.float = ..., - covariance : builtins.float = ..., + correlation : typing___Optional[builtin___float] = None, + covariance : typing___Optional[builtin___float] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"correlation",b"correlation",u"covariance",b"covariance"]) -> None: ... -global___NumericCrossStatistics = NumericCrossStatistics + def ClearField(self, field_name: typing_extensions___Literal[u"correlation",b"correlation",u"covariance",b"covariance"]) -> None: ... +type___NumericCrossStatistics = NumericCrossStatistics -class CategoricalCrossStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - LIFT_FIELD_NUMBER: builtins.int +class CategoricalCrossStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... @property - def lift(self) -> global___LiftStatistics: ... + def lift(self) -> type___LiftStatistics: ... def __init__(self, *, - lift : typing.Optional[global___LiftStatistics] = ..., + lift : typing___Optional[type___LiftStatistics] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"lift",b"lift"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"lift",b"lift"]) -> None: ... -global___CategoricalCrossStatistics = CategoricalCrossStatistics + def HasField(self, field_name: typing_extensions___Literal[u"lift",b"lift"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"lift",b"lift"]) -> None: ... +type___CategoricalCrossStatistics = CategoricalCrossStatistics -class LiftStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - LIFT_SERIES_FIELD_NUMBER: builtins.int - WEIGHTED_LIFT_SERIES_FIELD_NUMBER: builtins.int +class LiftStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... @property - def lift_series(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LiftSeries]: ... + def lift_series(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___LiftSeries]: ... @property - def weighted_lift_series(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LiftSeries]: ... + def weighted_lift_series(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___LiftSeries]: ... def __init__(self, *, - lift_series : typing.Optional[typing.Iterable[global___LiftSeries]] = ..., - weighted_lift_series : typing.Optional[typing.Iterable[global___LiftSeries]] = ..., + lift_series : typing___Optional[typing___Iterable[type___LiftSeries]] = None, + weighted_lift_series : typing___Optional[typing___Iterable[type___LiftSeries]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"lift_series",b"lift_series",u"weighted_lift_series",b"weighted_lift_series"]) -> None: ... -global___LiftStatistics = LiftStatistics - -class LiftSeries(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Bucket(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - LOW_VALUE_FIELD_NUMBER: builtins.int - HIGH_VALUE_FIELD_NUMBER: builtins.int - low_value: builtins.float = ... - high_value: builtins.float = ... + def ClearField(self, field_name: typing_extensions___Literal[u"lift_series",b"lift_series",u"weighted_lift_series",b"weighted_lift_series"]) -> None: ... +type___LiftStatistics = LiftStatistics + +class LiftSeries(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class Bucket(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + low_value: builtin___float = ... + high_value: builtin___float = ... def __init__(self, *, - low_value : builtins.float = ..., - high_value : builtins.float = ..., + low_value : typing___Optional[builtin___float] = None, + high_value : typing___Optional[builtin___float] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"high_value",b"high_value",u"low_value",b"low_value"]) -> None: ... - - class LiftValue(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - X_INT_FIELD_NUMBER: builtins.int - X_STRING_FIELD_NUMBER: builtins.int - LIFT_FIELD_NUMBER: builtins.int - X_COUNT_FIELD_NUMBER: builtins.int - WEIGHTED_X_COUNT_FIELD_NUMBER: builtins.int - X_AND_Y_COUNT_FIELD_NUMBER: builtins.int - WEIGHTED_X_AND_Y_COUNT_FIELD_NUMBER: builtins.int - x_int: builtins.int = ... - x_string: typing.Text = ... - lift: builtins.float = ... - x_count: builtins.int = ... - weighted_x_count: builtins.float = ... - x_and_y_count: builtins.int = ... - weighted_x_and_y_count: builtins.float = ... + def ClearField(self, field_name: typing_extensions___Literal[u"high_value",b"high_value",u"low_value",b"low_value"]) -> None: ... + type___Bucket = Bucket + + class LiftValue(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + x_int: builtin___int = ... + x_string: typing___Text = ... + lift: builtin___float = ... + x_count: builtin___int = ... + weighted_x_count: builtin___float = ... + x_and_y_count: builtin___int = ... + weighted_x_and_y_count: builtin___float = ... def __init__(self, *, - x_int : builtins.int = ..., - x_string : typing.Text = ..., - lift : builtins.float = ..., - x_count : builtins.int = ..., - weighted_x_count : builtins.float = ..., - x_and_y_count : builtins.int = ..., - weighted_x_and_y_count : builtins.float = ..., + x_int : typing___Optional[builtin___int] = None, + x_string : typing___Optional[typing___Text] = None, + lift : typing___Optional[builtin___float] = None, + x_count : typing___Optional[builtin___int] = None, + weighted_x_count : typing___Optional[builtin___float] = None, + x_and_y_count : typing___Optional[builtin___int] = None, + weighted_x_and_y_count : typing___Optional[builtin___float] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"weighted_x_and_y_count",b"weighted_x_and_y_count",u"weighted_x_count",b"weighted_x_count",u"x_and_y_count",b"x_and_y_count",u"x_and_y_count_value",b"x_and_y_count_value",u"x_count",b"x_count",u"x_count_value",b"x_count_value",u"x_int",b"x_int",u"x_string",b"x_string",u"x_value",b"x_value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"lift",b"lift",u"weighted_x_and_y_count",b"weighted_x_and_y_count",u"weighted_x_count",b"weighted_x_count",u"x_and_y_count",b"x_and_y_count",u"x_and_y_count_value",b"x_and_y_count_value",u"x_count",b"x_count",u"x_count_value",b"x_count_value",u"x_int",b"x_int",u"x_string",b"x_string",u"x_value",b"x_value"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"x_and_y_count_value",b"x_and_y_count_value"]) -> typing_extensions.Literal["x_and_y_count","weighted_x_and_y_count"]: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"x_count_value",b"x_count_value"]) -> typing_extensions.Literal["x_count","weighted_x_count"]: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"x_value",b"x_value"]) -> typing_extensions.Literal["x_int","x_string"]: ... + def HasField(self, field_name: typing_extensions___Literal[u"weighted_x_and_y_count",b"weighted_x_and_y_count",u"weighted_x_count",b"weighted_x_count",u"x_and_y_count",b"x_and_y_count",u"x_and_y_count_value",b"x_and_y_count_value",u"x_count",b"x_count",u"x_count_value",b"x_count_value",u"x_int",b"x_int",u"x_string",b"x_string",u"x_value",b"x_value"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"lift",b"lift",u"weighted_x_and_y_count",b"weighted_x_and_y_count",u"weighted_x_count",b"weighted_x_count",u"x_and_y_count",b"x_and_y_count",u"x_and_y_count_value",b"x_and_y_count_value",u"x_count",b"x_count",u"x_count_value",b"x_count_value",u"x_int",b"x_int",u"x_string",b"x_string",u"x_value",b"x_value"]) -> None: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"x_and_y_count_value",b"x_and_y_count_value"]) -> typing_extensions___Literal["x_and_y_count","weighted_x_and_y_count"]: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"x_count_value",b"x_count_value"]) -> typing_extensions___Literal["x_count","weighted_x_count"]: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"x_value",b"x_value"]) -> typing_extensions___Literal["x_int","x_string"]: ... + type___LiftValue = LiftValue - Y_INT_FIELD_NUMBER: builtins.int - Y_STRING_FIELD_NUMBER: builtins.int - Y_BUCKET_FIELD_NUMBER: builtins.int - Y_COUNT_FIELD_NUMBER: builtins.int - WEIGHTED_Y_COUNT_FIELD_NUMBER: builtins.int - LIFT_VALUES_FIELD_NUMBER: builtins.int - y_int: builtins.int = ... - y_string: typing.Text = ... - y_count: builtins.int = ... - weighted_y_count: builtins.float = ... + y_int: builtin___int = ... + y_string: typing___Text = ... + y_count: builtin___int = ... + weighted_y_count: builtin___float = ... @property - def y_bucket(self) -> global___LiftSeries.Bucket: ... + def y_bucket(self) -> type___LiftSeries.Bucket: ... @property - def lift_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LiftSeries.LiftValue]: ... + def lift_values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___LiftSeries.LiftValue]: ... def __init__(self, *, - y_int : builtins.int = ..., - y_string : typing.Text = ..., - y_bucket : typing.Optional[global___LiftSeries.Bucket] = ..., - y_count : builtins.int = ..., - weighted_y_count : builtins.float = ..., - lift_values : typing.Optional[typing.Iterable[global___LiftSeries.LiftValue]] = ..., + y_int : typing___Optional[builtin___int] = None, + y_string : typing___Optional[typing___Text] = None, + y_bucket : typing___Optional[type___LiftSeries.Bucket] = None, + y_count : typing___Optional[builtin___int] = None, + weighted_y_count : typing___Optional[builtin___float] = None, + lift_values : typing___Optional[typing___Iterable[type___LiftSeries.LiftValue]] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"weighted_y_count",b"weighted_y_count",u"y_bucket",b"y_bucket",u"y_count",b"y_count",u"y_count_value",b"y_count_value",u"y_int",b"y_int",u"y_string",b"y_string",u"y_value",b"y_value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"lift_values",b"lift_values",u"weighted_y_count",b"weighted_y_count",u"y_bucket",b"y_bucket",u"y_count",b"y_count",u"y_count_value",b"y_count_value",u"y_int",b"y_int",u"y_string",b"y_string",u"y_value",b"y_value"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"y_count_value",b"y_count_value"]) -> typing_extensions.Literal["y_count","weighted_y_count"]: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"y_value",b"y_value"]) -> typing_extensions.Literal["y_int","y_string","y_bucket"]: ... -global___LiftSeries = LiftSeries + def HasField(self, field_name: typing_extensions___Literal[u"weighted_y_count",b"weighted_y_count",u"y_bucket",b"y_bucket",u"y_count",b"y_count",u"y_count_value",b"y_count_value",u"y_int",b"y_int",u"y_string",b"y_string",u"y_value",b"y_value"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"lift_values",b"lift_values",u"weighted_y_count",b"weighted_y_count",u"y_bucket",b"y_bucket",u"y_count",b"y_count",u"y_count_value",b"y_count_value",u"y_int",b"y_int",u"y_string",b"y_string",u"y_value",b"y_value"]) -> None: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"y_count_value",b"y_count_value"]) -> typing_extensions___Literal["y_count","weighted_y_count"]: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"y_value",b"y_value"]) -> typing_extensions___Literal["y_int","y_string","y_bucket"]: ... +type___LiftSeries = LiftSeries -class FeatureNameStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class _Type(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Type.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - INT = FeatureNameStatistics.Type.V(0) - FLOAT = FeatureNameStatistics.Type.V(1) - STRING = FeatureNameStatistics.Type.V(2) - BYTES = FeatureNameStatistics.Type.V(3) - STRUCT = FeatureNameStatistics.Type.V(4) - class Type(metaclass=_Type): - V = typing.NewType('V', builtins.int) - INT = FeatureNameStatistics.Type.V(0) - FLOAT = FeatureNameStatistics.Type.V(1) - STRING = FeatureNameStatistics.Type.V(2) - BYTES = FeatureNameStatistics.Type.V(3) - STRUCT = FeatureNameStatistics.Type.V(4) +class FeatureNameStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + TypeValue = typing___NewType('TypeValue', builtin___int) + type___TypeValue = TypeValue + Type: _Type + class _Type(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FeatureNameStatistics.TypeValue]): + DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + INT = typing___cast(FeatureNameStatistics.TypeValue, 0) + FLOAT = typing___cast(FeatureNameStatistics.TypeValue, 1) + STRING = typing___cast(FeatureNameStatistics.TypeValue, 2) + BYTES = typing___cast(FeatureNameStatistics.TypeValue, 3) + STRUCT = typing___cast(FeatureNameStatistics.TypeValue, 4) + INT = typing___cast(FeatureNameStatistics.TypeValue, 0) + FLOAT = typing___cast(FeatureNameStatistics.TypeValue, 1) + STRING = typing___cast(FeatureNameStatistics.TypeValue, 2) + BYTES = typing___cast(FeatureNameStatistics.TypeValue, 3) + STRUCT = typing___cast(FeatureNameStatistics.TypeValue, 4) - NAME_FIELD_NUMBER: builtins.int - PATH_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - NUM_STATS_FIELD_NUMBER: builtins.int - STRING_STATS_FIELD_NUMBER: builtins.int - BYTES_STATS_FIELD_NUMBER: builtins.int - STRUCT_STATS_FIELD_NUMBER: builtins.int - CUSTOM_STATS_FIELD_NUMBER: builtins.int - name: typing.Text = ... - type: global___FeatureNameStatistics.Type.V = ... + name: typing___Text = ... + type: type___FeatureNameStatistics.TypeValue = ... @property - def path(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... + def path(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... @property - def num_stats(self) -> global___NumericStatistics: ... + def num_stats(self) -> type___NumericStatistics: ... @property - def string_stats(self) -> global___StringStatistics: ... + def string_stats(self) -> type___StringStatistics: ... @property - def bytes_stats(self) -> global___BytesStatistics: ... + def bytes_stats(self) -> type___BytesStatistics: ... @property - def struct_stats(self) -> global___StructStatistics: ... + def struct_stats(self) -> type___StructStatistics: ... @property - def custom_stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CustomStatistic]: ... + def custom_stats(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___CustomStatistic]: ... def __init__(self, *, - name : typing.Text = ..., - path : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., - type : global___FeatureNameStatistics.Type.V = ..., - num_stats : typing.Optional[global___NumericStatistics] = ..., - string_stats : typing.Optional[global___StringStatistics] = ..., - bytes_stats : typing.Optional[global___BytesStatistics] = ..., - struct_stats : typing.Optional[global___StructStatistics] = ..., - custom_stats : typing.Optional[typing.Iterable[global___CustomStatistic]] = ..., + name : typing___Optional[typing___Text] = None, + path : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, + type : typing___Optional[type___FeatureNameStatistics.TypeValue] = None, + num_stats : typing___Optional[type___NumericStatistics] = None, + string_stats : typing___Optional[type___StringStatistics] = None, + bytes_stats : typing___Optional[type___BytesStatistics] = None, + struct_stats : typing___Optional[type___StructStatistics] = None, + custom_stats : typing___Optional[typing___Iterable[type___CustomStatistic]] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"bytes_stats",b"bytes_stats",u"field_id",b"field_id",u"name",b"name",u"num_stats",b"num_stats",u"path",b"path",u"stats",b"stats",u"string_stats",b"string_stats",u"struct_stats",b"struct_stats"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"bytes_stats",b"bytes_stats",u"custom_stats",b"custom_stats",u"field_id",b"field_id",u"name",b"name",u"num_stats",b"num_stats",u"path",b"path",u"stats",b"stats",u"string_stats",b"string_stats",u"struct_stats",b"struct_stats",u"type",b"type"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"field_id",b"field_id"]) -> typing_extensions.Literal["name","path"]: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"stats",b"stats"]) -> typing_extensions.Literal["num_stats","string_stats","bytes_stats","struct_stats"]: ... -global___FeatureNameStatistics = FeatureNameStatistics - -class WeightedCommonStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NUM_NON_MISSING_FIELD_NUMBER: builtins.int - NUM_MISSING_FIELD_NUMBER: builtins.int - AVG_NUM_VALUES_FIELD_NUMBER: builtins.int - TOT_NUM_VALUES_FIELD_NUMBER: builtins.int - num_non_missing: builtins.float = ... - num_missing: builtins.float = ... - avg_num_values: builtins.float = ... - tot_num_values: builtins.float = ... + def HasField(self, field_name: typing_extensions___Literal[u"bytes_stats",b"bytes_stats",u"field_id",b"field_id",u"name",b"name",u"num_stats",b"num_stats",u"path",b"path",u"stats",b"stats",u"string_stats",b"string_stats",u"struct_stats",b"struct_stats"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"bytes_stats",b"bytes_stats",u"custom_stats",b"custom_stats",u"field_id",b"field_id",u"name",b"name",u"num_stats",b"num_stats",u"path",b"path",u"stats",b"stats",u"string_stats",b"string_stats",u"struct_stats",b"struct_stats",u"type",b"type"]) -> None: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"field_id",b"field_id"]) -> typing_extensions___Literal["name","path"]: ... + @typing___overload + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"stats",b"stats"]) -> typing_extensions___Literal["num_stats","string_stats","bytes_stats","struct_stats"]: ... +type___FeatureNameStatistics = FeatureNameStatistics + +class WeightedCommonStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + num_non_missing: builtin___float = ... + num_missing: builtin___float = ... + avg_num_values: builtin___float = ... + tot_num_values: builtin___float = ... def __init__(self, *, - num_non_missing : builtins.float = ..., - num_missing : builtins.float = ..., - avg_num_values : builtins.float = ..., - tot_num_values : builtins.float = ..., + num_non_missing : typing___Optional[builtin___float] = None, + num_missing : typing___Optional[builtin___float] = None, + avg_num_values : typing___Optional[builtin___float] = None, + tot_num_values : typing___Optional[builtin___float] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"avg_num_values",b"avg_num_values",u"num_missing",b"num_missing",u"num_non_missing",b"num_non_missing",u"tot_num_values",b"tot_num_values"]) -> None: ... -global___WeightedCommonStatistics = WeightedCommonStatistics + def ClearField(self, field_name: typing_extensions___Literal[u"avg_num_values",b"avg_num_values",u"num_missing",b"num_missing",u"num_non_missing",b"num_non_missing",u"tot_num_values",b"tot_num_values"]) -> None: ... +type___WeightedCommonStatistics = WeightedCommonStatistics -class CustomStatistic(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - NUM_FIELD_NUMBER: builtins.int - STR_FIELD_NUMBER: builtins.int - HISTOGRAM_FIELD_NUMBER: builtins.int - RANK_HISTOGRAM_FIELD_NUMBER: builtins.int - name: typing.Text = ... - num: builtins.float = ... - str: typing.Text = ... +class CustomStatistic(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + num: builtin___float = ... + str: typing___Text = ... @property - def histogram(self) -> global___Histogram: ... + def histogram(self) -> type___Histogram: ... @property - def rank_histogram(self) -> global___RankHistogram: ... + def rank_histogram(self) -> type___RankHistogram: ... def __init__(self, *, - name : typing.Text = ..., - num : builtins.float = ..., - str : typing.Text = ..., - histogram : typing.Optional[global___Histogram] = ..., - rank_histogram : typing.Optional[global___RankHistogram] = ..., + name : typing___Optional[typing___Text] = None, + num : typing___Optional[builtin___float] = None, + str : typing___Optional[typing___Text] = None, + histogram : typing___Optional[type___Histogram] = None, + rank_histogram : typing___Optional[type___RankHistogram] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"histogram",b"histogram",u"num",b"num",u"rank_histogram",b"rank_histogram",u"str",b"str",u"val",b"val"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"histogram",b"histogram",u"name",b"name",u"num",b"num",u"rank_histogram",b"rank_histogram",u"str",b"str",u"val",b"val"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"val",b"val"]) -> typing_extensions.Literal["num","str","histogram","rank_histogram"]: ... -global___CustomStatistic = CustomStatistic + def HasField(self, field_name: typing_extensions___Literal[u"histogram",b"histogram",u"num",b"num",u"rank_histogram",b"rank_histogram",u"str",b"str",u"val",b"val"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"histogram",b"histogram",u"name",b"name",u"num",b"num",u"rank_histogram",b"rank_histogram",u"str",b"str",u"val",b"val"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"val",b"val"]) -> typing_extensions___Literal["num","str","histogram","rank_histogram"]: ... +type___CustomStatistic = CustomStatistic -class NumericStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMON_STATS_FIELD_NUMBER: builtins.int - MEAN_FIELD_NUMBER: builtins.int - STD_DEV_FIELD_NUMBER: builtins.int - NUM_ZEROS_FIELD_NUMBER: builtins.int - MIN_FIELD_NUMBER: builtins.int - MEDIAN_FIELD_NUMBER: builtins.int - MAX_FIELD_NUMBER: builtins.int - HISTOGRAMS_FIELD_NUMBER: builtins.int - WEIGHTED_NUMERIC_STATS_FIELD_NUMBER: builtins.int - mean: builtins.float = ... - std_dev: builtins.float = ... - num_zeros: builtins.int = ... - min: builtins.float = ... - median: builtins.float = ... - max: builtins.float = ... +class NumericStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + mean: builtin___float = ... + std_dev: builtin___float = ... + num_zeros: builtin___int = ... + min: builtin___float = ... + median: builtin___float = ... + max: builtin___float = ... @property - def common_stats(self) -> global___CommonStatistics: ... + def common_stats(self) -> type___CommonStatistics: ... @property - def histograms(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Histogram]: ... + def histograms(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Histogram]: ... @property - def weighted_numeric_stats(self) -> global___WeightedNumericStatistics: ... + def weighted_numeric_stats(self) -> type___WeightedNumericStatistics: ... def __init__(self, *, - common_stats : typing.Optional[global___CommonStatistics] = ..., - mean : builtins.float = ..., - std_dev : builtins.float = ..., - num_zeros : builtins.int = ..., - min : builtins.float = ..., - median : builtins.float = ..., - max : builtins.float = ..., - histograms : typing.Optional[typing.Iterable[global___Histogram]] = ..., - weighted_numeric_stats : typing.Optional[global___WeightedNumericStatistics] = ..., + common_stats : typing___Optional[type___CommonStatistics] = None, + mean : typing___Optional[builtin___float] = None, + std_dev : typing___Optional[builtin___float] = None, + num_zeros : typing___Optional[builtin___int] = None, + min : typing___Optional[builtin___float] = None, + median : typing___Optional[builtin___float] = None, + max : typing___Optional[builtin___float] = None, + histograms : typing___Optional[typing___Iterable[type___Histogram]] = None, + weighted_numeric_stats : typing___Optional[type___WeightedNumericStatistics] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats",u"weighted_numeric_stats",b"weighted_numeric_stats"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats",u"histograms",b"histograms",u"max",b"max",u"mean",b"mean",u"median",b"median",u"min",b"min",u"num_zeros",b"num_zeros",u"std_dev",b"std_dev",u"weighted_numeric_stats",b"weighted_numeric_stats"]) -> None: ... -global___NumericStatistics = NumericStatistics - -class StringStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class FreqAndValue(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALUE_FIELD_NUMBER: builtins.int - FREQUENCY_FIELD_NUMBER: builtins.int - value: typing.Text = ... - frequency: builtins.float = ... + def HasField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats",u"weighted_numeric_stats",b"weighted_numeric_stats"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats",u"histograms",b"histograms",u"max",b"max",u"mean",b"mean",u"median",b"median",u"min",b"min",u"num_zeros",b"num_zeros",u"std_dev",b"std_dev",u"weighted_numeric_stats",b"weighted_numeric_stats"]) -> None: ... +type___NumericStatistics = NumericStatistics + +class StringStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class FreqAndValue(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + value: typing___Text = ... + frequency: builtin___float = ... def __init__(self, *, - value : typing.Text = ..., - frequency : builtins.float = ..., + value : typing___Optional[typing___Text] = None, + frequency : typing___Optional[builtin___float] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"frequency",b"frequency",u"value",b"value"]) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"frequency",b"frequency",u"value",b"value"]) -> None: ... + type___FreqAndValue = FreqAndValue - COMMON_STATS_FIELD_NUMBER: builtins.int - UNIQUE_FIELD_NUMBER: builtins.int - TOP_VALUES_FIELD_NUMBER: builtins.int - AVG_LENGTH_FIELD_NUMBER: builtins.int - RANK_HISTOGRAM_FIELD_NUMBER: builtins.int - WEIGHTED_STRING_STATS_FIELD_NUMBER: builtins.int - VOCABULARY_FILE_FIELD_NUMBER: builtins.int - unique: builtins.int = ... - avg_length: builtins.float = ... - vocabulary_file: typing.Text = ... + unique: builtin___int = ... + avg_length: builtin___float = ... + vocabulary_file: typing___Text = ... @property - def common_stats(self) -> global___CommonStatistics: ... + def common_stats(self) -> type___CommonStatistics: ... @property - def top_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringStatistics.FreqAndValue]: ... + def top_values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___StringStatistics.FreqAndValue]: ... @property - def rank_histogram(self) -> global___RankHistogram: ... + def rank_histogram(self) -> type___RankHistogram: ... @property - def weighted_string_stats(self) -> global___WeightedStringStatistics: ... + def weighted_string_stats(self) -> type___WeightedStringStatistics: ... def __init__(self, *, - common_stats : typing.Optional[global___CommonStatistics] = ..., - unique : builtins.int = ..., - top_values : typing.Optional[typing.Iterable[global___StringStatistics.FreqAndValue]] = ..., - avg_length : builtins.float = ..., - rank_histogram : typing.Optional[global___RankHistogram] = ..., - weighted_string_stats : typing.Optional[global___WeightedStringStatistics] = ..., - vocabulary_file : typing.Text = ..., + common_stats : typing___Optional[type___CommonStatistics] = None, + unique : typing___Optional[builtin___int] = None, + top_values : typing___Optional[typing___Iterable[type___StringStatistics.FreqAndValue]] = None, + avg_length : typing___Optional[builtin___float] = None, + rank_histogram : typing___Optional[type___RankHistogram] = None, + weighted_string_stats : typing___Optional[type___WeightedStringStatistics] = None, + vocabulary_file : typing___Optional[typing___Text] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats",u"rank_histogram",b"rank_histogram",u"weighted_string_stats",b"weighted_string_stats"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"avg_length",b"avg_length",u"common_stats",b"common_stats",u"rank_histogram",b"rank_histogram",u"top_values",b"top_values",u"unique",b"unique",u"vocabulary_file",b"vocabulary_file",u"weighted_string_stats",b"weighted_string_stats"]) -> None: ... -global___StringStatistics = StringStatistics + def HasField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats",u"rank_histogram",b"rank_histogram",u"weighted_string_stats",b"weighted_string_stats"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"avg_length",b"avg_length",u"common_stats",b"common_stats",u"rank_histogram",b"rank_histogram",u"top_values",b"top_values",u"unique",b"unique",u"vocabulary_file",b"vocabulary_file",u"weighted_string_stats",b"weighted_string_stats"]) -> None: ... +type___StringStatistics = StringStatistics -class WeightedNumericStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MEAN_FIELD_NUMBER: builtins.int - STD_DEV_FIELD_NUMBER: builtins.int - MEDIAN_FIELD_NUMBER: builtins.int - HISTOGRAMS_FIELD_NUMBER: builtins.int - mean: builtins.float = ... - std_dev: builtins.float = ... - median: builtins.float = ... +class WeightedNumericStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + mean: builtin___float = ... + std_dev: builtin___float = ... + median: builtin___float = ... @property - def histograms(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Histogram]: ... + def histograms(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Histogram]: ... def __init__(self, *, - mean : builtins.float = ..., - std_dev : builtins.float = ..., - median : builtins.float = ..., - histograms : typing.Optional[typing.Iterable[global___Histogram]] = ..., + mean : typing___Optional[builtin___float] = None, + std_dev : typing___Optional[builtin___float] = None, + median : typing___Optional[builtin___float] = None, + histograms : typing___Optional[typing___Iterable[type___Histogram]] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"histograms",b"histograms",u"mean",b"mean",u"median",b"median",u"std_dev",b"std_dev"]) -> None: ... -global___WeightedNumericStatistics = WeightedNumericStatistics + def ClearField(self, field_name: typing_extensions___Literal[u"histograms",b"histograms",u"mean",b"mean",u"median",b"median",u"std_dev",b"std_dev"]) -> None: ... +type___WeightedNumericStatistics = WeightedNumericStatistics -class WeightedStringStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TOP_VALUES_FIELD_NUMBER: builtins.int - RANK_HISTOGRAM_FIELD_NUMBER: builtins.int +class WeightedStringStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... @property - def top_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringStatistics.FreqAndValue]: ... + def top_values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___StringStatistics.FreqAndValue]: ... @property - def rank_histogram(self) -> global___RankHistogram: ... + def rank_histogram(self) -> type___RankHistogram: ... def __init__(self, *, - top_values : typing.Optional[typing.Iterable[global___StringStatistics.FreqAndValue]] = ..., - rank_histogram : typing.Optional[global___RankHistogram] = ..., + top_values : typing___Optional[typing___Iterable[type___StringStatistics.FreqAndValue]] = None, + rank_histogram : typing___Optional[type___RankHistogram] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"rank_histogram",b"rank_histogram"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"rank_histogram",b"rank_histogram",u"top_values",b"top_values"]) -> None: ... -global___WeightedStringStatistics = WeightedStringStatistics + def HasField(self, field_name: typing_extensions___Literal[u"rank_histogram",b"rank_histogram"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"rank_histogram",b"rank_histogram",u"top_values",b"top_values"]) -> None: ... +type___WeightedStringStatistics = WeightedStringStatistics -class BytesStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMON_STATS_FIELD_NUMBER: builtins.int - UNIQUE_FIELD_NUMBER: builtins.int - AVG_NUM_BYTES_FIELD_NUMBER: builtins.int - MIN_NUM_BYTES_FIELD_NUMBER: builtins.int - MAX_NUM_BYTES_FIELD_NUMBER: builtins.int - unique: builtins.int = ... - avg_num_bytes: builtins.float = ... - min_num_bytes: builtins.float = ... - max_num_bytes: builtins.float = ... +class BytesStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + unique: builtin___int = ... + avg_num_bytes: builtin___float = ... + min_num_bytes: builtin___float = ... + max_num_bytes: builtin___float = ... @property - def common_stats(self) -> global___CommonStatistics: ... + def common_stats(self) -> type___CommonStatistics: ... def __init__(self, *, - common_stats : typing.Optional[global___CommonStatistics] = ..., - unique : builtins.int = ..., - avg_num_bytes : builtins.float = ..., - min_num_bytes : builtins.float = ..., - max_num_bytes : builtins.float = ..., + common_stats : typing___Optional[type___CommonStatistics] = None, + unique : typing___Optional[builtin___int] = None, + avg_num_bytes : typing___Optional[builtin___float] = None, + min_num_bytes : typing___Optional[builtin___float] = None, + max_num_bytes : typing___Optional[builtin___float] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"avg_num_bytes",b"avg_num_bytes",u"common_stats",b"common_stats",u"max_num_bytes",b"max_num_bytes",u"min_num_bytes",b"min_num_bytes",u"unique",b"unique"]) -> None: ... -global___BytesStatistics = BytesStatistics + def HasField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"avg_num_bytes",b"avg_num_bytes",u"common_stats",b"common_stats",u"max_num_bytes",b"max_num_bytes",u"min_num_bytes",b"min_num_bytes",u"unique",b"unique"]) -> None: ... +type___BytesStatistics = BytesStatistics -class StructStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMON_STATS_FIELD_NUMBER: builtins.int +class StructStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... @property - def common_stats(self) -> global___CommonStatistics: ... + def common_stats(self) -> type___CommonStatistics: ... def __init__(self, *, - common_stats : typing.Optional[global___CommonStatistics] = ..., + common_stats : typing___Optional[type___CommonStatistics] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats"]) -> None: ... -global___StructStatistics = StructStatistics + def HasField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats"]) -> None: ... +type___StructStatistics = StructStatistics -class CommonStatistics(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NUM_NON_MISSING_FIELD_NUMBER: builtins.int - NUM_MISSING_FIELD_NUMBER: builtins.int - MIN_NUM_VALUES_FIELD_NUMBER: builtins.int - MAX_NUM_VALUES_FIELD_NUMBER: builtins.int - AVG_NUM_VALUES_FIELD_NUMBER: builtins.int - TOT_NUM_VALUES_FIELD_NUMBER: builtins.int - NUM_VALUES_HISTOGRAM_FIELD_NUMBER: builtins.int - WEIGHTED_COMMON_STATS_FIELD_NUMBER: builtins.int - FEATURE_LIST_LENGTH_HISTOGRAM_FIELD_NUMBER: builtins.int - num_non_missing: builtins.int = ... - num_missing: builtins.int = ... - min_num_values: builtins.int = ... - max_num_values: builtins.int = ... - avg_num_values: builtins.float = ... - tot_num_values: builtins.int = ... +class CommonStatistics(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + num_non_missing: builtin___int = ... + num_missing: builtin___int = ... + min_num_values: builtin___int = ... + max_num_values: builtin___int = ... + avg_num_values: builtin___float = ... + tot_num_values: builtin___int = ... @property - def num_values_histogram(self) -> global___Histogram: ... + def num_values_histogram(self) -> type___Histogram: ... @property - def weighted_common_stats(self) -> global___WeightedCommonStatistics: ... + def weighted_common_stats(self) -> type___WeightedCommonStatistics: ... @property - def feature_list_length_histogram(self) -> global___Histogram: ... + def feature_list_length_histogram(self) -> type___Histogram: ... def __init__(self, *, - num_non_missing : builtins.int = ..., - num_missing : builtins.int = ..., - min_num_values : builtins.int = ..., - max_num_values : builtins.int = ..., - avg_num_values : builtins.float = ..., - tot_num_values : builtins.int = ..., - num_values_histogram : typing.Optional[global___Histogram] = ..., - weighted_common_stats : typing.Optional[global___WeightedCommonStatistics] = ..., - feature_list_length_histogram : typing.Optional[global___Histogram] = ..., + num_non_missing : typing___Optional[builtin___int] = None, + num_missing : typing___Optional[builtin___int] = None, + min_num_values : typing___Optional[builtin___int] = None, + max_num_values : typing___Optional[builtin___int] = None, + avg_num_values : typing___Optional[builtin___float] = None, + tot_num_values : typing___Optional[builtin___int] = None, + num_values_histogram : typing___Optional[type___Histogram] = None, + weighted_common_stats : typing___Optional[type___WeightedCommonStatistics] = None, + feature_list_length_histogram : typing___Optional[type___Histogram] = None, ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"feature_list_length_histogram",b"feature_list_length_histogram",u"num_values_histogram",b"num_values_histogram",u"weighted_common_stats",b"weighted_common_stats"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"avg_num_values",b"avg_num_values",u"feature_list_length_histogram",b"feature_list_length_histogram",u"max_num_values",b"max_num_values",u"min_num_values",b"min_num_values",u"num_missing",b"num_missing",u"num_non_missing",b"num_non_missing",u"num_values_histogram",b"num_values_histogram",u"tot_num_values",b"tot_num_values",u"weighted_common_stats",b"weighted_common_stats"]) -> None: ... -global___CommonStatistics = CommonStatistics - -class Histogram(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class _HistogramType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[HistogramType.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - STANDARD = Histogram.HistogramType.V(0) - QUANTILES = Histogram.HistogramType.V(1) - class HistogramType(metaclass=_HistogramType): - V = typing.NewType('V', builtins.int) - STANDARD = Histogram.HistogramType.V(0) - QUANTILES = Histogram.HistogramType.V(1) - - class Bucket(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - LOW_VALUE_FIELD_NUMBER: builtins.int - HIGH_VALUE_FIELD_NUMBER: builtins.int - SAMPLE_COUNT_FIELD_NUMBER: builtins.int - low_value: builtins.float = ... - high_value: builtins.float = ... - sample_count: builtins.float = ... + def HasField(self, field_name: typing_extensions___Literal[u"feature_list_length_histogram",b"feature_list_length_histogram",u"num_values_histogram",b"num_values_histogram",u"weighted_common_stats",b"weighted_common_stats"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"avg_num_values",b"avg_num_values",u"feature_list_length_histogram",b"feature_list_length_histogram",u"max_num_values",b"max_num_values",u"min_num_values",b"min_num_values",u"num_missing",b"num_missing",u"num_non_missing",b"num_non_missing",u"num_values_histogram",b"num_values_histogram",u"tot_num_values",b"tot_num_values",u"weighted_common_stats",b"weighted_common_stats"]) -> None: ... +type___CommonStatistics = CommonStatistics + +class Histogram(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + HistogramTypeValue = typing___NewType('HistogramTypeValue', builtin___int) + type___HistogramTypeValue = HistogramTypeValue + HistogramType: _HistogramType + class _HistogramType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[Histogram.HistogramTypeValue]): + DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + STANDARD = typing___cast(Histogram.HistogramTypeValue, 0) + QUANTILES = typing___cast(Histogram.HistogramTypeValue, 1) + STANDARD = typing___cast(Histogram.HistogramTypeValue, 0) + QUANTILES = typing___cast(Histogram.HistogramTypeValue, 1) + + class Bucket(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + low_value: builtin___float = ... + high_value: builtin___float = ... + sample_count: builtin___float = ... def __init__(self, *, - low_value : builtins.float = ..., - high_value : builtins.float = ..., - sample_count : builtins.float = ..., + low_value : typing___Optional[builtin___float] = None, + high_value : typing___Optional[builtin___float] = None, + sample_count : typing___Optional[builtin___float] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"high_value",b"high_value",u"low_value",b"low_value",u"sample_count",b"sample_count"]) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"high_value",b"high_value",u"low_value",b"low_value",u"sample_count",b"sample_count"]) -> None: ... + type___Bucket = Bucket - NUM_NAN_FIELD_NUMBER: builtins.int - NUM_UNDEFINED_FIELD_NUMBER: builtins.int - BUCKETS_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - num_nan: builtins.int = ... - num_undefined: builtins.int = ... - type: global___Histogram.HistogramType.V = ... - name: typing.Text = ... + num_nan: builtin___int = ... + num_undefined: builtin___int = ... + type: type___Histogram.HistogramTypeValue = ... + name: typing___Text = ... @property - def buckets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Histogram.Bucket]: ... + def buckets(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Histogram.Bucket]: ... def __init__(self, *, - num_nan : builtins.int = ..., - num_undefined : builtins.int = ..., - buckets : typing.Optional[typing.Iterable[global___Histogram.Bucket]] = ..., - type : global___Histogram.HistogramType.V = ..., - name : typing.Text = ..., + num_nan : typing___Optional[builtin___int] = None, + num_undefined : typing___Optional[builtin___int] = None, + buckets : typing___Optional[typing___Iterable[type___Histogram.Bucket]] = None, + type : typing___Optional[type___Histogram.HistogramTypeValue] = None, + name : typing___Optional[typing___Text] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"buckets",b"buckets",u"name",b"name",u"num_nan",b"num_nan",u"num_undefined",b"num_undefined",u"type",b"type"]) -> None: ... -global___Histogram = Histogram - -class RankHistogram(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Bucket(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - LOW_RANK_FIELD_NUMBER: builtins.int - HIGH_RANK_FIELD_NUMBER: builtins.int - LABEL_FIELD_NUMBER: builtins.int - SAMPLE_COUNT_FIELD_NUMBER: builtins.int - low_rank: builtins.int = ... - high_rank: builtins.int = ... - label: typing.Text = ... - sample_count: builtins.float = ... + def ClearField(self, field_name: typing_extensions___Literal[u"buckets",b"buckets",u"name",b"name",u"num_nan",b"num_nan",u"num_undefined",b"num_undefined",u"type",b"type"]) -> None: ... +type___Histogram = Histogram + +class RankHistogram(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class Bucket(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + low_rank: builtin___int = ... + high_rank: builtin___int = ... + label: typing___Text = ... + sample_count: builtin___float = ... def __init__(self, *, - low_rank : builtins.int = ..., - high_rank : builtins.int = ..., - label : typing.Text = ..., - sample_count : builtins.float = ..., + low_rank : typing___Optional[builtin___int] = None, + high_rank : typing___Optional[builtin___int] = None, + label : typing___Optional[typing___Text] = None, + sample_count : typing___Optional[builtin___float] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"high_rank",b"high_rank",u"label",b"label",u"low_rank",b"low_rank",u"sample_count",b"sample_count"]) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"high_rank",b"high_rank",u"label",b"label",u"low_rank",b"low_rank",u"sample_count",b"sample_count"]) -> None: ... + type___Bucket = Bucket - BUCKETS_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing___Text = ... @property - def buckets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RankHistogram.Bucket]: ... + def buckets(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___RankHistogram.Bucket]: ... def __init__(self, *, - buckets : typing.Optional[typing.Iterable[global___RankHistogram.Bucket]] = ..., - name : typing.Text = ..., + buckets : typing___Optional[typing___Iterable[type___RankHistogram.Bucket]] = None, + name : typing___Optional[typing___Text] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"buckets",b"buckets",u"name",b"name"]) -> None: ... -global___RankHistogram = RankHistogram + def ClearField(self, field_name: typing_extensions___Literal[u"buckets",b"buckets",u"name",b"name"]) -> None: ... +type___RankHistogram = RankHistogram From c7be7a311f567618c8e58ab50e775bf95ed84ee4 Mon Sep 17 00:00:00 2001 From: Pavel Borobov Date: Mon, 19 Apr 2021 16:53:09 -0700 Subject: [PATCH 2/5] added template for aws --- sdk/python/feast/templates/aws_dynamo/feature_store.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sdk/python/feast/templates/aws_dynamo/feature_store.yaml b/sdk/python/feast/templates/aws_dynamo/feature_store.yaml index 7e09357d57..1a4363e349 100644 --- a/sdk/python/feast/templates/aws_dynamo/feature_store.yaml +++ b/sdk/python/feast/templates/aws_dynamo/feature_store.yaml @@ -1,6 +1,4 @@ project: my_project -registry: data/registry.db +registry: s3://feast-provectus-demo/data/registry.db provider: aws_dynamo -offline_store: - path: s3://test-bucket/data/ online_store: From 421bb6627e9c5bdca411cd4c8338984b0986e7a7 Mon Sep 17 00:00:00 2001 From: Pavel Borobov Date: Mon, 19 Apr 2021 16:54:36 -0700 Subject: [PATCH 3/5] added cli choice of aws dynamo --- sdk/python/feast/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/feast/cli.py b/sdk/python/feast/cli.py index c22fd7da2d..4ee40fecca 100644 --- a/sdk/python/feast/cli.py +++ b/sdk/python/feast/cli.py @@ -236,7 +236,7 @@ def materialize_incremental_command(end_ts: str, views: List[str]): @click.option( "--template", "-t", - type=click.Choice(["local", "gcp"], case_sensitive=False), + type=click.Choice(["local", "gcp", "aws_dynamo"], case_sensitive=False), help="Specify a template for the created project", default="local", ) From 5dd0bed8ab9110c992ce030c0a8cec5217f5b961 Mon Sep 17 00:00:00 2001 From: Pavel Borobov Date: Mon, 19 Apr 2021 17:06:13 -0700 Subject: [PATCH 4/5] Remove changed prto files --- .../tensorflow_metadata/proto/v0/path_pb2.py | 2 +- .../tensorflow_metadata/proto/v0/path_pb2.pyi | 50 +- .../proto/v0/schema_pb2.py | 2 +- .../proto/v0/schema_pb2.pyi | 1095 +++++++++-------- .../proto/v0/statistics_pb2.py | 2 +- .../proto/v0/statistics_pb2.pyi | 861 +++++++------ 6 files changed, 1054 insertions(+), 958 deletions(-) diff --git a/sdk/python/tensorflow_metadata/proto/v0/path_pb2.py b/sdk/python/tensorflow_metadata/proto/v0/path_pb2.py index d732119ead..4b6dec828c 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/path_pb2.py +++ b/sdk/python/tensorflow_metadata/proto/v0/path_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_metadata/proto/v0/path.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 diff --git a/sdk/python/tensorflow_metadata/proto/v0/path_pb2.pyi b/sdk/python/tensorflow_metadata/proto/v0/path_pb2.pyi index 82fccfa5fa..e316ac06c4 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/path_pb2.pyi +++ b/sdk/python/tensorflow_metadata/proto/v0/path_pb2.pyi @@ -2,45 +2,23 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions -from google.protobuf.internal.containers import ( - RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, - Text as typing___Text, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class Path(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - step: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... +class Path(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STEP_FIELD_NUMBER: builtins.int + step: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... def __init__(self, *, - step : typing___Optional[typing___Iterable[typing___Text]] = None, + step : typing.Optional[typing.Iterable[typing.Text]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"step",b"step"]) -> None: ... -type___Path = Path + def ClearField(self, field_name: typing_extensions.Literal[u"step",b"step"]) -> None: ... +global___Path = Path diff --git a/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py b/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py index 78fda8003d..d3bfc50616 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py +++ b/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_metadata/proto/v0/schema.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message diff --git a/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.pyi b/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.pyi index f08b330a2f..53fa89d390 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.pyi +++ b/sdk/python/tensorflow_metadata/proto/v0/schema_pb2.pyi @@ -2,785 +2,842 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -from google.protobuf.any_pb2 import ( - Any as google___protobuf___any_pb2___Any, -) - -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - MessageMap as google___protobuf___internal___containers___MessageMap, - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, - RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, -) - -from google.protobuf.internal.enum_type_wrapper import ( - _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from tensorflow_metadata.proto.v0.path_pb2 import ( - Path as tensorflow_metadata___proto___v0___path_pb2___Path, -) - -from typing import ( - Iterable as typing___Iterable, - Mapping as typing___Mapping, - NewType as typing___NewType, - Optional as typing___Optional, - Text as typing___Text, - cast as typing___cast, - overload as typing___overload, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -LifecycleStageValue = typing___NewType('LifecycleStageValue', builtin___int) -type___LifecycleStageValue = LifecycleStageValue -LifecycleStage: _LifecycleStage -class _LifecycleStage(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[LifecycleStageValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - UNKNOWN_STAGE = typing___cast(LifecycleStageValue, 0) - PLANNED = typing___cast(LifecycleStageValue, 1) - ALPHA = typing___cast(LifecycleStageValue, 2) - BETA = typing___cast(LifecycleStageValue, 3) - PRODUCTION = typing___cast(LifecycleStageValue, 4) - DEPRECATED = typing___cast(LifecycleStageValue, 5) - DEBUG_ONLY = typing___cast(LifecycleStageValue, 6) -UNKNOWN_STAGE = typing___cast(LifecycleStageValue, 0) -PLANNED = typing___cast(LifecycleStageValue, 1) -ALPHA = typing___cast(LifecycleStageValue, 2) -BETA = typing___cast(LifecycleStageValue, 3) -PRODUCTION = typing___cast(LifecycleStageValue, 4) -DEPRECATED = typing___cast(LifecycleStageValue, 5) -DEBUG_ONLY = typing___cast(LifecycleStageValue, 6) - -FeatureTypeValue = typing___NewType('FeatureTypeValue', builtin___int) -type___FeatureTypeValue = FeatureTypeValue -FeatureType: _FeatureType -class _FeatureType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FeatureTypeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - TYPE_UNKNOWN = typing___cast(FeatureTypeValue, 0) - BYTES = typing___cast(FeatureTypeValue, 1) - INT = typing___cast(FeatureTypeValue, 2) - FLOAT = typing___cast(FeatureTypeValue, 3) - STRUCT = typing___cast(FeatureTypeValue, 4) -TYPE_UNKNOWN = typing___cast(FeatureTypeValue, 0) -BYTES = typing___cast(FeatureTypeValue, 1) -INT = typing___cast(FeatureTypeValue, 2) -FLOAT = typing___cast(FeatureTypeValue, 3) -STRUCT = typing___cast(FeatureTypeValue, 4) - -class Schema(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class TensorRepresentationGroupEntry(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key: typing___Text = ... +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import tensorflow_metadata.proto.v0.path_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +global___LifecycleStage = LifecycleStage +class _LifecycleStage(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[LifecycleStage.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + UNKNOWN_STAGE = LifecycleStage.V(0) + PLANNED = LifecycleStage.V(1) + ALPHA = LifecycleStage.V(2) + BETA = LifecycleStage.V(3) + PRODUCTION = LifecycleStage.V(4) + DEPRECATED = LifecycleStage.V(5) + DEBUG_ONLY = LifecycleStage.V(6) +class LifecycleStage(metaclass=_LifecycleStage): + V = typing.NewType('V', builtins.int) +UNKNOWN_STAGE = LifecycleStage.V(0) +PLANNED = LifecycleStage.V(1) +ALPHA = LifecycleStage.V(2) +BETA = LifecycleStage.V(3) +PRODUCTION = LifecycleStage.V(4) +DEPRECATED = LifecycleStage.V(5) +DEBUG_ONLY = LifecycleStage.V(6) + +global___FeatureType = FeatureType +class _FeatureType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FeatureType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + TYPE_UNKNOWN = FeatureType.V(0) + BYTES = FeatureType.V(1) + INT = FeatureType.V(2) + FLOAT = FeatureType.V(3) + STRUCT = FeatureType.V(4) +class FeatureType(metaclass=_FeatureType): + V = typing.NewType('V', builtins.int) +TYPE_UNKNOWN = FeatureType.V(0) +BYTES = FeatureType.V(1) +INT = FeatureType.V(2) +FLOAT = FeatureType.V(3) +STRUCT = FeatureType.V(4) + +class Schema(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class TensorRepresentationGroupEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... @property - def value(self) -> type___TensorRepresentationGroup: ... + def value(self) -> global___TensorRepresentationGroup: ... def __init__(self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[type___TensorRepresentationGroup] = None, + key : typing.Optional[typing.Text] = ..., + value : typing.Optional[global___TensorRepresentationGroup] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - type___TensorRepresentationGroupEntry = TensorRepresentationGroupEntry + def HasField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... - default_environment: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + FEATURE_FIELD_NUMBER: builtins.int + SPARSE_FEATURE_FIELD_NUMBER: builtins.int + WEIGHTED_FEATURE_FIELD_NUMBER: builtins.int + STRING_DOMAIN_FIELD_NUMBER: builtins.int + FLOAT_DOMAIN_FIELD_NUMBER: builtins.int + INT_DOMAIN_FIELD_NUMBER: builtins.int + DEFAULT_ENVIRONMENT_FIELD_NUMBER: builtins.int + ANNOTATION_FIELD_NUMBER: builtins.int + DATASET_CONSTRAINTS_FIELD_NUMBER: builtins.int + TENSOR_REPRESENTATION_GROUP_FIELD_NUMBER: builtins.int + default_environment: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... @property - def feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Feature]: ... + def feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Feature]: ... @property - def sparse_feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SparseFeature]: ... + def sparse_feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SparseFeature]: ... @property - def weighted_feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___WeightedFeature]: ... + def weighted_feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WeightedFeature]: ... @property - def string_domain(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___StringDomain]: ... + def string_domain(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringDomain]: ... @property - def float_domain(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FloatDomain]: ... + def float_domain(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FloatDomain]: ... @property - def int_domain(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntDomain]: ... + def int_domain(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IntDomain]: ... @property - def annotation(self) -> type___Annotation: ... + def annotation(self) -> global___Annotation: ... @property - def dataset_constraints(self) -> type___DatasetConstraints: ... + def dataset_constraints(self) -> global___DatasetConstraints: ... @property - def tensor_representation_group(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___TensorRepresentationGroup]: ... + def tensor_representation_group(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___TensorRepresentationGroup]: ... def __init__(self, *, - feature : typing___Optional[typing___Iterable[type___Feature]] = None, - sparse_feature : typing___Optional[typing___Iterable[type___SparseFeature]] = None, - weighted_feature : typing___Optional[typing___Iterable[type___WeightedFeature]] = None, - string_domain : typing___Optional[typing___Iterable[type___StringDomain]] = None, - float_domain : typing___Optional[typing___Iterable[type___FloatDomain]] = None, - int_domain : typing___Optional[typing___Iterable[type___IntDomain]] = None, - default_environment : typing___Optional[typing___Iterable[typing___Text]] = None, - annotation : typing___Optional[type___Annotation] = None, - dataset_constraints : typing___Optional[type___DatasetConstraints] = None, - tensor_representation_group : typing___Optional[typing___Mapping[typing___Text, type___TensorRepresentationGroup]] = None, + feature : typing.Optional[typing.Iterable[global___Feature]] = ..., + sparse_feature : typing.Optional[typing.Iterable[global___SparseFeature]] = ..., + weighted_feature : typing.Optional[typing.Iterable[global___WeightedFeature]] = ..., + string_domain : typing.Optional[typing.Iterable[global___StringDomain]] = ..., + float_domain : typing.Optional[typing.Iterable[global___FloatDomain]] = ..., + int_domain : typing.Optional[typing.Iterable[global___IntDomain]] = ..., + default_environment : typing.Optional[typing.Iterable[typing.Text]] = ..., + annotation : typing.Optional[global___Annotation] = ..., + dataset_constraints : typing.Optional[global___DatasetConstraints] = ..., + tensor_representation_group : typing.Optional[typing.Mapping[typing.Text, global___TensorRepresentationGroup]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation",u"dataset_constraints",b"dataset_constraints"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation",u"dataset_constraints",b"dataset_constraints",u"default_environment",b"default_environment",u"feature",b"feature",u"float_domain",b"float_domain",u"int_domain",b"int_domain",u"sparse_feature",b"sparse_feature",u"string_domain",b"string_domain",u"tensor_representation_group",b"tensor_representation_group",u"weighted_feature",b"weighted_feature"]) -> None: ... -type___Schema = Schema + def HasField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation",u"dataset_constraints",b"dataset_constraints"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation",u"dataset_constraints",b"dataset_constraints",u"default_environment",b"default_environment",u"feature",b"feature",u"float_domain",b"float_domain",u"int_domain",b"int_domain",u"sparse_feature",b"sparse_feature",u"string_domain",b"string_domain",u"tensor_representation_group",b"tensor_representation_group",u"weighted_feature",b"weighted_feature"]) -> None: ... +global___Schema = Schema -class Feature(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - deprecated: builtin___bool = ... - type: type___FeatureTypeValue = ... - domain: typing___Text = ... - in_environment: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - not_in_environment: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - lifecycle_stage: type___LifecycleStageValue = ... +class Feature(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + DEPRECATED_FIELD_NUMBER: builtins.int + PRESENCE_FIELD_NUMBER: builtins.int + GROUP_PRESENCE_FIELD_NUMBER: builtins.int + SHAPE_FIELD_NUMBER: builtins.int + VALUE_COUNT_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + DOMAIN_FIELD_NUMBER: builtins.int + INT_DOMAIN_FIELD_NUMBER: builtins.int + FLOAT_DOMAIN_FIELD_NUMBER: builtins.int + STRING_DOMAIN_FIELD_NUMBER: builtins.int + BOOL_DOMAIN_FIELD_NUMBER: builtins.int + STRUCT_DOMAIN_FIELD_NUMBER: builtins.int + NATURAL_LANGUAGE_DOMAIN_FIELD_NUMBER: builtins.int + IMAGE_DOMAIN_FIELD_NUMBER: builtins.int + MID_DOMAIN_FIELD_NUMBER: builtins.int + URL_DOMAIN_FIELD_NUMBER: builtins.int + TIME_DOMAIN_FIELD_NUMBER: builtins.int + TIME_OF_DAY_DOMAIN_FIELD_NUMBER: builtins.int + DISTRIBUTION_CONSTRAINTS_FIELD_NUMBER: builtins.int + ANNOTATION_FIELD_NUMBER: builtins.int + SKEW_COMPARATOR_FIELD_NUMBER: builtins.int + DRIFT_COMPARATOR_FIELD_NUMBER: builtins.int + IN_ENVIRONMENT_FIELD_NUMBER: builtins.int + NOT_IN_ENVIRONMENT_FIELD_NUMBER: builtins.int + LIFECYCLE_STAGE_FIELD_NUMBER: builtins.int + name: typing.Text = ... + deprecated: builtins.bool = ... + type: global___FeatureType.V = ... + domain: typing.Text = ... + in_environment: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... + not_in_environment: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... + lifecycle_stage: global___LifecycleStage.V = ... @property - def presence(self) -> type___FeaturePresence: ... + def presence(self) -> global___FeaturePresence: ... @property - def group_presence(self) -> type___FeaturePresenceWithinGroup: ... + def group_presence(self) -> global___FeaturePresenceWithinGroup: ... @property - def shape(self) -> type___FixedShape: ... + def shape(self) -> global___FixedShape: ... @property - def value_count(self) -> type___ValueCount: ... + def value_count(self) -> global___ValueCount: ... @property - def int_domain(self) -> type___IntDomain: ... + def int_domain(self) -> global___IntDomain: ... @property - def float_domain(self) -> type___FloatDomain: ... + def float_domain(self) -> global___FloatDomain: ... @property - def string_domain(self) -> type___StringDomain: ... + def string_domain(self) -> global___StringDomain: ... @property - def bool_domain(self) -> type___BoolDomain: ... + def bool_domain(self) -> global___BoolDomain: ... @property - def struct_domain(self) -> type___StructDomain: ... + def struct_domain(self) -> global___StructDomain: ... @property - def natural_language_domain(self) -> type___NaturalLanguageDomain: ... + def natural_language_domain(self) -> global___NaturalLanguageDomain: ... @property - def image_domain(self) -> type___ImageDomain: ... + def image_domain(self) -> global___ImageDomain: ... @property - def mid_domain(self) -> type___MIDDomain: ... + def mid_domain(self) -> global___MIDDomain: ... @property - def url_domain(self) -> type___URLDomain: ... + def url_domain(self) -> global___URLDomain: ... @property - def time_domain(self) -> type___TimeDomain: ... + def time_domain(self) -> global___TimeDomain: ... @property - def time_of_day_domain(self) -> type___TimeOfDayDomain: ... + def time_of_day_domain(self) -> global___TimeOfDayDomain: ... @property - def distribution_constraints(self) -> type___DistributionConstraints: ... + def distribution_constraints(self) -> global___DistributionConstraints: ... @property - def annotation(self) -> type___Annotation: ... + def annotation(self) -> global___Annotation: ... @property - def skew_comparator(self) -> type___FeatureComparator: ... + def skew_comparator(self) -> global___FeatureComparator: ... @property - def drift_comparator(self) -> type___FeatureComparator: ... + def drift_comparator(self) -> global___FeatureComparator: ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - deprecated : typing___Optional[builtin___bool] = None, - presence : typing___Optional[type___FeaturePresence] = None, - group_presence : typing___Optional[type___FeaturePresenceWithinGroup] = None, - shape : typing___Optional[type___FixedShape] = None, - value_count : typing___Optional[type___ValueCount] = None, - type : typing___Optional[type___FeatureTypeValue] = None, - domain : typing___Optional[typing___Text] = None, - int_domain : typing___Optional[type___IntDomain] = None, - float_domain : typing___Optional[type___FloatDomain] = None, - string_domain : typing___Optional[type___StringDomain] = None, - bool_domain : typing___Optional[type___BoolDomain] = None, - struct_domain : typing___Optional[type___StructDomain] = None, - natural_language_domain : typing___Optional[type___NaturalLanguageDomain] = None, - image_domain : typing___Optional[type___ImageDomain] = None, - mid_domain : typing___Optional[type___MIDDomain] = None, - url_domain : typing___Optional[type___URLDomain] = None, - time_domain : typing___Optional[type___TimeDomain] = None, - time_of_day_domain : typing___Optional[type___TimeOfDayDomain] = None, - distribution_constraints : typing___Optional[type___DistributionConstraints] = None, - annotation : typing___Optional[type___Annotation] = None, - skew_comparator : typing___Optional[type___FeatureComparator] = None, - drift_comparator : typing___Optional[type___FeatureComparator] = None, - in_environment : typing___Optional[typing___Iterable[typing___Text]] = None, - not_in_environment : typing___Optional[typing___Iterable[typing___Text]] = None, - lifecycle_stage : typing___Optional[type___LifecycleStageValue] = None, + name : typing.Optional[typing.Text] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + presence : typing.Optional[global___FeaturePresence] = ..., + group_presence : typing.Optional[global___FeaturePresenceWithinGroup] = ..., + shape : typing.Optional[global___FixedShape] = ..., + value_count : typing.Optional[global___ValueCount] = ..., + type : typing.Optional[global___FeatureType.V] = ..., + domain : typing.Optional[typing.Text] = ..., + int_domain : typing.Optional[global___IntDomain] = ..., + float_domain : typing.Optional[global___FloatDomain] = ..., + string_domain : typing.Optional[global___StringDomain] = ..., + bool_domain : typing.Optional[global___BoolDomain] = ..., + struct_domain : typing.Optional[global___StructDomain] = ..., + natural_language_domain : typing.Optional[global___NaturalLanguageDomain] = ..., + image_domain : typing.Optional[global___ImageDomain] = ..., + mid_domain : typing.Optional[global___MIDDomain] = ..., + url_domain : typing.Optional[global___URLDomain] = ..., + time_domain : typing.Optional[global___TimeDomain] = ..., + time_of_day_domain : typing.Optional[global___TimeOfDayDomain] = ..., + distribution_constraints : typing.Optional[global___DistributionConstraints] = ..., + annotation : typing.Optional[global___Annotation] = ..., + skew_comparator : typing.Optional[global___FeatureComparator] = ..., + drift_comparator : typing.Optional[global___FeatureComparator] = ..., + in_environment : typing.Optional[typing.Iterable[typing.Text]] = ..., + not_in_environment : typing.Optional[typing.Iterable[typing.Text]] = ..., + lifecycle_stage : typing.Optional[global___LifecycleStage.V] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation",u"bool_domain",b"bool_domain",u"deprecated",b"deprecated",u"distribution_constraints",b"distribution_constraints",u"domain",b"domain",u"domain_info",b"domain_info",u"drift_comparator",b"drift_comparator",u"float_domain",b"float_domain",u"group_presence",b"group_presence",u"image_domain",b"image_domain",u"int_domain",b"int_domain",u"lifecycle_stage",b"lifecycle_stage",u"mid_domain",b"mid_domain",u"name",b"name",u"natural_language_domain",b"natural_language_domain",u"presence",b"presence",u"presence_constraints",b"presence_constraints",u"shape",b"shape",u"shape_type",b"shape_type",u"skew_comparator",b"skew_comparator",u"string_domain",b"string_domain",u"struct_domain",b"struct_domain",u"time_domain",b"time_domain",u"time_of_day_domain",b"time_of_day_domain",u"type",b"type",u"url_domain",b"url_domain",u"value_count",b"value_count"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation",u"bool_domain",b"bool_domain",u"deprecated",b"deprecated",u"distribution_constraints",b"distribution_constraints",u"domain",b"domain",u"domain_info",b"domain_info",u"drift_comparator",b"drift_comparator",u"float_domain",b"float_domain",u"group_presence",b"group_presence",u"image_domain",b"image_domain",u"in_environment",b"in_environment",u"int_domain",b"int_domain",u"lifecycle_stage",b"lifecycle_stage",u"mid_domain",b"mid_domain",u"name",b"name",u"natural_language_domain",b"natural_language_domain",u"not_in_environment",b"not_in_environment",u"presence",b"presence",u"presence_constraints",b"presence_constraints",u"shape",b"shape",u"shape_type",b"shape_type",u"skew_comparator",b"skew_comparator",u"string_domain",b"string_domain",u"struct_domain",b"struct_domain",u"time_domain",b"time_domain",u"time_of_day_domain",b"time_of_day_domain",u"type",b"type",u"url_domain",b"url_domain",u"value_count",b"value_count"]) -> None: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"domain_info",b"domain_info"]) -> typing_extensions___Literal["domain","int_domain","float_domain","string_domain","bool_domain","struct_domain","natural_language_domain","image_domain","mid_domain","url_domain","time_domain","time_of_day_domain"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"presence_constraints",b"presence_constraints"]) -> typing_extensions___Literal["presence","group_presence"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"shape_type",b"shape_type"]) -> typing_extensions___Literal["shape","value_count"]: ... -type___Feature = Feature - -class Annotation(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - tag: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - comment: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - - @property - def extra_metadata(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___any_pb2___Any]: ... + def HasField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation",u"bool_domain",b"bool_domain",u"deprecated",b"deprecated",u"distribution_constraints",b"distribution_constraints",u"domain",b"domain",u"domain_info",b"domain_info",u"drift_comparator",b"drift_comparator",u"float_domain",b"float_domain",u"group_presence",b"group_presence",u"image_domain",b"image_domain",u"int_domain",b"int_domain",u"lifecycle_stage",b"lifecycle_stage",u"mid_domain",b"mid_domain",u"name",b"name",u"natural_language_domain",b"natural_language_domain",u"presence",b"presence",u"presence_constraints",b"presence_constraints",u"shape",b"shape",u"shape_type",b"shape_type",u"skew_comparator",b"skew_comparator",u"string_domain",b"string_domain",u"struct_domain",b"struct_domain",u"time_domain",b"time_domain",u"time_of_day_domain",b"time_of_day_domain",u"type",b"type",u"url_domain",b"url_domain",u"value_count",b"value_count"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation",u"bool_domain",b"bool_domain",u"deprecated",b"deprecated",u"distribution_constraints",b"distribution_constraints",u"domain",b"domain",u"domain_info",b"domain_info",u"drift_comparator",b"drift_comparator",u"float_domain",b"float_domain",u"group_presence",b"group_presence",u"image_domain",b"image_domain",u"in_environment",b"in_environment",u"int_domain",b"int_domain",u"lifecycle_stage",b"lifecycle_stage",u"mid_domain",b"mid_domain",u"name",b"name",u"natural_language_domain",b"natural_language_domain",u"not_in_environment",b"not_in_environment",u"presence",b"presence",u"presence_constraints",b"presence_constraints",u"shape",b"shape",u"shape_type",b"shape_type",u"skew_comparator",b"skew_comparator",u"string_domain",b"string_domain",u"struct_domain",b"struct_domain",u"time_domain",b"time_domain",u"time_of_day_domain",b"time_of_day_domain",u"type",b"type",u"url_domain",b"url_domain",u"value_count",b"value_count"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"domain_info",b"domain_info"]) -> typing_extensions.Literal["domain","int_domain","float_domain","string_domain","bool_domain","struct_domain","natural_language_domain","image_domain","mid_domain","url_domain","time_domain","time_of_day_domain"]: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"presence_constraints",b"presence_constraints"]) -> typing_extensions.Literal["presence","group_presence"]: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"shape_type",b"shape_type"]) -> typing_extensions.Literal["shape","value_count"]: ... +global___Feature = Feature + +class Annotation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TAG_FIELD_NUMBER: builtins.int + COMMENT_FIELD_NUMBER: builtins.int + EXTRA_METADATA_FIELD_NUMBER: builtins.int + tag: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... + comment: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... + + @property + def extra_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... def __init__(self, *, - tag : typing___Optional[typing___Iterable[typing___Text]] = None, - comment : typing___Optional[typing___Iterable[typing___Text]] = None, - extra_metadata : typing___Optional[typing___Iterable[google___protobuf___any_pb2___Any]] = None, + tag : typing.Optional[typing.Iterable[typing.Text]] = ..., + comment : typing.Optional[typing.Iterable[typing.Text]] = ..., + extra_metadata : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"comment",b"comment",u"extra_metadata",b"extra_metadata",u"tag",b"tag"]) -> None: ... -type___Annotation = Annotation + def ClearField(self, field_name: typing_extensions.Literal[u"comment",b"comment",u"extra_metadata",b"extra_metadata",u"tag",b"tag"]) -> None: ... +global___Annotation = Annotation -class NumericValueComparator(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - min_fraction_threshold: builtin___float = ... - max_fraction_threshold: builtin___float = ... +class NumericValueComparator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MIN_FRACTION_THRESHOLD_FIELD_NUMBER: builtins.int + MAX_FRACTION_THRESHOLD_FIELD_NUMBER: builtins.int + min_fraction_threshold: builtins.float = ... + max_fraction_threshold: builtins.float = ... def __init__(self, *, - min_fraction_threshold : typing___Optional[builtin___float] = None, - max_fraction_threshold : typing___Optional[builtin___float] = None, + min_fraction_threshold : typing.Optional[builtins.float] = ..., + max_fraction_threshold : typing.Optional[builtins.float] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"max_fraction_threshold",b"max_fraction_threshold",u"min_fraction_threshold",b"min_fraction_threshold"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"max_fraction_threshold",b"max_fraction_threshold",u"min_fraction_threshold",b"min_fraction_threshold"]) -> None: ... -type___NumericValueComparator = NumericValueComparator + def HasField(self, field_name: typing_extensions.Literal[u"max_fraction_threshold",b"max_fraction_threshold",u"min_fraction_threshold",b"min_fraction_threshold"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_fraction_threshold",b"max_fraction_threshold",u"min_fraction_threshold",b"min_fraction_threshold"]) -> None: ... +global___NumericValueComparator = NumericValueComparator -class DatasetConstraints(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - min_examples_count: builtin___int = ... +class DatasetConstraints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NUM_EXAMPLES_DRIFT_COMPARATOR_FIELD_NUMBER: builtins.int + NUM_EXAMPLES_VERSION_COMPARATOR_FIELD_NUMBER: builtins.int + MIN_EXAMPLES_COUNT_FIELD_NUMBER: builtins.int + min_examples_count: builtins.int = ... @property - def num_examples_drift_comparator(self) -> type___NumericValueComparator: ... + def num_examples_drift_comparator(self) -> global___NumericValueComparator: ... @property - def num_examples_version_comparator(self) -> type___NumericValueComparator: ... + def num_examples_version_comparator(self) -> global___NumericValueComparator: ... def __init__(self, *, - num_examples_drift_comparator : typing___Optional[type___NumericValueComparator] = None, - num_examples_version_comparator : typing___Optional[type___NumericValueComparator] = None, - min_examples_count : typing___Optional[builtin___int] = None, + num_examples_drift_comparator : typing.Optional[global___NumericValueComparator] = ..., + num_examples_version_comparator : typing.Optional[global___NumericValueComparator] = ..., + min_examples_count : typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"min_examples_count",b"min_examples_count",u"num_examples_drift_comparator",b"num_examples_drift_comparator",u"num_examples_version_comparator",b"num_examples_version_comparator"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"min_examples_count",b"min_examples_count",u"num_examples_drift_comparator",b"num_examples_drift_comparator",u"num_examples_version_comparator",b"num_examples_version_comparator"]) -> None: ... -type___DatasetConstraints = DatasetConstraints - -class FixedShape(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Dim(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - size: builtin___int = ... - name: typing___Text = ... + def HasField(self, field_name: typing_extensions.Literal[u"min_examples_count",b"min_examples_count",u"num_examples_drift_comparator",b"num_examples_drift_comparator",u"num_examples_version_comparator",b"num_examples_version_comparator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"min_examples_count",b"min_examples_count",u"num_examples_drift_comparator",b"num_examples_drift_comparator",u"num_examples_version_comparator",b"num_examples_version_comparator"]) -> None: ... +global___DatasetConstraints = DatasetConstraints + +class FixedShape(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Dim(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIZE_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + size: builtins.int = ... + name: typing.Text = ... def __init__(self, *, - size : typing___Optional[builtin___int] = None, - name : typing___Optional[typing___Text] = None, + size : typing.Optional[builtins.int] = ..., + name : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"size",b"size"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"size",b"size"]) -> None: ... - type___Dim = Dim + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name",u"size",b"size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"size",b"size"]) -> None: ... + DIM_FIELD_NUMBER: builtins.int @property - def dim(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FixedShape.Dim]: ... + def dim(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FixedShape.Dim]: ... def __init__(self, *, - dim : typing___Optional[typing___Iterable[type___FixedShape.Dim]] = None, + dim : typing.Optional[typing.Iterable[global___FixedShape.Dim]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"dim",b"dim"]) -> None: ... -type___FixedShape = FixedShape + def ClearField(self, field_name: typing_extensions.Literal[u"dim",b"dim"]) -> None: ... +global___FixedShape = FixedShape -class ValueCount(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - min: builtin___int = ... - max: builtin___int = ... +class ValueCount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MIN_FIELD_NUMBER: builtins.int + MAX_FIELD_NUMBER: builtins.int + min: builtins.int = ... + max: builtins.int = ... def __init__(self, *, - min : typing___Optional[builtin___int] = None, - max : typing___Optional[builtin___int] = None, + min : typing.Optional[builtins.int] = ..., + max : typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min"]) -> None: ... -type___ValueCount = ValueCount + def HasField(self, field_name: typing_extensions.Literal[u"max",b"max",u"min",b"min"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max",b"max",u"min",b"min"]) -> None: ... +global___ValueCount = ValueCount -class WeightedFeature(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - lifecycle_stage: type___LifecycleStageValue = ... +class WeightedFeature(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + FEATURE_FIELD_NUMBER: builtins.int + WEIGHT_FEATURE_FIELD_NUMBER: builtins.int + LIFECYCLE_STAGE_FIELD_NUMBER: builtins.int + name: typing.Text = ... + lifecycle_stage: global___LifecycleStage.V = ... @property - def feature(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... + def feature(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... @property - def weight_feature(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... + def weight_feature(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - feature : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, - weight_feature : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, - lifecycle_stage : typing___Optional[type___LifecycleStageValue] = None, + name : typing.Optional[typing.Text] = ..., + feature : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., + weight_feature : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., + lifecycle_stage : typing.Optional[global___LifecycleStage.V] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"feature",b"feature",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"weight_feature",b"weight_feature"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"feature",b"feature",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"weight_feature",b"weight_feature"]) -> None: ... -type___WeightedFeature = WeightedFeature + def HasField(self, field_name: typing_extensions.Literal[u"feature",b"feature",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"weight_feature",b"weight_feature"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"feature",b"feature",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"weight_feature",b"weight_feature"]) -> None: ... +global___WeightedFeature = WeightedFeature -class SparseFeature(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class IndexFeature(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... +class SparseFeature(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class IndexFeature(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + name: typing.Text = ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, + name : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... - type___IndexFeature = IndexFeature + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... - class ValueFeature(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... + class ValueFeature(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + name: typing.Text = ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, + name : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... - type___ValueFeature = ValueFeature + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... - name: typing___Text = ... - deprecated: builtin___bool = ... - lifecycle_stage: type___LifecycleStageValue = ... - is_sorted: builtin___bool = ... - type: type___FeatureTypeValue = ... + NAME_FIELD_NUMBER: builtins.int + DEPRECATED_FIELD_NUMBER: builtins.int + LIFECYCLE_STAGE_FIELD_NUMBER: builtins.int + PRESENCE_FIELD_NUMBER: builtins.int + DENSE_SHAPE_FIELD_NUMBER: builtins.int + INDEX_FEATURE_FIELD_NUMBER: builtins.int + IS_SORTED_FIELD_NUMBER: builtins.int + VALUE_FEATURE_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + name: typing.Text = ... + deprecated: builtins.bool = ... + lifecycle_stage: global___LifecycleStage.V = ... + is_sorted: builtins.bool = ... + type: global___FeatureType.V = ... @property - def presence(self) -> type___FeaturePresence: ... + def presence(self) -> global___FeaturePresence: ... @property - def dense_shape(self) -> type___FixedShape: ... + def dense_shape(self) -> global___FixedShape: ... @property - def index_feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SparseFeature.IndexFeature]: ... + def index_feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SparseFeature.IndexFeature]: ... @property - def value_feature(self) -> type___SparseFeature.ValueFeature: ... + def value_feature(self) -> global___SparseFeature.ValueFeature: ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - deprecated : typing___Optional[builtin___bool] = None, - lifecycle_stage : typing___Optional[type___LifecycleStageValue] = None, - presence : typing___Optional[type___FeaturePresence] = None, - dense_shape : typing___Optional[type___FixedShape] = None, - index_feature : typing___Optional[typing___Iterable[type___SparseFeature.IndexFeature]] = None, - is_sorted : typing___Optional[builtin___bool] = None, - value_feature : typing___Optional[type___SparseFeature.ValueFeature] = None, - type : typing___Optional[type___FeatureTypeValue] = None, + name : typing.Optional[typing.Text] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + lifecycle_stage : typing.Optional[global___LifecycleStage.V] = ..., + presence : typing.Optional[global___FeaturePresence] = ..., + dense_shape : typing.Optional[global___FixedShape] = ..., + index_feature : typing.Optional[typing.Iterable[global___SparseFeature.IndexFeature]] = ..., + is_sorted : typing.Optional[builtins.bool] = ..., + value_feature : typing.Optional[global___SparseFeature.ValueFeature] = ..., + type : typing.Optional[global___FeatureType.V] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"dense_shape",b"dense_shape",u"deprecated",b"deprecated",u"is_sorted",b"is_sorted",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"presence",b"presence",u"type",b"type",u"value_feature",b"value_feature"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"dense_shape",b"dense_shape",u"deprecated",b"deprecated",u"index_feature",b"index_feature",u"is_sorted",b"is_sorted",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"presence",b"presence",u"type",b"type",u"value_feature",b"value_feature"]) -> None: ... -type___SparseFeature = SparseFeature + def HasField(self, field_name: typing_extensions.Literal[u"dense_shape",b"dense_shape",u"deprecated",b"deprecated",u"is_sorted",b"is_sorted",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"presence",b"presence",u"type",b"type",u"value_feature",b"value_feature"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"dense_shape",b"dense_shape",u"deprecated",b"deprecated",u"index_feature",b"index_feature",u"is_sorted",b"is_sorted",u"lifecycle_stage",b"lifecycle_stage",u"name",b"name",u"presence",b"presence",u"type",b"type",u"value_feature",b"value_feature"]) -> None: ... +global___SparseFeature = SparseFeature -class DistributionConstraints(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - min_domain_mass: builtin___float = ... +class DistributionConstraints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MIN_DOMAIN_MASS_FIELD_NUMBER: builtins.int + min_domain_mass: builtins.float = ... def __init__(self, *, - min_domain_mass : typing___Optional[builtin___float] = None, + min_domain_mass : typing.Optional[builtins.float] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"min_domain_mass",b"min_domain_mass"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"min_domain_mass",b"min_domain_mass"]) -> None: ... -type___DistributionConstraints = DistributionConstraints - -class IntDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - min: builtin___int = ... - max: builtin___int = ... - is_categorical: builtin___bool = ... + def HasField(self, field_name: typing_extensions.Literal[u"min_domain_mass",b"min_domain_mass"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"min_domain_mass",b"min_domain_mass"]) -> None: ... +global___DistributionConstraints = DistributionConstraints + +class IntDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + MIN_FIELD_NUMBER: builtins.int + MAX_FIELD_NUMBER: builtins.int + IS_CATEGORICAL_FIELD_NUMBER: builtins.int + name: typing.Text = ... + min: builtins.int = ... + max: builtins.int = ... + is_categorical: builtins.bool = ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - min : typing___Optional[builtin___int] = None, - max : typing___Optional[builtin___int] = None, - is_categorical : typing___Optional[builtin___bool] = None, + name : typing.Optional[typing.Text] = ..., + min : typing.Optional[builtins.int] = ..., + max : typing.Optional[builtins.int] = ..., + is_categorical : typing.Optional[builtins.bool] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"is_categorical",b"is_categorical",u"max",b"max",u"min",b"min",u"name",b"name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"is_categorical",b"is_categorical",u"max",b"max",u"min",b"min",u"name",b"name"]) -> None: ... -type___IntDomain = IntDomain - -class FloatDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - min: builtin___float = ... - max: builtin___float = ... + def HasField(self, field_name: typing_extensions.Literal[u"is_categorical",b"is_categorical",u"max",b"max",u"min",b"min",u"name",b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"is_categorical",b"is_categorical",u"max",b"max",u"min",b"min",u"name",b"name"]) -> None: ... +global___IntDomain = IntDomain + +class FloatDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + MIN_FIELD_NUMBER: builtins.int + MAX_FIELD_NUMBER: builtins.int + name: typing.Text = ... + min: builtins.float = ... + max: builtins.float = ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - min : typing___Optional[builtin___float] = None, - max : typing___Optional[builtin___float] = None, + name : typing.Optional[typing.Text] = ..., + min : typing.Optional[builtins.float] = ..., + max : typing.Optional[builtins.float] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min",u"name",b"name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min",u"name",b"name"]) -> None: ... -type___FloatDomain = FloatDomain + def HasField(self, field_name: typing_extensions.Literal[u"max",b"max",u"min",b"min",u"name",b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max",b"max",u"min",b"min",u"name",b"name"]) -> None: ... +global___FloatDomain = FloatDomain -class StructDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class StructDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FEATURE_FIELD_NUMBER: builtins.int + SPARSE_FEATURE_FIELD_NUMBER: builtins.int @property - def feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Feature]: ... + def feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Feature]: ... @property - def sparse_feature(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SparseFeature]: ... + def sparse_feature(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SparseFeature]: ... def __init__(self, *, - feature : typing___Optional[typing___Iterable[type___Feature]] = None, - sparse_feature : typing___Optional[typing___Iterable[type___SparseFeature]] = None, + feature : typing.Optional[typing.Iterable[global___Feature]] = ..., + sparse_feature : typing.Optional[typing.Iterable[global___SparseFeature]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"feature",b"feature",u"sparse_feature",b"sparse_feature"]) -> None: ... -type___StructDomain = StructDomain + def ClearField(self, field_name: typing_extensions.Literal[u"feature",b"feature",u"sparse_feature",b"sparse_feature"]) -> None: ... +global___StructDomain = StructDomain -class StringDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... +class StringDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + name: typing.Text = ... + value: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - value : typing___Optional[typing___Iterable[typing___Text]] = None, + name : typing.Optional[typing.Text] = ..., + value : typing.Optional[typing.Iterable[typing.Text]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"value",b"value"]) -> None: ... -type___StringDomain = StringDomain - -class BoolDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - true_value: typing___Text = ... - false_value: typing___Text = ... + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"value",b"value"]) -> None: ... +global___StringDomain = StringDomain + +class BoolDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + TRUE_VALUE_FIELD_NUMBER: builtins.int + FALSE_VALUE_FIELD_NUMBER: builtins.int + name: typing.Text = ... + true_value: typing.Text = ... + false_value: typing.Text = ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - true_value : typing___Optional[typing___Text] = None, - false_value : typing___Optional[typing___Text] = None, + name : typing.Optional[typing.Text] = ..., + true_value : typing.Optional[typing.Text] = ..., + false_value : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"false_value",b"false_value",u"name",b"name",u"true_value",b"true_value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"false_value",b"false_value",u"name",b"name",u"true_value",b"true_value"]) -> None: ... -type___BoolDomain = BoolDomain + def HasField(self, field_name: typing_extensions.Literal[u"false_value",b"false_value",u"name",b"name",u"true_value",b"true_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"false_value",b"false_value",u"name",b"name",u"true_value",b"true_value"]) -> None: ... +global___BoolDomain = BoolDomain -class NaturalLanguageDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class NaturalLanguageDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... def __init__(self, ) -> None: ... -type___NaturalLanguageDomain = NaturalLanguageDomain +global___NaturalLanguageDomain = NaturalLanguageDomain -class ImageDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class ImageDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... def __init__(self, ) -> None: ... -type___ImageDomain = ImageDomain +global___ImageDomain = ImageDomain -class MIDDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class MIDDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... def __init__(self, ) -> None: ... -type___MIDDomain = MIDDomain +global___MIDDomain = MIDDomain -class URLDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class URLDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... def __init__(self, ) -> None: ... -type___URLDomain = URLDomain - -class TimeDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - IntegerTimeFormatValue = typing___NewType('IntegerTimeFormatValue', builtin___int) - type___IntegerTimeFormatValue = IntegerTimeFormatValue - IntegerTimeFormat: _IntegerTimeFormat - class _IntegerTimeFormat(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[TimeDomain.IntegerTimeFormatValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - FORMAT_UNKNOWN = typing___cast(TimeDomain.IntegerTimeFormatValue, 0) - UNIX_DAYS = typing___cast(TimeDomain.IntegerTimeFormatValue, 5) - UNIX_SECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 1) - UNIX_MILLISECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 2) - UNIX_MICROSECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 3) - UNIX_NANOSECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 4) - FORMAT_UNKNOWN = typing___cast(TimeDomain.IntegerTimeFormatValue, 0) - UNIX_DAYS = typing___cast(TimeDomain.IntegerTimeFormatValue, 5) - UNIX_SECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 1) - UNIX_MILLISECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 2) - UNIX_MICROSECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 3) - UNIX_NANOSECONDS = typing___cast(TimeDomain.IntegerTimeFormatValue, 4) - - string_format: typing___Text = ... - integer_format: type___TimeDomain.IntegerTimeFormatValue = ... +global___URLDomain = URLDomain + +class TimeDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class _IntegerTimeFormat(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[IntegerTimeFormat.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + FORMAT_UNKNOWN = TimeDomain.IntegerTimeFormat.V(0) + UNIX_DAYS = TimeDomain.IntegerTimeFormat.V(5) + UNIX_SECONDS = TimeDomain.IntegerTimeFormat.V(1) + UNIX_MILLISECONDS = TimeDomain.IntegerTimeFormat.V(2) + UNIX_MICROSECONDS = TimeDomain.IntegerTimeFormat.V(3) + UNIX_NANOSECONDS = TimeDomain.IntegerTimeFormat.V(4) + class IntegerTimeFormat(metaclass=_IntegerTimeFormat): + V = typing.NewType('V', builtins.int) + FORMAT_UNKNOWN = TimeDomain.IntegerTimeFormat.V(0) + UNIX_DAYS = TimeDomain.IntegerTimeFormat.V(5) + UNIX_SECONDS = TimeDomain.IntegerTimeFormat.V(1) + UNIX_MILLISECONDS = TimeDomain.IntegerTimeFormat.V(2) + UNIX_MICROSECONDS = TimeDomain.IntegerTimeFormat.V(3) + UNIX_NANOSECONDS = TimeDomain.IntegerTimeFormat.V(4) + + STRING_FORMAT_FIELD_NUMBER: builtins.int + INTEGER_FORMAT_FIELD_NUMBER: builtins.int + string_format: typing.Text = ... + integer_format: global___TimeDomain.IntegerTimeFormat.V = ... def __init__(self, *, - string_format : typing___Optional[typing___Text] = None, - integer_format : typing___Optional[type___TimeDomain.IntegerTimeFormatValue] = None, + string_format : typing.Optional[typing.Text] = ..., + integer_format : typing.Optional[global___TimeDomain.IntegerTimeFormat.V] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"format",b"format"]) -> typing_extensions___Literal["string_format","integer_format"]: ... -type___TimeDomain = TimeDomain - -class TimeOfDayDomain(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - IntegerTimeOfDayFormatValue = typing___NewType('IntegerTimeOfDayFormatValue', builtin___int) - type___IntegerTimeOfDayFormatValue = IntegerTimeOfDayFormatValue - IntegerTimeOfDayFormat: _IntegerTimeOfDayFormat - class _IntegerTimeOfDayFormat(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[TimeOfDayDomain.IntegerTimeOfDayFormatValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - FORMAT_UNKNOWN = typing___cast(TimeOfDayDomain.IntegerTimeOfDayFormatValue, 0) - PACKED_64_NANOS = typing___cast(TimeOfDayDomain.IntegerTimeOfDayFormatValue, 1) - FORMAT_UNKNOWN = typing___cast(TimeOfDayDomain.IntegerTimeOfDayFormatValue, 0) - PACKED_64_NANOS = typing___cast(TimeOfDayDomain.IntegerTimeOfDayFormatValue, 1) - - string_format: typing___Text = ... - integer_format: type___TimeOfDayDomain.IntegerTimeOfDayFormatValue = ... + def HasField(self, field_name: typing_extensions.Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"format",b"format"]) -> typing_extensions.Literal["string_format","integer_format"]: ... +global___TimeDomain = TimeDomain + +class TimeOfDayDomain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class _IntegerTimeOfDayFormat(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[IntegerTimeOfDayFormat.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + FORMAT_UNKNOWN = TimeOfDayDomain.IntegerTimeOfDayFormat.V(0) + PACKED_64_NANOS = TimeOfDayDomain.IntegerTimeOfDayFormat.V(1) + class IntegerTimeOfDayFormat(metaclass=_IntegerTimeOfDayFormat): + V = typing.NewType('V', builtins.int) + FORMAT_UNKNOWN = TimeOfDayDomain.IntegerTimeOfDayFormat.V(0) + PACKED_64_NANOS = TimeOfDayDomain.IntegerTimeOfDayFormat.V(1) + + STRING_FORMAT_FIELD_NUMBER: builtins.int + INTEGER_FORMAT_FIELD_NUMBER: builtins.int + string_format: typing.Text = ... + integer_format: global___TimeOfDayDomain.IntegerTimeOfDayFormat.V = ... def __init__(self, *, - string_format : typing___Optional[typing___Text] = None, - integer_format : typing___Optional[type___TimeOfDayDomain.IntegerTimeOfDayFormatValue] = None, + string_format : typing.Optional[typing.Text] = ..., + integer_format : typing.Optional[global___TimeOfDayDomain.IntegerTimeOfDayFormat.V] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"format",b"format"]) -> typing_extensions___Literal["string_format","integer_format"]: ... -type___TimeOfDayDomain = TimeOfDayDomain - -class FeaturePresence(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - min_fraction: builtin___float = ... - min_count: builtin___int = ... + def HasField(self, field_name: typing_extensions.Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"format",b"format",u"integer_format",b"integer_format",u"string_format",b"string_format"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"format",b"format"]) -> typing_extensions.Literal["string_format","integer_format"]: ... +global___TimeOfDayDomain = TimeOfDayDomain + +class FeaturePresence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MIN_FRACTION_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + min_fraction: builtins.float = ... + min_count: builtins.int = ... def __init__(self, *, - min_fraction : typing___Optional[builtin___float] = None, - min_count : typing___Optional[builtin___int] = None, + min_fraction : typing.Optional[builtins.float] = ..., + min_count : typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"min_count",b"min_count",u"min_fraction",b"min_fraction"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"min_count",b"min_count",u"min_fraction",b"min_fraction"]) -> None: ... -type___FeaturePresence = FeaturePresence + def HasField(self, field_name: typing_extensions.Literal[u"min_count",b"min_count",u"min_fraction",b"min_fraction"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"min_count",b"min_count",u"min_fraction",b"min_fraction"]) -> None: ... +global___FeaturePresence = FeaturePresence -class FeaturePresenceWithinGroup(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - required: builtin___bool = ... +class FeaturePresenceWithinGroup(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUIRED_FIELD_NUMBER: builtins.int + required: builtins.bool = ... def __init__(self, *, - required : typing___Optional[builtin___bool] = None, + required : typing.Optional[builtins.bool] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"required",b"required"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"required",b"required"]) -> None: ... -type___FeaturePresenceWithinGroup = FeaturePresenceWithinGroup + def HasField(self, field_name: typing_extensions.Literal[u"required",b"required"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"required",b"required"]) -> None: ... +global___FeaturePresenceWithinGroup = FeaturePresenceWithinGroup -class InfinityNorm(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - threshold: builtin___float = ... +class InfinityNorm(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + THRESHOLD_FIELD_NUMBER: builtins.int + threshold: builtins.float = ... def __init__(self, *, - threshold : typing___Optional[builtin___float] = None, + threshold : typing.Optional[builtins.float] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"threshold",b"threshold"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"threshold",b"threshold"]) -> None: ... -type___InfinityNorm = InfinityNorm + def HasField(self, field_name: typing_extensions.Literal[u"threshold",b"threshold"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"threshold",b"threshold"]) -> None: ... +global___InfinityNorm = InfinityNorm -class FeatureComparator(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class FeatureComparator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INFINITY_NORM_FIELD_NUMBER: builtins.int @property - def infinity_norm(self) -> type___InfinityNorm: ... + def infinity_norm(self) -> global___InfinityNorm: ... def __init__(self, *, - infinity_norm : typing___Optional[type___InfinityNorm] = None, + infinity_norm : typing.Optional[global___InfinityNorm] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"infinity_norm",b"infinity_norm"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"infinity_norm",b"infinity_norm"]) -> None: ... -type___FeatureComparator = FeatureComparator - -class TensorRepresentation(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class DefaultValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - float_value: builtin___float = ... - int_value: builtin___int = ... - bytes_value: builtin___bytes = ... - uint_value: builtin___int = ... + def HasField(self, field_name: typing_extensions.Literal[u"infinity_norm",b"infinity_norm"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"infinity_norm",b"infinity_norm"]) -> None: ... +global___FeatureComparator = FeatureComparator + +class TensorRepresentation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class DefaultValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FLOAT_VALUE_FIELD_NUMBER: builtins.int + INT_VALUE_FIELD_NUMBER: builtins.int + BYTES_VALUE_FIELD_NUMBER: builtins.int + UINT_VALUE_FIELD_NUMBER: builtins.int + float_value: builtins.float = ... + int_value: builtins.int = ... + bytes_value: builtins.bytes = ... + uint_value: builtins.int = ... def __init__(self, *, - float_value : typing___Optional[builtin___float] = None, - int_value : typing___Optional[builtin___int] = None, - bytes_value : typing___Optional[builtin___bytes] = None, - uint_value : typing___Optional[builtin___int] = None, + float_value : typing.Optional[builtins.float] = ..., + int_value : typing.Optional[builtins.int] = ..., + bytes_value : typing.Optional[builtins.bytes] = ..., + uint_value : typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"bytes_value",b"bytes_value",u"float_value",b"float_value",u"int_value",b"int_value",u"kind",b"kind",u"uint_value",b"uint_value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"bytes_value",b"bytes_value",u"float_value",b"float_value",u"int_value",b"int_value",u"kind",b"kind",u"uint_value",b"uint_value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"kind",b"kind"]) -> typing_extensions___Literal["float_value","int_value","bytes_value","uint_value"]: ... - type___DefaultValue = DefaultValue + def HasField(self, field_name: typing_extensions.Literal[u"bytes_value",b"bytes_value",u"float_value",b"float_value",u"int_value",b"int_value",u"kind",b"kind",u"uint_value",b"uint_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bytes_value",b"bytes_value",u"float_value",b"float_value",u"int_value",b"int_value",u"kind",b"kind",u"uint_value",b"uint_value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"kind",b"kind"]) -> typing_extensions.Literal["float_value","int_value","bytes_value","uint_value"]: ... - class DenseTensor(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - column_name: typing___Text = ... + class DenseTensor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COLUMN_NAME_FIELD_NUMBER: builtins.int + SHAPE_FIELD_NUMBER: builtins.int + DEFAULT_VALUE_FIELD_NUMBER: builtins.int + column_name: typing.Text = ... @property - def shape(self) -> type___FixedShape: ... + def shape(self) -> global___FixedShape: ... @property - def default_value(self) -> type___TensorRepresentation.DefaultValue: ... + def default_value(self) -> global___TensorRepresentation.DefaultValue: ... def __init__(self, *, - column_name : typing___Optional[typing___Text] = None, - shape : typing___Optional[type___FixedShape] = None, - default_value : typing___Optional[type___TensorRepresentation.DefaultValue] = None, + column_name : typing.Optional[typing.Text] = ..., + shape : typing.Optional[global___FixedShape] = ..., + default_value : typing.Optional[global___TensorRepresentation.DefaultValue] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"column_name",b"column_name",u"default_value",b"default_value",u"shape",b"shape"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"column_name",b"column_name",u"default_value",b"default_value",u"shape",b"shape"]) -> None: ... - type___DenseTensor = DenseTensor + def HasField(self, field_name: typing_extensions.Literal[u"column_name",b"column_name",u"default_value",b"default_value",u"shape",b"shape"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"column_name",b"column_name",u"default_value",b"default_value",u"shape",b"shape"]) -> None: ... - class VarLenSparseTensor(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - column_name: typing___Text = ... + class VarLenSparseTensor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COLUMN_NAME_FIELD_NUMBER: builtins.int + column_name: typing.Text = ... def __init__(self, *, - column_name : typing___Optional[typing___Text] = None, + column_name : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"column_name",b"column_name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"column_name",b"column_name"]) -> None: ... - type___VarLenSparseTensor = VarLenSparseTensor + def HasField(self, field_name: typing_extensions.Literal[u"column_name",b"column_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"column_name",b"column_name"]) -> None: ... - class SparseTensor(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - index_column_names: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - value_column_name: typing___Text = ... + class SparseTensor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENSE_SHAPE_FIELD_NUMBER: builtins.int + INDEX_COLUMN_NAMES_FIELD_NUMBER: builtins.int + VALUE_COLUMN_NAME_FIELD_NUMBER: builtins.int + index_column_names: google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text] = ... + value_column_name: typing.Text = ... @property - def dense_shape(self) -> type___FixedShape: ... + def dense_shape(self) -> global___FixedShape: ... def __init__(self, *, - dense_shape : typing___Optional[type___FixedShape] = None, - index_column_names : typing___Optional[typing___Iterable[typing___Text]] = None, - value_column_name : typing___Optional[typing___Text] = None, + dense_shape : typing.Optional[global___FixedShape] = ..., + index_column_names : typing.Optional[typing.Iterable[typing.Text]] = ..., + value_column_name : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"dense_shape",b"dense_shape",u"value_column_name",b"value_column_name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"dense_shape",b"dense_shape",u"index_column_names",b"index_column_names",u"value_column_name",b"value_column_name"]) -> None: ... - type___SparseTensor = SparseTensor + def HasField(self, field_name: typing_extensions.Literal[u"dense_shape",b"dense_shape",u"value_column_name",b"value_column_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"dense_shape",b"dense_shape",u"index_column_names",b"index_column_names",u"value_column_name",b"value_column_name"]) -> None: ... + DENSE_TENSOR_FIELD_NUMBER: builtins.int + VARLEN_SPARSE_TENSOR_FIELD_NUMBER: builtins.int + SPARSE_TENSOR_FIELD_NUMBER: builtins.int @property - def dense_tensor(self) -> type___TensorRepresentation.DenseTensor: ... + def dense_tensor(self) -> global___TensorRepresentation.DenseTensor: ... @property - def varlen_sparse_tensor(self) -> type___TensorRepresentation.VarLenSparseTensor: ... + def varlen_sparse_tensor(self) -> global___TensorRepresentation.VarLenSparseTensor: ... @property - def sparse_tensor(self) -> type___TensorRepresentation.SparseTensor: ... + def sparse_tensor(self) -> global___TensorRepresentation.SparseTensor: ... def __init__(self, *, - dense_tensor : typing___Optional[type___TensorRepresentation.DenseTensor] = None, - varlen_sparse_tensor : typing___Optional[type___TensorRepresentation.VarLenSparseTensor] = None, - sparse_tensor : typing___Optional[type___TensorRepresentation.SparseTensor] = None, + dense_tensor : typing.Optional[global___TensorRepresentation.DenseTensor] = ..., + varlen_sparse_tensor : typing.Optional[global___TensorRepresentation.VarLenSparseTensor] = ..., + sparse_tensor : typing.Optional[global___TensorRepresentation.SparseTensor] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"dense_tensor",b"dense_tensor",u"kind",b"kind",u"sparse_tensor",b"sparse_tensor",u"varlen_sparse_tensor",b"varlen_sparse_tensor"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"dense_tensor",b"dense_tensor",u"kind",b"kind",u"sparse_tensor",b"sparse_tensor",u"varlen_sparse_tensor",b"varlen_sparse_tensor"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"kind",b"kind"]) -> typing_extensions___Literal["dense_tensor","varlen_sparse_tensor","sparse_tensor"]: ... -type___TensorRepresentation = TensorRepresentation - -class TensorRepresentationGroup(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class TensorRepresentationEntry(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key: typing___Text = ... + def HasField(self, field_name: typing_extensions.Literal[u"dense_tensor",b"dense_tensor",u"kind",b"kind",u"sparse_tensor",b"sparse_tensor",u"varlen_sparse_tensor",b"varlen_sparse_tensor"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"dense_tensor",b"dense_tensor",u"kind",b"kind",u"sparse_tensor",b"sparse_tensor",u"varlen_sparse_tensor",b"varlen_sparse_tensor"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"kind",b"kind"]) -> typing_extensions.Literal["dense_tensor","varlen_sparse_tensor","sparse_tensor"]: ... +global___TensorRepresentation = TensorRepresentation + +class TensorRepresentationGroup(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class TensorRepresentationEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... @property - def value(self) -> type___TensorRepresentation: ... + def value(self) -> global___TensorRepresentation: ... def __init__(self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[type___TensorRepresentation] = None, + key : typing.Optional[typing.Text] = ..., + value : typing.Optional[global___TensorRepresentation] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - type___TensorRepresentationEntry = TensorRepresentationEntry + def HasField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... + TENSOR_REPRESENTATION_FIELD_NUMBER: builtins.int @property - def tensor_representation(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___TensorRepresentation]: ... + def tensor_representation(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___TensorRepresentation]: ... def __init__(self, *, - tensor_representation : typing___Optional[typing___Mapping[typing___Text, type___TensorRepresentation]] = None, + tensor_representation : typing.Optional[typing.Mapping[typing.Text, global___TensorRepresentation]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"tensor_representation",b"tensor_representation"]) -> None: ... -type___TensorRepresentationGroup = TensorRepresentationGroup + def ClearField(self, field_name: typing_extensions.Literal[u"tensor_representation",b"tensor_representation"]) -> None: ... +global___TensorRepresentationGroup = TensorRepresentationGroup diff --git a/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py b/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py index d8e12bd120..21473adc75 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py +++ b/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_metadata/proto/v0/statistics.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 diff --git a/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.pyi b/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.pyi index e2e3923bf0..40eadae745 100644 --- a/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.pyi +++ b/sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.pyi @@ -2,592 +2,653 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import tensorflow_metadata.proto.v0.path_pb2 +import typing +import typing_extensions -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... -from google.protobuf.internal.enum_type_wrapper import ( - _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from tensorflow_metadata.proto.v0.path_pb2 import ( - Path as tensorflow_metadata___proto___v0___path_pb2___Path, -) - -from typing import ( - Iterable as typing___Iterable, - NewType as typing___NewType, - Optional as typing___Optional, - Text as typing___Text, - cast as typing___cast, - overload as typing___overload, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class DatasetFeatureStatisticsList(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class DatasetFeatureStatisticsList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATASETS_FIELD_NUMBER: builtins.int @property - def datasets(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DatasetFeatureStatistics]: ... + def datasets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DatasetFeatureStatistics]: ... def __init__(self, *, - datasets : typing___Optional[typing___Iterable[type___DatasetFeatureStatistics]] = None, + datasets : typing.Optional[typing.Iterable[global___DatasetFeatureStatistics]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"datasets",b"datasets"]) -> None: ... -type___DatasetFeatureStatisticsList = DatasetFeatureStatisticsList + def ClearField(self, field_name: typing_extensions.Literal[u"datasets",b"datasets"]) -> None: ... +global___DatasetFeatureStatisticsList = DatasetFeatureStatisticsList -class DatasetFeatureStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - num_examples: builtin___int = ... - weighted_num_examples: builtin___float = ... +class DatasetFeatureStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + NUM_EXAMPLES_FIELD_NUMBER: builtins.int + WEIGHTED_NUM_EXAMPLES_FIELD_NUMBER: builtins.int + FEATURES_FIELD_NUMBER: builtins.int + CROSS_FEATURES_FIELD_NUMBER: builtins.int + name: typing.Text = ... + num_examples: builtins.int = ... + weighted_num_examples: builtins.float = ... @property - def features(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FeatureNameStatistics]: ... + def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureNameStatistics]: ... @property - def cross_features(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___CrossFeatureStatistics]: ... + def cross_features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CrossFeatureStatistics]: ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - num_examples : typing___Optional[builtin___int] = None, - weighted_num_examples : typing___Optional[builtin___float] = None, - features : typing___Optional[typing___Iterable[type___FeatureNameStatistics]] = None, - cross_features : typing___Optional[typing___Iterable[type___CrossFeatureStatistics]] = None, + name : typing.Text = ..., + num_examples : builtins.int = ..., + weighted_num_examples : builtins.float = ..., + features : typing.Optional[typing.Iterable[global___FeatureNameStatistics]] = ..., + cross_features : typing.Optional[typing.Iterable[global___CrossFeatureStatistics]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"cross_features",b"cross_features",u"features",b"features",u"name",b"name",u"num_examples",b"num_examples",u"weighted_num_examples",b"weighted_num_examples"]) -> None: ... -type___DatasetFeatureStatistics = DatasetFeatureStatistics + def ClearField(self, field_name: typing_extensions.Literal[u"cross_features",b"cross_features",u"features",b"features",u"name",b"name",u"num_examples",b"num_examples",u"weighted_num_examples",b"weighted_num_examples"]) -> None: ... +global___DatasetFeatureStatistics = DatasetFeatureStatistics -class CrossFeatureStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - count: builtin___int = ... +class CrossFeatureStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_X_FIELD_NUMBER: builtins.int + PATH_Y_FIELD_NUMBER: builtins.int + COUNT_FIELD_NUMBER: builtins.int + NUM_CROSS_STATS_FIELD_NUMBER: builtins.int + CATEGORICAL_CROSS_STATS_FIELD_NUMBER: builtins.int + count: builtins.int = ... @property - def path_x(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... + def path_x(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... @property - def path_y(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... + def path_y(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... @property - def num_cross_stats(self) -> type___NumericCrossStatistics: ... + def num_cross_stats(self) -> global___NumericCrossStatistics: ... @property - def categorical_cross_stats(self) -> type___CategoricalCrossStatistics: ... + def categorical_cross_stats(self) -> global___CategoricalCrossStatistics: ... def __init__(self, *, - path_x : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, - path_y : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, - count : typing___Optional[builtin___int] = None, - num_cross_stats : typing___Optional[type___NumericCrossStatistics] = None, - categorical_cross_stats : typing___Optional[type___CategoricalCrossStatistics] = None, + path_x : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., + path_y : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., + count : builtins.int = ..., + num_cross_stats : typing.Optional[global___NumericCrossStatistics] = ..., + categorical_cross_stats : typing.Optional[global___CategoricalCrossStatistics] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"categorical_cross_stats",b"categorical_cross_stats",u"cross_stats",b"cross_stats",u"num_cross_stats",b"num_cross_stats",u"path_x",b"path_x",u"path_y",b"path_y"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"categorical_cross_stats",b"categorical_cross_stats",u"count",b"count",u"cross_stats",b"cross_stats",u"num_cross_stats",b"num_cross_stats",u"path_x",b"path_x",u"path_y",b"path_y"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"cross_stats",b"cross_stats"]) -> typing_extensions___Literal["num_cross_stats","categorical_cross_stats"]: ... -type___CrossFeatureStatistics = CrossFeatureStatistics - -class NumericCrossStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - correlation: builtin___float = ... - covariance: builtin___float = ... + def HasField(self, field_name: typing_extensions.Literal[u"categorical_cross_stats",b"categorical_cross_stats",u"cross_stats",b"cross_stats",u"num_cross_stats",b"num_cross_stats",u"path_x",b"path_x",u"path_y",b"path_y"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"categorical_cross_stats",b"categorical_cross_stats",u"count",b"count",u"cross_stats",b"cross_stats",u"num_cross_stats",b"num_cross_stats",u"path_x",b"path_x",u"path_y",b"path_y"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"cross_stats",b"cross_stats"]) -> typing_extensions.Literal["num_cross_stats","categorical_cross_stats"]: ... +global___CrossFeatureStatistics = CrossFeatureStatistics + +class NumericCrossStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CORRELATION_FIELD_NUMBER: builtins.int + COVARIANCE_FIELD_NUMBER: builtins.int + correlation: builtins.float = ... + covariance: builtins.float = ... def __init__(self, *, - correlation : typing___Optional[builtin___float] = None, - covariance : typing___Optional[builtin___float] = None, + correlation : builtins.float = ..., + covariance : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"correlation",b"correlation",u"covariance",b"covariance"]) -> None: ... -type___NumericCrossStatistics = NumericCrossStatistics + def ClearField(self, field_name: typing_extensions.Literal[u"correlation",b"correlation",u"covariance",b"covariance"]) -> None: ... +global___NumericCrossStatistics = NumericCrossStatistics -class CategoricalCrossStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class CategoricalCrossStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LIFT_FIELD_NUMBER: builtins.int @property - def lift(self) -> type___LiftStatistics: ... + def lift(self) -> global___LiftStatistics: ... def __init__(self, *, - lift : typing___Optional[type___LiftStatistics] = None, + lift : typing.Optional[global___LiftStatistics] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"lift",b"lift"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"lift",b"lift"]) -> None: ... -type___CategoricalCrossStatistics = CategoricalCrossStatistics + def HasField(self, field_name: typing_extensions.Literal[u"lift",b"lift"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"lift",b"lift"]) -> None: ... +global___CategoricalCrossStatistics = CategoricalCrossStatistics -class LiftStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class LiftStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LIFT_SERIES_FIELD_NUMBER: builtins.int + WEIGHTED_LIFT_SERIES_FIELD_NUMBER: builtins.int @property - def lift_series(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___LiftSeries]: ... + def lift_series(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LiftSeries]: ... @property - def weighted_lift_series(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___LiftSeries]: ... + def weighted_lift_series(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LiftSeries]: ... def __init__(self, *, - lift_series : typing___Optional[typing___Iterable[type___LiftSeries]] = None, - weighted_lift_series : typing___Optional[typing___Iterable[type___LiftSeries]] = None, + lift_series : typing.Optional[typing.Iterable[global___LiftSeries]] = ..., + weighted_lift_series : typing.Optional[typing.Iterable[global___LiftSeries]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"lift_series",b"lift_series",u"weighted_lift_series",b"weighted_lift_series"]) -> None: ... -type___LiftStatistics = LiftStatistics - -class LiftSeries(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Bucket(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - low_value: builtin___float = ... - high_value: builtin___float = ... + def ClearField(self, field_name: typing_extensions.Literal[u"lift_series",b"lift_series",u"weighted_lift_series",b"weighted_lift_series"]) -> None: ... +global___LiftStatistics = LiftStatistics + +class LiftSeries(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Bucket(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LOW_VALUE_FIELD_NUMBER: builtins.int + HIGH_VALUE_FIELD_NUMBER: builtins.int + low_value: builtins.float = ... + high_value: builtins.float = ... def __init__(self, *, - low_value : typing___Optional[builtin___float] = None, - high_value : typing___Optional[builtin___float] = None, + low_value : builtins.float = ..., + high_value : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"high_value",b"high_value",u"low_value",b"low_value"]) -> None: ... - type___Bucket = Bucket - - class LiftValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - x_int: builtin___int = ... - x_string: typing___Text = ... - lift: builtin___float = ... - x_count: builtin___int = ... - weighted_x_count: builtin___float = ... - x_and_y_count: builtin___int = ... - weighted_x_and_y_count: builtin___float = ... + def ClearField(self, field_name: typing_extensions.Literal[u"high_value",b"high_value",u"low_value",b"low_value"]) -> None: ... + + class LiftValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + X_INT_FIELD_NUMBER: builtins.int + X_STRING_FIELD_NUMBER: builtins.int + LIFT_FIELD_NUMBER: builtins.int + X_COUNT_FIELD_NUMBER: builtins.int + WEIGHTED_X_COUNT_FIELD_NUMBER: builtins.int + X_AND_Y_COUNT_FIELD_NUMBER: builtins.int + WEIGHTED_X_AND_Y_COUNT_FIELD_NUMBER: builtins.int + x_int: builtins.int = ... + x_string: typing.Text = ... + lift: builtins.float = ... + x_count: builtins.int = ... + weighted_x_count: builtins.float = ... + x_and_y_count: builtins.int = ... + weighted_x_and_y_count: builtins.float = ... def __init__(self, *, - x_int : typing___Optional[builtin___int] = None, - x_string : typing___Optional[typing___Text] = None, - lift : typing___Optional[builtin___float] = None, - x_count : typing___Optional[builtin___int] = None, - weighted_x_count : typing___Optional[builtin___float] = None, - x_and_y_count : typing___Optional[builtin___int] = None, - weighted_x_and_y_count : typing___Optional[builtin___float] = None, + x_int : builtins.int = ..., + x_string : typing.Text = ..., + lift : builtins.float = ..., + x_count : builtins.int = ..., + weighted_x_count : builtins.float = ..., + x_and_y_count : builtins.int = ..., + weighted_x_and_y_count : builtins.float = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"weighted_x_and_y_count",b"weighted_x_and_y_count",u"weighted_x_count",b"weighted_x_count",u"x_and_y_count",b"x_and_y_count",u"x_and_y_count_value",b"x_and_y_count_value",u"x_count",b"x_count",u"x_count_value",b"x_count_value",u"x_int",b"x_int",u"x_string",b"x_string",u"x_value",b"x_value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"lift",b"lift",u"weighted_x_and_y_count",b"weighted_x_and_y_count",u"weighted_x_count",b"weighted_x_count",u"x_and_y_count",b"x_and_y_count",u"x_and_y_count_value",b"x_and_y_count_value",u"x_count",b"x_count",u"x_count_value",b"x_count_value",u"x_int",b"x_int",u"x_string",b"x_string",u"x_value",b"x_value"]) -> None: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"x_and_y_count_value",b"x_and_y_count_value"]) -> typing_extensions___Literal["x_and_y_count","weighted_x_and_y_count"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"x_count_value",b"x_count_value"]) -> typing_extensions___Literal["x_count","weighted_x_count"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"x_value",b"x_value"]) -> typing_extensions___Literal["x_int","x_string"]: ... - type___LiftValue = LiftValue + def HasField(self, field_name: typing_extensions.Literal[u"weighted_x_and_y_count",b"weighted_x_and_y_count",u"weighted_x_count",b"weighted_x_count",u"x_and_y_count",b"x_and_y_count",u"x_and_y_count_value",b"x_and_y_count_value",u"x_count",b"x_count",u"x_count_value",b"x_count_value",u"x_int",b"x_int",u"x_string",b"x_string",u"x_value",b"x_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"lift",b"lift",u"weighted_x_and_y_count",b"weighted_x_and_y_count",u"weighted_x_count",b"weighted_x_count",u"x_and_y_count",b"x_and_y_count",u"x_and_y_count_value",b"x_and_y_count_value",u"x_count",b"x_count",u"x_count_value",b"x_count_value",u"x_int",b"x_int",u"x_string",b"x_string",u"x_value",b"x_value"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"x_and_y_count_value",b"x_and_y_count_value"]) -> typing_extensions.Literal["x_and_y_count","weighted_x_and_y_count"]: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"x_count_value",b"x_count_value"]) -> typing_extensions.Literal["x_count","weighted_x_count"]: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"x_value",b"x_value"]) -> typing_extensions.Literal["x_int","x_string"]: ... - y_int: builtin___int = ... - y_string: typing___Text = ... - y_count: builtin___int = ... - weighted_y_count: builtin___float = ... + Y_INT_FIELD_NUMBER: builtins.int + Y_STRING_FIELD_NUMBER: builtins.int + Y_BUCKET_FIELD_NUMBER: builtins.int + Y_COUNT_FIELD_NUMBER: builtins.int + WEIGHTED_Y_COUNT_FIELD_NUMBER: builtins.int + LIFT_VALUES_FIELD_NUMBER: builtins.int + y_int: builtins.int = ... + y_string: typing.Text = ... + y_count: builtins.int = ... + weighted_y_count: builtins.float = ... @property - def y_bucket(self) -> type___LiftSeries.Bucket: ... + def y_bucket(self) -> global___LiftSeries.Bucket: ... @property - def lift_values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___LiftSeries.LiftValue]: ... + def lift_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LiftSeries.LiftValue]: ... def __init__(self, *, - y_int : typing___Optional[builtin___int] = None, - y_string : typing___Optional[typing___Text] = None, - y_bucket : typing___Optional[type___LiftSeries.Bucket] = None, - y_count : typing___Optional[builtin___int] = None, - weighted_y_count : typing___Optional[builtin___float] = None, - lift_values : typing___Optional[typing___Iterable[type___LiftSeries.LiftValue]] = None, + y_int : builtins.int = ..., + y_string : typing.Text = ..., + y_bucket : typing.Optional[global___LiftSeries.Bucket] = ..., + y_count : builtins.int = ..., + weighted_y_count : builtins.float = ..., + lift_values : typing.Optional[typing.Iterable[global___LiftSeries.LiftValue]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"weighted_y_count",b"weighted_y_count",u"y_bucket",b"y_bucket",u"y_count",b"y_count",u"y_count_value",b"y_count_value",u"y_int",b"y_int",u"y_string",b"y_string",u"y_value",b"y_value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"lift_values",b"lift_values",u"weighted_y_count",b"weighted_y_count",u"y_bucket",b"y_bucket",u"y_count",b"y_count",u"y_count_value",b"y_count_value",u"y_int",b"y_int",u"y_string",b"y_string",u"y_value",b"y_value"]) -> None: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"y_count_value",b"y_count_value"]) -> typing_extensions___Literal["y_count","weighted_y_count"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"y_value",b"y_value"]) -> typing_extensions___Literal["y_int","y_string","y_bucket"]: ... -type___LiftSeries = LiftSeries + def HasField(self, field_name: typing_extensions.Literal[u"weighted_y_count",b"weighted_y_count",u"y_bucket",b"y_bucket",u"y_count",b"y_count",u"y_count_value",b"y_count_value",u"y_int",b"y_int",u"y_string",b"y_string",u"y_value",b"y_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"lift_values",b"lift_values",u"weighted_y_count",b"weighted_y_count",u"y_bucket",b"y_bucket",u"y_count",b"y_count",u"y_count_value",b"y_count_value",u"y_int",b"y_int",u"y_string",b"y_string",u"y_value",b"y_value"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"y_count_value",b"y_count_value"]) -> typing_extensions.Literal["y_count","weighted_y_count"]: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"y_value",b"y_value"]) -> typing_extensions.Literal["y_int","y_string","y_bucket"]: ... +global___LiftSeries = LiftSeries -class FeatureNameStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - TypeValue = typing___NewType('TypeValue', builtin___int) - type___TypeValue = TypeValue - Type: _Type - class _Type(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FeatureNameStatistics.TypeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - INT = typing___cast(FeatureNameStatistics.TypeValue, 0) - FLOAT = typing___cast(FeatureNameStatistics.TypeValue, 1) - STRING = typing___cast(FeatureNameStatistics.TypeValue, 2) - BYTES = typing___cast(FeatureNameStatistics.TypeValue, 3) - STRUCT = typing___cast(FeatureNameStatistics.TypeValue, 4) - INT = typing___cast(FeatureNameStatistics.TypeValue, 0) - FLOAT = typing___cast(FeatureNameStatistics.TypeValue, 1) - STRING = typing___cast(FeatureNameStatistics.TypeValue, 2) - BYTES = typing___cast(FeatureNameStatistics.TypeValue, 3) - STRUCT = typing___cast(FeatureNameStatistics.TypeValue, 4) +class FeatureNameStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class _Type(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Type.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + INT = FeatureNameStatistics.Type.V(0) + FLOAT = FeatureNameStatistics.Type.V(1) + STRING = FeatureNameStatistics.Type.V(2) + BYTES = FeatureNameStatistics.Type.V(3) + STRUCT = FeatureNameStatistics.Type.V(4) + class Type(metaclass=_Type): + V = typing.NewType('V', builtins.int) + INT = FeatureNameStatistics.Type.V(0) + FLOAT = FeatureNameStatistics.Type.V(1) + STRING = FeatureNameStatistics.Type.V(2) + BYTES = FeatureNameStatistics.Type.V(3) + STRUCT = FeatureNameStatistics.Type.V(4) - name: typing___Text = ... - type: type___FeatureNameStatistics.TypeValue = ... + NAME_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + NUM_STATS_FIELD_NUMBER: builtins.int + STRING_STATS_FIELD_NUMBER: builtins.int + BYTES_STATS_FIELD_NUMBER: builtins.int + STRUCT_STATS_FIELD_NUMBER: builtins.int + CUSTOM_STATS_FIELD_NUMBER: builtins.int + name: typing.Text = ... + type: global___FeatureNameStatistics.Type.V = ... @property - def path(self) -> tensorflow_metadata___proto___v0___path_pb2___Path: ... + def path(self) -> tensorflow_metadata.proto.v0.path_pb2.Path: ... @property - def num_stats(self) -> type___NumericStatistics: ... + def num_stats(self) -> global___NumericStatistics: ... @property - def string_stats(self) -> type___StringStatistics: ... + def string_stats(self) -> global___StringStatistics: ... @property - def bytes_stats(self) -> type___BytesStatistics: ... + def bytes_stats(self) -> global___BytesStatistics: ... @property - def struct_stats(self) -> type___StructStatistics: ... + def struct_stats(self) -> global___StructStatistics: ... @property - def custom_stats(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___CustomStatistic]: ... + def custom_stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CustomStatistic]: ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - path : typing___Optional[tensorflow_metadata___proto___v0___path_pb2___Path] = None, - type : typing___Optional[type___FeatureNameStatistics.TypeValue] = None, - num_stats : typing___Optional[type___NumericStatistics] = None, - string_stats : typing___Optional[type___StringStatistics] = None, - bytes_stats : typing___Optional[type___BytesStatistics] = None, - struct_stats : typing___Optional[type___StructStatistics] = None, - custom_stats : typing___Optional[typing___Iterable[type___CustomStatistic]] = None, + name : typing.Text = ..., + path : typing.Optional[tensorflow_metadata.proto.v0.path_pb2.Path] = ..., + type : global___FeatureNameStatistics.Type.V = ..., + num_stats : typing.Optional[global___NumericStatistics] = ..., + string_stats : typing.Optional[global___StringStatistics] = ..., + bytes_stats : typing.Optional[global___BytesStatistics] = ..., + struct_stats : typing.Optional[global___StructStatistics] = ..., + custom_stats : typing.Optional[typing.Iterable[global___CustomStatistic]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"bytes_stats",b"bytes_stats",u"field_id",b"field_id",u"name",b"name",u"num_stats",b"num_stats",u"path",b"path",u"stats",b"stats",u"string_stats",b"string_stats",u"struct_stats",b"struct_stats"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"bytes_stats",b"bytes_stats",u"custom_stats",b"custom_stats",u"field_id",b"field_id",u"name",b"name",u"num_stats",b"num_stats",u"path",b"path",u"stats",b"stats",u"string_stats",b"string_stats",u"struct_stats",b"struct_stats",u"type",b"type"]) -> None: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"field_id",b"field_id"]) -> typing_extensions___Literal["name","path"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"stats",b"stats"]) -> typing_extensions___Literal["num_stats","string_stats","bytes_stats","struct_stats"]: ... -type___FeatureNameStatistics = FeatureNameStatistics - -class WeightedCommonStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - num_non_missing: builtin___float = ... - num_missing: builtin___float = ... - avg_num_values: builtin___float = ... - tot_num_values: builtin___float = ... + def HasField(self, field_name: typing_extensions.Literal[u"bytes_stats",b"bytes_stats",u"field_id",b"field_id",u"name",b"name",u"num_stats",b"num_stats",u"path",b"path",u"stats",b"stats",u"string_stats",b"string_stats",u"struct_stats",b"struct_stats"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bytes_stats",b"bytes_stats",u"custom_stats",b"custom_stats",u"field_id",b"field_id",u"name",b"name",u"num_stats",b"num_stats",u"path",b"path",u"stats",b"stats",u"string_stats",b"string_stats",u"struct_stats",b"struct_stats",u"type",b"type"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"field_id",b"field_id"]) -> typing_extensions.Literal["name","path"]: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"stats",b"stats"]) -> typing_extensions.Literal["num_stats","string_stats","bytes_stats","struct_stats"]: ... +global___FeatureNameStatistics = FeatureNameStatistics + +class WeightedCommonStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NUM_NON_MISSING_FIELD_NUMBER: builtins.int + NUM_MISSING_FIELD_NUMBER: builtins.int + AVG_NUM_VALUES_FIELD_NUMBER: builtins.int + TOT_NUM_VALUES_FIELD_NUMBER: builtins.int + num_non_missing: builtins.float = ... + num_missing: builtins.float = ... + avg_num_values: builtins.float = ... + tot_num_values: builtins.float = ... def __init__(self, *, - num_non_missing : typing___Optional[builtin___float] = None, - num_missing : typing___Optional[builtin___float] = None, - avg_num_values : typing___Optional[builtin___float] = None, - tot_num_values : typing___Optional[builtin___float] = None, + num_non_missing : builtins.float = ..., + num_missing : builtins.float = ..., + avg_num_values : builtins.float = ..., + tot_num_values : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"avg_num_values",b"avg_num_values",u"num_missing",b"num_missing",u"num_non_missing",b"num_non_missing",u"tot_num_values",b"tot_num_values"]) -> None: ... -type___WeightedCommonStatistics = WeightedCommonStatistics + def ClearField(self, field_name: typing_extensions.Literal[u"avg_num_values",b"avg_num_values",u"num_missing",b"num_missing",u"num_non_missing",b"num_non_missing",u"tot_num_values",b"tot_num_values"]) -> None: ... +global___WeightedCommonStatistics = WeightedCommonStatistics -class CustomStatistic(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - num: builtin___float = ... - str: typing___Text = ... +class CustomStatistic(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + NUM_FIELD_NUMBER: builtins.int + STR_FIELD_NUMBER: builtins.int + HISTOGRAM_FIELD_NUMBER: builtins.int + RANK_HISTOGRAM_FIELD_NUMBER: builtins.int + name: typing.Text = ... + num: builtins.float = ... + str: typing.Text = ... @property - def histogram(self) -> type___Histogram: ... + def histogram(self) -> global___Histogram: ... @property - def rank_histogram(self) -> type___RankHistogram: ... + def rank_histogram(self) -> global___RankHistogram: ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - num : typing___Optional[builtin___float] = None, - str : typing___Optional[typing___Text] = None, - histogram : typing___Optional[type___Histogram] = None, - rank_histogram : typing___Optional[type___RankHistogram] = None, + name : typing.Text = ..., + num : builtins.float = ..., + str : typing.Text = ..., + histogram : typing.Optional[global___Histogram] = ..., + rank_histogram : typing.Optional[global___RankHistogram] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"histogram",b"histogram",u"num",b"num",u"rank_histogram",b"rank_histogram",u"str",b"str",u"val",b"val"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"histogram",b"histogram",u"name",b"name",u"num",b"num",u"rank_histogram",b"rank_histogram",u"str",b"str",u"val",b"val"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"val",b"val"]) -> typing_extensions___Literal["num","str","histogram","rank_histogram"]: ... -type___CustomStatistic = CustomStatistic + def HasField(self, field_name: typing_extensions.Literal[u"histogram",b"histogram",u"num",b"num",u"rank_histogram",b"rank_histogram",u"str",b"str",u"val",b"val"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"histogram",b"histogram",u"name",b"name",u"num",b"num",u"rank_histogram",b"rank_histogram",u"str",b"str",u"val",b"val"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"val",b"val"]) -> typing_extensions.Literal["num","str","histogram","rank_histogram"]: ... +global___CustomStatistic = CustomStatistic -class NumericStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - mean: builtin___float = ... - std_dev: builtin___float = ... - num_zeros: builtin___int = ... - min: builtin___float = ... - median: builtin___float = ... - max: builtin___float = ... +class NumericStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMON_STATS_FIELD_NUMBER: builtins.int + MEAN_FIELD_NUMBER: builtins.int + STD_DEV_FIELD_NUMBER: builtins.int + NUM_ZEROS_FIELD_NUMBER: builtins.int + MIN_FIELD_NUMBER: builtins.int + MEDIAN_FIELD_NUMBER: builtins.int + MAX_FIELD_NUMBER: builtins.int + HISTOGRAMS_FIELD_NUMBER: builtins.int + WEIGHTED_NUMERIC_STATS_FIELD_NUMBER: builtins.int + mean: builtins.float = ... + std_dev: builtins.float = ... + num_zeros: builtins.int = ... + min: builtins.float = ... + median: builtins.float = ... + max: builtins.float = ... @property - def common_stats(self) -> type___CommonStatistics: ... + def common_stats(self) -> global___CommonStatistics: ... @property - def histograms(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Histogram]: ... + def histograms(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Histogram]: ... @property - def weighted_numeric_stats(self) -> type___WeightedNumericStatistics: ... + def weighted_numeric_stats(self) -> global___WeightedNumericStatistics: ... def __init__(self, *, - common_stats : typing___Optional[type___CommonStatistics] = None, - mean : typing___Optional[builtin___float] = None, - std_dev : typing___Optional[builtin___float] = None, - num_zeros : typing___Optional[builtin___int] = None, - min : typing___Optional[builtin___float] = None, - median : typing___Optional[builtin___float] = None, - max : typing___Optional[builtin___float] = None, - histograms : typing___Optional[typing___Iterable[type___Histogram]] = None, - weighted_numeric_stats : typing___Optional[type___WeightedNumericStatistics] = None, + common_stats : typing.Optional[global___CommonStatistics] = ..., + mean : builtins.float = ..., + std_dev : builtins.float = ..., + num_zeros : builtins.int = ..., + min : builtins.float = ..., + median : builtins.float = ..., + max : builtins.float = ..., + histograms : typing.Optional[typing.Iterable[global___Histogram]] = ..., + weighted_numeric_stats : typing.Optional[global___WeightedNumericStatistics] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats",u"weighted_numeric_stats",b"weighted_numeric_stats"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats",u"histograms",b"histograms",u"max",b"max",u"mean",b"mean",u"median",b"median",u"min",b"min",u"num_zeros",b"num_zeros",u"std_dev",b"std_dev",u"weighted_numeric_stats",b"weighted_numeric_stats"]) -> None: ... -type___NumericStatistics = NumericStatistics - -class StringStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class FreqAndValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: typing___Text = ... - frequency: builtin___float = ... + def HasField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats",u"weighted_numeric_stats",b"weighted_numeric_stats"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats",u"histograms",b"histograms",u"max",b"max",u"mean",b"mean",u"median",b"median",u"min",b"min",u"num_zeros",b"num_zeros",u"std_dev",b"std_dev",u"weighted_numeric_stats",b"weighted_numeric_stats"]) -> None: ... +global___NumericStatistics = NumericStatistics + +class StringStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class FreqAndValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + FREQUENCY_FIELD_NUMBER: builtins.int + value: typing.Text = ... + frequency: builtins.float = ... def __init__(self, *, - value : typing___Optional[typing___Text] = None, - frequency : typing___Optional[builtin___float] = None, + value : typing.Text = ..., + frequency : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"frequency",b"frequency",u"value",b"value"]) -> None: ... - type___FreqAndValue = FreqAndValue + def ClearField(self, field_name: typing_extensions.Literal[u"frequency",b"frequency",u"value",b"value"]) -> None: ... - unique: builtin___int = ... - avg_length: builtin___float = ... - vocabulary_file: typing___Text = ... + COMMON_STATS_FIELD_NUMBER: builtins.int + UNIQUE_FIELD_NUMBER: builtins.int + TOP_VALUES_FIELD_NUMBER: builtins.int + AVG_LENGTH_FIELD_NUMBER: builtins.int + RANK_HISTOGRAM_FIELD_NUMBER: builtins.int + WEIGHTED_STRING_STATS_FIELD_NUMBER: builtins.int + VOCABULARY_FILE_FIELD_NUMBER: builtins.int + unique: builtins.int = ... + avg_length: builtins.float = ... + vocabulary_file: typing.Text = ... @property - def common_stats(self) -> type___CommonStatistics: ... + def common_stats(self) -> global___CommonStatistics: ... @property - def top_values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___StringStatistics.FreqAndValue]: ... + def top_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringStatistics.FreqAndValue]: ... @property - def rank_histogram(self) -> type___RankHistogram: ... + def rank_histogram(self) -> global___RankHistogram: ... @property - def weighted_string_stats(self) -> type___WeightedStringStatistics: ... + def weighted_string_stats(self) -> global___WeightedStringStatistics: ... def __init__(self, *, - common_stats : typing___Optional[type___CommonStatistics] = None, - unique : typing___Optional[builtin___int] = None, - top_values : typing___Optional[typing___Iterable[type___StringStatistics.FreqAndValue]] = None, - avg_length : typing___Optional[builtin___float] = None, - rank_histogram : typing___Optional[type___RankHistogram] = None, - weighted_string_stats : typing___Optional[type___WeightedStringStatistics] = None, - vocabulary_file : typing___Optional[typing___Text] = None, + common_stats : typing.Optional[global___CommonStatistics] = ..., + unique : builtins.int = ..., + top_values : typing.Optional[typing.Iterable[global___StringStatistics.FreqAndValue]] = ..., + avg_length : builtins.float = ..., + rank_histogram : typing.Optional[global___RankHistogram] = ..., + weighted_string_stats : typing.Optional[global___WeightedStringStatistics] = ..., + vocabulary_file : typing.Text = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats",u"rank_histogram",b"rank_histogram",u"weighted_string_stats",b"weighted_string_stats"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"avg_length",b"avg_length",u"common_stats",b"common_stats",u"rank_histogram",b"rank_histogram",u"top_values",b"top_values",u"unique",b"unique",u"vocabulary_file",b"vocabulary_file",u"weighted_string_stats",b"weighted_string_stats"]) -> None: ... -type___StringStatistics = StringStatistics + def HasField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats",u"rank_histogram",b"rank_histogram",u"weighted_string_stats",b"weighted_string_stats"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"avg_length",b"avg_length",u"common_stats",b"common_stats",u"rank_histogram",b"rank_histogram",u"top_values",b"top_values",u"unique",b"unique",u"vocabulary_file",b"vocabulary_file",u"weighted_string_stats",b"weighted_string_stats"]) -> None: ... +global___StringStatistics = StringStatistics -class WeightedNumericStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - mean: builtin___float = ... - std_dev: builtin___float = ... - median: builtin___float = ... +class WeightedNumericStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MEAN_FIELD_NUMBER: builtins.int + STD_DEV_FIELD_NUMBER: builtins.int + MEDIAN_FIELD_NUMBER: builtins.int + HISTOGRAMS_FIELD_NUMBER: builtins.int + mean: builtins.float = ... + std_dev: builtins.float = ... + median: builtins.float = ... @property - def histograms(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Histogram]: ... + def histograms(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Histogram]: ... def __init__(self, *, - mean : typing___Optional[builtin___float] = None, - std_dev : typing___Optional[builtin___float] = None, - median : typing___Optional[builtin___float] = None, - histograms : typing___Optional[typing___Iterable[type___Histogram]] = None, + mean : builtins.float = ..., + std_dev : builtins.float = ..., + median : builtins.float = ..., + histograms : typing.Optional[typing.Iterable[global___Histogram]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"histograms",b"histograms",u"mean",b"mean",u"median",b"median",u"std_dev",b"std_dev"]) -> None: ... -type___WeightedNumericStatistics = WeightedNumericStatistics + def ClearField(self, field_name: typing_extensions.Literal[u"histograms",b"histograms",u"mean",b"mean",u"median",b"median",u"std_dev",b"std_dev"]) -> None: ... +global___WeightedNumericStatistics = WeightedNumericStatistics -class WeightedStringStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class WeightedStringStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TOP_VALUES_FIELD_NUMBER: builtins.int + RANK_HISTOGRAM_FIELD_NUMBER: builtins.int @property - def top_values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___StringStatistics.FreqAndValue]: ... + def top_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringStatistics.FreqAndValue]: ... @property - def rank_histogram(self) -> type___RankHistogram: ... + def rank_histogram(self) -> global___RankHistogram: ... def __init__(self, *, - top_values : typing___Optional[typing___Iterable[type___StringStatistics.FreqAndValue]] = None, - rank_histogram : typing___Optional[type___RankHistogram] = None, + top_values : typing.Optional[typing.Iterable[global___StringStatistics.FreqAndValue]] = ..., + rank_histogram : typing.Optional[global___RankHistogram] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"rank_histogram",b"rank_histogram"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"rank_histogram",b"rank_histogram",u"top_values",b"top_values"]) -> None: ... -type___WeightedStringStatistics = WeightedStringStatistics + def HasField(self, field_name: typing_extensions.Literal[u"rank_histogram",b"rank_histogram"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rank_histogram",b"rank_histogram",u"top_values",b"top_values"]) -> None: ... +global___WeightedStringStatistics = WeightedStringStatistics -class BytesStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - unique: builtin___int = ... - avg_num_bytes: builtin___float = ... - min_num_bytes: builtin___float = ... - max_num_bytes: builtin___float = ... +class BytesStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMON_STATS_FIELD_NUMBER: builtins.int + UNIQUE_FIELD_NUMBER: builtins.int + AVG_NUM_BYTES_FIELD_NUMBER: builtins.int + MIN_NUM_BYTES_FIELD_NUMBER: builtins.int + MAX_NUM_BYTES_FIELD_NUMBER: builtins.int + unique: builtins.int = ... + avg_num_bytes: builtins.float = ... + min_num_bytes: builtins.float = ... + max_num_bytes: builtins.float = ... @property - def common_stats(self) -> type___CommonStatistics: ... + def common_stats(self) -> global___CommonStatistics: ... def __init__(self, *, - common_stats : typing___Optional[type___CommonStatistics] = None, - unique : typing___Optional[builtin___int] = None, - avg_num_bytes : typing___Optional[builtin___float] = None, - min_num_bytes : typing___Optional[builtin___float] = None, - max_num_bytes : typing___Optional[builtin___float] = None, + common_stats : typing.Optional[global___CommonStatistics] = ..., + unique : builtins.int = ..., + avg_num_bytes : builtins.float = ..., + min_num_bytes : builtins.float = ..., + max_num_bytes : builtins.float = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"avg_num_bytes",b"avg_num_bytes",u"common_stats",b"common_stats",u"max_num_bytes",b"max_num_bytes",u"min_num_bytes",b"min_num_bytes",u"unique",b"unique"]) -> None: ... -type___BytesStatistics = BytesStatistics + def HasField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"avg_num_bytes",b"avg_num_bytes",u"common_stats",b"common_stats",u"max_num_bytes",b"max_num_bytes",u"min_num_bytes",b"min_num_bytes",u"unique",b"unique"]) -> None: ... +global___BytesStatistics = BytesStatistics -class StructStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class StructStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMON_STATS_FIELD_NUMBER: builtins.int @property - def common_stats(self) -> type___CommonStatistics: ... + def common_stats(self) -> global___CommonStatistics: ... def __init__(self, *, - common_stats : typing___Optional[type___CommonStatistics] = None, + common_stats : typing.Optional[global___CommonStatistics] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"common_stats",b"common_stats"]) -> None: ... -type___StructStatistics = StructStatistics + def HasField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"common_stats",b"common_stats"]) -> None: ... +global___StructStatistics = StructStatistics -class CommonStatistics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - num_non_missing: builtin___int = ... - num_missing: builtin___int = ... - min_num_values: builtin___int = ... - max_num_values: builtin___int = ... - avg_num_values: builtin___float = ... - tot_num_values: builtin___int = ... +class CommonStatistics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NUM_NON_MISSING_FIELD_NUMBER: builtins.int + NUM_MISSING_FIELD_NUMBER: builtins.int + MIN_NUM_VALUES_FIELD_NUMBER: builtins.int + MAX_NUM_VALUES_FIELD_NUMBER: builtins.int + AVG_NUM_VALUES_FIELD_NUMBER: builtins.int + TOT_NUM_VALUES_FIELD_NUMBER: builtins.int + NUM_VALUES_HISTOGRAM_FIELD_NUMBER: builtins.int + WEIGHTED_COMMON_STATS_FIELD_NUMBER: builtins.int + FEATURE_LIST_LENGTH_HISTOGRAM_FIELD_NUMBER: builtins.int + num_non_missing: builtins.int = ... + num_missing: builtins.int = ... + min_num_values: builtins.int = ... + max_num_values: builtins.int = ... + avg_num_values: builtins.float = ... + tot_num_values: builtins.int = ... @property - def num_values_histogram(self) -> type___Histogram: ... + def num_values_histogram(self) -> global___Histogram: ... @property - def weighted_common_stats(self) -> type___WeightedCommonStatistics: ... + def weighted_common_stats(self) -> global___WeightedCommonStatistics: ... @property - def feature_list_length_histogram(self) -> type___Histogram: ... + def feature_list_length_histogram(self) -> global___Histogram: ... def __init__(self, *, - num_non_missing : typing___Optional[builtin___int] = None, - num_missing : typing___Optional[builtin___int] = None, - min_num_values : typing___Optional[builtin___int] = None, - max_num_values : typing___Optional[builtin___int] = None, - avg_num_values : typing___Optional[builtin___float] = None, - tot_num_values : typing___Optional[builtin___int] = None, - num_values_histogram : typing___Optional[type___Histogram] = None, - weighted_common_stats : typing___Optional[type___WeightedCommonStatistics] = None, - feature_list_length_histogram : typing___Optional[type___Histogram] = None, + num_non_missing : builtins.int = ..., + num_missing : builtins.int = ..., + min_num_values : builtins.int = ..., + max_num_values : builtins.int = ..., + avg_num_values : builtins.float = ..., + tot_num_values : builtins.int = ..., + num_values_histogram : typing.Optional[global___Histogram] = ..., + weighted_common_stats : typing.Optional[global___WeightedCommonStatistics] = ..., + feature_list_length_histogram : typing.Optional[global___Histogram] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"feature_list_length_histogram",b"feature_list_length_histogram",u"num_values_histogram",b"num_values_histogram",u"weighted_common_stats",b"weighted_common_stats"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"avg_num_values",b"avg_num_values",u"feature_list_length_histogram",b"feature_list_length_histogram",u"max_num_values",b"max_num_values",u"min_num_values",b"min_num_values",u"num_missing",b"num_missing",u"num_non_missing",b"num_non_missing",u"num_values_histogram",b"num_values_histogram",u"tot_num_values",b"tot_num_values",u"weighted_common_stats",b"weighted_common_stats"]) -> None: ... -type___CommonStatistics = CommonStatistics - -class Histogram(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - HistogramTypeValue = typing___NewType('HistogramTypeValue', builtin___int) - type___HistogramTypeValue = HistogramTypeValue - HistogramType: _HistogramType - class _HistogramType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[Histogram.HistogramTypeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - STANDARD = typing___cast(Histogram.HistogramTypeValue, 0) - QUANTILES = typing___cast(Histogram.HistogramTypeValue, 1) - STANDARD = typing___cast(Histogram.HistogramTypeValue, 0) - QUANTILES = typing___cast(Histogram.HistogramTypeValue, 1) - - class Bucket(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - low_value: builtin___float = ... - high_value: builtin___float = ... - sample_count: builtin___float = ... + def HasField(self, field_name: typing_extensions.Literal[u"feature_list_length_histogram",b"feature_list_length_histogram",u"num_values_histogram",b"num_values_histogram",u"weighted_common_stats",b"weighted_common_stats"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"avg_num_values",b"avg_num_values",u"feature_list_length_histogram",b"feature_list_length_histogram",u"max_num_values",b"max_num_values",u"min_num_values",b"min_num_values",u"num_missing",b"num_missing",u"num_non_missing",b"num_non_missing",u"num_values_histogram",b"num_values_histogram",u"tot_num_values",b"tot_num_values",u"weighted_common_stats",b"weighted_common_stats"]) -> None: ... +global___CommonStatistics = CommonStatistics + +class Histogram(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class _HistogramType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[HistogramType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + STANDARD = Histogram.HistogramType.V(0) + QUANTILES = Histogram.HistogramType.V(1) + class HistogramType(metaclass=_HistogramType): + V = typing.NewType('V', builtins.int) + STANDARD = Histogram.HistogramType.V(0) + QUANTILES = Histogram.HistogramType.V(1) + + class Bucket(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LOW_VALUE_FIELD_NUMBER: builtins.int + HIGH_VALUE_FIELD_NUMBER: builtins.int + SAMPLE_COUNT_FIELD_NUMBER: builtins.int + low_value: builtins.float = ... + high_value: builtins.float = ... + sample_count: builtins.float = ... def __init__(self, *, - low_value : typing___Optional[builtin___float] = None, - high_value : typing___Optional[builtin___float] = None, - sample_count : typing___Optional[builtin___float] = None, + low_value : builtins.float = ..., + high_value : builtins.float = ..., + sample_count : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"high_value",b"high_value",u"low_value",b"low_value",u"sample_count",b"sample_count"]) -> None: ... - type___Bucket = Bucket + def ClearField(self, field_name: typing_extensions.Literal[u"high_value",b"high_value",u"low_value",b"low_value",u"sample_count",b"sample_count"]) -> None: ... - num_nan: builtin___int = ... - num_undefined: builtin___int = ... - type: type___Histogram.HistogramTypeValue = ... - name: typing___Text = ... + NUM_NAN_FIELD_NUMBER: builtins.int + NUM_UNDEFINED_FIELD_NUMBER: builtins.int + BUCKETS_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + num_nan: builtins.int = ... + num_undefined: builtins.int = ... + type: global___Histogram.HistogramType.V = ... + name: typing.Text = ... @property - def buckets(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Histogram.Bucket]: ... + def buckets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Histogram.Bucket]: ... def __init__(self, *, - num_nan : typing___Optional[builtin___int] = None, - num_undefined : typing___Optional[builtin___int] = None, - buckets : typing___Optional[typing___Iterable[type___Histogram.Bucket]] = None, - type : typing___Optional[type___Histogram.HistogramTypeValue] = None, - name : typing___Optional[typing___Text] = None, + num_nan : builtins.int = ..., + num_undefined : builtins.int = ..., + buckets : typing.Optional[typing.Iterable[global___Histogram.Bucket]] = ..., + type : global___Histogram.HistogramType.V = ..., + name : typing.Text = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"buckets",b"buckets",u"name",b"name",u"num_nan",b"num_nan",u"num_undefined",b"num_undefined",u"type",b"type"]) -> None: ... -type___Histogram = Histogram - -class RankHistogram(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Bucket(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - low_rank: builtin___int = ... - high_rank: builtin___int = ... - label: typing___Text = ... - sample_count: builtin___float = ... + def ClearField(self, field_name: typing_extensions.Literal[u"buckets",b"buckets",u"name",b"name",u"num_nan",b"num_nan",u"num_undefined",b"num_undefined",u"type",b"type"]) -> None: ... +global___Histogram = Histogram + +class RankHistogram(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Bucket(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LOW_RANK_FIELD_NUMBER: builtins.int + HIGH_RANK_FIELD_NUMBER: builtins.int + LABEL_FIELD_NUMBER: builtins.int + SAMPLE_COUNT_FIELD_NUMBER: builtins.int + low_rank: builtins.int = ... + high_rank: builtins.int = ... + label: typing.Text = ... + sample_count: builtins.float = ... def __init__(self, *, - low_rank : typing___Optional[builtin___int] = None, - high_rank : typing___Optional[builtin___int] = None, - label : typing___Optional[typing___Text] = None, - sample_count : typing___Optional[builtin___float] = None, + low_rank : builtins.int = ..., + high_rank : builtins.int = ..., + label : typing.Text = ..., + sample_count : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"high_rank",b"high_rank",u"label",b"label",u"low_rank",b"low_rank",u"sample_count",b"sample_count"]) -> None: ... - type___Bucket = Bucket + def ClearField(self, field_name: typing_extensions.Literal[u"high_rank",b"high_rank",u"label",b"label",u"low_rank",b"low_rank",u"sample_count",b"sample_count"]) -> None: ... - name: typing___Text = ... + BUCKETS_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + name: typing.Text = ... @property - def buckets(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___RankHistogram.Bucket]: ... + def buckets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RankHistogram.Bucket]: ... def __init__(self, *, - buckets : typing___Optional[typing___Iterable[type___RankHistogram.Bucket]] = None, - name : typing___Optional[typing___Text] = None, + buckets : typing.Optional[typing.Iterable[global___RankHistogram.Bucket]] = ..., + name : typing.Text = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"buckets",b"buckets",u"name",b"name"]) -> None: ... -type___RankHistogram = RankHistogram + def ClearField(self, field_name: typing_extensions.Literal[u"buckets",b"buckets",u"name",b"name"]) -> None: ... +global___RankHistogram = RankHistogram From b012a07f18efb945655f27cfed15ab2ea83f7c00 Mon Sep 17 00:00:00 2001 From: Pavel Borobov Date: Mon, 19 Apr 2021 17:07:19 -0700 Subject: [PATCH 5/5] remove debug messages --- sdk/python/feast/repo_config.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/python/feast/repo_config.py b/sdk/python/feast/repo_config.py index e5a5f7942d..47478077ae 100644 --- a/sdk/python/feast/repo_config.py +++ b/sdk/python/feast/repo_config.py @@ -120,7 +120,6 @@ def _validate_online_store_config(cls, values): elif online_store_type == "datastore": DatastoreOnlineStoreConfig(**values["online_store"]) elif online_store_type == "dynamo": - print("govno") DynamoOnlineStoreConfig(**values["online_store"]) else: raise ValidationError(