Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
distribution_pb2.pyi145 linesDownload Raw Back to api
1# Copyright 2025 Google LLC2#3# Licensed under the Apache License, Version 2.0 (the "License");4# you may not use this file except in compliance with the License.5# You may obtain a copy of the License at6#7#     http://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# distributed under the License is distributed on an "AS IS" BASIS,11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12# See the License for the specific language governing permissions and13# limitations under the License.14 15from typing import ClassVar as _ClassVar16from typing import Iterable as _Iterable17from typing import Mapping as _Mapping18from typing import Optional as _Optional19from typing import Union as _Union20 21from google.protobuf import any_pb2 as _any_pb222from google.protobuf import descriptor as _descriptor23from google.protobuf import message as _message24from google.protobuf import timestamp_pb2 as _timestamp_pb225from google.protobuf.internal import containers as _containers26 27DESCRIPTOR: _descriptor.FileDescriptor28 29class Distribution(_message.Message):30    __slots__ = (31        "count",32        "mean",33        "sum_of_squared_deviation",34        "range",35        "bucket_options",36        "bucket_counts",37        "exemplars",38    )39    class Range(_message.Message):40        __slots__ = ("min", "max")41        MIN_FIELD_NUMBER: _ClassVar[int]42        MAX_FIELD_NUMBER: _ClassVar[int]43        min: float44        max: float45        def __init__(46            self, min: _Optional[float] = ..., max: _Optional[float] = ...47        ) -> None: ...48 49    class BucketOptions(_message.Message):50        __slots__ = ("linear_buckets", "exponential_buckets", "explicit_buckets")51        class Linear(_message.Message):52            __slots__ = ("num_finite_buckets", "width", "offset")53            NUM_FINITE_BUCKETS_FIELD_NUMBER: _ClassVar[int]54            WIDTH_FIELD_NUMBER: _ClassVar[int]55            OFFSET_FIELD_NUMBER: _ClassVar[int]56            num_finite_buckets: int57            width: float58            offset: float59            def __init__(60                self,61                num_finite_buckets: _Optional[int] = ...,62                width: _Optional[float] = ...,63                offset: _Optional[float] = ...,64            ) -> None: ...65 66        class Exponential(_message.Message):67            __slots__ = ("num_finite_buckets", "growth_factor", "scale")68            NUM_FINITE_BUCKETS_FIELD_NUMBER: _ClassVar[int]69            GROWTH_FACTOR_FIELD_NUMBER: _ClassVar[int]70            SCALE_FIELD_NUMBER: _ClassVar[int]71            num_finite_buckets: int72            growth_factor: float73            scale: float74            def __init__(75                self,76                num_finite_buckets: _Optional[int] = ...,77                growth_factor: _Optional[float] = ...,78                scale: _Optional[float] = ...,79            ) -> None: ...80 81        class Explicit(_message.Message):82            __slots__ = ("bounds",)83            BOUNDS_FIELD_NUMBER: _ClassVar[int]84            bounds: _containers.RepeatedScalarFieldContainer[float]85            def __init__(self, bounds: _Optional[_Iterable[float]] = ...) -> None: ...86 87        LINEAR_BUCKETS_FIELD_NUMBER: _ClassVar[int]88        EXPONENTIAL_BUCKETS_FIELD_NUMBER: _ClassVar[int]89        EXPLICIT_BUCKETS_FIELD_NUMBER: _ClassVar[int]90        linear_buckets: Distribution.BucketOptions.Linear91        exponential_buckets: Distribution.BucketOptions.Exponential92        explicit_buckets: Distribution.BucketOptions.Explicit93        def __init__(94            self,95            linear_buckets: _Optional[96                _Union[Distribution.BucketOptions.Linear, _Mapping]97            ] = ...,98            exponential_buckets: _Optional[99                _Union[Distribution.BucketOptions.Exponential, _Mapping]100            ] = ...,101            explicit_buckets: _Optional[102                _Union[Distribution.BucketOptions.Explicit, _Mapping]103            ] = ...,104        ) -> None: ...105 106    class Exemplar(_message.Message):107        __slots__ = ("value", "timestamp", "attachments")108        VALUE_FIELD_NUMBER: _ClassVar[int]109        TIMESTAMP_FIELD_NUMBER: _ClassVar[int]110        ATTACHMENTS_FIELD_NUMBER: _ClassVar[int]111        value: float112        timestamp: _timestamp_pb2.Timestamp113        attachments: _containers.RepeatedCompositeFieldContainer[_any_pb2.Any]114        def __init__(115            self,116            value: _Optional[float] = ...,117            timestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...,118            attachments: _Optional[_Iterable[_Union[_any_pb2.Any, _Mapping]]] = ...,119        ) -> None: ...120 121    COUNT_FIELD_NUMBER: _ClassVar[int]122    MEAN_FIELD_NUMBER: _ClassVar[int]123    SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER: _ClassVar[int]124    RANGE_FIELD_NUMBER: _ClassVar[int]125    BUCKET_OPTIONS_FIELD_NUMBER: _ClassVar[int]126    BUCKET_COUNTS_FIELD_NUMBER: _ClassVar[int]127    EXEMPLARS_FIELD_NUMBER: _ClassVar[int]128    count: int129    mean: float130    sum_of_squared_deviation: float131    range: Distribution.Range132    bucket_options: Distribution.BucketOptions133    bucket_counts: _containers.RepeatedScalarFieldContainer[int]134    exemplars: _containers.RepeatedCompositeFieldContainer[Distribution.Exemplar]135    def __init__(136        self,137        count: _Optional[int] = ...,138        mean: _Optional[float] = ...,139        sum_of_squared_deviation: _Optional[float] = ...,140        range: _Optional[_Union[Distribution.Range, _Mapping]] = ...,141        bucket_options: _Optional[_Union[Distribution.BucketOptions, _Mapping]] = ...,142        bucket_counts: _Optional[_Iterable[int]] = ...,143        exemplars: _Optional[_Iterable[_Union[Distribution.Exemplar, _Mapping]]] = ...,144    ) -> None: ...145 
codekingpro/portable-devtools · Team Ai