# Path: google/cloud/dataflow_v1beta3/types/templates.py
# class ParameterType(proto.Enum):
# class LaunchFlexTemplateResponse(proto.Message):
# class ContainerSpec(proto.Message):
# class LaunchFlexTemplateParameter(proto.Message):
# class FlexTemplateRuntimeEnvironment(proto.Message):
# class LaunchFlexTemplateRequest(proto.Message):
# class RuntimeEnvironment(proto.Message):
# class ParameterMetadata(proto.Message):
# class TemplateMetadata(proto.Message):
# class SDKInfo(proto.Message):
#     class Language(proto.Enum):
# class RuntimeMetadata(proto.Message):
# class CreateJobFromTemplateRequest(proto.Message):
# class GetTemplateRequest(proto.Message):
#     class TemplateView(proto.Enum):
# class GetTemplateResponse(proto.Message):
#     class TemplateType(proto.Enum):
# class LaunchTemplateParameters(proto.Message):
# class LaunchTemplateRequest(proto.Message):
# class LaunchTemplateResponse(proto.Message):
# class InvalidTemplateParameters(proto.Message):
#     class ParameterViolation(proto.Message):
# class DynamicTemplateLaunchParams(proto.Message):
#     DEFAULT = 0
#     TEXT = 1
#     GCS_READ_BUCKET = 2
#     GCS_WRITE_BUCKET = 3
#     GCS_READ_FILE = 4
#     GCS_WRITE_FILE = 5
#     GCS_READ_FOLDER = 6
#     GCS_WRITE_FOLDER = 7
#     PUBSUB_TOPIC = 8
#     PUBSUB_SUBSCRIPTION = 9
#         UNKNOWN = 0
#         JAVA = 1
#         PYTHON = 2
#         METADATA_ONLY = 0
#         UNKNOWN = 0
#         LEGACY = 1
#         FLEX = 2


import abc
import pkg_resources
import google.auth  # type: ignore
import google.api_core
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials  # type: ignore
from google.oauth2 import service_account  # type: ignore
from google.cloud.dataflow_v1beta3.types import templates
            credentials = credentials.with_always_use_jwt_access(True)

        # Save the credentials.
        self._credentials = credentials

    def _prep_wrapped_messages(self, client_info):
        # Precompute the wrapped methods.
        self._wrapped_methods = {
            self.launch_flex_template: gapic_v1.method.wrap_method(
                self.launch_flex_template,
                default_timeout=None,
                client_info=client_info,
            ),
        }

    def close(self):
        """Closes resources associated with the transport.

       .. warning::
            Only call this method if the transport is NOT shared
            with other clients - this may cause errors in other clients!
        """
        raise NotImplementedError()

    @property
    def launch_flex_template(
        self,
    ) -> Callable[
        [templates.LaunchFlexTemplateRequest],
        Union[

# Path: google/cloud/dataflow_v1beta3/types/templates.py
# class ParameterType(proto.Enum):
# class LaunchFlexTemplateResponse(proto.Message):
# class ContainerSpec(proto.Message):
# class LaunchFlexTemplateParameter(proto.Message):
# class FlexTemplateRuntimeEnvironment(proto.Message):
# class LaunchFlexTemplateRequest(proto.Message):
# class RuntimeEnvironment(proto.Message):
# class ParameterMetadata(proto.Message):
# class TemplateMetadata(proto.Message):
# class SDKInfo(proto.Message):
#     class Language(proto.Enum):
# class RuntimeMetadata(proto.Message):
# class CreateJobFromTemplateRequest(proto.Message):
# class GetTemplateRequest(proto.Message):
#     class TemplateView(proto.Enum):
# class GetTemplateResponse(proto.Message):
#     class TemplateType(proto.Enum):
# class LaunchTemplateParameters(proto.Message):
# class LaunchTemplateRequest(proto.Message):
# class LaunchTemplateResponse(proto.Message):
# class InvalidTemplateParameters(proto.Message):
#     class ParameterViolation(proto.Message):
# class DynamicTemplateLaunchParams(proto.Message):
#     DEFAULT = 0
#     TEXT = 1
#     GCS_READ_BUCKET = 2
#     GCS_WRITE_BUCKET = 3
#     GCS_READ_FILE = 4
#     GCS_WRITE_FILE = 5
#     GCS_READ_FOLDER = 6
#     GCS_WRITE_FOLDER = 7
#     PUBSUB_TOPIC = 8
#     PUBSUB_SUBSCRIPTION = 9
#         UNKNOWN = 0
#         JAVA = 1
#         PYTHON = 2
#         METADATA_ONLY = 0
#         UNKNOWN = 0
#         LEGACY = 1
#         FLEX = 2


# Path: google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/base.py
import abc
import pkg_resources
import google.auth  # type: ignore
import google.api_core
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials  # type: ignore
from google.oauth2 import service_account  # type: ignore
from google.cloud.dataflow_v1beta3.types import templates

            credentials = credentials.with_always_use_jwt_access(True)

        # Save the credentials.
        self._credentials = credentials

    def _prep_wrapped_messages(self, client_info):
        # Precompute the wrapped methods.
        self._wrapped_methods = {
            self.launch_flex_template: gapic_v1.method.wrap_method(
                self.launch_flex_template,
                default_timeout=None,
                client_info=client_info,
            ),
        }

    def close(self):
        """Closes resources associated with the transport.

       .. warning::
            Only call this method if the transport is NOT shared
            with other clients - this may cause errors in other clients!
        """
        raise NotImplementedError()

    @property
    def launch_flex_template(
        self,
    ) -> Callable[
        [templates.LaunchFlexTemplateRequest],
        Union[

            templates.LaunchFlexTemplateResponse,