# Path: google/cloud/servicedirectory_v1/types/service.py
# class Service(proto.Message):


import proto  # type: ignore
from google.cloud.servicedirectory_v1.types import service as gcs_service
            General filter string syntax: () can be "name" or
            "metadata." for map field. can be "<, >, <=, >=, !=, =, :".
            Of which ":" means HAS and is roughly the same as "=". must
            be the same data type as the field. can be "AND, OR, NOT".

            Examples of valid filters:

            -  "metadata.owner" returns Endpoints that have a label with
               the key "owner", this is the same as "metadata:owner"
            -  "metadata.protocol=gRPC" returns Endpoints that have
               key/value "protocol=gRPC"
            -  "metadata.owner!=sd AND metadata.foo=bar" returns
               Endpoints that have "owner" field in metadata with a
               value that is not "sd" AND have the key/value foo=bar.
    """

    name = proto.Field(proto.STRING, number=1,)
    max_endpoints = proto.Field(proto.INT32, number=2,)
    endpoint_filter = proto.Field(proto.STRING, number=3,)


class ResolveServiceResponse(proto.Message):
    r"""The response message for
    [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].

    Attributes:
        service (google.cloud.servicedirectory_v1.types.Service):

    """


# Path: google/cloud/servicedirectory_v1/types/service.py
# class Service(proto.Message):


# Path: google/cloud/servicedirectory_v1/types/lookup_service.py
import proto  # type: ignore
from google.cloud.servicedirectory_v1.types import service as gcs_service

            General filter string syntax: () can be "name" or
            "metadata." for map field. can be "<, >, <=, >=, !=, =, :".
            Of which ":" means HAS and is roughly the same as "=". must
            be the same data type as the field. can be "AND, OR, NOT".

            Examples of valid filters:

            -  "metadata.owner" returns Endpoints that have a label with
               the key "owner", this is the same as "metadata:owner"
            -  "metadata.protocol=gRPC" returns Endpoints that have
               key/value "protocol=gRPC"
            -  "metadata.owner!=sd AND metadata.foo=bar" returns
               Endpoints that have "owner" field in metadata with a
               value that is not "sd" AND have the key/value foo=bar.
    """

    name = proto.Field(proto.STRING, number=1,)
    max_endpoints = proto.Field(proto.INT32, number=2,)
    endpoint_filter = proto.Field(proto.STRING, number=3,)


class ResolveServiceResponse(proto.Message):
    r"""The response message for
    [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].

    Attributes:
        service (google.cloud.servicedirectory_v1.types.Service):

    """


    service = proto.Field(proto.MESSAGE, number=1, message=gcs_service.Service,)