Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
operations_proto_pb2.pyi127 linesDownload Raw Back to longrunning
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 descriptor_pb2 as _descriptor_pb224from google.protobuf import duration_pb2 as _duration_pb225from google.protobuf import empty_pb2 as _empty_pb226from google.protobuf import message as _message27from google.protobuf.internal import containers as _containers28 29from google.api import annotations_pb2 as _annotations_pb230from google.api import client_pb2 as _client_pb231from google.rpc import status_pb2 as _status_pb232 33DESCRIPTOR: _descriptor.FileDescriptor34OPERATION_INFO_FIELD_NUMBER: _ClassVar[int]35operation_info: _descriptor.FieldDescriptor36 37class Operation(_message.Message):38    __slots__ = ("name", "metadata", "done", "error", "response")39    NAME_FIELD_NUMBER: _ClassVar[int]40    METADATA_FIELD_NUMBER: _ClassVar[int]41    DONE_FIELD_NUMBER: _ClassVar[int]42    ERROR_FIELD_NUMBER: _ClassVar[int]43    RESPONSE_FIELD_NUMBER: _ClassVar[int]44    name: str45    metadata: _any_pb2.Any46    done: bool47    error: _status_pb2.Status48    response: _any_pb2.Any49    def __init__(50        self,51        name: _Optional[str] = ...,52        metadata: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...,53        done: bool = ...,54        error: _Optional[_Union[_status_pb2.Status, _Mapping]] = ...,55        response: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...,56    ) -> None: ...57 58class GetOperationRequest(_message.Message):59    __slots__ = ("name",)60    NAME_FIELD_NUMBER: _ClassVar[int]61    name: str62    def __init__(self, name: _Optional[str] = ...) -> None: ...63 64class ListOperationsRequest(_message.Message):65    __slots__ = ("name", "filter", "page_size", "page_token")66    NAME_FIELD_NUMBER: _ClassVar[int]67    FILTER_FIELD_NUMBER: _ClassVar[int]68    PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]69    PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]70    name: str71    filter: str72    page_size: int73    page_token: str74    def __init__(75        self,76        name: _Optional[str] = ...,77        filter: _Optional[str] = ...,78        page_size: _Optional[int] = ...,79        page_token: _Optional[str] = ...,80    ) -> None: ...81 82class ListOperationsResponse(_message.Message):83    __slots__ = ("operations", "next_page_token")84    OPERATIONS_FIELD_NUMBER: _ClassVar[int]85    NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]86    operations: _containers.RepeatedCompositeFieldContainer[Operation]87    next_page_token: str88    def __init__(89        self,90        operations: _Optional[_Iterable[_Union[Operation, _Mapping]]] = ...,91        next_page_token: _Optional[str] = ...,92    ) -> None: ...93 94class CancelOperationRequest(_message.Message):95    __slots__ = ("name",)96    NAME_FIELD_NUMBER: _ClassVar[int]97    name: str98    def __init__(self, name: _Optional[str] = ...) -> None: ...99 100class DeleteOperationRequest(_message.Message):101    __slots__ = ("name",)102    NAME_FIELD_NUMBER: _ClassVar[int]103    name: str104    def __init__(self, name: _Optional[str] = ...) -> None: ...105 106class WaitOperationRequest(_message.Message):107    __slots__ = ("name", "timeout")108    NAME_FIELD_NUMBER: _ClassVar[int]109    TIMEOUT_FIELD_NUMBER: _ClassVar[int]110    name: str111    timeout: _duration_pb2.Duration112    def __init__(113        self,114        name: _Optional[str] = ...,115        timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...,116    ) -> None: ...117 118class OperationInfo(_message.Message):119    __slots__ = ("response_type", "metadata_type")120    RESPONSE_TYPE_FIELD_NUMBER: _ClassVar[int]121    METADATA_TYPE_FIELD_NUMBER: _ClassVar[int]122    response_type: str123    metadata_type: str124    def __init__(125        self, response_type: _Optional[str] = ..., metadata_type: _Optional[str] = ...126    ) -> None: ...127 
codekingpro/portable-devtools · Team Ai