Repository URL to install this package:
Version:
0.1.10 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
google
/
longrunning
/
operations_proto_pb2.pyi
|
---|
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import ClassVar as _ClassVar
from typing import Iterable as _Iterable
from typing import Mapping as _Mapping
from typing import Optional as _Optional
from typing import Union as _Union
from google.protobuf import any_pb2 as _any_pb2
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pb2 as _descriptor_pb2
from google.protobuf import duration_pb2 as _duration_pb2
from google.protobuf import empty_pb2 as _empty_pb2
from google.protobuf import message as _message
from google.protobuf.internal import containers as _containers
from google.api import annotations_pb2 as _annotations_pb2
from google.api import client_pb2 as _client_pb2
from google.rpc import status_pb2 as _status_pb2
DESCRIPTOR: _descriptor.FileDescriptor
OPERATION_INFO_FIELD_NUMBER: _ClassVar[int]
operation_info: _descriptor.FieldDescriptor
class Operation(_message.Message):
__slots__ = ("name", "metadata", "done", "error", "response")
NAME_FIELD_NUMBER: _ClassVar[int]
METADATA_FIELD_NUMBER: _ClassVar[int]
DONE_FIELD_NUMBER: _ClassVar[int]
ERROR_FIELD_NUMBER: _ClassVar[int]
RESPONSE_FIELD_NUMBER: _ClassVar[int]
name: str
metadata: _any_pb2.Any
done: bool
error: _status_pb2.Status
response: _any_pb2.Any
def __init__(
self,
name: _Optional[str] = ...,
metadata: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...,
done: bool = ...,
error: _Optional[_Union[_status_pb2.Status, _Mapping]] = ...,
response: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...,
) -> None: ...
class GetOperationRequest(_message.Message):
__slots__ = ("name",)
NAME_FIELD_NUMBER: _ClassVar[int]
name: str
def __init__(self, name: _Optional[str] = ...) -> None: ...
class ListOperationsRequest(_message.Message):
__slots__ = ("name", "filter", "page_size", "page_token")
NAME_FIELD_NUMBER: _ClassVar[int]
FILTER_FIELD_NUMBER: _ClassVar[int]
PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
name: str
filter: str
page_size: int
page_token: str
def __init__(
self,
name: _Optional[str] = ...,
filter: _Optional[str] = ...,
page_size: _Optional[int] = ...,
page_token: _Optional[str] = ...,
) -> None: ...
class ListOperationsResponse(_message.Message):
__slots__ = ("operations", "next_page_token")
OPERATIONS_FIELD_NUMBER: _ClassVar[int]
NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
operations: _containers.RepeatedCompositeFieldContainer[Operation]
next_page_token: str
def __init__(
self,
operations: _Optional[_Iterable[_Union[Operation, _Mapping]]] = ...,
next_page_token: _Optional[str] = ...,
) -> None: ...
class CancelOperationRequest(_message.Message):
__slots__ = ("name",)
NAME_FIELD_NUMBER: _ClassVar[int]
name: str
def __init__(self, name: _Optional[str] = ...) -> None: ...
class DeleteOperationRequest(_message.Message):
__slots__ = ("name",)
NAME_FIELD_NUMBER: _ClassVar[int]
name: str
def __init__(self, name: _Optional[str] = ...) -> None: ...
class WaitOperationRequest(_message.Message):
__slots__ = ("name", "timeout")
NAME_FIELD_NUMBER: _ClassVar[int]
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
name: str
timeout: _duration_pb2.Duration
def __init__(
self,
name: _Optional[str] = ...,
timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...,
) -> None: ...
class OperationInfo(_message.Message):
__slots__ = ("response_type", "metadata_type")
RESPONSE_TYPE_FIELD_NUMBER: _ClassVar[int]
METADATA_TYPE_FIELD_NUMBER: _ClassVar[int]
response_type: str
metadata_type: str
def __init__(
self, response_type: _Optional[str] = ..., metadata_type: _Optional[str] = ...
) -> None: ...