Files
peernet/demo_server/openapi_server/models/google_protobuf_any.py

64 lines
1.6 KiB
Python
Raw Normal View History

2024-04-06 20:45:15 -07:00
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model import Model
from openapi_server import util
class GoogleProtobufAny(Model):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually.
"""
def __init__(self, type=None): # noqa: E501
"""GoogleProtobufAny - a model defined in OpenAPI
:param type: The type of this GoogleProtobufAny. # noqa: E501
:type type: str
"""
self.openapi_types = {
'type': str
}
self.attribute_map = {
'type': '@type'
}
self._type = type
@classmethod
def from_dict(cls, dikt) -> 'GoogleProtobufAny':
"""Returns the dict as a model
:param dikt: A dict.
:type: dict
:return: The GoogleProtobufAny of this GoogleProtobufAny. # noqa: E501
:rtype: GoogleProtobufAny
"""
return util.deserialize_model(dikt, cls)
@property
def type(self) -> str:
"""Gets the type of this GoogleProtobufAny.
The type of the serialized message. # noqa: E501
:return: The type of this GoogleProtobufAny.
:rtype: str
"""
return self._type
@type.setter
def type(self, type: str):
"""Sets the type of this GoogleProtobufAny.
The type of the serialized message. # noqa: E501
:param type: The type of this GoogleProtobufAny.
:type type: str
"""
self._type = type