| 1 |
# Copyright 2025 Google LLC |
| 2 |
# |
| 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 at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# 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 and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
from typing import ClassVar as _ClassVar |
| 16 |
from typing import Iterable as _Iterable |
| 17 |
from typing import Mapping as _Mapping |
| 18 |
from typing import Optional as _Optional |
| 19 |
from typing import Union as _Union |
| 20 |
|
| 21 |
from google.protobuf import any_pb2 as _any_pb2 |
| 22 |
from google.protobuf import descriptor as _descriptor |
| 23 |
from google.protobuf import descriptor_pb2 as _descriptor_pb2 |
| 24 |
from google.protobuf import duration_pb2 as _duration_pb2 |
| 25 |
from google.protobuf import empty_pb2 as _empty_pb2 |
| 26 |
from google.protobuf import message as _message |
| 27 |
from google.protobuf.internal import containers as _containers |
| 28 |
|
| 29 |
from google.api import annotations_pb2 as _annotations_pb2 |
| 30 |
from google.api import client_pb2 as _client_pb2 |
| 31 |
from google.rpc import status_pb2 as _status_pb2 |
| 32 |
|
| 33 |
DESCRIPTOR: _descriptor.FileDescriptor |
| 34 |
OPERATION_INFO_FIELD_NUMBER: _ClassVar[int] |
| 35 |
operation_info: _descriptor.FieldDescriptor |
| 36 |
|
| 37 |
class 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: str |
| 45 |
metadata: _any_pb2.Any |
| 46 |
done: bool |
| 47 |
error: _status_pb2.Status |
| 48 |
response: _any_pb2.Any |
| 49 |
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 |
|
| 58 |
class GetOperationRequest(_message.Message): |
| 59 |
__slots__ = ("name",) |
| 60 |
NAME_FIELD_NUMBER: _ClassVar[int] |
| 61 |
name: str |
| 62 |
def __init__(self, name: _Optional[str] = ...) -> None: ... |
| 63 |
|
| 64 |
class 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: str |
| 71 |
filter: str |
| 72 |
page_size: int |
| 73 |
page_token: str |
| 74 |
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 |
|
| 82 |
class 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: str |
| 88 |
def __init__( |
| 89 |
self, |
| 90 |
operations: _Optional[_Iterable[_Union[Operation, _Mapping]]] = ..., |
| 91 |
next_page_token: _Optional[str] = ..., |
| 92 |
) -> None: ... |
| 93 |
|
| 94 |
class CancelOperationRequest(_message.Message): |
| 95 |
__slots__ = ("name",) |
| 96 |
NAME_FIELD_NUMBER: _ClassVar[int] |
| 97 |
name: str |
| 98 |
def __init__(self, name: _Optional[str] = ...) -> None: ... |
| 99 |
|
| 100 |
class DeleteOperationRequest(_message.Message): |
| 101 |
__slots__ = ("name",) |
| 102 |
NAME_FIELD_NUMBER: _ClassVar[int] |
| 103 |
name: str |
| 104 |
def __init__(self, name: _Optional[str] = ...) -> None: ... |
| 105 |
|
| 106 |
class WaitOperationRequest(_message.Message): |
| 107 |
__slots__ = ("name", "timeout") |
| 108 |
NAME_FIELD_NUMBER: _ClassVar[int] |
| 109 |
TIMEOUT_FIELD_NUMBER: _ClassVar[int] |
| 110 |
name: str |
| 111 |
timeout: _duration_pb2.Duration |
| 112 |
def __init__( |
| 113 |
self, |
| 114 |
name: _Optional[str] = ..., |
| 115 |
timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., |
| 116 |
) -> None: ... |
| 117 |
|
| 118 |
class 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: str |
| 123 |
metadata_type: str |
| 124 |
def __init__( |
| 125 |
self, response_type: _Optional[str] = ..., metadata_type: _Optional[str] = ... |
| 126 |
) -> None: ... |