diff --git a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2.py b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2.py index 2e0a00a0c36e..ab223dc921f5 100644 --- a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2.py +++ b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2.py @@ -2,367 +2,513 @@ # source: google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_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 google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.scheduler_v1beta1.proto import job_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2 +from google.cloud.scheduler_v1beta1.proto import ( + job_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto', - package='google.cloud.scheduler.v1beta1', - syntax='proto3', - serialized_pb=_b('\n9google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a.google/cloud/scheduler_v1beta1/proto/job.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"H\n\x0fListJobsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"^\n\x10ListJobsResponse\x12\x31\n\x04jobs\x18\x01 \x03(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x1d\n\rGetJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"T\n\x10\x43reateJobRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x30\n\x03job\x18\x02 \x01(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\"u\n\x10UpdateJobRequest\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\" \n\x10\x44\x65leteJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x1f\n\x0fPauseJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\" \n\x10ResumeJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x1d\n\rRunJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t2\x88\n\n\x0e\x43loudScheduler\x12\xa4\x01\n\x08ListJobs\x12/.google.cloud.scheduler.v1beta1.ListJobsRequest\x1a\x30.google.cloud.scheduler.v1beta1.ListJobsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{parent=projects/*/locations/*}/jobs\x12\x93\x01\n\x06GetJob\x12-.google.cloud.scheduler.v1beta1.GetJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{name=projects/*/locations/*/jobs/*}\x12\x9e\x01\n\tCreateJob\x12\x30.google.cloud.scheduler.v1beta1.CreateJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\":\x82\xd3\xe4\x93\x02\x34\"-/v1beta1/{parent=projects/*/locations/*}/jobs:\x03job\x12\xa2\x01\n\tUpdateJob\x12\x30.google.cloud.scheduler.v1beta1.UpdateJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\">\x82\xd3\xe4\x93\x02\x38\x32\x31/v1beta1/{job.name=projects/*/locations/*/jobs/*}:\x03job\x12\x8c\x01\n\tDeleteJob\x12\x30.google.cloud.scheduler.v1beta1.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/*-/v1beta1/{name=projects/*/locations/*/jobs/*}\x12\xa0\x01\n\x08PauseJob\x12/.google.cloud.scheduler.v1beta1.PauseJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\">\x82\xd3\xe4\x93\x02\x38\"3/v1beta1/{name=projects/*/locations/*/jobs/*}:pause:\x01*\x12\xa3\x01\n\tResumeJob\x12\x30.google.cloud.scheduler.v1beta1.ResumeJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\"?\x82\xd3\xe4\x93\x02\x39\"4/v1beta1/{name=projects/*/locations/*/jobs/*}:resume:\x01*\x12\x9a\x01\n\x06RunJob\x12-.google.cloud.scheduler.v1beta1.RunJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\"<\x82\xd3\xe4\x93\x02\x36\"1/v1beta1/{name=projects/*/locations/*/jobs/*}:run:\x01*B\x7f\n\"com.google.cloud.scheduler.v1beta1B\x0eSchedulerProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto", + package="google.cloud.scheduler.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a.google/cloud/scheduler_v1beta1/proto/job.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"H\n\x0fListJobsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t"^\n\x10ListJobsResponse\x12\x31\n\x04jobs\x18\x01 \x03(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x1d\n\rGetJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"T\n\x10\x43reateJobRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x30\n\x03job\x18\x02 \x01(\x0b\x32#.google.cloud.scheduler.v1beta1.Job"u\n\x10UpdateJobRequest\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask" \n\x10\x44\x65leteJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1f\n\x0fPauseJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t" \n\x10ResumeJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1d\n\rRunJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t2\x88\n\n\x0e\x43loudScheduler\x12\xa4\x01\n\x08ListJobs\x12/.google.cloud.scheduler.v1beta1.ListJobsRequest\x1a\x30.google.cloud.scheduler.v1beta1.ListJobsResponse"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{parent=projects/*/locations/*}/jobs\x12\x93\x01\n\x06GetJob\x12-.google.cloud.scheduler.v1beta1.GetJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{name=projects/*/locations/*/jobs/*}\x12\x9e\x01\n\tCreateJob\x12\x30.google.cloud.scheduler.v1beta1.CreateJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job":\x82\xd3\xe4\x93\x02\x34"-/v1beta1/{parent=projects/*/locations/*}/jobs:\x03job\x12\xa2\x01\n\tUpdateJob\x12\x30.google.cloud.scheduler.v1beta1.UpdateJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job">\x82\xd3\xe4\x93\x02\x38\x32\x31/v1beta1/{job.name=projects/*/locations/*/jobs/*}:\x03job\x12\x8c\x01\n\tDeleteJob\x12\x30.google.cloud.scheduler.v1beta1.DeleteJobRequest\x1a\x16.google.protobuf.Empty"5\x82\xd3\xe4\x93\x02/*-/v1beta1/{name=projects/*/locations/*/jobs/*}\x12\xa0\x01\n\x08PauseJob\x12/.google.cloud.scheduler.v1beta1.PauseJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job">\x82\xd3\xe4\x93\x02\x38"3/v1beta1/{name=projects/*/locations/*/jobs/*}:pause:\x01*\x12\xa3\x01\n\tResumeJob\x12\x30.google.cloud.scheduler.v1beta1.ResumeJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job"?\x82\xd3\xe4\x93\x02\x39"4/v1beta1/{name=projects/*/locations/*/jobs/*}:resume:\x01*\x12\x9a\x01\n\x06RunJob\x12-.google.cloud.scheduler.v1beta1.RunJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job"<\x82\xd3\xe4\x93\x02\x36"1/v1beta1/{name=projects/*/locations/*/jobs/*}:run:\x01*B\x7f\n"com.google.cloud.scheduler.v1beta1B\x0eSchedulerProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _LISTJOBSREQUEST = _descriptor.Descriptor( - name='ListJobsRequest', - full_name='google.cloud.scheduler.v1beta1.ListJobsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.scheduler.v1beta1.ListJobsRequest.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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.scheduler.v1beta1.ListJobsRequest.page_size', index=1, - number=5, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.scheduler.v1beta1.ListJobsRequest.page_token', index=2, - 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=234, - serialized_end=306, + name="ListJobsRequest", + full_name="google.cloud.scheduler.v1beta1.ListJobsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.scheduler.v1beta1.ListJobsRequest.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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.scheduler.v1beta1.ListJobsRequest.page_size", + index=1, + number=5, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.scheduler.v1beta1.ListJobsRequest.page_token", + index=2, + 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, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=234, + serialized_end=306, ) _LISTJOBSRESPONSE = _descriptor.Descriptor( - name='ListJobsResponse', - full_name='google.cloud.scheduler.v1beta1.ListJobsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='jobs', full_name='google.cloud.scheduler.v1beta1.ListJobsResponse.jobs', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.scheduler.v1beta1.ListJobsResponse.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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=308, - serialized_end=402, + name="ListJobsResponse", + full_name="google.cloud.scheduler.v1beta1.ListJobsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="jobs", + full_name="google.cloud.scheduler.v1beta1.ListJobsResponse.jobs", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.scheduler.v1beta1.ListJobsResponse.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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=308, + serialized_end=402, ) _GETJOBREQUEST = _descriptor.Descriptor( - name='GetJobRequest', - full_name='google.cloud.scheduler.v1beta1.GetJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.GetJobRequest.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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=404, - serialized_end=433, + name="GetJobRequest", + full_name="google.cloud.scheduler.v1beta1.GetJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.GetJobRequest.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, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=404, + serialized_end=433, ) _CREATEJOBREQUEST = _descriptor.Descriptor( - name='CreateJobRequest', - full_name='google.cloud.scheduler.v1beta1.CreateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.scheduler.v1beta1.CreateJobRequest.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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job', full_name='google.cloud.scheduler.v1beta1.CreateJobRequest.job', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=435, - serialized_end=519, + name="CreateJobRequest", + full_name="google.cloud.scheduler.v1beta1.CreateJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.scheduler.v1beta1.CreateJobRequest.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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job", + full_name="google.cloud.scheduler.v1beta1.CreateJobRequest.job", + 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, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=435, + serialized_end=519, ) _UPDATEJOBREQUEST = _descriptor.Descriptor( - name='UpdateJobRequest', - full_name='google.cloud.scheduler.v1beta1.UpdateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='job', full_name='google.cloud.scheduler.v1beta1.UpdateJobRequest.job', 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='update_mask', full_name='google.cloud.scheduler.v1beta1.UpdateJobRequest.update_mask', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=521, - serialized_end=638, + name="UpdateJobRequest", + full_name="google.cloud.scheduler.v1beta1.UpdateJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="job", + full_name="google.cloud.scheduler.v1beta1.UpdateJobRequest.job", + 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="update_mask", + full_name="google.cloud.scheduler.v1beta1.UpdateJobRequest.update_mask", + 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, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=521, + serialized_end=638, ) _DELETEJOBREQUEST = _descriptor.Descriptor( - name='DeleteJobRequest', - full_name='google.cloud.scheduler.v1beta1.DeleteJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.DeleteJobRequest.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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=640, - serialized_end=672, + name="DeleteJobRequest", + full_name="google.cloud.scheduler.v1beta1.DeleteJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.DeleteJobRequest.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, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=640, + serialized_end=672, ) _PAUSEJOBREQUEST = _descriptor.Descriptor( - name='PauseJobRequest', - full_name='google.cloud.scheduler.v1beta1.PauseJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.PauseJobRequest.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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=674, - serialized_end=705, + name="PauseJobRequest", + full_name="google.cloud.scheduler.v1beta1.PauseJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.PauseJobRequest.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, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=674, + serialized_end=705, ) _RESUMEJOBREQUEST = _descriptor.Descriptor( - name='ResumeJobRequest', - full_name='google.cloud.scheduler.v1beta1.ResumeJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.ResumeJobRequest.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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=707, - serialized_end=739, + name="ResumeJobRequest", + full_name="google.cloud.scheduler.v1beta1.ResumeJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.ResumeJobRequest.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, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=707, + serialized_end=739, ) _RUNJOBREQUEST = _descriptor.Descriptor( - name='RunJobRequest', - full_name='google.cloud.scheduler.v1beta1.RunJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.RunJobRequest.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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=741, - serialized_end=770, + name="RunJobRequest", + full_name="google.cloud.scheduler.v1beta1.RunJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.RunJobRequest.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, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=741, + serialized_end=770, ) -_LISTJOBSRESPONSE.fields_by_name['jobs'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB -_CREATEJOBREQUEST.fields_by_name['job'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB -_UPDATEJOBREQUEST.fields_by_name['job'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB -_UPDATEJOBREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -DESCRIPTOR.message_types_by_name['ListJobsRequest'] = _LISTJOBSREQUEST -DESCRIPTOR.message_types_by_name['ListJobsResponse'] = _LISTJOBSRESPONSE -DESCRIPTOR.message_types_by_name['GetJobRequest'] = _GETJOBREQUEST -DESCRIPTOR.message_types_by_name['CreateJobRequest'] = _CREATEJOBREQUEST -DESCRIPTOR.message_types_by_name['UpdateJobRequest'] = _UPDATEJOBREQUEST -DESCRIPTOR.message_types_by_name['DeleteJobRequest'] = _DELETEJOBREQUEST -DESCRIPTOR.message_types_by_name['PauseJobRequest'] = _PAUSEJOBREQUEST -DESCRIPTOR.message_types_by_name['ResumeJobRequest'] = _RESUMEJOBREQUEST -DESCRIPTOR.message_types_by_name['RunJobRequest'] = _RUNJOBREQUEST +_LISTJOBSRESPONSE.fields_by_name[ + "jobs" +].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB +_CREATEJOBREQUEST.fields_by_name[ + "job" +].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB +_UPDATEJOBREQUEST.fields_by_name[ + "job" +].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB +_UPDATEJOBREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name["ListJobsRequest"] = _LISTJOBSREQUEST +DESCRIPTOR.message_types_by_name["ListJobsResponse"] = _LISTJOBSRESPONSE +DESCRIPTOR.message_types_by_name["GetJobRequest"] = _GETJOBREQUEST +DESCRIPTOR.message_types_by_name["CreateJobRequest"] = _CREATEJOBREQUEST +DESCRIPTOR.message_types_by_name["UpdateJobRequest"] = _UPDATEJOBREQUEST +DESCRIPTOR.message_types_by_name["DeleteJobRequest"] = _DELETEJOBREQUEST +DESCRIPTOR.message_types_by_name["PauseJobRequest"] = _PAUSEJOBREQUEST +DESCRIPTOR.message_types_by_name["ResumeJobRequest"] = _RESUMEJOBREQUEST +DESCRIPTOR.message_types_by_name["RunJobRequest"] = _RUNJOBREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListJobsRequest = _reflection.GeneratedProtocolMessageType('ListJobsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBSREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for listing jobs using +ListJobsRequest = _reflection.GeneratedProtocolMessageType( + "ListJobsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBSREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. @@ -387,15 +533,18 @@ r\_by][google.cloud.scheduler.v1beta1.ListJobsRequest.order\_b y] while iterating through pages. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsRequest) + ), +) _sym_db.RegisterMessage(ListJobsRequest) -ListJobsResponse = _reflection.GeneratedProtocolMessageType('ListJobsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBSRESPONSE, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Response message for listing jobs using +ListJobsResponse = _reflection.GeneratedProtocolMessageType( + "ListJobsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBSRESPONSE, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. @@ -411,15 +560,18 @@ indicates that there are no more results through which to paginate. The page token is valid for only 2 hours. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsResponse) + ), +) _sym_db.RegisterMessage(ListJobsResponse) -GetJobRequest = _reflection.GeneratedProtocolMessageType('GetJobRequest', (_message.Message,), dict( - DESCRIPTOR = _GETJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +GetJobRequest = _reflection.GeneratedProtocolMessageType( + "GetJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [GetJob][google.cloud.scheduler.v1beta1.CloudScheduler.GetJob]. @@ -428,15 +580,18 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.GetJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.GetJobRequest) + ), +) _sym_db.RegisterMessage(GetJobRequest) -CreateJobRequest = _reflection.GeneratedProtocolMessageType('CreateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +CreateJobRequest = _reflection.GeneratedProtocolMessageType( + "CreateJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [CreateJob][google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob]. @@ -454,15 +609,18 @@ returned ([name][google.cloud.scheduler.v1beta1.Job.name]) in the response. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.CreateJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.CreateJobRequest) + ), +) _sym_db.RegisterMessage(CreateJobRequest) -UpdateJobRequest = _reflection.GeneratedProtocolMessageType('UpdateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +UpdateJobRequest = _reflection.GeneratedProtocolMessageType( + "UpdateJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob]. @@ -477,15 +635,18 @@ A mask used to specify which fields of the job are being updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.UpdateJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.UpdateJobRequest) + ), +) _sym_db.RegisterMessage(UpdateJobRequest) -DeleteJobRequest = _reflection.GeneratedProtocolMessageType('DeleteJobRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for deleting a job using +DeleteJobRequest = _reflection.GeneratedProtocolMessageType( + "DeleteJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for deleting a job using [DeleteJob][google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob]. @@ -494,15 +655,18 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.DeleteJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.DeleteJobRequest) + ), +) _sym_db.RegisterMessage(DeleteJobRequest) -PauseJobRequest = _reflection.GeneratedProtocolMessageType('PauseJobRequest', (_message.Message,), dict( - DESCRIPTOR = _PAUSEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +PauseJobRequest = _reflection.GeneratedProtocolMessageType( + "PauseJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PAUSEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [PauseJob][google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob]. @@ -511,15 +675,18 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PauseJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PauseJobRequest) + ), +) _sym_db.RegisterMessage(PauseJobRequest) -ResumeJobRequest = _reflection.GeneratedProtocolMessageType('ResumeJobRequest', (_message.Message,), dict( - DESCRIPTOR = _RESUMEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +ResumeJobRequest = _reflection.GeneratedProtocolMessageType( + "ResumeJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RESUMEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. @@ -528,15 +695,18 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ResumeJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ResumeJobRequest) + ), +) _sym_db.RegisterMessage(ResumeJobRequest) -RunJobRequest = _reflection.GeneratedProtocolMessageType('RunJobRequest', (_message.Message,), dict( - DESCRIPTOR = _RUNJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for forcing a job to run now using +RunJobRequest = _reflection.GeneratedProtocolMessageType( + "RunJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RUNJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for forcing a job to run now using [RunJob][google.cloud.scheduler.v1beta1.CloudScheduler.RunJob]. @@ -545,98 +715,145 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.RunJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.RunJobRequest) + ), +) _sym_db.RegisterMessage(RunJobRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.cloud.scheduler.v1beta1B\016SchedulerProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + '\n"com.google.cloud.scheduler.v1beta1B\016SchedulerProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler' + ), +) _CLOUDSCHEDULER = _descriptor.ServiceDescriptor( - name='CloudScheduler', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=773, - serialized_end=2061, - methods=[ - _descriptor.MethodDescriptor( - name='ListJobs', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs', + name="CloudScheduler", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTJOBSREQUEST, - output_type=_LISTJOBSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1beta1/{parent=projects/*/locations/*}/jobs')), - ), - _descriptor.MethodDescriptor( - name='GetJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.GetJob', - index=1, - containing_service=None, - input_type=_GETJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1beta1/{name=projects/*/locations/*/jobs/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob', - index=2, - containing_service=None, - input_type=_CREATEJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\"-/v1beta1/{parent=projects/*/locations/*}/jobs:\003job')), - ), - _descriptor.MethodDescriptor( - name='UpdateJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob', - index=3, - containing_service=None, - input_type=_UPDATEJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002821/v1beta1/{job.name=projects/*/locations/*/jobs/*}:\003job')), - ), - _descriptor.MethodDescriptor( - name='DeleteJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob', - index=4, - containing_service=None, - input_type=_DELETEJOBREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/*-/v1beta1/{name=projects/*/locations/*/jobs/*}')), - ), - _descriptor.MethodDescriptor( - name='PauseJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob', - index=5, - containing_service=None, - input_type=_PAUSEJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\"3/v1beta1/{name=projects/*/locations/*/jobs/*}:pause:\001*')), - ), - _descriptor.MethodDescriptor( - name='ResumeJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob', - index=6, - containing_service=None, - input_type=_RESUMEJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\"4/v1beta1/{name=projects/*/locations/*/jobs/*}:resume:\001*')), - ), - _descriptor.MethodDescriptor( - name='RunJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.RunJob', - index=7, - containing_service=None, - input_type=_RUNJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\"1/v1beta1/{name=projects/*/locations/*/jobs/*}:run:\001*')), - ), -]) + options=None, + serialized_start=773, + serialized_end=2061, + methods=[ + _descriptor.MethodDescriptor( + name="ListJobs", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", + index=0, + containing_service=None, + input_type=_LISTJOBSREQUEST, + output_type=_LISTJOBSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1beta1/{parent=projects/*/locations/*}/jobs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", + index=1, + containing_service=None, + input_type=_GETJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1beta1/{name=projects/*/locations/*/jobs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", + index=2, + containing_service=None, + input_type=_CREATEJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0024"-/v1beta1/{parent=projects/*/locations/*}/jobs:\003job' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", + index=3, + containing_service=None, + input_type=_UPDATEJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002821/v1beta1/{job.name=projects/*/locations/*/jobs/*}:\003job" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", + index=4, + containing_service=None, + input_type=_DELETEJOBREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/*-/v1beta1/{name=projects/*/locations/*/jobs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="PauseJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", + index=5, + containing_service=None, + input_type=_PAUSEJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0028"3/v1beta1/{name=projects/*/locations/*/jobs/*}:pause:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ResumeJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", + index=6, + containing_service=None, + input_type=_RESUMEJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0029"4/v1beta1/{name=projects/*/locations/*/jobs/*}:resume:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="RunJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", + index=7, + containing_service=None, + input_type=_RUNJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0026"1/v1beta1/{name=projects/*/locations/*/jobs/*}:run:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_CLOUDSCHEDULER) -DESCRIPTOR.services_by_name['CloudScheduler'] = _CLOUDSCHEDULER +DESCRIPTOR.services_by_name["CloudScheduler"] = _CLOUDSCHEDULER # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2_grpc.py b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2_grpc.py index a41d39b75e73..fca5a0d9d8ec 100644 --- a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2_grpc.py +++ b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2_grpc.py @@ -1,92 +1,96 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.scheduler_v1beta1.proto import cloudscheduler_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2 -from google.cloud.scheduler_v1beta1.proto import job_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2 +from google.cloud.scheduler_v1beta1.proto import ( + cloudscheduler_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2, +) +from google.cloud.scheduler_v1beta1.proto import ( + job_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class CloudSchedulerStub(object): - """The Cloud Scheduler API allows external entities to reliably + """The Cloud Scheduler API allows external entities to reliably schedule asynchronous jobs. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListJobs = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/ListJobs', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsResponse.FromString, + self.ListJobs = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/ListJobs", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsResponse.FromString, ) - self.GetJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/GetJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.GetJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.GetJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/GetJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.GetJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.CreateJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/CreateJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.CreateJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.CreateJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/CreateJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.CreateJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.UpdateJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/UpdateJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.UpdateJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.UpdateJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/UpdateJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.UpdateJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.DeleteJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/DeleteJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.DeleteJobRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/DeleteJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.DeleteJobRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.PauseJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/PauseJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.PauseJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.PauseJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/PauseJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.PauseJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.ResumeJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/ResumeJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ResumeJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.ResumeJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/ResumeJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ResumeJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.RunJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/RunJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.RunJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.RunJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/RunJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.RunJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) class CloudSchedulerServicer(object): - """The Cloud Scheduler API allows external entities to reliably + """The Cloud Scheduler API allows external entities to reliably schedule asynchronous jobs. """ - def ListJobs(self, request, context): - """Lists jobs. + def ListJobs(self, request, context): + """Lists jobs. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetJob(self, request, context): - """Gets a job. + def GetJob(self, request, context): + """Gets a job. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateJob(self, request, context): - """Creates a job. + def CreateJob(self, request, context): + """Creates a job. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateJob(self, request, context): - """Updates a job. + def UpdateJob(self, request, context): + """Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. @@ -96,19 +100,19 @@ def UpdateJob(self, request, context): not be executed. If this happens, retry the UpdateJob request until a successful response is received. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteJob(self, request, context): - """Deletes a job. + def DeleteJob(self, request, context): + """Deletes a job. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PauseJob(self, request, context): - """Pauses a job. + def PauseJob(self, request, context): + """Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The @@ -116,76 +120,77 @@ def PauseJob(self, request, context): will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] to be paused. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ResumeJob(self, request, context): - """Resume a job. + def ResumeJob(self, request, context): + """Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RunJob(self, request, context): - """Forces a job to run now. + def RunJob(self, request, context): + """Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_CloudSchedulerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListJobs': grpc.unary_unary_rpc_method_handler( - servicer.ListJobs, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsResponse.SerializeToString, - ), - 'GetJob': grpc.unary_unary_rpc_method_handler( - servicer.GetJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.GetJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'CreateJob': grpc.unary_unary_rpc_method_handler( - servicer.CreateJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.CreateJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'UpdateJob': grpc.unary_unary_rpc_method_handler( - servicer.UpdateJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.UpdateJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'DeleteJob': grpc.unary_unary_rpc_method_handler( - servicer.DeleteJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.DeleteJobRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'PauseJob': grpc.unary_unary_rpc_method_handler( - servicer.PauseJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.PauseJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'ResumeJob': grpc.unary_unary_rpc_method_handler( - servicer.ResumeJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ResumeJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'RunJob': grpc.unary_unary_rpc_method_handler( - servicer.RunJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.RunJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.scheduler.v1beta1.CloudScheduler', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListJobs": grpc.unary_unary_rpc_method_handler( + servicer.ListJobs, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsResponse.SerializeToString, + ), + "GetJob": grpc.unary_unary_rpc_method_handler( + servicer.GetJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.GetJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "CreateJob": grpc.unary_unary_rpc_method_handler( + servicer.CreateJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.CreateJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "UpdateJob": grpc.unary_unary_rpc_method_handler( + servicer.UpdateJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.UpdateJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "DeleteJob": grpc.unary_unary_rpc_method_handler( + servicer.DeleteJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.DeleteJobRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "PauseJob": grpc.unary_unary_rpc_method_handler( + servicer.PauseJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.PauseJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "ResumeJob": grpc.unary_unary_rpc_method_handler( + servicer.ResumeJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ResumeJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "RunJob": grpc.unary_unary_rpc_method_handler( + servicer.RunJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.RunJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.scheduler.v1beta1.CloudScheduler", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2.py b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2.py index 1092e557c838..ad656ece07df 100644 --- a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2.py +++ b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2.py @@ -2,277 +2,506 @@ # source: google/cloud/scheduler_v1beta1/proto/job.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_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 google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.scheduler_v1beta1.proto import target_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2 +from google.cloud.scheduler_v1beta1.proto import ( + target_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/scheduler_v1beta1/proto/job.proto', - package='google.cloud.scheduler.v1beta1', - syntax='proto3', - serialized_pb=_b('\n.google/cloud/scheduler_v1beta1/proto/job.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x31google/cloud/scheduler_v1beta1/proto/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xd3\x05\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x45\n\rpubsub_target\x18\x04 \x01(\x0b\x32,.google.cloud.scheduler.v1beta1.PubsubTargetH\x00\x12U\n\x16\x61pp_engine_http_target\x18\x05 \x01(\x0b\x32\x33.google.cloud.scheduler.v1beta1.AppEngineHttpTargetH\x00\x12\x41\n\x0bhttp_target\x18\x06 \x01(\x0b\x32*.google.cloud.scheduler.v1beta1.HttpTargetH\x00\x12\x10\n\x08schedule\x18\x14 \x01(\t\x12\x11\n\ttime_zone\x18\x15 \x01(\t\x12\x34\n\x10user_update_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x05state\x18\n \x01(\x0e\x32).google.cloud.scheduler.v1beta1.Job.State\x12\"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x31\n\rschedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_attempt_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0cretry_config\x18\x13 \x01(\x0b\x32+.google.cloud.scheduler.v1beta1.RetryConfig\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\x11\n\rUPDATE_FAILED\x10\x04\x42\x08\n\x06target\"\xe2\x01\n\x0bRetryConfig\x12\x13\n\x0bretry_count\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14min_backoff_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14max_backoff_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\x42y\n\"com.google.cloud.scheduler.v1beta1B\x08JobProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/cloud/scheduler_v1beta1/proto/job.proto", + package="google.cloud.scheduler.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n.google/cloud/scheduler_v1beta1/proto/job.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x31google/cloud/scheduler_v1beta1/proto/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xd3\x05\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x45\n\rpubsub_target\x18\x04 \x01(\x0b\x32,.google.cloud.scheduler.v1beta1.PubsubTargetH\x00\x12U\n\x16\x61pp_engine_http_target\x18\x05 \x01(\x0b\x32\x33.google.cloud.scheduler.v1beta1.AppEngineHttpTargetH\x00\x12\x41\n\x0bhttp_target\x18\x06 \x01(\x0b\x32*.google.cloud.scheduler.v1beta1.HttpTargetH\x00\x12\x10\n\x08schedule\x18\x14 \x01(\t\x12\x11\n\ttime_zone\x18\x15 \x01(\t\x12\x34\n\x10user_update_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x05state\x18\n \x01(\x0e\x32).google.cloud.scheduler.v1beta1.Job.State\x12"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x31\n\rschedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_attempt_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0cretry_config\x18\x13 \x01(\x0b\x32+.google.cloud.scheduler.v1beta1.RetryConfig"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\x11\n\rUPDATE_FAILED\x10\x04\x42\x08\n\x06target"\xe2\x01\n\x0bRetryConfig\x12\x13\n\x0bretry_count\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14min_backoff_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14max_backoff_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\x42y\n"com.google.cloud.scheduler.v1beta1B\x08JobProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _JOB_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.scheduler.v1beta1.Job.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PAUSED', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISABLED', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPDATE_FAILED', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=879, - serialized_end=967, + name="State", + full_name="google.cloud.scheduler.v1beta1.Job.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ENABLED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PAUSED", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISABLED", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPDATE_FAILED", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=879, + serialized_end=967, ) _sym_db.RegisterEnumDescriptor(_JOB_STATE) _JOB = _descriptor.Descriptor( - name='Job', - full_name='google.cloud.scheduler.v1beta1.Job', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.Job.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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.scheduler.v1beta1.Job.description', 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='pubsub_target', full_name='google.cloud.scheduler.v1beta1.Job.pubsub_target', index=2, - 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='app_engine_http_target', full_name='google.cloud.scheduler.v1beta1.Job.app_engine_http_target', index=3, - 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_target', full_name='google.cloud.scheduler.v1beta1.Job.http_target', index=4, - number=6, 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='schedule', full_name='google.cloud.scheduler.v1beta1.Job.schedule', index=5, - number=20, 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='time_zone', full_name='google.cloud.scheduler.v1beta1.Job.time_zone', index=6, - number=21, 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='user_update_time', full_name='google.cloud.scheduler.v1beta1.Job.user_update_time', index=7, - number=9, 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='state', full_name='google.cloud.scheduler.v1beta1.Job.state', index=8, - number=10, type=14, cpp_type=8, 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), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.scheduler.v1beta1.Job.status', index=9, - number=11, 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='schedule_time', full_name='google.cloud.scheduler.v1beta1.Job.schedule_time', index=10, - number=17, 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='last_attempt_time', full_name='google.cloud.scheduler.v1beta1.Job.last_attempt_time', index=11, - number=18, 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='retry_config', full_name='google.cloud.scheduler.v1beta1.Job.retry_config', index=12, - number=19, 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=[ - _JOB_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='target', full_name='google.cloud.scheduler.v1beta1.Job.target', - index=0, containing_type=None, fields=[]), - ], - serialized_start=254, - serialized_end=977, + name="Job", + full_name="google.cloud.scheduler.v1beta1.Job", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.Job.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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.scheduler.v1beta1.Job.description", + 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="pubsub_target", + full_name="google.cloud.scheduler.v1beta1.Job.pubsub_target", + index=2, + 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="app_engine_http_target", + full_name="google.cloud.scheduler.v1beta1.Job.app_engine_http_target", + index=3, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="http_target", + full_name="google.cloud.scheduler.v1beta1.Job.http_target", + index=4, + number=6, + 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="schedule", + full_name="google.cloud.scheduler.v1beta1.Job.schedule", + index=5, + number=20, + 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="time_zone", + full_name="google.cloud.scheduler.v1beta1.Job.time_zone", + index=6, + number=21, + 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="user_update_time", + full_name="google.cloud.scheduler.v1beta1.Job.user_update_time", + index=7, + number=9, + 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="state", + full_name="google.cloud.scheduler.v1beta1.Job.state", + index=8, + number=10, + type=14, + cpp_type=8, + 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, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.scheduler.v1beta1.Job.status", + index=9, + number=11, + 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="schedule_time", + full_name="google.cloud.scheduler.v1beta1.Job.schedule_time", + index=10, + number=17, + 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="last_attempt_time", + full_name="google.cloud.scheduler.v1beta1.Job.last_attempt_time", + index=11, + number=18, + 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="retry_config", + full_name="google.cloud.scheduler.v1beta1.Job.retry_config", + index=12, + number=19, + 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=[_JOB_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="target", + full_name="google.cloud.scheduler.v1beta1.Job.target", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=254, + serialized_end=977, ) _RETRYCONFIG = _descriptor.Descriptor( - name='RetryConfig', - full_name='google.cloud.scheduler.v1beta1.RetryConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='retry_count', full_name='google.cloud.scheduler.v1beta1.RetryConfig.retry_count', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_retry_duration', full_name='google.cloud.scheduler.v1beta1.RetryConfig.max_retry_duration', 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='min_backoff_duration', full_name='google.cloud.scheduler.v1beta1.RetryConfig.min_backoff_duration', 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), - _descriptor.FieldDescriptor( - name='max_backoff_duration', full_name='google.cloud.scheduler.v1beta1.RetryConfig.max_backoff_duration', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_doublings', full_name='google.cloud.scheduler.v1beta1.RetryConfig.max_doublings', index=4, - number=5, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=980, - serialized_end=1206, + name="RetryConfig", + full_name="google.cloud.scheduler.v1beta1.RetryConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="retry_count", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.retry_count", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_retry_duration", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.max_retry_duration", + 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="min_backoff_duration", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.min_backoff_duration", + 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, + ), + _descriptor.FieldDescriptor( + name="max_backoff_duration", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.max_backoff_duration", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_doublings", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.max_doublings", + index=4, + number=5, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=980, + serialized_end=1206, ) -_JOB.fields_by_name['pubsub_target'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._PUBSUBTARGET -_JOB.fields_by_name['app_engine_http_target'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._APPENGINEHTTPTARGET -_JOB.fields_by_name['http_target'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._HTTPTARGET -_JOB.fields_by_name['user_update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOB.fields_by_name['state'].enum_type = _JOB_STATE -_JOB.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_JOB.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOB.fields_by_name['last_attempt_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOB.fields_by_name['retry_config'].message_type = _RETRYCONFIG +_JOB.fields_by_name[ + "pubsub_target" +].message_type = ( + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._PUBSUBTARGET +) +_JOB.fields_by_name[ + "app_engine_http_target" +].message_type = ( + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._APPENGINEHTTPTARGET +) +_JOB.fields_by_name[ + "http_target" +].message_type = ( + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._HTTPTARGET +) +_JOB.fields_by_name[ + "user_update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOB.fields_by_name["state"].enum_type = _JOB_STATE +_JOB.fields_by_name["status"].message_type = google_dot_rpc_dot_status__pb2._STATUS +_JOB.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOB.fields_by_name[ + "last_attempt_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOB.fields_by_name["retry_config"].message_type = _RETRYCONFIG _JOB_STATE.containing_type = _JOB -_JOB.oneofs_by_name['target'].fields.append( - _JOB.fields_by_name['pubsub_target']) -_JOB.fields_by_name['pubsub_target'].containing_oneof = _JOB.oneofs_by_name['target'] -_JOB.oneofs_by_name['target'].fields.append( - _JOB.fields_by_name['app_engine_http_target']) -_JOB.fields_by_name['app_engine_http_target'].containing_oneof = _JOB.oneofs_by_name['target'] -_JOB.oneofs_by_name['target'].fields.append( - _JOB.fields_by_name['http_target']) -_JOB.fields_by_name['http_target'].containing_oneof = _JOB.oneofs_by_name['target'] -_RETRYCONFIG.fields_by_name['max_retry_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.fields_by_name['min_backoff_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.fields_by_name['max_backoff_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -DESCRIPTOR.message_types_by_name['Job'] = _JOB -DESCRIPTOR.message_types_by_name['RetryConfig'] = _RETRYCONFIG +_JOB.oneofs_by_name["target"].fields.append(_JOB.fields_by_name["pubsub_target"]) +_JOB.fields_by_name["pubsub_target"].containing_oneof = _JOB.oneofs_by_name["target"] +_JOB.oneofs_by_name["target"].fields.append( + _JOB.fields_by_name["app_engine_http_target"] +) +_JOB.fields_by_name["app_engine_http_target"].containing_oneof = _JOB.oneofs_by_name[ + "target" +] +_JOB.oneofs_by_name["target"].fields.append(_JOB.fields_by_name["http_target"]) +_JOB.fields_by_name["http_target"].containing_oneof = _JOB.oneofs_by_name["target"] +_RETRYCONFIG.fields_by_name[ + "max_retry_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.fields_by_name[ + "min_backoff_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.fields_by_name[ + "max_backoff_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name["Job"] = _JOB +DESCRIPTOR.message_types_by_name["RetryConfig"] = _RETRYCONFIG _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Job = _reflection.GeneratedProtocolMessageType('Job', (_message.Message,), dict( - DESCRIPTOR = _JOB, - __module__ = 'google.cloud.scheduler_v1beta1.proto.job_pb2' - , - __doc__ = """Configuration for a job. The maximum allowed size for a job is 100KB. +Job = _reflection.GeneratedProtocolMessageType( + "Job", + (_message.Message,), + dict( + DESCRIPTOR=_JOB, + __module__="google.cloud.scheduler_v1beta1.proto.job_pb2", + __doc__="""Configuration for a job. The maximum allowed size for a job is 100KB. Attributes: @@ -349,15 +578,18 @@ retry_config: Settings that determine the retry behavior. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.Job) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.Job) + ), +) _sym_db.RegisterMessage(Job) -RetryConfig = _reflection.GeneratedProtocolMessageType('RetryConfig', (_message.Message,), dict( - DESCRIPTOR = _RETRYCONFIG, - __module__ = 'google.cloud.scheduler_v1beta1.proto.job_pb2' - , - __doc__ = """Settings that determine the retry behavior. +RetryConfig = _reflection.GeneratedProtocolMessageType( + "RetryConfig", + (_message.Message,), + dict( + DESCRIPTOR=_RETRYCONFIG, + __module__="google.cloud.scheduler_v1beta1.proto.job_pb2", + __doc__="""Settings that determine the retry behavior. By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be @@ -414,11 +646,17 @@ requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... The default value of this field is 5. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.RetryConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.RetryConfig) + ), +) _sym_db.RegisterMessage(RetryConfig) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.cloud.scheduler.v1beta1B\010JobProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + '\n"com.google.cloud.scheduler.v1beta1B\010JobProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler' + ), +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2_grpc.py b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2_grpc.py +++ b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2.py b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2.py index f6a58881547a..9c2ecd278273 100644 --- a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2.py +++ b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/scheduler_v1beta1/proto/target.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper 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() @@ -19,56 +21,53 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/scheduler_v1beta1/proto/target.proto', - package='google.cloud.scheduler.v1beta1', - syntax='proto3', - serialized_pb=_b('\n1google/cloud/scheduler_v1beta1/proto/target.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\"\xe2\x01\n\nHttpTarget\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12?\n\x0bhttp_method\x18\x02 \x01(\x0e\x32*.google.cloud.scheduler.v1beta1.HttpMethod\x12H\n\x07headers\x18\x03 \x03(\x0b\x32\x37.google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x04 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcb\x02\n\x13\x41ppEngineHttpTarget\x12?\n\x0bhttp_method\x18\x01 \x01(\x0e\x32*.google.cloud.scheduler.v1beta1.HttpMethod\x12L\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32\x30.google.cloud.scheduler.v1beta1.AppEngineRouting\x12\x14\n\x0crelative_uri\x18\x03 \x01(\t\x12Q\n\x07headers\x18\x04 \x03(\x0b\x32@.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb5\x01\n\x0cPubsubTarget\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12P\n\nattributes\x18\x04 \x03(\x0b\x32<.google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t*s\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x12\t\n\x05PATCH\x10\x06\x12\x0b\n\x07OPTIONS\x10\x07\x42|\n\"com.google.cloud.scheduler.v1beta1B\x0bTargetProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) + name="google/cloud/scheduler_v1beta1/proto/target.proto", + package="google.cloud.scheduler.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n1google/cloud/scheduler_v1beta1/proto/target.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto"\xe2\x01\n\nHttpTarget\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12?\n\x0bhttp_method\x18\x02 \x01(\x0e\x32*.google.cloud.scheduler.v1beta1.HttpMethod\x12H\n\x07headers\x18\x03 \x03(\x0b\x32\x37.google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x04 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xcb\x02\n\x13\x41ppEngineHttpTarget\x12?\n\x0bhttp_method\x18\x01 \x01(\x0e\x32*.google.cloud.scheduler.v1beta1.HttpMethod\x12L\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32\x30.google.cloud.scheduler.v1beta1.AppEngineRouting\x12\x14\n\x0crelative_uri\x18\x03 \x01(\t\x12Q\n\x07headers\x18\x04 \x03(\x0b\x32@.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb5\x01\n\x0cPubsubTarget\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12P\n\nattributes\x18\x04 \x03(\x0b\x32<.google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t*s\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x12\t\n\x05PATCH\x10\x06\x12\x0b\n\x07OPTIONS\x10\x07\x42|\n"com.google.cloud.scheduler.v1beta1B\x0bTargetProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_any__pb2.DESCRIPTOR, + ], +) _HTTPMETHOD = _descriptor.EnumDescriptor( - name='HttpMethod', - full_name='google.cloud.scheduler.v1beta1.HttpMethod', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='HTTP_METHOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POST', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GET', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HEAD', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUT', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETE', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PATCH', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OPTIONS', index=7, number=7, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=975, - serialized_end=1090, + name="HttpMethod", + full_name="google.cloud.scheduler.v1beta1.HttpMethod", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="HTTP_METHOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POST", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GET", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HEAD", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PUT", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DELETE", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PATCH", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OPTIONS", index=7, number=7, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=975, + serialized_end=1090, ) _sym_db.RegisterEnumDescriptor(_HTTPMETHOD) @@ -83,353 +82,581 @@ OPTIONS = 7 - _HTTPTARGET_HEADERSENTRY = _descriptor.Descriptor( - name='HeadersEntry', - full_name='google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry.key', 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='value', full_name='google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=323, - serialized_end=369, + name="HeadersEntry", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry.key", + 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="value", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry.value", + 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, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=323, + serialized_end=369, ) _HTTPTARGET = _descriptor.Descriptor( - name='HttpTarget', - full_name='google.cloud.scheduler.v1beta1.HttpTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.scheduler.v1beta1.HttpTarget.uri', 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='http_method', full_name='google.cloud.scheduler.v1beta1.HttpTarget.http_method', index=1, - number=2, type=14, cpp_type=8, 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), - _descriptor.FieldDescriptor( - name='headers', full_name='google.cloud.scheduler.v1beta1.HttpTarget.headers', index=2, - number=3, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='google.cloud.scheduler.v1beta1.HttpTarget.body', index=3, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_HTTPTARGET_HEADERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=143, - serialized_end=369, + name="HttpTarget", + full_name="google.cloud.scheduler.v1beta1.HttpTarget", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.uri", + 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="http_method", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.http_method", + index=1, + number=2, + type=14, + cpp_type=8, + 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, + ), + _descriptor.FieldDescriptor( + name="headers", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.headers", + index=2, + number=3, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="body", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.body", + index=3, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_HTTPTARGET_HEADERSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=143, + serialized_end=369, ) _APPENGINEHTTPTARGET_HEADERSENTRY = _descriptor.Descriptor( - name='HeadersEntry', - full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry.key', 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='value', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=323, - serialized_end=369, + name="HeadersEntry", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry.key", + 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="value", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry.value", + 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, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=323, + serialized_end=369, ) _APPENGINEHTTPTARGET = _descriptor.Descriptor( - name='AppEngineHttpTarget', - full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_method', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http_method', index=0, - number=1, type=14, cpp_type=8, 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), - _descriptor.FieldDescriptor( - name='app_engine_routing', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.app_engine_routing', 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='relative_uri', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.relative_uri', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headers', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.headers', index=3, - number=4, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.body', index=4, - number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_APPENGINEHTTPTARGET_HEADERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=372, - serialized_end=703, + name="AppEngineHttpTarget", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="http_method", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http_method", + index=0, + number=1, + type=14, + cpp_type=8, + 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, + ), + _descriptor.FieldDescriptor( + name="app_engine_routing", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.app_engine_routing", + 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="relative_uri", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.relative_uri", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headers", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.headers", + index=3, + number=4, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="body", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.body", + index=4, + number=5, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_APPENGINEHTTPTARGET_HEADERSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=372, + serialized_end=703, ) _PUBSUBTARGET_ATTRIBUTESENTRY = _descriptor.Descriptor( - name='AttributesEntry', - full_name='google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry.key', 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='value', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=838, - serialized_end=887, + name="AttributesEntry", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry.key", + 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="value", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry.value", + 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, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=838, + serialized_end=887, ) _PUBSUBTARGET = _descriptor.Descriptor( - name='PubsubTarget', - full_name='google.cloud.scheduler.v1beta1.PubsubTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic_name', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.topic_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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.data', index=1, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.attributes', index=2, - number=4, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PUBSUBTARGET_ATTRIBUTESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=706, - serialized_end=887, + name="PubsubTarget", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic_name", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.topic_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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.data", + index=1, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.attributes", + index=2, + number=4, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PUBSUBTARGET_ATTRIBUTESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=706, + serialized_end=887, ) _APPENGINEROUTING = _descriptor.Descriptor( - name='AppEngineRouting', - full_name='google.cloud.scheduler.v1beta1.AppEngineRouting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='service', full_name='google.cloud.scheduler.v1beta1.AppEngineRouting.service', 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='version', full_name='google.cloud.scheduler.v1beta1.AppEngineRouting.version', 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='instance', full_name='google.cloud.scheduler.v1beta1.AppEngineRouting.instance', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='host', full_name='google.cloud.scheduler.v1beta1.AppEngineRouting.host', index=3, - number=4, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=889, - serialized_end=973, + name="AppEngineRouting", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="service", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting.service", + 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="version", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting.version", + 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="instance", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting.instance", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="host", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting.host", + index=3, + number=4, + 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, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=889, + serialized_end=973, ) _HTTPTARGET_HEADERSENTRY.containing_type = _HTTPTARGET -_HTTPTARGET.fields_by_name['http_method'].enum_type = _HTTPMETHOD -_HTTPTARGET.fields_by_name['headers'].message_type = _HTTPTARGET_HEADERSENTRY +_HTTPTARGET.fields_by_name["http_method"].enum_type = _HTTPMETHOD +_HTTPTARGET.fields_by_name["headers"].message_type = _HTTPTARGET_HEADERSENTRY _APPENGINEHTTPTARGET_HEADERSENTRY.containing_type = _APPENGINEHTTPTARGET -_APPENGINEHTTPTARGET.fields_by_name['http_method'].enum_type = _HTTPMETHOD -_APPENGINEHTTPTARGET.fields_by_name['app_engine_routing'].message_type = _APPENGINEROUTING -_APPENGINEHTTPTARGET.fields_by_name['headers'].message_type = _APPENGINEHTTPTARGET_HEADERSENTRY +_APPENGINEHTTPTARGET.fields_by_name["http_method"].enum_type = _HTTPMETHOD +_APPENGINEHTTPTARGET.fields_by_name[ + "app_engine_routing" +].message_type = _APPENGINEROUTING +_APPENGINEHTTPTARGET.fields_by_name[ + "headers" +].message_type = _APPENGINEHTTPTARGET_HEADERSENTRY _PUBSUBTARGET_ATTRIBUTESENTRY.containing_type = _PUBSUBTARGET -_PUBSUBTARGET.fields_by_name['attributes'].message_type = _PUBSUBTARGET_ATTRIBUTESENTRY -DESCRIPTOR.message_types_by_name['HttpTarget'] = _HTTPTARGET -DESCRIPTOR.message_types_by_name['AppEngineHttpTarget'] = _APPENGINEHTTPTARGET -DESCRIPTOR.message_types_by_name['PubsubTarget'] = _PUBSUBTARGET -DESCRIPTOR.message_types_by_name['AppEngineRouting'] = _APPENGINEROUTING -DESCRIPTOR.enum_types_by_name['HttpMethod'] = _HTTPMETHOD +_PUBSUBTARGET.fields_by_name["attributes"].message_type = _PUBSUBTARGET_ATTRIBUTESENTRY +DESCRIPTOR.message_types_by_name["HttpTarget"] = _HTTPTARGET +DESCRIPTOR.message_types_by_name["AppEngineHttpTarget"] = _APPENGINEHTTPTARGET +DESCRIPTOR.message_types_by_name["PubsubTarget"] = _PUBSUBTARGET +DESCRIPTOR.message_types_by_name["AppEngineRouting"] = _APPENGINEROUTING +DESCRIPTOR.enum_types_by_name["HttpMethod"] = _HTTPMETHOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -HttpTarget = _reflection.GeneratedProtocolMessageType('HttpTarget', (_message.Message,), dict( - - HeadersEntry = _reflection.GeneratedProtocolMessageType('HeadersEntry', (_message.Message,), dict( - DESCRIPTOR = _HTTPTARGET_HEADERSENTRY, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry) - )) - , - DESCRIPTOR = _HTTPTARGET, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - , - __doc__ = """Http target. The job will be pushed to the job handler by means of an +HttpTarget = _reflection.GeneratedProtocolMessageType( + "HttpTarget", + (_message.Message,), + dict( + HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_HTTPTARGET_HEADERSENTRY, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry) + ), + ), + DESCRIPTOR=_HTTPTARGET, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2", + __doc__="""Http target. The job will be pushed to the job handler by means of an HTTP request via an [http\_method][google.cloud.scheduler.v1beta1.HttpTarget.http\_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an @@ -471,23 +698,28 @@ job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget) + ), +) _sym_db.RegisterMessage(HttpTarget) _sym_db.RegisterMessage(HttpTarget.HeadersEntry) -AppEngineHttpTarget = _reflection.GeneratedProtocolMessageType('AppEngineHttpTarget', (_message.Message,), dict( - - HeadersEntry = _reflection.GeneratedProtocolMessageType('HeadersEntry', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEHTTPTARGET_HEADERSENTRY, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry) - )) - , - DESCRIPTOR = _APPENGINEHTTPTARGET, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - , - __doc__ = """App Engine target. The job will be pushed to a job handler by means of +AppEngineHttpTarget = _reflection.GeneratedProtocolMessageType( + "AppEngineHttpTarget", + (_message.Message,), + dict( + HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEHTTPTARGET_HEADERSENTRY, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry) + ), + ), + DESCRIPTOR=_APPENGINEHTTPTARGET, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2", + __doc__="""App Engine target. The job will be pushed to a job handler by means of an HTTP request via an [http\_method][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http\_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an @@ -546,23 +778,28 @@ argument error to set a body on a job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget) + ), +) _sym_db.RegisterMessage(AppEngineHttpTarget) _sym_db.RegisterMessage(AppEngineHttpTarget.HeadersEntry) -PubsubTarget = _reflection.GeneratedProtocolMessageType('PubsubTarget', (_message.Message,), dict( - - AttributesEntry = _reflection.GeneratedProtocolMessageType('AttributesEntry', (_message.Message,), dict( - DESCRIPTOR = _PUBSUBTARGET_ATTRIBUTESENTRY, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry) - )) - , - DESCRIPTOR = _PUBSUBTARGET, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - , - __doc__ = """Pub/Sub target. The job will be delivered by publishing a message to the +PubsubTarget = _reflection.GeneratedProtocolMessageType( + "PubsubTarget", + (_message.Message,), + dict( + AttributesEntry=_reflection.GeneratedProtocolMessageType( + "AttributesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PUBSUBTARGET_ATTRIBUTESENTRY, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry) + ), + ), + DESCRIPTOR=_PUBSUBTARGET, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2", + __doc__="""Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic. @@ -582,16 +819,19 @@ Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PubsubTarget) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PubsubTarget) + ), +) _sym_db.RegisterMessage(PubsubTarget) _sym_db.RegisterMessage(PubsubTarget.AttributesEntry) -AppEngineRouting = _reflection.GeneratedProtocolMessageType('AppEngineRouting', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEROUTING, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - , - __doc__ = """App Engine Routing. +AppEngineRouting = _reflection.GeneratedProtocolMessageType( + "AppEngineRouting", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEROUTING, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2", + __doc__="""App Engine Routing. For more information about services, versions, and instances see `An Overview of App @@ -674,17 +914,29 @@ will be sent to the default version of the default service when the job is attempted. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineRouting) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineRouting) + ), +) _sym_db.RegisterMessage(AppEngineRouting) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.cloud.scheduler.v1beta1B\013TargetProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + '\n"com.google.cloud.scheduler.v1beta1B\013TargetProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler' + ), +) _HTTPTARGET_HEADERSENTRY.has_options = True -_HTTPTARGET_HEADERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HTTPTARGET_HEADERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _APPENGINEHTTPTARGET_HEADERSENTRY.has_options = True -_APPENGINEHTTPTARGET_HEADERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_APPENGINEHTTPTARGET_HEADERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PUBSUBTARGET_ATTRIBUTESENTRY.has_options = True -_PUBSUBTARGET_ATTRIBUTESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PUBSUBTARGET_ATTRIBUTESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2_grpc.py b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2_grpc.py +++ b/packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -