from __future__ import absolute_import
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: beam_provision_api.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
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from . import endpoints_pb2 as endpoints__pb2
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='beam_provision_api.proto',
  package='org.apache.beam.model.fn_execution.v1',
  syntax='proto3',
  serialized_pb=_b('\n\x18\x62\x65\x61m_provision_api.proto\x12%org.apache.beam.model.fn_execution.v1\x1a\x0f\x65ndpoints.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x19\n\x17GetProvisionInfoRequest\"^\n\x18GetProvisionInfoResponse\x12\x42\n\x04info\x18\x01 \x01(\x0b\x32\x34.org.apache.beam.model.fn_execution.v1.ProvisionInfo\"\xad\x02\n\rProvisionInfo\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x10\n\x08job_name\x18\x02 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x31\n\x10pipeline_options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12I\n\x0fresource_limits\x18\x04 \x01(\x0b\x32\x30.org.apache.beam.model.fn_execution.v1.Resources\x12\x17\n\x0fretrieval_token\x18\x06 \x01(\t\x12P\n\x0fstatus_endpoint\x18\x07 \x01(\x0b\x32\x37.org.apache.beam.model.pipeline.v1.ApiServiceDescriptor\"\xb1\x02\n\tResources\x12G\n\x06memory\x18\x01 \x01(\x0b\x32\x37.org.apache.beam.model.fn_execution.v1.Resources.Memory\x12\x41\n\x03\x63pu\x18\x02 \x01(\x0b\x32\x34.org.apache.beam.model.fn_execution.v1.Resources.Cpu\x12S\n\x14semi_persistent_disk\x18\x03 \x01(\x0b\x32\x35.org.apache.beam.model.fn_execution.v1.Resources.Disk\x1a\x16\n\x06Memory\x12\x0c\n\x04size\x18\x01 \x01(\x04\x1a\x15\n\x03\x43pu\x12\x0e\n\x06shares\x18\x01 \x01(\x02\x1a\x14\n\x04\x44isk\x12\x0c\n\x04size\x18\x01 \x01(\x04\x32\xa8\x01\n\x10ProvisionService\x12\x93\x01\n\x10GetProvisionInfo\x12>.org.apache.beam.model.fn_execution.v1.GetProvisionInfoRequest\x1a?.org.apache.beam.model.fn_execution.v1.GetProvisionInfoResponseBD\n$org.apache.beam.model.fnexecution.v1B\x0cProvisionApiZ\x0e\x66nexecution_v1b\x06proto3')
  ,
  dependencies=[endpoints__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,])




_GETPROVISIONINFOREQUEST = _descriptor.Descriptor(
  name='GetProvisionInfoRequest',
  full_name='org.apache.beam.model.fn_execution.v1.GetProvisionInfoRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=114,
  serialized_end=139,
)


_GETPROVISIONINFORESPONSE = _descriptor.Descriptor(
  name='GetProvisionInfoResponse',
  full_name='org.apache.beam.model.fn_execution.v1.GetProvisionInfoResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='info', full_name='org.apache.beam.model.fn_execution.v1.GetProvisionInfoResponse.info', 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,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=141,
  serialized_end=235,
)


_PROVISIONINFO = _descriptor.Descriptor(
  name='ProvisionInfo',
  full_name='org.apache.beam.model.fn_execution.v1.ProvisionInfo',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='job_id', full_name='org.apache.beam.model.fn_execution.v1.ProvisionInfo.job_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,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='job_name', full_name='org.apache.beam.model.fn_execution.v1.ProvisionInfo.job_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,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='worker_id', full_name='org.apache.beam.model.fn_execution.v1.ProvisionInfo.worker_id', index=2,
      number=5, 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,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='pipeline_options', full_name='org.apache.beam.model.fn_execution.v1.ProvisionInfo.pipeline_options', index=3,
      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,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='resource_limits', full_name='org.apache.beam.model.fn_execution.v1.ProvisionInfo.resource_limits', index=4,
      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,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='retrieval_token', full_name='org.apache.beam.model.fn_execution.v1.ProvisionInfo.retrieval_token', index=5,
      number=6, 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,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='status_endpoint', full_name='org.apache.beam.model.fn_execution.v1.ProvisionInfo.status_endpoint', index=6,
      number=7, 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,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=238,
  serialized_end=539,
)


_RESOURCES_MEMORY = _descriptor.Descriptor(
  name='Memory',
  full_name='org.apache.beam.model.fn_execution.v1.Resources.Memory',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='size', full_name='org.apache.beam.model.fn_execution.v1.Resources.Memory.size', index=0,
      number=1, type=4, cpp_type=4, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=780,
  serialized_end=802,
)

_RESOURCES_CPU = _descriptor.Descriptor(
  name='Cpu',
  full_name='org.apache.beam.model.fn_execution.v1.Resources.Cpu',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='shares', full_name='org.apache.beam.model.fn_execution.v1.Resources.Cpu.shares', index=0,
      number=1, type=2, cpp_type=6, 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,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=804,
  serialized_end=825,
)

_RESOURCES_DISK = _descriptor.Descriptor(
  name='Disk',
  full_name='org.apache.beam.model.fn_execution.v1.Resources.Disk',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='size', full_name='org.apache.beam.model.fn_execution.v1.Resources.Disk.size', index=0,
      number=1, type=4, cpp_type=4, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=827,
  serialized_end=847,
)

_RESOURCES = _descriptor.Descriptor(
  name='Resources',
  full_name='org.apache.beam.model.fn_execution.v1.Resources',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='memory', full_name='org.apache.beam.model.fn_execution.v1.Resources.memory', 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,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='cpu', full_name='org.apache.beam.model.fn_execution.v1.Resources.cpu', 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,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='semi_persistent_disk', full_name='org.apache.beam.model.fn_execution.v1.Resources.semi_persistent_disk', 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,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[_RESOURCES_MEMORY, _RESOURCES_CPU, _RESOURCES_DISK, ],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=542,
  serialized_end=847,
)

_GETPROVISIONINFORESPONSE.fields_by_name['info'].message_type = _PROVISIONINFO
_PROVISIONINFO.fields_by_name['pipeline_options'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT
_PROVISIONINFO.fields_by_name['resource_limits'].message_type = _RESOURCES
_PROVISIONINFO.fields_by_name['status_endpoint'].message_type = endpoints__pb2._APISERVICEDESCRIPTOR
_RESOURCES_MEMORY.containing_type = _RESOURCES
_RESOURCES_CPU.containing_type = _RESOURCES
_RESOURCES_DISK.containing_type = _RESOURCES
_RESOURCES.fields_by_name['memory'].message_type = _RESOURCES_MEMORY
_RESOURCES.fields_by_name['cpu'].message_type = _RESOURCES_CPU
_RESOURCES.fields_by_name['semi_persistent_disk'].message_type = _RESOURCES_DISK
DESCRIPTOR.message_types_by_name['GetProvisionInfoRequest'] = _GETPROVISIONINFOREQUEST
DESCRIPTOR.message_types_by_name['GetProvisionInfoResponse'] = _GETPROVISIONINFORESPONSE
DESCRIPTOR.message_types_by_name['ProvisionInfo'] = _PROVISIONINFO
DESCRIPTOR.message_types_by_name['Resources'] = _RESOURCES
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

GetProvisionInfoRequest = _reflection.GeneratedProtocolMessageType('GetProvisionInfoRequest', (_message.Message,), dict(
  DESCRIPTOR = _GETPROVISIONINFOREQUEST,
  __module__ = 'beam_provision_api_pb2'
  # @@protoc_insertion_point(class_scope:org.apache.beam.model.fn_execution.v1.GetProvisionInfoRequest)
  ))
_sym_db.RegisterMessage(GetProvisionInfoRequest)

GetProvisionInfoResponse = _reflection.GeneratedProtocolMessageType('GetProvisionInfoResponse', (_message.Message,), dict(
  DESCRIPTOR = _GETPROVISIONINFORESPONSE,
  __module__ = 'beam_provision_api_pb2'
  # @@protoc_insertion_point(class_scope:org.apache.beam.model.fn_execution.v1.GetProvisionInfoResponse)
  ))
_sym_db.RegisterMessage(GetProvisionInfoResponse)

ProvisionInfo = _reflection.GeneratedProtocolMessageType('ProvisionInfo', (_message.Message,), dict(
  DESCRIPTOR = _PROVISIONINFO,
  __module__ = 'beam_provision_api_pb2'
  # @@protoc_insertion_point(class_scope:org.apache.beam.model.fn_execution.v1.ProvisionInfo)
  ))
_sym_db.RegisterMessage(ProvisionInfo)

Resources = _reflection.GeneratedProtocolMessageType('Resources', (_message.Message,), dict(

  Memory = _reflection.GeneratedProtocolMessageType('Memory', (_message.Message,), dict(
    DESCRIPTOR = _RESOURCES_MEMORY,
    __module__ = 'beam_provision_api_pb2'
    # @@protoc_insertion_point(class_scope:org.apache.beam.model.fn_execution.v1.Resources.Memory)
    ))
  ,

  Cpu = _reflection.GeneratedProtocolMessageType('Cpu', (_message.Message,), dict(
    DESCRIPTOR = _RESOURCES_CPU,
    __module__ = 'beam_provision_api_pb2'
    # @@protoc_insertion_point(class_scope:org.apache.beam.model.fn_execution.v1.Resources.Cpu)
    ))
  ,

  Disk = _reflection.GeneratedProtocolMessageType('Disk', (_message.Message,), dict(
    DESCRIPTOR = _RESOURCES_DISK,
    __module__ = 'beam_provision_api_pb2'
    # @@protoc_insertion_point(class_scope:org.apache.beam.model.fn_execution.v1.Resources.Disk)
    ))
  ,
  DESCRIPTOR = _RESOURCES,
  __module__ = 'beam_provision_api_pb2'
  # @@protoc_insertion_point(class_scope:org.apache.beam.model.fn_execution.v1.Resources)
  ))
_sym_db.RegisterMessage(Resources)
_sym_db.RegisterMessage(Resources.Memory)
_sym_db.RegisterMessage(Resources.Cpu)
_sym_db.RegisterMessage(Resources.Disk)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$org.apache.beam.model.fnexecution.v1B\014ProvisionApiZ\016fnexecution_v1'))

_PROVISIONSERVICE = _descriptor.ServiceDescriptor(
  name='ProvisionService',
  full_name='org.apache.beam.model.fn_execution.v1.ProvisionService',
  file=DESCRIPTOR,
  index=0,
  options=None,
  serialized_start=850,
  serialized_end=1018,
  methods=[
  _descriptor.MethodDescriptor(
    name='GetProvisionInfo',
    full_name='org.apache.beam.model.fn_execution.v1.ProvisionService.GetProvisionInfo',
    index=0,
    containing_service=None,
    input_type=_GETPROVISIONINFOREQUEST,
    output_type=_GETPROVISIONINFORESPONSE,
    options=None,
  ),
])
_sym_db.RegisterServiceDescriptor(_PROVISIONSERVICE)

DESCRIPTOR.services_by_name['ProvisionService'] = _PROVISIONSERVICE

# @@protoc_insertion_point(module_scope)
