# coding: utf-8

"""
    vikingdb

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class SparseForGetVikingdbCollectionOutput(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'dim': 'int',
        'image_field': 'str',
        'instruction': 'InstructionForGetVikingdbCollectionOutput',
        'model_name': 'str',
        'model_version': 'str',
        'n_dim': 'int',
        'shape': 'list[int]',
        'tensor_quant_type': 'str',
        'text_field': 'str',
        'video_field': 'str'
    }

    attribute_map = {
        'dim': 'Dim',
        'image_field': 'ImageField',
        'instruction': 'Instruction',
        'model_name': 'ModelName',
        'model_version': 'ModelVersion',
        'n_dim': 'NDim',
        'shape': 'Shape',
        'tensor_quant_type': 'TensorQuantType',
        'text_field': 'TextField',
        'video_field': 'VideoField'
    }

    def __init__(self, dim=None, image_field=None, instruction=None, model_name=None, model_version=None, n_dim=None, shape=None, tensor_quant_type=None, text_field=None, video_field=None, _configuration=None):  # noqa: E501
        """SparseForGetVikingdbCollectionOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._dim = None
        self._image_field = None
        self._instruction = None
        self._model_name = None
        self._model_version = None
        self._n_dim = None
        self._shape = None
        self._tensor_quant_type = None
        self._text_field = None
        self._video_field = None
        self.discriminator = None

        if dim is not None:
            self.dim = dim
        if image_field is not None:
            self.image_field = image_field
        if instruction is not None:
            self.instruction = instruction
        if model_name is not None:
            self.model_name = model_name
        if model_version is not None:
            self.model_version = model_version
        if n_dim is not None:
            self.n_dim = n_dim
        if shape is not None:
            self.shape = shape
        if tensor_quant_type is not None:
            self.tensor_quant_type = tensor_quant_type
        if text_field is not None:
            self.text_field = text_field
        if video_field is not None:
            self.video_field = video_field

    @property
    def dim(self):
        """Gets the dim of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The dim of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: int
        """
        return self._dim

    @dim.setter
    def dim(self, dim):
        """Sets the dim of this SparseForGetVikingdbCollectionOutput.


        :param dim: The dim of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: int
        """

        self._dim = dim

    @property
    def image_field(self):
        """Gets the image_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The image_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: str
        """
        return self._image_field

    @image_field.setter
    def image_field(self, image_field):
        """Sets the image_field of this SparseForGetVikingdbCollectionOutput.


        :param image_field: The image_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: str
        """

        self._image_field = image_field

    @property
    def instruction(self):
        """Gets the instruction of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The instruction of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: InstructionForGetVikingdbCollectionOutput
        """
        return self._instruction

    @instruction.setter
    def instruction(self, instruction):
        """Sets the instruction of this SparseForGetVikingdbCollectionOutput.


        :param instruction: The instruction of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: InstructionForGetVikingdbCollectionOutput
        """

        self._instruction = instruction

    @property
    def model_name(self):
        """Gets the model_name of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The model_name of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: str
        """
        return self._model_name

    @model_name.setter
    def model_name(self, model_name):
        """Sets the model_name of this SparseForGetVikingdbCollectionOutput.


        :param model_name: The model_name of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: str
        """

        self._model_name = model_name

    @property
    def model_version(self):
        """Gets the model_version of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The model_version of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: str
        """
        return self._model_version

    @model_version.setter
    def model_version(self, model_version):
        """Sets the model_version of this SparseForGetVikingdbCollectionOutput.


        :param model_version: The model_version of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: str
        """

        self._model_version = model_version

    @property
    def n_dim(self):
        """Gets the n_dim of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The n_dim of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: int
        """
        return self._n_dim

    @n_dim.setter
    def n_dim(self, n_dim):
        """Sets the n_dim of this SparseForGetVikingdbCollectionOutput.


        :param n_dim: The n_dim of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: int
        """

        self._n_dim = n_dim

    @property
    def shape(self):
        """Gets the shape of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The shape of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: list[int]
        """
        return self._shape

    @shape.setter
    def shape(self, shape):
        """Sets the shape of this SparseForGetVikingdbCollectionOutput.


        :param shape: The shape of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: list[int]
        """

        self._shape = shape

    @property
    def tensor_quant_type(self):
        """Gets the tensor_quant_type of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The tensor_quant_type of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: str
        """
        return self._tensor_quant_type

    @tensor_quant_type.setter
    def tensor_quant_type(self, tensor_quant_type):
        """Sets the tensor_quant_type of this SparseForGetVikingdbCollectionOutput.


        :param tensor_quant_type: The tensor_quant_type of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: str
        """

        self._tensor_quant_type = tensor_quant_type

    @property
    def text_field(self):
        """Gets the text_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The text_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: str
        """
        return self._text_field

    @text_field.setter
    def text_field(self, text_field):
        """Sets the text_field of this SparseForGetVikingdbCollectionOutput.


        :param text_field: The text_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: str
        """

        self._text_field = text_field

    @property
    def video_field(self):
        """Gets the video_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501


        :return: The video_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: str
        """
        return self._video_field

    @video_field.setter
    def video_field(self, video_field):
        """Sets the video_field of this SparseForGetVikingdbCollectionOutput.


        :param video_field: The video_field of this SparseForGetVikingdbCollectionOutput.  # noqa: E501
        :type: str
        """

        self._video_field = video_field

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(SparseForGetVikingdbCollectionOutput, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, SparseForGetVikingdbCollectionOutput):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, SparseForGetVikingdbCollectionOutput):
            return True

        return self.to_dict() != other.to_dict()
