# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataproc_v1beta2/proto/autoscaling_policies.proto

import sys

_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database

# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.cloud.dataproc_v1beta2.proto import (
    clusters_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2,
)
from google.cloud.dataproc_v1beta2.proto import (
    jobs_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2,
)
from google.longrunning import (
    operations_pb2 as google_dot_longrunning_dot_operations__pb2,
)
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
    name="google/cloud/dataproc_v1beta2/proto/autoscaling_policies.proto",
    package="google.cloud.dataproc.v1beta2",
    syntax="proto3",
    serialized_options=_b(
        "\n!com.google.cloud.dataproc.v1beta2B\030AutoscalingPoliciesProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc"
    ),
    serialized_pb=_b(
        '\n>google/cloud/dataproc_v1beta2/proto/autoscaling_policies.proto\x12\x1dgoogle.cloud.dataproc.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/dataproc_v1beta2/proto/clusters.proto\x1a.google/cloud/dataproc_v1beta2/proto/jobs.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd1\x02\n\x11\x41utoscalingPolicy\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12S\n\x0f\x62\x61sic_algorithm\x18\x03 \x01(\x0b\x32\x38.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmH\x00\x12Z\n\rworker_config\x18\x04 \x01(\x0b\x32\x43.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig\x12\x64\n\x17secondary_worker_config\x18\x05 \x01(\x0b\x32\x43.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigB\x0b\n\talgorithm"\x9f\x01\n\x19\x42\x61sicAutoscalingAlgorithm\x12N\n\x0byarn_config\x18\x01 \x01(\x0b\x32\x39.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig\x12\x32\n\x0f\x63ooldown_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xe0\x01\n\x1a\x42\x61sicYarnAutoscalingConfig\x12@\n\x1dgraceful_decommission_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fscale_up_factor\x18\x01 \x01(\x01\x12\x19\n\x11scale_down_factor\x18\x02 \x01(\x01\x12$\n\x1cscale_up_min_worker_fraction\x18\x03 \x01(\x01\x12&\n\x1escale_down_min_worker_fraction\x18\x04 \x01(\x01"d\n$InstanceGroupAutoscalingPolicyConfig\x12\x15\n\rmin_instances\x18\x01 \x01(\x05\x12\x15\n\rmax_instances\x18\x02 \x01(\x05\x12\x0e\n\x06weight\x18\x03 \x01(\x05"r\n\x1e\x43reateAutoscalingPolicyRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12@\n\x06policy\x18\x02 \x01(\x0b\x32\x30.google.cloud.dataproc.v1beta2.AutoscalingPolicy"+\n\x1bGetAutoscalingPolicyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"b\n\x1eUpdateAutoscalingPolicyRequest\x12@\n\x06policy\x18\x01 \x01(\x0b\x32\x30.google.cloud.dataproc.v1beta2.AutoscalingPolicy".\n\x1e\x44\x65leteAutoscalingPolicyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"W\n\x1eListAutoscalingPoliciesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"~\n\x1fListAutoscalingPoliciesResponse\x12\x42\n\x08policies\x18\x01 \x03(\x0b\x32\x30.google.cloud.dataproc.v1beta2.AutoscalingPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x92\x0b\n\x18\x41utoscalingPolicyService\x12\xa0\x02\n\x17\x43reateAutoscalingPolicy\x12=.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest\x1a\x30.google.cloud.dataproc.v1beta2.AutoscalingPolicy"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01"</v1beta2/{parent=projects/*/locations/*}/autoscalingPolicies:\x06policyZD":/v1beta2/{parent=projects/*/regions/*}/autoscalingPolicies:\x06policy\x12\xae\x02\n\x17UpdateAutoscalingPolicy\x12=.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest\x1a\x30.google.cloud.dataproc.v1beta2.AutoscalingPolicy"\xa1\x01\x82\xd3\xe4\x93\x02\x9a\x01\x1a\x43/v1beta2/{policy.name=projects/*/locations/*/autoscalingPolicies/*}:\x06policyZK\x1a\x41/v1beta2/{policy.name=projects/*/regions/*/autoscalingPolicies/*}:\x06policy\x12\x89\x02\n\x14GetAutoscalingPolicy\x12:.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest\x1a\x30.google.cloud.dataproc.v1beta2.AutoscalingPolicy"\x82\x01\x82\xd3\xe4\x93\x02|\x12</v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}Z<\x12:/v1beta2/{name=projects/*/regions/*/autoscalingPolicies/*}\x12\x9d\x02\n\x17ListAutoscalingPolicies\x12=.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest\x1a>.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse"\x82\x01\x82\xd3\xe4\x93\x02|\x12</v1beta2/{parent=projects/*/locations/*}/autoscalingPoliciesZ<\x12:/v1beta2/{parent=projects/*/regions/*}/autoscalingPolicies\x12\xf5\x01\n\x17\x44\x65leteAutoscalingPolicy\x12=.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest\x1a\x16.google.protobuf.Empty"\x82\x01\x82\xd3\xe4\x93\x02|*</v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}Z<*:/v1beta2/{name=projects/*/regions/*/autoscalingPolicies/*}B\x86\x01\n!com.google.cloud.dataproc.v1beta2B\x18\x41utoscalingPoliciesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3'
    ),
    dependencies=[
        google_dot_api_dot_annotations__pb2.DESCRIPTOR,
        google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DESCRIPTOR,
        google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.DESCRIPTOR,
        google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,
        google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,
        google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,
        google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,
    ],
)


_AUTOSCALINGPOLICY = _descriptor.Descriptor(
    name="AutoscalingPolicy",
    full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicy",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="id",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicy.id",
            index=0,
            number=1,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="name",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicy.name",
            index=1,
            number=2,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="basic_algorithm",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicy.basic_algorithm",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="worker_config",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicy.worker_config",
            index=3,
            number=4,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="secondary_worker_config",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicy.secondary_worker_config",
            index=4,
            number=5,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[
        _descriptor.OneofDescriptor(
            name="algorithm",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicy.algorithm",
            index=0,
            containing_type=None,
            fields=[],
        )
    ],
    serialized_start=359,
    serialized_end=696,
)


_BASICAUTOSCALINGALGORITHM = _descriptor.Descriptor(
    name="BasicAutoscalingAlgorithm",
    full_name="google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="yarn_config",
            full_name="google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.yarn_config",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="cooldown_period",
            full_name="google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.cooldown_period",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=699,
    serialized_end=858,
)


_BASICYARNAUTOSCALINGCONFIG = _descriptor.Descriptor(
    name="BasicYarnAutoscalingConfig",
    full_name="google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="graceful_decommission_timeout",
            full_name="google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.graceful_decommission_timeout",
            index=0,
            number=5,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="scale_up_factor",
            full_name="google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.scale_up_factor",
            index=1,
            number=1,
            type=1,
            cpp_type=5,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="scale_down_factor",
            full_name="google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.scale_down_factor",
            index=2,
            number=2,
            type=1,
            cpp_type=5,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="scale_up_min_worker_fraction",
            full_name="google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.scale_up_min_worker_fraction",
            index=3,
            number=3,
            type=1,
            cpp_type=5,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="scale_down_min_worker_fraction",
            full_name="google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.scale_down_min_worker_fraction",
            index=4,
            number=4,
            type=1,
            cpp_type=5,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=861,
    serialized_end=1085,
)


_INSTANCEGROUPAUTOSCALINGPOLICYCONFIG = _descriptor.Descriptor(
    name="InstanceGroupAutoscalingPolicyConfig",
    full_name="google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="min_instances",
            full_name="google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.min_instances",
            index=0,
            number=1,
            type=5,
            cpp_type=1,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="max_instances",
            full_name="google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.max_instances",
            index=1,
            number=2,
            type=5,
            cpp_type=1,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="weight",
            full_name="google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.weight",
            index=2,
            number=3,
            type=5,
            cpp_type=1,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1087,
    serialized_end=1187,
)


_CREATEAUTOSCALINGPOLICYREQUEST = _descriptor.Descriptor(
    name="CreateAutoscalingPolicyRequest",
    full_name="google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="parent",
            full_name="google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.parent",
            index=0,
            number=1,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="policy",
            full_name="google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.policy",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1189,
    serialized_end=1303,
)


_GETAUTOSCALINGPOLICYREQUEST = _descriptor.Descriptor(
    name="GetAutoscalingPolicyRequest",
    full_name="google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="name",
            full_name="google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.name",
            index=0,
            number=1,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        )
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1305,
    serialized_end=1348,
)


_UPDATEAUTOSCALINGPOLICYREQUEST = _descriptor.Descriptor(
    name="UpdateAutoscalingPolicyRequest",
    full_name="google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="policy",
            full_name="google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.policy",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        )
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1350,
    serialized_end=1448,
)


_DELETEAUTOSCALINGPOLICYREQUEST = _descriptor.Descriptor(
    name="DeleteAutoscalingPolicyRequest",
    full_name="google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="name",
            full_name="google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.name",
            index=0,
            number=1,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        )
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1450,
    serialized_end=1496,
)


_LISTAUTOSCALINGPOLICIESREQUEST = _descriptor.Descriptor(
    name="ListAutoscalingPoliciesRequest",
    full_name="google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="parent",
            full_name="google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.parent",
            index=0,
            number=1,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="page_size",
            full_name="google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.page_size",
            index=1,
            number=2,
            type=5,
            cpp_type=1,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="page_token",
            full_name="google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.page_token",
            index=2,
            number=3,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1498,
    serialized_end=1585,
)


_LISTAUTOSCALINGPOLICIESRESPONSE = _descriptor.Descriptor(
    name="ListAutoscalingPoliciesResponse",
    full_name="google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="policies",
            full_name="google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.policies",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="next_page_token",
            full_name="google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.next_page_token",
            index=1,
            number=2,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1587,
    serialized_end=1713,
)

_AUTOSCALINGPOLICY.fields_by_name[
    "basic_algorithm"
].message_type = _BASICAUTOSCALINGALGORITHM
_AUTOSCALINGPOLICY.fields_by_name[
    "worker_config"
].message_type = _INSTANCEGROUPAUTOSCALINGPOLICYCONFIG
_AUTOSCALINGPOLICY.fields_by_name[
    "secondary_worker_config"
].message_type = _INSTANCEGROUPAUTOSCALINGPOLICYCONFIG
_AUTOSCALINGPOLICY.oneofs_by_name["algorithm"].fields.append(
    _AUTOSCALINGPOLICY.fields_by_name["basic_algorithm"]
)
_AUTOSCALINGPOLICY.fields_by_name[
    "basic_algorithm"
].containing_oneof = _AUTOSCALINGPOLICY.oneofs_by_name["algorithm"]
_BASICAUTOSCALINGALGORITHM.fields_by_name[
    "yarn_config"
].message_type = _BASICYARNAUTOSCALINGCONFIG
_BASICAUTOSCALINGALGORITHM.fields_by_name[
    "cooldown_period"
].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_BASICYARNAUTOSCALINGCONFIG.fields_by_name[
    "graceful_decommission_timeout"
].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_CREATEAUTOSCALINGPOLICYREQUEST.fields_by_name[
    "policy"
].message_type = _AUTOSCALINGPOLICY
_UPDATEAUTOSCALINGPOLICYREQUEST.fields_by_name[
    "policy"
].message_type = _AUTOSCALINGPOLICY
_LISTAUTOSCALINGPOLICIESRESPONSE.fields_by_name[
    "policies"
].message_type = _AUTOSCALINGPOLICY
DESCRIPTOR.message_types_by_name["AutoscalingPolicy"] = _AUTOSCALINGPOLICY
DESCRIPTOR.message_types_by_name[
    "BasicAutoscalingAlgorithm"
] = _BASICAUTOSCALINGALGORITHM
DESCRIPTOR.message_types_by_name[
    "BasicYarnAutoscalingConfig"
] = _BASICYARNAUTOSCALINGCONFIG
DESCRIPTOR.message_types_by_name[
    "InstanceGroupAutoscalingPolicyConfig"
] = _INSTANCEGROUPAUTOSCALINGPOLICYCONFIG
DESCRIPTOR.message_types_by_name[
    "CreateAutoscalingPolicyRequest"
] = _CREATEAUTOSCALINGPOLICYREQUEST
DESCRIPTOR.message_types_by_name[
    "GetAutoscalingPolicyRequest"
] = _GETAUTOSCALINGPOLICYREQUEST
DESCRIPTOR.message_types_by_name[
    "UpdateAutoscalingPolicyRequest"
] = _UPDATEAUTOSCALINGPOLICYREQUEST
DESCRIPTOR.message_types_by_name[
    "DeleteAutoscalingPolicyRequest"
] = _DELETEAUTOSCALINGPOLICYREQUEST
DESCRIPTOR.message_types_by_name[
    "ListAutoscalingPoliciesRequest"
] = _LISTAUTOSCALINGPOLICIESREQUEST
DESCRIPTOR.message_types_by_name[
    "ListAutoscalingPoliciesResponse"
] = _LISTAUTOSCALINGPOLICIESRESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

AutoscalingPolicy = _reflection.GeneratedProtocolMessageType(
    "AutoscalingPolicy",
    (_message.Message,),
    dict(
        DESCRIPTOR=_AUTOSCALINGPOLICY,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""Describes an autoscaling policy for Dataproc cluster autoscaler.
  
  
  Attributes:
      id:
          Required. The policy id.  The id must contain only letters
          (a-z, A-Z), numbers (0-9), underscores (\_), and hyphens (-).
          Cannot begin or end with underscore or hyphen. Must consist of
          between 3 and 50 characters.
      name:
          Output only. The "resource name" of the policy, as described
          in https://cloud.google.com/apis/design/resource\_names of the
          form ``projects/{project_id}/regions/{region}/autoscalingPolic
          ies/{policy_id}``.
      algorithm:
          Required. Autoscaling algorithm for policy.
      worker_config:
          Required. Describes how the autoscaler will operate for
          primary workers.
      secondary_worker_config:
          Optional. Describes how the autoscaler will operate for
          secondary workers.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.AutoscalingPolicy)
    ),
)
_sym_db.RegisterMessage(AutoscalingPolicy)

BasicAutoscalingAlgorithm = _reflection.GeneratedProtocolMessageType(
    "BasicAutoscalingAlgorithm",
    (_message.Message,),
    dict(
        DESCRIPTOR=_BASICAUTOSCALINGALGORITHM,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""Basic algorithm for autoscaling.
  
  
  Attributes:
      yarn_config:
          Required. YARN autoscaling configuration.
      cooldown_period:
          Optional. Duration between scaling events. A scaling period
          starts after the update operation from the previous event has
          completed.  Bounds: [2m, 1d]. Default: 2m.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm)
    ),
)
_sym_db.RegisterMessage(BasicAutoscalingAlgorithm)

BasicYarnAutoscalingConfig = _reflection.GeneratedProtocolMessageType(
    "BasicYarnAutoscalingConfig",
    (_message.Message,),
    dict(
        DESCRIPTOR=_BASICYARNAUTOSCALINGCONFIG,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""Basic autoscaling configurations for YARN.
  
  
  Attributes:
      graceful_decommission_timeout:
          Required. Timeout for YARN graceful decommissioning of Node
          Managers. Specifies the duration to wait for jobs to complete
          before forcefully removing workers (and potentially
          interrupting jobs). Only applicable to downscaling operations.
          Bounds: [0s, 1d].
      scale_up_factor:
          Required. Fraction of average pending memory in the last
          cooldown period for which to add workers. A scale-up factor of
          1.0 will result in scaling up so that there is no pending
          memory remaining after the update (more aggressive scaling). A
          scale-up factor closer to 0 will result in a smaller magnitude
          of scaling up (less aggressive scaling).  Bounds: [0.0, 1.0].
      scale_down_factor:
          Required. Fraction of average pending memory in the last
          cooldown period for which to remove workers. A scale-down
          factor of 1 will result in scaling down so that there is no
          available memory remaining after the update (more aggressive
          scaling). A scale-down factor of 0 disables removing workers,
          which can be beneficial for autoscaling a single job.  Bounds:
          [0.0, 1.0].
      scale_up_min_worker_fraction:
          Optional. Minimum scale-up threshold as a fraction of total
          cluster size before scaling occurs. For example, in a
          20-worker cluster, a threshold of 0.1 means the autoscaler
          must recommend at least a 2-worker scale-up for the cluster to
          scale. A threshold of 0 means the autoscaler will scale up on
          any recommended change.  Bounds: [0.0, 1.0]. Default: 0.0.
      scale_down_min_worker_fraction:
          Optional. Minimum scale-down threshold as a fraction of total
          cluster size before scaling occurs. For example, in a
          20-worker cluster, a threshold of 0.1 means the autoscaler
          must recommend at least a 2 worker scale-down for the cluster
          to scale. A threshold of 0 means the autoscaler will scale
          down on any recommended change.  Bounds: [0.0, 1.0]. Default:
          0.0.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig)
    ),
)
_sym_db.RegisterMessage(BasicYarnAutoscalingConfig)

InstanceGroupAutoscalingPolicyConfig = _reflection.GeneratedProtocolMessageType(
    "InstanceGroupAutoscalingPolicyConfig",
    (_message.Message,),
    dict(
        DESCRIPTOR=_INSTANCEGROUPAUTOSCALINGPOLICYCONFIG,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""Configuration for the size bounds of an instance group, including its
  proportional size to other groups.
  
  
  Attributes:
      min_instances:
          Optional. Minimum number of instances for this group.  Primary
          workers - Bounds: [2, max\_instances]. Default: 2. Secondary
          workers - Bounds: [0, max\_instances]. Default: 0.
      max_instances:
          Optional. Maximum number of instances for this group. Required
          for primary workers. Note that by default, clusters will not
          use secondary workers. Required for secondary workers if the
          minimum secondary instances is set.  Primary workers - Bounds:
          [min\_instances, ). Required. Secondary workers - Bounds:
          [min\_instances, ). Default: 0.
      weight:
          Optional. Weight for the instance group, which is used to
          determine the fraction of total workers in the cluster from
          this instance group. For example, if primary workers have
          weight 2, and secondary workers have weight 1, the cluster
          will have approximately 2 primary workers for each secondary
          worker.  The cluster may not reach the specified balance if
          constrained by min/max bounds or other autoscaling settings.
          For example, if ``max_instances`` for secondary workers is 0,
          then only primary workers will be added. The cluster can also
          be out of balance when created.  If weight is not set on any
          instance group, the cluster will default to equal weight for
          all groups: the cluster will attempt to maintain an equal
          number of workers in each group within the configured size
          bounds for each group. If weight is set for one group only,
          the cluster will default to zero weight on the unset group.
          For example if weight is set only on primary workers, the
          cluster will use primary workers only and no secondary
          workers.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)
    ),
)
_sym_db.RegisterMessage(InstanceGroupAutoscalingPolicyConfig)

CreateAutoscalingPolicyRequest = _reflection.GeneratedProtocolMessageType(
    "CreateAutoscalingPolicyRequest",
    (_message.Message,),
    dict(
        DESCRIPTOR=_CREATEAUTOSCALINGPOLICYREQUEST,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""A request to create an autoscaling policy.
  
  
  Attributes:
      parent:
          Required. The "resource name" of the region, as described in
          https://cloud.google.com/apis/design/resource\_names of the
          form ``projects/{project_id}/regions/{region}``.
      policy:
          The autoscaling policy to create.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest)
    ),
)
_sym_db.RegisterMessage(CreateAutoscalingPolicyRequest)

GetAutoscalingPolicyRequest = _reflection.GeneratedProtocolMessageType(
    "GetAutoscalingPolicyRequest",
    (_message.Message,),
    dict(
        DESCRIPTOR=_GETAUTOSCALINGPOLICYREQUEST,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""A request to fetch an autoscaling policy.
  
  
  Attributes:
      name:
          Required. The "resource name" of the autoscaling policy, as
          described in
          https://cloud.google.com/apis/design/resource\_names of the
          form ``projects/{project_id}/regions/{region}/autoscalingPolic
          ies/{policy_id}``.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)
    ),
)
_sym_db.RegisterMessage(GetAutoscalingPolicyRequest)

UpdateAutoscalingPolicyRequest = _reflection.GeneratedProtocolMessageType(
    "UpdateAutoscalingPolicyRequest",
    (_message.Message,),
    dict(
        DESCRIPTOR=_UPDATEAUTOSCALINGPOLICYREQUEST,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""A request to update an autoscaling policy.
  
  
  Attributes:
      policy:
          Required. The updated autoscaling policy.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)
    ),
)
_sym_db.RegisterMessage(UpdateAutoscalingPolicyRequest)

DeleteAutoscalingPolicyRequest = _reflection.GeneratedProtocolMessageType(
    "DeleteAutoscalingPolicyRequest",
    (_message.Message,),
    dict(
        DESCRIPTOR=_DELETEAUTOSCALINGPOLICYREQUEST,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""A request to delete an autoscaling policy.
  
  Autoscaling policies in use by one or more clusters will not be deleted.
  
  
  Attributes:
      name:
          Required. The "resource name" of the autoscaling policy, as
          described in
          https://cloud.google.com/apis/design/resource\_names of the
          form ``projects/{project_id}/regions/{region}/autoscalingPolic
          ies/{policy_id}``.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)
    ),
)
_sym_db.RegisterMessage(DeleteAutoscalingPolicyRequest)

ListAutoscalingPoliciesRequest = _reflection.GeneratedProtocolMessageType(
    "ListAutoscalingPoliciesRequest",
    (_message.Message,),
    dict(
        DESCRIPTOR=_LISTAUTOSCALINGPOLICIESREQUEST,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""A request to list autoscaling policies in a project.
  
  
  Attributes:
      parent:
          Required. The "resource name" of the region, as described in
          https://cloud.google.com/apis/design/resource\_names of the
          form ``projects/{project_id}/regions/{region}``
      page_size:
          Optional. The maximum number of results to return in each
          response.
      page_token:
          Optional. The page token, returned by a previous call, to
          request the next page of results.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest)
    ),
)
_sym_db.RegisterMessage(ListAutoscalingPoliciesRequest)

ListAutoscalingPoliciesResponse = _reflection.GeneratedProtocolMessageType(
    "ListAutoscalingPoliciesResponse",
    (_message.Message,),
    dict(
        DESCRIPTOR=_LISTAUTOSCALINGPOLICIESRESPONSE,
        __module__="google.cloud.dataproc_v1beta2.proto.autoscaling_policies_pb2",
        __doc__="""A response to a request to list autoscaling policies in a project.
  
  
  Attributes:
      policies:
          Output only. Autoscaling policies list.
      next_page_token:
          Output only. This token is included in the response if there
          are more results to fetch.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse)
    ),
)
_sym_db.RegisterMessage(ListAutoscalingPoliciesResponse)


DESCRIPTOR._options = None

_AUTOSCALINGPOLICYSERVICE = _descriptor.ServiceDescriptor(
    name="AutoscalingPolicyService",
    full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicyService",
    file=DESCRIPTOR,
    index=0,
    serialized_options=None,
    serialized_start=1716,
    serialized_end=3142,
    methods=[
        _descriptor.MethodDescriptor(
            name="CreateAutoscalingPolicy",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicyService.CreateAutoscalingPolicy",
            index=0,
            containing_service=None,
            input_type=_CREATEAUTOSCALINGPOLICYREQUEST,
            output_type=_AUTOSCALINGPOLICY,
            serialized_options=_b(
                '\202\323\344\223\002\214\001"</v1beta2/{parent=projects/*/locations/*}/autoscalingPolicies:\006policyZD":/v1beta2/{parent=projects/*/regions/*}/autoscalingPolicies:\006policy'
            ),
        ),
        _descriptor.MethodDescriptor(
            name="UpdateAutoscalingPolicy",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicyService.UpdateAutoscalingPolicy",
            index=1,
            containing_service=None,
            input_type=_UPDATEAUTOSCALINGPOLICYREQUEST,
            output_type=_AUTOSCALINGPOLICY,
            serialized_options=_b(
                "\202\323\344\223\002\232\001\032C/v1beta2/{policy.name=projects/*/locations/*/autoscalingPolicies/*}:\006policyZK\032A/v1beta2/{policy.name=projects/*/regions/*/autoscalingPolicies/*}:\006policy"
            ),
        ),
        _descriptor.MethodDescriptor(
            name="GetAutoscalingPolicy",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicyService.GetAutoscalingPolicy",
            index=2,
            containing_service=None,
            input_type=_GETAUTOSCALINGPOLICYREQUEST,
            output_type=_AUTOSCALINGPOLICY,
            serialized_options=_b(
                "\202\323\344\223\002|\022</v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}Z<\022:/v1beta2/{name=projects/*/regions/*/autoscalingPolicies/*}"
            ),
        ),
        _descriptor.MethodDescriptor(
            name="ListAutoscalingPolicies",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicyService.ListAutoscalingPolicies",
            index=3,
            containing_service=None,
            input_type=_LISTAUTOSCALINGPOLICIESREQUEST,
            output_type=_LISTAUTOSCALINGPOLICIESRESPONSE,
            serialized_options=_b(
                "\202\323\344\223\002|\022</v1beta2/{parent=projects/*/locations/*}/autoscalingPoliciesZ<\022:/v1beta2/{parent=projects/*/regions/*}/autoscalingPolicies"
            ),
        ),
        _descriptor.MethodDescriptor(
            name="DeleteAutoscalingPolicy",
            full_name="google.cloud.dataproc.v1beta2.AutoscalingPolicyService.DeleteAutoscalingPolicy",
            index=4,
            containing_service=None,
            input_type=_DELETEAUTOSCALINGPOLICYREQUEST,
            output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
            serialized_options=_b(
                "\202\323\344\223\002|*</v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}Z<*:/v1beta2/{name=projects/*/regions/*/autoscalingPolicies/*}"
            ),
        ),
    ],
)
_sym_db.RegisterServiceDescriptor(_AUTOSCALINGPOLICYSERVICE)

DESCRIPTOR.services_by_name["AutoscalingPolicyService"] = _AUTOSCALINGPOLICYSERVICE

# @@protoc_insertion_point(module_scope)
