#####################################################################
# NOTE: THIS FILE IS AUTOGENERATED BY GENERATE_TYPES.PY. DO NOT EDIT!
#####################################################################
from typing import Optional, List
from google.protobuf.timestamp_pb2 import Timestamp
from google.protobuf.duration_pb2 import Duration
from enum import Enum
# API imports
from ..base import Datatype
from ...dsl.compiler.registry import register_data 
# Type imports
from ..datatypes import common as common

class DatasinkLocation(int, Enum):
    """Denotes where a datasink is located.

    Attributes:
        REMOTE (0): remote location (network hop required)
        LOCAL (1): local location (IPC)
    """
    REMOTE = 0 
    LOCAL = 1 

@register_data
class DatasinkInfo(Datatype):
    """Information about a datasink.    
    
    Attributes:
        id (str): datasink ID    
        location (DatasinkLocation): datasink location    
    """
    id: str
    location: DatasinkLocation

