lib/google/cloud/video/transcoder/v1/services_pb.rb in google-cloud-video-transcoder-v1-0.8.0 vs lib/google/cloud/video/transcoder/v1/services_pb.rb in google-cloud-video-transcoder-v1-0.9.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/video/transcoder/v1/services.proto
require 'google/protobuf'
@@ -8,59 +9,35 @@
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/cloud/video/transcoder/v1/resources_pb'
require 'google/protobuf/empty_pb'
-Google::Protobuf::DescriptorPool.generated_pool.build do
- add_file("google/cloud/video/transcoder/v1/services.proto", :syntax => :proto3) do
- add_message "google.cloud.video.transcoder.v1.CreateJobRequest" do
- optional :parent, :string, 1
- optional :job, :message, 2, "google.cloud.video.transcoder.v1.Job"
+
+descriptor_data = "\n/google/cloud/video/transcoder/v1/services.proto\x12 google.cloud.video.transcoder.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/video/transcoder/v1/resources.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x86\x01\n\x10\x43reateJobRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x37\n\x03job\x18\x02 \x01(\x0b\x32%.google.cloud.video.transcoder.v1.JobB\x03\xe0\x41\x02\"\x95\x01\n\x0fListJobsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"D\n\rGetJobRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dtranscoder.googleapis.com/Job\"^\n\x10\x44\x65leteJobRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dtranscoder.googleapis.com/Job\x12\x15\n\rallow_missing\x18\x02 \x01(\x08\"u\n\x10ListJobsResponse\x12\x33\n\x04jobs\x18\x01 \x03(\x0b\x32%.google.cloud.video.transcoder.v1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xbd\x01\n\x18\x43reateJobTemplateRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12H\n\x0cjob_template\x18\x02 \x01(\x0b\x32-.google.cloud.video.transcoder.v1.JobTemplateB\x03\xe0\x41\x02\x12\x1c\n\x0fjob_template_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9d\x01\n\x17ListJobTemplatesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"T\n\x15GetJobTemplateRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%transcoder.googleapis.com/JobTemplate\"n\n\x18\x44\x65leteJobTemplateRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%transcoder.googleapis.com/JobTemplate\x12\x15\n\rallow_missing\x18\x02 \x01(\x08\"\x8e\x01\n\x18ListJobTemplatesResponse\x12\x44\n\rjob_templates\x18\x01 \x03(\x0b\x32-.google.cloud.video.transcoder.v1.JobTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t2\x92\x0c\n\x11TranscoderService\x12\xaa\x01\n\tCreateJob\x12\x32.google.cloud.video.transcoder.v1.CreateJobRequest\x1a%.google.cloud.video.transcoder.v1.Job\"B\x82\xd3\xe4\x93\x02/\"(/v1/{parent=projects/*/locations/*}/jobs:\x03job\xda\x41\nparent,job\x12\xac\x01\n\x08ListJobs\x12\x31.google.cloud.video.transcoder.v1.ListJobsRequest\x1a\x32.google.cloud.video.transcoder.v1.ListJobsResponse\"9\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=projects/*/locations/*}/jobs\xda\x41\x06parent\x12\x99\x01\n\x06GetJob\x12/.google.cloud.video.transcoder.v1.GetJobRequest\x1a%.google.cloud.video.transcoder.v1.Job\"7\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/jobs/*}\xda\x41\x04name\x12\x90\x01\n\tDeleteJob\x12\x32.google.cloud.video.transcoder.v1.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\x93\x02**(/v1/{name=projects/*/locations/*/jobs/*}\xda\x41\x04name\x12\xec\x01\n\x11\x43reateJobTemplate\x12:.google.cloud.video.transcoder.v1.CreateJobTemplateRequest\x1a-.google.cloud.video.transcoder.v1.JobTemplate\"l\x82\xd3\xe4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/jobTemplates:\x0cjob_template\xda\x41#parent,job_template,job_template_id\x12\xcc\x01\n\x10ListJobTemplates\x12\x39.google.cloud.video.transcoder.v1.ListJobTemplatesRequest\x1a:.google.cloud.video.transcoder.v1.ListJobTemplatesResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/jobTemplates\xda\x41\x06parent\x12\xb9\x01\n\x0eGetJobTemplate\x12\x37.google.cloud.video.transcoder.v1.GetJobTemplateRequest\x1a-.google.cloud.video.transcoder.v1.JobTemplate\"?\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/jobTemplates/*}\xda\x41\x04name\x12\xa8\x01\n\x11\x44\x65leteJobTemplate\x12:.google.cloud.video.transcoder.v1.DeleteJobTemplateRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/jobTemplates/*}\xda\x41\x04name\x1aM\xca\x41\x19transcoder.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xea\x01\n$com.google.cloud.video.transcoder.v1B\rServicesProtoP\x01ZDcloud.google.com/go/video/transcoder/apiv1/transcoderpb;transcoderpb\xaa\x02 Google.Cloud.Video.Transcoder.V1\xca\x02 Google\\Cloud\\Video\\Transcoder\\V1\xea\x02$Google::Cloud::Video::Transcoder::V1b\x06proto3"
+
+pool = Google::Protobuf::DescriptorPool.generated_pool
+
+begin
+ pool.add_serialized_file(descriptor_data)
+rescue TypeError => e
+ # Compatibility code: will be removed in the next major version.
+ require 'google/protobuf/descriptor_pb'
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
+ parsed.clear_dependency
+ serialized = parsed.class.encode(parsed)
+ file = pool.add_serialized_file(serialized)
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
+ imports = [
+ ["google.cloud.video.transcoder.v1.Job", "google/cloud/video/transcoder/v1/resources.proto"],
+ ]
+ imports.each do |type_name, expected_filename|
+ import_file = pool.lookup(type_name).file_descriptor
+ if import_file.name != expected_filename
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
end
- add_message "google.cloud.video.transcoder.v1.ListJobsRequest" do
- optional :parent, :string, 1
- optional :page_size, :int32, 2
- optional :page_token, :string, 3
- optional :filter, :string, 4
- optional :order_by, :string, 5
- end
- add_message "google.cloud.video.transcoder.v1.GetJobRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.video.transcoder.v1.DeleteJobRequest" do
- optional :name, :string, 1
- optional :allow_missing, :bool, 2
- end
- add_message "google.cloud.video.transcoder.v1.ListJobsResponse" do
- repeated :jobs, :message, 1, "google.cloud.video.transcoder.v1.Job"
- optional :next_page_token, :string, 2
- repeated :unreachable, :string, 3
- end
- add_message "google.cloud.video.transcoder.v1.CreateJobTemplateRequest" do
- optional :parent, :string, 1
- optional :job_template, :message, 2, "google.cloud.video.transcoder.v1.JobTemplate"
- optional :job_template_id, :string, 3
- end
- add_message "google.cloud.video.transcoder.v1.ListJobTemplatesRequest" do
- optional :parent, :string, 1
- optional :page_size, :int32, 2
- optional :page_token, :string, 3
- optional :filter, :string, 4
- optional :order_by, :string, 5
- end
- add_message "google.cloud.video.transcoder.v1.GetJobTemplateRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.video.transcoder.v1.DeleteJobTemplateRequest" do
- optional :name, :string, 1
- optional :allow_missing, :bool, 2
- end
- add_message "google.cloud.video.transcoder.v1.ListJobTemplatesResponse" do
- repeated :job_templates, :message, 1, "google.cloud.video.transcoder.v1.JobTemplate"
- optional :next_page_token, :string, 2
- repeated :unreachable, :string, 3
- end
end
+ warn "Each proto file must use a consistent fully-qualified name."
+ warn "This will become an error in the next major version."
end
module Google
module Cloud
module Video