diff --git a/google-cloud-dataplex-v1/google-cloud-dataplex-v1.gemspec b/google-cloud-dataplex-v1/google-cloud-dataplex-v1.gemspec index 4737b549f672..a482cbe66598 100644 --- a/google-cloud-dataplex-v1/google-cloud-dataplex-v1.gemspec +++ b/google-cloud-dataplex-v1/google-cloud-dataplex-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-cloud-location", ">= 0.4", "< 2.a" gem.add_dependency "google-iam-v1", ">= 0.4", "< 2.a" diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/analyze_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/analyze_pb.rb index 7528e561ccdc..d747a36dd48f 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/analyze_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/analyze_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/analyze.proto @@ -9,89 +10,33 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/analyze.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.Environment" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :uid, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - map :labels, :string, :string, 6 - optional :description, :string, 7 - optional :state, :enum, 8, "google.cloud.dataplex.v1.State" - optional :infrastructure_spec, :message, 100, "google.cloud.dataplex.v1.Environment.InfrastructureSpec" - optional :session_spec, :message, 101, "google.cloud.dataplex.v1.Environment.SessionSpec" - optional :session_status, :message, 102, "google.cloud.dataplex.v1.Environment.SessionStatus" - optional :endpoints, :message, 200, "google.cloud.dataplex.v1.Environment.Endpoints" - end - add_message "google.cloud.dataplex.v1.Environment.InfrastructureSpec" do - oneof :resources do - optional :compute, :message, 50, "google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources" - end - oneof :runtime do - optional :os_image, :message, 100, "google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime" - end - end - add_message "google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources" do - optional :disk_size_gb, :int32, 1 - optional :node_count, :int32, 2 - optional :max_node_count, :int32, 3 - end - add_message "google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime" do - optional :image_version, :string, 1 - repeated :java_libraries, :string, 2 - repeated :python_packages, :string, 3 - map :properties, :string, :string, 4 - end - add_message "google.cloud.dataplex.v1.Environment.SessionSpec" do - optional :max_idle_duration, :message, 1, "google.protobuf.Duration" - optional :enable_fast_startup, :bool, 2 - end - add_message "google.cloud.dataplex.v1.Environment.SessionStatus" do - optional :active, :bool, 1 - end - add_message "google.cloud.dataplex.v1.Environment.Endpoints" do - optional :notebooks, :string, 1 - optional :sql, :string, 2 - end - add_message "google.cloud.dataplex.v1.Content" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :path, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - map :labels, :string, :string, 6 - optional :description, :string, 7 - oneof :data do - optional :data_text, :string, 9 - end - oneof :content do - optional :sql_script, :message, 100, "google.cloud.dataplex.v1.Content.SqlScript" - optional :notebook, :message, 101, "google.cloud.dataplex.v1.Content.Notebook" - end - end - add_message "google.cloud.dataplex.v1.Content.SqlScript" do - optional :engine, :enum, 1, "google.cloud.dataplex.v1.Content.SqlScript.QueryEngine" - end - add_enum "google.cloud.dataplex.v1.Content.SqlScript.QueryEngine" do - value :QUERY_ENGINE_UNSPECIFIED, 0 - value :SPARK, 2 - end - add_message "google.cloud.dataplex.v1.Content.Notebook" do - optional :kernel_type, :enum, 1, "google.cloud.dataplex.v1.Content.Notebook.KernelType" - end - add_enum "google.cloud.dataplex.v1.Content.Notebook.KernelType" do - value :KERNEL_TYPE_UNSPECIFIED, 0 - value :PYTHON3, 1 - end - add_message "google.cloud.dataplex.v1.Session" do - optional :name, :string, 1 - optional :user_id, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :state, :enum, 4, "google.cloud.dataplex.v1.State" + +descriptor_data = "\n&google/cloud/dataplex/v1/analyze.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dataplex/v1/resources.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x99\r\n\x0b\x45nvironment\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x03\xfa\x41%\n#dataplex.googleapis.com/Environment\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x46\n\x06labels\x18\x06 \x03(\x0b\x32\x31.google.cloud.dataplex.v1.Environment.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x05state\x18\x08 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03\x12Z\n\x13infrastructure_spec\x18\x64 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.Environment.InfrastructureSpecB\x03\xe0\x41\x02\x12L\n\x0csession_spec\x18\x65 \x01(\x0b\x32\x31.google.cloud.dataplex.v1.Environment.SessionSpecB\x03\xe0\x41\x01\x12P\n\x0esession_status\x18\x66 \x01(\x0b\x32\x33.google.cloud.dataplex.v1.Environment.SessionStatusB\x03\xe0\x41\x03\x12H\n\tendpoints\x18\xc8\x01 \x01(\x0b\x32/.google.cloud.dataplex.v1.Environment.EndpointsB\x03\xe0\x41\x03\x1a\xe5\x04\n\x12InfrastructureSpec\x12\x61\n\x07\x63ompute\x18\x32 \x01(\x0b\x32I.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesB\x03\xe0\x41\x01H\x00\x12`\n\x08os_image\x18\x64 \x01(\x0b\x32G.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeB\x03\xe0\x41\x02H\x01\x1a\x63\n\x10\x43omputeResources\x12\x19\n\x0c\x64isk_size_gb\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0emax_node_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x1a\x8c\x02\n\x0eOsImageRuntime\x12\x1a\n\rimage_version\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0ejava_libraries\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fpython_packages\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12p\n\nproperties\x18\x04 \x03(\x0b\x32W.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.PropertiesEntryB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0b\n\tresourcesB\t\n\x07runtime\x1aj\n\x0bSessionSpec\x12\x39\n\x11max_idle_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12 \n\x13\x65nable_fast_startup\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a$\n\rSessionStatus\x12\x13\n\x06\x61\x63tive\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\x1a\x35\n\tEndpoints\x12\x16\n\tnotebooks\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03sql\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:y\xea\x41v\n#dataplex.googleapis.com/Environment\x12Oprojects/{project}/locations/{location}/lakes/{lake}/environments/{environment}\"\xa6\x07\n\x07\x43ontent\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x42\n\x06labels\x18\x06 \x03(\x0b\x32-.google.cloud.dataplex.v1.Content.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\tdata_text\x18\t \x01(\tB\x03\xe0\x41\x02H\x00\x12\x41\n\nsql_script\x18\x64 \x01(\x0b\x32+.google.cloud.dataplex.v1.Content.SqlScriptH\x01\x12>\n\x08notebook\x18\x65 \x01(\x0b\x32*.google.cloud.dataplex.v1.Content.NotebookH\x01\x1a\x91\x01\n\tSqlScript\x12L\n\x06\x65ngine\x18\x01 \x01(\x0e\x32\x37.google.cloud.dataplex.v1.Content.SqlScript.QueryEngineB\x03\xe0\x41\x02\"6\n\x0bQueryEngine\x12\x1c\n\x18QUERY_ENGINE_UNSPECIFIED\x10\x00\x12\t\n\x05SPARK\x10\x02\x1a\x93\x01\n\x08Notebook\x12O\n\x0bkernel_type\x18\x01 \x01(\x0e\x32\x35.google.cloud.dataplex.v1.Content.Notebook.KernelTypeB\x03\xe0\x41\x02\"6\n\nKernelType\x12\x1b\n\x17KERNEL_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PYTHON3\x10\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:l\xea\x41i\n\x1f\x64\x61taplex.googleapis.com/Content\x12\x46projects/{project}/locations/{location}/lakes/{lake}/content/{content}B\x06\n\x04\x64\x61taB\t\n\x07\x63ontent\"\xcd\x02\n\x07Session\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Session\x12\x14\n\x07user_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03:\x89\x01\xea\x41\x85\x01\n\x1f\x64\x61taplex.googleapis.com/Session\x12\x62projects/{project}/locations/{location}/lakes/{lake}/environments/{environment}/sessions/{session}Bh\n\x1c\x63om.google.cloud.dataplex.v1B\x0c\x41nalyzeProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/content_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/content_pb.rb index a82b74c1c252..0f35e250ba7b 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/content_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/content_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/content.proto @@ -13,41 +14,33 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/content.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.CreateContentRequest" do - optional :parent, :string, 1 - optional :content, :message, 2, "google.cloud.dataplex.v1.Content" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.UpdateContentRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :content, :message, 2, "google.cloud.dataplex.v1.Content" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DeleteContentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.ListContentRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.dataplex.v1.ListContentResponse" do - repeated :content, :message, 1, "google.cloud.dataplex.v1.Content" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.GetContentRequest" do - optional :name, :string, 1 - optional :view, :enum, 2, "google.cloud.dataplex.v1.GetContentRequest.ContentView" - end - add_enum "google.cloud.dataplex.v1.GetContentRequest.ContentView" do - value :CONTENT_VIEW_UNSPECIFIED, 0 - value :BASIC, 1 - value :FULL, 2 + +descriptor_data = "\n&google/cloud/dataplex/v1/content.proto\x12\x18google.cloud.dataplex.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/dataplex/v1/analyze.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa1\x01\n\x14\x43reateContentRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x37\n\x07\x63ontent\x18\x02 \x01(\x0b\x32!.google.cloud.dataplex.v1.ContentB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xa1\x01\n\x14UpdateContentRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x37\n\x07\x63ontent\x18\x02 \x01(\x0b\x32!.google.cloud.dataplex.v1.ContentB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"M\n\x14\x44\x65leteContentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\"\x90\x01\n\x12ListContentRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"b\n\x13ListContentResponse\x12\x32\n\x07\x63ontent\x18\x01 \x03(\x0b\x32!.google.cloud.dataplex.v1.Content\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xd8\x01\n\x11GetContentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\x12J\n\x04view\x18\x02 \x01(\x0e\x32\x37.google.cloud.dataplex.v1.GetContentRequest.ContentViewB\x03\xe0\x41\x01\"@\n\x0b\x43ontentView\x12\x1c\n\x18\x43ONTENT_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x32\xad\x10\n\x0e\x43ontentService\x12\x80\x02\n\rCreateContent\x12..google.cloud.dataplex.v1.CreateContentRequest\x1a!.google.cloud.dataplex.v1.Content\"\x9b\x01\x82\xd3\xe4\x93\x02\x83\x01\"8/v1/{parent=projects/*/locations/*/lakes/*}/contentitems:\x07\x63ontentZ>\"3/v1/{parent=projects/*/locations/*/lakes/*}/content:\x07\x63ontent\xda\x41\x0eparent,content\x12\x97\x02\n\rUpdateContent\x12..google.cloud.dataplex.v1.UpdateContentRequest\x1a!.google.cloud.dataplex.v1.Content\"\xb2\x01\x82\xd3\xe4\x93\x02\x95\x01\x32\x41/v1/{content.name=projects/*/locations/*/lakes/*/contentitems/**}:\x07\x63ontentZG2 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.dataplex.v1.Content", "google/cloud/dataplex/v1/analyze.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/data_profile_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/data_profile_pb.rb index e19fe4bc2162..b8b7359a6e5f 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/data_profile_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/data_profile_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/data_profile.proto @@ -6,58 +7,32 @@ require 'google/api/field_behavior_pb' require 'google/cloud/dataplex/v1/processing_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/data_profile.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.DataProfileSpec" do - end - add_message "google.cloud.dataplex.v1.DataProfileResult" do - optional :row_count, :int64, 3 - optional :profile, :message, 4, "google.cloud.dataplex.v1.DataProfileResult.Profile" - optional :scanned_data, :message, 5, "google.cloud.dataplex.v1.ScannedData" - end - add_message "google.cloud.dataplex.v1.DataProfileResult.Profile" do - repeated :fields, :message, 2, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field" - end - add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field" do - optional :name, :string, 1 - optional :type, :string, 2 - optional :mode, :string, 3 - optional :profile, :message, 4, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo" - end - add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo" do - optional :null_ratio, :double, 2 - optional :distinct_ratio, :double, 3 - repeated :top_n_values, :message, 4, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue" - oneof :field_info do - optional :string_profile, :message, 101, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo" - optional :integer_profile, :message, 102, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo" - optional :double_profile, :message, 103, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo" - end - end - add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo" do - optional :min_length, :int64, 1 - optional :max_length, :int64, 2 - optional :average_length, :double, 3 - end - add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo" do - optional :average, :double, 1 - optional :standard_deviation, :double, 3 - optional :min, :int64, 4 - repeated :quartiles, :int64, 6 - optional :max, :int64, 5 - end - add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo" do - optional :average, :double, 1 - optional :standard_deviation, :double, 3 - optional :min, :double, 4 - repeated :quartiles, :double, 6 - optional :max, :double, 5 - end - add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue" do - optional :value, :string, 1 - optional :count, :int64, 2 + +descriptor_data = "\n+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\x11\n\x0f\x44\x61taProfileSpec\"\xeb\t\n\x11\x44\x61taProfileResult\x12\x11\n\trow_count\x18\x03 \x01(\x03\x12\x44\n\x07profile\x18\x04 \x01(\x0b\x32\x33.google.cloud.dataplex.v1.DataProfileResult.Profile\x12;\n\x0cscanned_data\x18\x05 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedData\x1a\xbf\x08\n\x07Profile\x12I\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataplex.v1.DataProfileResult.Profile.Field\x1a\xe8\x07\n\x05\x46ield\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\t\x12V\n\x07profile\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo\x1a\xdc\x06\n\x0bProfileInfo\x12\x12\n\nnull_ratio\x18\x02 \x01(\x01\x12\x16\n\x0e\x64istinct_ratio\x18\x03 \x01(\x01\x12\x65\n\x0ctop_n_values\x18\x04 \x03(\x0b\x32O.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue\x12o\n\x0estring_profile\x18\x65 \x01(\x0b\x32U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfoH\x00\x12q\n\x0finteger_profile\x18\x66 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfoH\x00\x12o\n\x0e\x64ouble_profile\x18g \x01(\x0b\x32U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfoH\x00\x1aQ\n\x0fStringFieldInfo\x12\x12\n\nmin_length\x18\x01 \x01(\x03\x12\x12\n\nmax_length\x18\x02 \x01(\x03\x12\x16\n\x0e\x61verage_length\x18\x03 \x01(\x01\x1al\n\x10IntegerFieldInfo\x12\x0f\n\x07\x61verage\x18\x01 \x01(\x01\x12\x1a\n\x12standard_deviation\x18\x03 \x01(\x01\x12\x0b\n\x03min\x18\x04 \x01(\x03\x12\x11\n\tquartiles\x18\x06 \x03(\x03\x12\x0b\n\x03max\x18\x05 \x01(\x03\x1ak\n\x0f\x44oubleFieldInfo\x12\x0f\n\x07\x61verage\x18\x01 \x01(\x01\x12\x1a\n\x12standard_deviation\x18\x03 \x01(\x01\x12\x0b\n\x03min\x18\x04 \x01(\x01\x12\x11\n\tquartiles\x18\x06 \x03(\x01\x12\x0b\n\x03max\x18\x05 \x01(\x01\x1a)\n\tTopNValue\x12\r\n\x05value\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x42\x0c\n\nfield_infoBl\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taProfileProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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.dataplex.v1.ScannedData", "google/cloud/dataplex/v1/processing.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/data_quality_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/data_quality_pb.rb index 89f7887835eb..79e2676fa7f5 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/data_quality_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/data_quality_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/data_quality.proto @@ -6,82 +7,32 @@ require 'google/api/field_behavior_pb' require 'google/cloud/dataplex/v1/processing_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/data_quality.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.DataQualitySpec" do - repeated :rules, :message, 1, "google.cloud.dataplex.v1.DataQualityRule" - end - add_message "google.cloud.dataplex.v1.DataQualityResult" do - optional :passed, :bool, 5 - repeated :dimensions, :message, 2, "google.cloud.dataplex.v1.DataQualityDimensionResult" - repeated :rules, :message, 3, "google.cloud.dataplex.v1.DataQualityRuleResult" - optional :row_count, :int64, 4 - optional :scanned_data, :message, 7, "google.cloud.dataplex.v1.ScannedData" - end - add_message "google.cloud.dataplex.v1.DataQualityRuleResult" do - optional :rule, :message, 1, "google.cloud.dataplex.v1.DataQualityRule" - optional :passed, :bool, 7 - optional :evaluated_count, :int64, 9 - optional :passed_count, :int64, 8 - optional :null_count, :int64, 5 - optional :pass_ratio, :double, 6 - optional :failing_rows_query, :string, 10 - end - add_message "google.cloud.dataplex.v1.DataQualityDimensionResult" do - optional :passed, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DataQualityRule" do - optional :column, :string, 500 - optional :ignore_null, :bool, 501 - optional :dimension, :string, 502 - optional :threshold, :double, 503 - oneof :rule_type do - optional :range_expectation, :message, 1, "google.cloud.dataplex.v1.DataQualityRule.RangeExpectation" - optional :non_null_expectation, :message, 2, "google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation" - optional :set_expectation, :message, 3, "google.cloud.dataplex.v1.DataQualityRule.SetExpectation" - optional :regex_expectation, :message, 4, "google.cloud.dataplex.v1.DataQualityRule.RegexExpectation" - optional :uniqueness_expectation, :message, 100, "google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation" - optional :statistic_range_expectation, :message, 101, "google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation" - optional :row_condition_expectation, :message, 200, "google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation" - optional :table_condition_expectation, :message, 201, "google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation" - end - end - add_message "google.cloud.dataplex.v1.DataQualityRule.RangeExpectation" do - optional :min_value, :string, 1 - optional :max_value, :string, 2 - optional :strict_min_enabled, :bool, 3 - optional :strict_max_enabled, :bool, 4 - end - add_message "google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation" do - end - add_message "google.cloud.dataplex.v1.DataQualityRule.SetExpectation" do - repeated :values, :string, 1 - end - add_message "google.cloud.dataplex.v1.DataQualityRule.RegexExpectation" do - optional :regex, :string, 1 - end - add_message "google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation" do - end - add_message "google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation" do - optional :statistic, :enum, 1, "google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic" - optional :min_value, :string, 2 - optional :max_value, :string, 3 - optional :strict_min_enabled, :bool, 4 - optional :strict_max_enabled, :bool, 5 - end - add_enum "google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic" do - value :STATISTIC_UNDEFINED, 0 - value :MEAN, 1 - value :MIN, 2 - value :MAX, 3 - end - add_message "google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation" do - optional :sql_expression, :string, 1 - end - add_message "google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation" do - optional :sql_expression, :string, 1 + +descriptor_data = "\n+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/cloud/dataplex/v1/processing.proto\"K\n\x0f\x44\x61taQualitySpec\x12\x38\n\x05rules\x18\x01 \x03(\x0b\x32).google.cloud.dataplex.v1.DataQualityRule\"\xfd\x01\n\x11\x44\x61taQualityResult\x12\x0e\n\x06passed\x18\x05 \x01(\x08\x12H\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResult\x12>\n\x05rules\x18\x03 \x03(\x0b\x32/.google.cloud.dataplex.v1.DataQualityRuleResult\x12\x11\n\trow_count\x18\x04 \x01(\x03\x12;\n\x0cscanned_data\x18\x07 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedData\"\xd3\x01\n\x15\x44\x61taQualityRuleResult\x12\x37\n\x04rule\x18\x01 \x01(\x0b\x32).google.cloud.dataplex.v1.DataQualityRule\x12\x0e\n\x06passed\x18\x07 \x01(\x08\x12\x17\n\x0f\x65valuated_count\x18\t \x01(\x03\x12\x14\n\x0cpassed_count\x18\x08 \x01(\x03\x12\x12\n\nnull_count\x18\x05 \x01(\x03\x12\x12\n\npass_ratio\x18\x06 \x01(\x01\x12\x1a\n\x12\x66\x61iling_rows_query\x18\n \x01(\t\",\n\x1a\x44\x61taQualityDimensionResult\x12\x0e\n\x06passed\x18\x03 \x01(\x08\"\x9a\x0c\n\x0f\x44\x61taQualityRule\x12W\n\x11range_expectation\x18\x01 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\n\x14non_null_expectation\x18\x02 \x01(\x0b\x32<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\n\x0fset_expectation\x18\x03 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\n\x11regex_expectation\x18\x04 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12\x61\n\x16uniqueness_expectation\x18\x64 \x01(\x0b\x32?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\n\x1bstatistic_range_expectation\x18\x65 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\n\x19row_condition_expectation\x18\xc8\x01 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\n\x1btable_condition_expectation\x18\xc9\x01 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12\x14\n\x06\x63olumn\x18\xf4\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0bignore_null\x18\xf5\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x17\n\tdimension\x18\xf6\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\tthreshold\x18\xf7\x03 \x01(\x01\x42\x03\xe0\x41\x01\x1a\x84\x01\n\x10RangeExpectation\x12\x16\n\tmin_value\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmax_value\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12strict_min_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12strict_max_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x14\n\x12NonNullExpectation\x1a \n\x0eSetExpectation\x12\x0e\n\x06values\x18\x01 \x03(\t\x1a!\n\x10RegexExpectation\x12\r\n\x05regex\x18\x01 \x01(\t\x1a\x17\n\x15UniquenessExpectation\x1a\xa9\x02\n\x19StatisticRangeExpectation\x12\x66\n\tstatistic\x18\x01 \x01(\x0e\x32S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic\x12\x11\n\tmin_value\x18\x02 \x01(\t\x12\x11\n\tmax_value\x18\x03 \x01(\t\x12\x1a\n\x12strict_min_enabled\x18\x04 \x01(\x08\x12\x1a\n\x12strict_max_enabled\x18\x05 \x01(\x08\"F\n\x0f\x43olumnStatistic\x12\x17\n\x13STATISTIC_UNDEFINED\x10\x00\x12\x08\n\x04MEAN\x10\x01\x12\x07\n\x03MIN\x10\x02\x12\x07\n\x03MAX\x10\x03\x1a\x31\n\x17RowConditionExpectation\x12\x16\n\x0esql_expression\x18\x01 \x01(\t\x1a\x33\n\x19TableConditionExpectation\x12\x16\n\x0esql_expression\x18\x01 \x01(\tB\x0b\n\trule_typeBl\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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.dataplex.v1.ScannedData", "google/cloud/dataplex/v1/processing.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/datascans_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/datascans_pb.rb index 79091029d985..2dc54448a981 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/datascans_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/datascans_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/datascans.proto @@ -17,131 +18,36 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/datascans.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.CreateDataScanRequest" do - optional :parent, :string, 1 - optional :data_scan, :message, 2, "google.cloud.dataplex.v1.DataScan" - optional :data_scan_id, :string, 3 - optional :validate_only, :bool, 4 - end - add_message "google.cloud.dataplex.v1.UpdateDataScanRequest" do - optional :data_scan, :message, 1, "google.cloud.dataplex.v1.DataScan" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DeleteDataScanRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.GetDataScanRequest" do - optional :name, :string, 1 - optional :view, :enum, 2, "google.cloud.dataplex.v1.GetDataScanRequest.DataScanView" - end - add_enum "google.cloud.dataplex.v1.GetDataScanRequest.DataScanView" do - value :DATA_SCAN_VIEW_UNSPECIFIED, 0 - value :BASIC, 1 - value :FULL, 10 - end - add_message "google.cloud.dataplex.v1.ListDataScansRequest" 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.dataplex.v1.ListDataScansResponse" do - repeated :data_scans, :message, 1, "google.cloud.dataplex.v1.DataScan" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.dataplex.v1.RunDataScanRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.RunDataScanResponse" do - optional :job, :message, 1, "google.cloud.dataplex.v1.DataScanJob" - end - add_message "google.cloud.dataplex.v1.GetDataScanJobRequest" do - optional :name, :string, 1 - optional :view, :enum, 2, "google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView" - end - add_enum "google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView" do - value :DATA_SCAN_JOB_VIEW_UNSPECIFIED, 0 - value :BASIC, 1 - value :FULL, 10 - end - add_message "google.cloud.dataplex.v1.ListDataScanJobsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataplex.v1.ListDataScanJobsResponse" do - repeated :data_scan_jobs, :message, 1, "google.cloud.dataplex.v1.DataScanJob" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.DataScan" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :description, :string, 3 - optional :display_name, :string, 4 - map :labels, :string, :string, 5 - optional :state, :enum, 6, "google.cloud.dataplex.v1.State" - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :update_time, :message, 8, "google.protobuf.Timestamp" - optional :data, :message, 9, "google.cloud.dataplex.v1.DataSource" - optional :execution_spec, :message, 10, "google.cloud.dataplex.v1.DataScan.ExecutionSpec" - optional :execution_status, :message, 11, "google.cloud.dataplex.v1.DataScan.ExecutionStatus" - optional :type, :enum, 12, "google.cloud.dataplex.v1.DataScanType" - oneof :spec do - optional :data_quality_spec, :message, 100, "google.cloud.dataplex.v1.DataQualitySpec" - optional :data_profile_spec, :message, 101, "google.cloud.dataplex.v1.DataProfileSpec" - end - oneof :result do - optional :data_quality_result, :message, 200, "google.cloud.dataplex.v1.DataQualityResult" - optional :data_profile_result, :message, 201, "google.cloud.dataplex.v1.DataProfileResult" - end - end - add_message "google.cloud.dataplex.v1.DataScan.ExecutionSpec" do - optional :trigger, :message, 1, "google.cloud.dataplex.v1.Trigger" - oneof :incremental do - optional :field, :string, 100 - end - end - add_message "google.cloud.dataplex.v1.DataScan.ExecutionStatus" do - optional :latest_job_start_time, :message, 4, "google.protobuf.Timestamp" - optional :latest_job_end_time, :message, 5, "google.protobuf.Timestamp" - end - add_message "google.cloud.dataplex.v1.DataScanJob" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :start_time, :message, 3, "google.protobuf.Timestamp" - optional :end_time, :message, 4, "google.protobuf.Timestamp" - optional :state, :enum, 5, "google.cloud.dataplex.v1.DataScanJob.State" - optional :message, :string, 6 - optional :type, :enum, 7, "google.cloud.dataplex.v1.DataScanType" - oneof :spec do - optional :data_quality_spec, :message, 100, "google.cloud.dataplex.v1.DataQualitySpec" - optional :data_profile_spec, :message, 101, "google.cloud.dataplex.v1.DataProfileSpec" - end - oneof :result do - optional :data_quality_result, :message, 200, "google.cloud.dataplex.v1.DataQualityResult" - optional :data_profile_result, :message, 201, "google.cloud.dataplex.v1.DataProfileResult" - end - end - add_enum "google.cloud.dataplex.v1.DataScanJob.State" do - value :STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :CANCELING, 2 - value :CANCELLED, 3 - value :SUCCEEDED, 4 - value :FAILED, 5 - value :PENDING, 7 - end - add_enum "google.cloud.dataplex.v1.DataScanType" do - value :DATA_SCAN_TYPE_UNSPECIFIED, 0 - value :DATA_QUALITY, 1 - value :DATA_PROFILE, 2 + +descriptor_data = "\n(google/cloud/dataplex/v1/datascans.proto\x12\x18google.cloud.dataplex.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/dataplex/v1/data_profile.proto\x1a+google/cloud/dataplex/v1/data_quality.proto\x1a)google/cloud/dataplex/v1/processing.proto\x1a(google/cloud/dataplex/v1/resources.proto\x1a&google/cloud/dataplex/v1/service.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc5\x01\n\x15\x43reateDataScanRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\tdata_scan\x18\x02 \x01(\x0b\x32\".google.cloud.dataplex.v1.DataScanB\x03\xe0\x41\x02\x12\x19\n\x0c\x64\x61ta_scan_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xa5\x01\n\x15UpdateDataScanRequest\x12:\n\tdata_scan\x18\x01 \x01(\x0b\x32\".google.cloud.dataplex.v1.DataScanB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"O\n\x15\x44\x65leteDataScanRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dataplex.googleapis.com/DataScan\"\xdf\x01\n\x12GetDataScanRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dataplex.googleapis.com/DataScan\x12L\n\x04view\x18\x02 \x01(\x0e\x32\x39.google.cloud.dataplex.v1.GetDataScanRequest.DataScanViewB\x03\xe0\x41\x01\"C\n\x0c\x44\x61taScanView\x12\x1e\n\x1a\x44\x41TA_SCAN_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\n\"\xae\x01\n\x14ListDataScansRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"}\n\x15ListDataScansResponse\x12\x36\n\ndata_scans\x18\x01 \x03(\x0b\x32\".google.cloud.dataplex.v1.DataScan\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"L\n\x12RunDataScanRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dataplex.googleapis.com/DataScan\"I\n\x13RunDataScanResponse\x12\x32\n\x03job\x18\x01 \x01(\x0b\x32%.google.cloud.dataplex.v1.DataScanJob\"\xf2\x01\n\x15GetDataScanJobRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/DataScanJob\x12R\n\x04view\x18\x02 \x01(\x0e\x32?.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobViewB\x03\xe0\x41\x01\"J\n\x0f\x44\x61taScanJobView\x12\"\n\x1e\x44\x41TA_SCAN_JOB_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\n\"\x84\x01\n\x17ListDataScanJobsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dataplex.googleapis.com/DataScan\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"r\n\x18ListDataScanJobsResponse\x12=\n\x0e\x64\x61ta_scan_jobs\x18\x01 \x03(\x0b\x32%.google.cloud.dataplex.v1.DataScanJob\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb1\n\n\x08\x44\x61taScan\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x43\n\x06labels\x18\x05 \x03(\x0b\x32..google.cloud.dataplex.v1.DataScan.LabelsEntryB\x03\xe0\x41\x01\x12\x33\n\x05state\x18\x06 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x37\n\x04\x64\x61ta\x18\t \x01(\x0b\x32$.google.cloud.dataplex.v1.DataSourceB\x03\xe0\x41\x02\x12M\n\x0e\x65xecution_spec\x18\n \x01(\x0b\x32\x30.google.cloud.dataplex.v1.DataScan.ExecutionSpecB\x03\xe0\x41\x01\x12Q\n\x10\x65xecution_status\x18\x0b \x01(\x0b\x32\x32.google.cloud.dataplex.v1.DataScan.ExecutionStatusB\x03\xe0\x41\x03\x12\x39\n\x04type\x18\x0c \x01(\x0e\x32&.google.cloud.dataplex.v1.DataScanTypeB\x03\xe0\x41\x03\x12\x46\n\x11\x64\x61ta_quality_spec\x18\x64 \x01(\x0b\x32).google.cloud.dataplex.v1.DataQualitySpecH\x00\x12\x46\n\x11\x64\x61ta_profile_spec\x18\x65 \x01(\x0b\x32).google.cloud.dataplex.v1.DataProfileSpecH\x00\x12P\n\x13\x64\x61ta_quality_result\x18\xc8\x01 \x01(\x0b\x32+.google.cloud.dataplex.v1.DataQualityResultB\x03\xe0\x41\x03H\x01\x12P\n\x13\x64\x61ta_profile_result\x18\xc9\x01 \x01(\x0b\x32+.google.cloud.dataplex.v1.DataProfileResultB\x03\xe0\x41\x03H\x01\x1am\n\rExecutionSpec\x12\x37\n\x07trigger\x18\x01 \x01(\x0b\x32!.google.cloud.dataplex.v1.TriggerB\x03\xe0\x41\x01\x12\x14\n\x05\x66ield\x18\x64 \x01(\tB\x03\xe0\x41\x05H\x00\x42\r\n\x0bincremental\x1a\x85\x01\n\x0f\x45xecutionStatus\x12\x39\n\x15latest_job_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13latest_job_end_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:c\xea\x41`\n dataplex.googleapis.com/DataScan\x12\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dataScans\xda\x41\x06parent\x12\xaf\x01\n\x0bRunDataScan\x12,.google.cloud.dataplex.v1.RunDataScanRequest\x1a-.google.cloud.dataplex.v1.RunDataScanResponse\"C\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/locations/*/dataScans/*}:run:\x01*\xda\x41\x04name\x12\xad\x01\n\x0eGetDataScanJob\x12/.google.cloud.dataplex.v1.GetDataScanJobRequest\x1a%.google.cloud.dataplex.v1.DataScanJob\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}\xda\x41\x04name\x12\xc0\x01\n\x10ListDataScanJobs\x12\x31.google.cloud.dataplex.v1.ListDataScanJobsRequest\x1a\x32.google.cloud.dataplex.v1.ListDataScanJobsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*/dataScans/*}/jobs\xda\x41\x06parent\x1aK\xca\x41\x17\x64\x61taplex.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBj\n\x1c\x63om.google.cloud.dataplex.v1B\x0e\x44\x61taScansProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dataplex.v1.DataSource", "google/cloud/dataplex/v1/processing.proto"], + ["google.cloud.dataplex.v1.DataQualitySpec", "google/cloud/dataplex/v1/data_quality.proto"], + ["google.cloud.dataplex.v1.DataProfileSpec", "google/cloud/dataplex/v1/data_profile.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/logs_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/logs_pb.rb index a7d1581549ca..fcc76084a830 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/logs_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/logs_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/logs.proto @@ -7,159 +8,33 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/logs.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.DiscoveryEvent" do - optional :message, :string, 1 - optional :lake_id, :string, 2 - optional :zone_id, :string, 3 - optional :asset_id, :string, 4 - optional :data_location, :string, 5 - optional :type, :enum, 10, "google.cloud.dataplex.v1.DiscoveryEvent.EventType" - oneof :details do - optional :config, :message, 20, "google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails" - optional :entity, :message, 21, "google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails" - optional :partition, :message, 22, "google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails" - optional :action, :message, 23, "google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails" - end - end - add_message "google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails" do - map :parameters, :string, :string, 1 - end - add_message "google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails" do - optional :entity, :string, 1 - optional :type, :enum, 2, "google.cloud.dataplex.v1.DiscoveryEvent.EntityType" - end - add_message "google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails" do - optional :partition, :string, 1 - optional :entity, :string, 2 - optional :type, :enum, 3, "google.cloud.dataplex.v1.DiscoveryEvent.EntityType" - repeated :sampled_data_locations, :string, 4 - end - add_message "google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails" do - optional :type, :string, 1 - end - add_enum "google.cloud.dataplex.v1.DiscoveryEvent.EventType" do - value :EVENT_TYPE_UNSPECIFIED, 0 - value :CONFIG, 1 - value :ENTITY_CREATED, 2 - value :ENTITY_UPDATED, 3 - value :ENTITY_DELETED, 4 - value :PARTITION_CREATED, 5 - value :PARTITION_UPDATED, 6 - value :PARTITION_DELETED, 7 - end - add_enum "google.cloud.dataplex.v1.DiscoveryEvent.EntityType" do - value :ENTITY_TYPE_UNSPECIFIED, 0 - value :TABLE, 1 - value :FILESET, 2 - end - add_message "google.cloud.dataplex.v1.JobEvent" do - optional :message, :string, 1 - optional :job_id, :string, 2 - optional :start_time, :message, 3, "google.protobuf.Timestamp" - optional :end_time, :message, 4, "google.protobuf.Timestamp" - optional :state, :enum, 5, "google.cloud.dataplex.v1.JobEvent.State" - optional :retries, :int32, 6 - optional :type, :enum, 7, "google.cloud.dataplex.v1.JobEvent.Type" - optional :service, :enum, 8, "google.cloud.dataplex.v1.JobEvent.Service" - optional :service_job, :string, 9 - end - add_enum "google.cloud.dataplex.v1.JobEvent.Type" do - value :TYPE_UNSPECIFIED, 0 - value :SPARK, 1 - value :NOTEBOOK, 2 - end - add_enum "google.cloud.dataplex.v1.JobEvent.State" do - value :STATE_UNSPECIFIED, 0 - value :SUCCEEDED, 1 - value :FAILED, 2 - value :CANCELLED, 3 - value :ABORTED, 4 - end - add_enum "google.cloud.dataplex.v1.JobEvent.Service" do - value :SERVICE_UNSPECIFIED, 0 - value :DATAPROC, 1 - end - add_message "google.cloud.dataplex.v1.SessionEvent" do - optional :message, :string, 1 - optional :user_id, :string, 2 - optional :session_id, :string, 3 - optional :type, :enum, 4, "google.cloud.dataplex.v1.SessionEvent.EventType" - optional :event_succeeded, :bool, 6 - optional :fast_startup_enabled, :bool, 7 - optional :unassigned_duration, :message, 8, "google.protobuf.Duration" - oneof :detail do - optional :query, :message, 5, "google.cloud.dataplex.v1.SessionEvent.QueryDetail" - end - end - add_message "google.cloud.dataplex.v1.SessionEvent.QueryDetail" do - optional :query_id, :string, 1 - optional :query_text, :string, 2 - optional :engine, :enum, 3, "google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine" - optional :duration, :message, 4, "google.protobuf.Duration" - optional :result_size_bytes, :int64, 5 - optional :data_processed_bytes, :int64, 6 - end - add_enum "google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine" do - value :ENGINE_UNSPECIFIED, 0 - value :SPARK_SQL, 1 - value :BIGQUERY, 2 - end - add_enum "google.cloud.dataplex.v1.SessionEvent.EventType" do - value :EVENT_TYPE_UNSPECIFIED, 0 - value :START, 1 - value :STOP, 2 - value :QUERY, 3 - value :CREATE, 4 - end - add_message "google.cloud.dataplex.v1.DataScanEvent" do - optional :data_source, :string, 1 - optional :job_id, :string, 2 - optional :start_time, :message, 3, "google.protobuf.Timestamp" - optional :end_time, :message, 4, "google.protobuf.Timestamp" - optional :type, :enum, 5, "google.cloud.dataplex.v1.DataScanEvent.ScanType" - optional :state, :enum, 6, "google.cloud.dataplex.v1.DataScanEvent.State" - optional :message, :string, 7 - optional :spec_version, :string, 8 - optional :trigger, :enum, 9, "google.cloud.dataplex.v1.DataScanEvent.Trigger" - optional :scope, :enum, 10, "google.cloud.dataplex.v1.DataScanEvent.Scope" - oneof :result do - optional :data_profile, :message, 101, "google.cloud.dataplex.v1.DataScanEvent.DataProfileResult" - optional :data_quality, :message, 102, "google.cloud.dataplex.v1.DataScanEvent.DataQualityResult" - end - end - add_message "google.cloud.dataplex.v1.DataScanEvent.DataProfileResult" do - optional :row_count, :int64, 1 - end - add_message "google.cloud.dataplex.v1.DataScanEvent.DataQualityResult" do - optional :row_count, :int64, 1 - optional :passed, :bool, 2 - map :dimension_passed, :string, :bool, 3 - end - add_enum "google.cloud.dataplex.v1.DataScanEvent.ScanType" do - value :SCAN_TYPE_UNSPECIFIED, 0 - value :DATA_PROFILE, 1 - value :DATA_QUALITY, 2 - end - add_enum "google.cloud.dataplex.v1.DataScanEvent.State" do - value :STATE_UNSPECIFIED, 0 - value :STARTED, 1 - value :SUCCEEDED, 2 - value :FAILED, 3 - value :CANCELLED, 4 - end - add_enum "google.cloud.dataplex.v1.DataScanEvent.Trigger" do - value :TRIGGER_UNSPECIFIED, 0 - value :ON_DEMAND, 1 - value :SCHEDULE, 2 - end - add_enum "google.cloud.dataplex.v1.DataScanEvent.Scope" do - value :SCOPE_UNSPECIFIED, 0 - value :FULL, 1 - value :INCREMENTAL, 2 + +descriptor_data = "\n#google/cloud/dataplex/v1/logs.proto\x12\x18google.cloud.dataplex.v1\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa0\t\n\x0e\x44iscoveryEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0f\n\x07lake_id\x18\x02 \x01(\t\x12\x0f\n\x07zone_id\x18\x03 \x01(\t\x12\x10\n\x08\x61sset_id\x18\x04 \x01(\t\x12\x15\n\rdata_location\x18\x05 \x01(\t\x12@\n\x04type\x18\n \x01(\x0e\x32\x32.google.cloud.dataplex.v1.DiscoveryEvent.EventType\x12H\n\x06\x63onfig\x18\x14 \x01(\x0b\x32\x36.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsH\x00\x12H\n\x06\x65ntity\x18\x15 \x01(\x0b\x32\x36.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsH\x00\x12N\n\tpartition\x18\x16 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsH\x00\x12H\n\x06\x61\x63tion\x18\x17 \x01(\x0b\x32\x36.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsH\x00\x1a\x9e\x01\n\rConfigDetails\x12Z\n\nparameters\x18\x01 \x03(\x0b\x32\x46.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.ParametersEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x62\n\rEntityDetails\x12\x0e\n\x06\x65ntity\x18\x01 \x01(\t\x12\x41\n\x04type\x18\x02 \x01(\x0e\x32\x33.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x1a\x98\x01\n\x10PartitionDetails\x12\x11\n\tpartition\x18\x01 \x01(\t\x12\x0e\n\x06\x65ntity\x18\x02 \x01(\t\x12\x41\n\x04type\x18\x03 \x01(\x0e\x32\x33.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x12\x1e\n\x16sampled_data_locations\x18\x04 \x03(\t\x1a\x1d\n\rActionDetails\x12\x0c\n\x04type\x18\x01 \x01(\t\"\xb4\x01\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43ONFIG\x10\x01\x12\x12\n\x0e\x45NTITY_CREATED\x10\x02\x12\x12\n\x0e\x45NTITY_UPDATED\x10\x03\x12\x12\n\x0e\x45NTITY_DELETED\x10\x04\x12\x15\n\x11PARTITION_CREATED\x10\x05\x12\x15\n\x11PARTITION_UPDATED\x10\x06\x12\x15\n\x11PARTITION_DELETED\x10\x07\"A\n\nEntityType\x12\x1b\n\x17\x45NTITY_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x0b\n\x07\x46ILESET\x10\x02\x42\t\n\x07\x64\x65tails\"\x9c\x04\n\x08JobEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x05state\x18\x05 \x01(\x0e\x32(.google.cloud.dataplex.v1.JobEvent.State\x12\x0f\n\x07retries\x18\x06 \x01(\x05\x12\x35\n\x04type\x18\x07 \x01(\x0e\x32\'.google.cloud.dataplex.v1.JobEvent.Type\x12;\n\x07service\x18\x08 \x01(\x0e\x32*.google.cloud.dataplex.v1.JobEvent.Service\x12\x13\n\x0bservice_job\x18\t \x01(\t\"5\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPARK\x10\x01\x12\x0c\n\x08NOTEBOOK\x10\x02\"U\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\x0b\n\x07\x41\x42ORTED\x10\x04\"0\n\x07Service\x12\x17\n\x13SERVICE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x41TAPROC\x10\x01\"\xbd\x05\n\x0cSessionEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x12\n\nsession_id\x18\x03 \x01(\t\x12>\n\x04type\x18\x04 \x01(\x0e\x32\x30.google.cloud.dataplex.v1.SessionEvent.EventType\x12\x43\n\x05query\x18\x05 \x01(\x0b\x32\x32.google.cloud.dataplex.v1.SessionEvent.QueryDetailH\x00\x12\x17\n\x0f\x65vent_succeeded\x18\x06 \x01(\x08\x12\x1c\n\x14\x66\x61st_startup_enabled\x18\x07 \x01(\x08\x12\x36\n\x13unassigned_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\xa3\x02\n\x0bQueryDetail\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12\x12\n\nquery_text\x18\x02 \x01(\t\x12I\n\x06\x65ngine\x18\x03 \x01(\x0e\x32\x39.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine\x12+\n\x08\x64uration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x19\n\x11result_size_bytes\x18\x05 \x01(\x03\x12\x1c\n\x14\x64\x61ta_processed_bytes\x18\x06 \x01(\x03\"=\n\x06\x45ngine\x12\x16\n\x12\x45NGINE_UNSPECIFIED\x10\x00\x12\r\n\tSPARK_SQL\x10\x01\x12\x0c\n\x08\x42IGQUERY\x10\x02\"S\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05START\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05QUERY\x10\x03\x12\n\n\x06\x43REATE\x10\x04\x42\x08\n\x06\x64\x65tail\"\x88\t\n\rDataScanEvent\x12\x13\n\x0b\x64\x61ta_source\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x04type\x18\x05 \x01(\x0e\x32\x30.google.cloud.dataplex.v1.DataScanEvent.ScanType\x12<\n\x05state\x18\x06 \x01(\x0e\x32-.google.cloud.dataplex.v1.DataScanEvent.State\x12\x0f\n\x07message\x18\x07 \x01(\t\x12\x14\n\x0cspec_version\x18\x08 \x01(\t\x12@\n\x07trigger\x18\t \x01(\x0e\x32/.google.cloud.dataplex.v1.DataScanEvent.Trigger\x12<\n\x05scope\x18\n \x01(\x0e\x32-.google.cloud.dataplex.v1.DataScanEvent.Scope\x12Q\n\x0c\x64\x61ta_profile\x18\x65 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultH\x00\x12Q\n\x0c\x64\x61ta_quality\x18\x66 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultH\x00\x1a&\n\x11\x44\x61taProfileResult\x12\x11\n\trow_count\x18\x01 \x01(\x03\x1a\xd8\x01\n\x11\x44\x61taQualityResult\x12\x11\n\trow_count\x18\x01 \x01(\x03\x12\x0e\n\x06passed\x18\x02 \x01(\x08\x12h\n\x10\x64imension_passed\x18\x03 \x03(\x0b\x32N.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionPassedEntry\x1a\x36\n\x14\x44imensionPassedEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x08:\x02\x38\x01\"I\n\x08ScanType\x12\x19\n\x15SCAN_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x44\x41TA_PROFILE\x10\x01\x12\x10\n\x0c\x44\x41TA_QUALITY\x10\x02\"U\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07STARTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\"?\n\x07Trigger\x12\x17\n\x13TRIGGER_UNSPECIFIED\x10\x00\x12\r\n\tON_DEMAND\x10\x01\x12\x0c\n\x08SCHEDULE\x10\x02\"9\n\x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\x0f\n\x0bINCREMENTAL\x10\x02\x42\x08\n\x06resultBe\n\x1c\x63om.google.cloud.dataplex.v1B\tLogsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/metadata_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/metadata_pb.rb index 5bee5013417e..94db429dba14 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/metadata_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/metadata_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/metadata.proto @@ -10,209 +11,32 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/metadata.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.CreateEntityRequest" do - optional :parent, :string, 1 - optional :entity, :message, 3, "google.cloud.dataplex.v1.Entity" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.dataplex.v1.UpdateEntityRequest" do - optional :entity, :message, 2, "google.cloud.dataplex.v1.Entity" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DeleteEntityRequest" do - optional :name, :string, 1 - optional :etag, :string, 2 - end - add_message "google.cloud.dataplex.v1.ListEntitiesRequest" do - optional :parent, :string, 1 - optional :view, :enum, 2, "google.cloud.dataplex.v1.ListEntitiesRequest.EntityView" - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - optional :filter, :string, 5 - end - add_enum "google.cloud.dataplex.v1.ListEntitiesRequest.EntityView" do - value :ENTITY_VIEW_UNSPECIFIED, 0 - value :TABLES, 1 - value :FILESETS, 2 - end - add_message "google.cloud.dataplex.v1.ListEntitiesResponse" do - repeated :entities, :message, 1, "google.cloud.dataplex.v1.Entity" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.GetEntityRequest" do - optional :name, :string, 1 - optional :view, :enum, 2, "google.cloud.dataplex.v1.GetEntityRequest.EntityView" - end - add_enum "google.cloud.dataplex.v1.GetEntityRequest.EntityView" do - value :ENTITY_VIEW_UNSPECIFIED, 0 - value :BASIC, 1 - value :SCHEMA, 2 - value :FULL, 4 - end - add_message "google.cloud.dataplex.v1.ListPartitionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.dataplex.v1.CreatePartitionRequest" do - optional :parent, :string, 1 - optional :partition, :message, 3, "google.cloud.dataplex.v1.Partition" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.dataplex.v1.DeletePartitionRequest" do - optional :name, :string, 1 - optional :etag, :string, 2 - end - add_message "google.cloud.dataplex.v1.ListPartitionsResponse" do - repeated :partitions, :message, 1, "google.cloud.dataplex.v1.Partition" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.GetPartitionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.Entity" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - optional :create_time, :message, 5, "google.protobuf.Timestamp" - optional :update_time, :message, 6, "google.protobuf.Timestamp" - optional :id, :string, 7 - optional :etag, :string, 8 - optional :type, :enum, 10, "google.cloud.dataplex.v1.Entity.Type" - optional :asset, :string, 11 - optional :data_path, :string, 12 - optional :data_path_pattern, :string, 13 - optional :catalog_entry, :string, 14 - optional :system, :enum, 15, "google.cloud.dataplex.v1.StorageSystem" - optional :format, :message, 16, "google.cloud.dataplex.v1.StorageFormat" - optional :compatibility, :message, 19, "google.cloud.dataplex.v1.Entity.CompatibilityStatus" - optional :access, :message, 21, "google.cloud.dataplex.v1.StorageAccess" - optional :uid, :string, 22 - optional :schema, :message, 50, "google.cloud.dataplex.v1.Schema" - end - add_message "google.cloud.dataplex.v1.Entity.CompatibilityStatus" do - optional :hive_metastore, :message, 1, "google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility" - optional :bigquery, :message, 2, "google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility" - end - add_message "google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility" do - optional :compatible, :bool, 1 - optional :reason, :string, 2 - end - add_enum "google.cloud.dataplex.v1.Entity.Type" do - value :TYPE_UNSPECIFIED, 0 - value :TABLE, 1 - value :FILESET, 2 - end - add_message "google.cloud.dataplex.v1.Partition" do - optional :name, :string, 1 - repeated :values, :string, 2 - optional :location, :string, 3 - optional :etag, :string, 4 - end - add_message "google.cloud.dataplex.v1.Schema" do - optional :user_managed, :bool, 1 - repeated :fields, :message, 2, "google.cloud.dataplex.v1.Schema.SchemaField" - repeated :partition_fields, :message, 3, "google.cloud.dataplex.v1.Schema.PartitionField" - optional :partition_style, :enum, 4, "google.cloud.dataplex.v1.Schema.PartitionStyle" - end - add_message "google.cloud.dataplex.v1.Schema.SchemaField" do - optional :name, :string, 1 - optional :description, :string, 2 - optional :type, :enum, 3, "google.cloud.dataplex.v1.Schema.Type" - optional :mode, :enum, 4, "google.cloud.dataplex.v1.Schema.Mode" - repeated :fields, :message, 10, "google.cloud.dataplex.v1.Schema.SchemaField" - end - add_message "google.cloud.dataplex.v1.Schema.PartitionField" do - optional :name, :string, 1 - optional :type, :enum, 2, "google.cloud.dataplex.v1.Schema.Type" - end - add_enum "google.cloud.dataplex.v1.Schema.Type" do - value :TYPE_UNSPECIFIED, 0 - value :BOOLEAN, 1 - value :BYTE, 2 - value :INT16, 3 - value :INT32, 4 - value :INT64, 5 - value :FLOAT, 6 - value :DOUBLE, 7 - value :DECIMAL, 8 - value :STRING, 9 - value :BINARY, 10 - value :TIMESTAMP, 11 - value :DATE, 12 - value :TIME, 13 - value :RECORD, 14 - value :NULL, 100 - end - add_enum "google.cloud.dataplex.v1.Schema.Mode" do - value :MODE_UNSPECIFIED, 0 - value :REQUIRED, 1 - value :NULLABLE, 2 - value :REPEATED, 3 - end - add_enum "google.cloud.dataplex.v1.Schema.PartitionStyle" do - value :PARTITION_STYLE_UNSPECIFIED, 0 - value :HIVE_COMPATIBLE, 1 - end - add_message "google.cloud.dataplex.v1.StorageFormat" do - optional :format, :enum, 1, "google.cloud.dataplex.v1.StorageFormat.Format" - optional :compression_format, :enum, 2, "google.cloud.dataplex.v1.StorageFormat.CompressionFormat" - optional :mime_type, :string, 3 - oneof :options do - optional :csv, :message, 10, "google.cloud.dataplex.v1.StorageFormat.CsvOptions" - optional :json, :message, 11, "google.cloud.dataplex.v1.StorageFormat.JsonOptions" - optional :iceberg, :message, 12, "google.cloud.dataplex.v1.StorageFormat.IcebergOptions" - end - end - add_message "google.cloud.dataplex.v1.StorageFormat.CsvOptions" do - optional :encoding, :string, 1 - optional :header_rows, :int32, 2 - optional :delimiter, :string, 3 - optional :quote, :string, 4 - end - add_message "google.cloud.dataplex.v1.StorageFormat.JsonOptions" do - optional :encoding, :string, 1 - end - add_message "google.cloud.dataplex.v1.StorageFormat.IcebergOptions" do - optional :metadata_location, :string, 1 - end - add_enum "google.cloud.dataplex.v1.StorageFormat.Format" do - value :FORMAT_UNSPECIFIED, 0 - value :PARQUET, 1 - value :AVRO, 2 - value :ORC, 3 - value :CSV, 100 - value :JSON, 101 - value :IMAGE, 200 - value :AUDIO, 201 - value :VIDEO, 202 - value :TEXT, 203 - value :TFRECORD, 204 - value :OTHER, 1000 - value :UNKNOWN, 1001 - end - add_enum "google.cloud.dataplex.v1.StorageFormat.CompressionFormat" do - value :COMPRESSION_FORMAT_UNSPECIFIED, 0 - value :GZIP, 2 - value :BZIP2, 3 - end - add_message "google.cloud.dataplex.v1.StorageAccess" do - optional :read, :enum, 21, "google.cloud.dataplex.v1.StorageAccess.AccessMode" - end - add_enum "google.cloud.dataplex.v1.StorageAccess.AccessMode" do - value :ACCESS_MODE_UNSPECIFIED, 0 - value :DIRECT, 1 - value :MANAGED, 2 - end - add_enum "google.cloud.dataplex.v1.StorageSystem" do - value :STORAGE_SYSTEM_UNSPECIFIED, 0 - value :CLOUD_STORAGE, 1 - value :BIGQUERY, 2 + +descriptor_data = "\n\'google/cloud/dataplex/v1/metadata.proto\x12\x18google.cloud.dataplex.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9e\x01\n\x13\x43reateEntityRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\x12\x35\n\x06\x65ntity\x18\x03 \x01(\x0b\x32 .google.cloud.dataplex.v1.EntityB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"h\n\x13UpdateEntityRequest\x12\x35\n\x06\x65ntity\x18\x02 \x01(\x0b\x32 .google.cloud.dataplex.v1.EntityB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"^\n\x13\x44\x65leteEntityRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taplex.googleapis.com/Entity\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa3\x02\n\x13ListEntitiesRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\x12K\n\x04view\x18\x02 \x01(\x0e\x32\x38.google.cloud.dataplex.v1.ListEntitiesRequest.EntityViewB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"C\n\nEntityView\x12\x1b\n\x17\x45NTITY_VIEW_UNSPECIFIED\x10\x00\x12\n\n\x06TABLES\x10\x01\x12\x0c\n\x08\x46ILESETS\x10\x02\"c\n\x14ListEntitiesResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.dataplex.v1.Entity\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xde\x01\n\x10GetEntityRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taplex.googleapis.com/Entity\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.cloud.dataplex.v1.GetEntityRequest.EntityViewB\x03\xe0\x41\x01\"J\n\nEntityView\x12\x1b\n\x17\x45NTITY_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\n\n\x06SCHEMA\x10\x02\x12\x08\n\x04\x46ULL\x10\x04\"\x95\x01\n\x15ListPartitionsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taplex.googleapis.com/Entity\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xa9\x01\n\x16\x43reatePartitionRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taplex.googleapis.com/Entity\x12;\n\tpartition\x18\x03 \x01(\x0b\x32#.google.cloud.dataplex.v1.PartitionB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"f\n\x16\x44\x65letePartitionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataplex.googleapis.com/Partition\x12\x13\n\x04\x65tag\x18\x02 \x01(\tB\x05\x18\x01\xe0\x41\x01\"j\n\x16ListPartitionsResponse\x12\x37\n\npartitions\x18\x01 \x03(\x0b\x32#.google.cloud.dataplex.v1.Partition\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x13GetPartitionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataplex.googleapis.com/Partition\"\xc9\t\n\x06\x45ntity\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1e\x64\x61taplex.googleapis.com/Entity\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0f\n\x02id\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12;\n\x04type\x18\n \x01(\x0e\x32%.google.cloud.dataplex.v1.Entity.TypeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x15\n\x05\x61sset\x18\x0b \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\tdata_path\x18\x0c \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1e\n\x11\x64\x61ta_path_pattern\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rcatalog_entry\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12?\n\x06system\x18\x0f \x01(\x0e\x32\'.google.cloud.dataplex.v1.StorageSystemB\x06\xe0\x41\x02\xe0\x41\x05\x12<\n\x06\x66ormat\x18\x10 \x01(\x0b\x32\'.google.cloud.dataplex.v1.StorageFormatB\x03\xe0\x41\x02\x12P\n\rcompatibility\x18\x13 \x01(\x0b\x32\x34.google.cloud.dataplex.v1.Entity.CompatibilityStatusB\x03\xe0\x41\x03\x12<\n\x06\x61\x63\x63\x65ss\x18\x15 \x01(\x0b\x32\'.google.cloud.dataplex.v1.StorageAccessB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x06schema\x18\x32 \x01(\x0b\x32 .google.cloud.dataplex.v1.SchemaB\x03\xe0\x41\x02\x1a\x90\x02\n\x13\x43ompatibilityStatus\x12_\n\x0ehive_metastore\x18\x01 \x01(\x0b\x32\x42.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityB\x03\xe0\x41\x03\x12Y\n\x08\x62igquery\x18\x02 \x01(\x0b\x32\x42.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityB\x03\xe0\x41\x03\x1a=\n\rCompatibility\x12\x17\n\ncompatible\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06reason\x18\x02 \x01(\tB\x03\xe0\x41\x03\"4\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x0b\n\x07\x46ILESET\x10\x02:x\xea\x41u\n\x1e\x64\x61taplex.googleapis.com/Entity\x12Sprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}\"\xa1\x02\n\tPartition\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!dataplex.googleapis.com/Partition\x12\x16\n\x06values\x18\x02 \x03(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x18\n\x08location\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x13\n\x04\x65tag\x18\x04 \x01(\tB\x05\x18\x01\xe0\x41\x01:\x93\x01\xea\x41\x8f\x01\n!dataplex.googleapis.com/Partition\x12jprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition}\"\xb7\x07\n\x06Schema\x12\x19\n\x0cuser_managed\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12\x41\n\x06\x66ields\x18\x02 \x03(\x0b\x32,.google.cloud.dataplex.v1.Schema.SchemaFieldB\x03\xe0\x41\x01\x12N\n\x10partition_fields\x18\x03 \x03(\x0b\x32/.google.cloud.dataplex.v1.Schema.PartitionFieldB\x03\xe0\x41\x01\x12M\n\x0fpartition_style\x18\x04 \x01(\x0e\x32/.google.cloud.dataplex.v1.Schema.PartitionStyleB\x03\xe0\x41\x01\x1a\xf1\x01\n\x0bSchemaField\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x38\n\x04type\x18\x03 \x01(\x0e\x32%.google.cloud.dataplex.v1.Schema.TypeB\x03\xe0\x41\x02\x12\x38\n\x04mode\x18\x04 \x01(\x0e\x32%.google.cloud.dataplex.v1.Schema.ModeB\x03\xe0\x41\x02\x12\x41\n\x06\x66ields\x18\n \x03(\x0b\x32,.google.cloud.dataplex.v1.Schema.SchemaFieldB\x03\xe0\x41\x01\x1a`\n\x0ePartitionField\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\x04type\x18\x02 \x01(\x0e\x32%.google.cloud.dataplex.v1.Schema.TypeB\x06\xe0\x41\x02\xe0\x41\x05\"\xc9\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42OOLEAN\x10\x01\x12\x08\n\x04\x42YTE\x10\x02\x12\t\n\x05INT16\x10\x03\x12\t\n\x05INT32\x10\x04\x12\t\n\x05INT64\x10\x05\x12\t\n\x05\x46LOAT\x10\x06\x12\n\n\x06\x44OUBLE\x10\x07\x12\x0b\n\x07\x44\x45\x43IMAL\x10\x08\x12\n\n\x06STRING\x10\t\x12\n\n\x06\x42INARY\x10\n\x12\r\n\tTIMESTAMP\x10\x0b\x12\x08\n\x04\x44\x41TE\x10\x0c\x12\x08\n\x04TIME\x10\r\x12\n\n\x06RECORD\x10\x0e\x12\x08\n\x04NULL\x10\x64\"F\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REQUIRED\x10\x01\x12\x0c\n\x08NULLABLE\x10\x02\x12\x0c\n\x08REPEATED\x10\x03\"F\n\x0ePartitionStyle\x12\x1f\n\x1bPARTITION_STYLE_UNSPECIFIED\x10\x00\x12\x13\n\x0fHIVE_COMPATIBLE\x10\x01\"\xf4\x06\n\rStorageFormat\x12\x43\n\x06\x66ormat\x18\x01 \x01(\x0e\x32..google.cloud.dataplex.v1.StorageFormat.FormatB\x03\xe0\x41\x03\x12Z\n\x12\x63ompression_format\x18\x02 \x01(\x0e\x32\x39.google.cloud.dataplex.v1.StorageFormat.CompressionFormatB\x03\xe0\x41\x01\x12\x16\n\tmime_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x03\x63sv\x18\n \x01(\x0b\x32\x32.google.cloud.dataplex.v1.StorageFormat.CsvOptionsB\x03\xe0\x41\x01H\x00\x12H\n\x04json\x18\x0b \x01(\x0b\x32\x33.google.cloud.dataplex.v1.StorageFormat.JsonOptionsB\x03\xe0\x41\x01H\x00\x12N\n\x07iceberg\x18\x0c \x01(\x0b\x32\x36.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsB\x03\xe0\x41\x01H\x00\x1ai\n\nCsvOptions\x12\x15\n\x08\x65ncoding\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bheader_rows\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x16\n\tdelimiter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05quote\x18\x04 \x01(\tB\x03\xe0\x41\x01\x1a$\n\x0bJsonOptions\x12\x15\n\x08\x65ncoding\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\x30\n\x0eIcebergOptions\x12\x1e\n\x11metadata_location\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xab\x01\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARQUET\x10\x01\x12\x08\n\x04\x41VRO\x10\x02\x12\x07\n\x03ORC\x10\x03\x12\x07\n\x03\x43SV\x10\x64\x12\x08\n\x04JSON\x10\x65\x12\n\n\x05IMAGE\x10\xc8\x01\x12\n\n\x05\x41UDIO\x10\xc9\x01\x12\n\n\x05VIDEO\x10\xca\x01\x12\t\n\x04TEXT\x10\xcb\x01\x12\r\n\x08TFRECORD\x10\xcc\x01\x12\n\n\x05OTHER\x10\xe8\x07\x12\x0c\n\x07UNKNOWN\x10\xe9\x07\"L\n\x11\x43ompressionFormat\x12\"\n\x1e\x43OMPRESSION_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04GZIP\x10\x02\x12\t\n\x05\x42ZIP2\x10\x03\x42\t\n\x07options\"\x9a\x01\n\rStorageAccess\x12\x45\n\x04read\x18\x15 \x01(\x0e\x32\x32.google.cloud.dataplex.v1.StorageAccess.AccessModeB\x03\xe0\x41\x03\"B\n\nAccessMode\x12\x1b\n\x17\x41\x43\x43\x45SS_MODE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44IRECT\x10\x01\x12\x0b\n\x07MANAGED\x10\x02*P\n\rStorageSystem\x12\x1e\n\x1aSTORAGE_SYSTEM_UNSPECIFIED\x10\x00\x12\x11\n\rCLOUD_STORAGE\x10\x01\x12\x0c\n\x08\x42IGQUERY\x10\x02\x32\x89\x0e\n\x0fMetadataService\x12\xbd\x01\n\x0c\x43reateEntity\x12-.google.cloud.dataplex.v1.CreateEntityRequest\x1a .google.cloud.dataplex.v1.Entity\"\\\x82\xd3\xe4\x93\x02\x46\"*\x12\x12 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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/processing_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/processing_pb.rb index fca2f90d3f8d..4bdc443ce857 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/processing_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/processing_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/processing.proto @@ -6,36 +7,31 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/processing.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.Trigger" do - oneof :mode do - optional :on_demand, :message, 100, "google.cloud.dataplex.v1.Trigger.OnDemand" - optional :schedule, :message, 101, "google.cloud.dataplex.v1.Trigger.Schedule" - end - end - add_message "google.cloud.dataplex.v1.Trigger.OnDemand" do - end - add_message "google.cloud.dataplex.v1.Trigger.Schedule" do - optional :cron, :string, 1 - end - add_message "google.cloud.dataplex.v1.DataSource" do - oneof :source do - optional :entity, :string, 100 - optional :resource, :string, 101 - end - end - add_message "google.cloud.dataplex.v1.ScannedData" do - oneof :data_range do - optional :incremental_field, :message, 1, "google.cloud.dataplex.v1.ScannedData.IncrementalField" - end - end - add_message "google.cloud.dataplex.v1.ScannedData.IncrementalField" do - optional :field, :string, 1 - optional :start, :string, 2 - optional :end, :string, 3 + +descriptor_data = "\n)google/cloud/dataplex/v1/processing.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbd\x01\n\x07Trigger\x12?\n\ton_demand\x18\x64 \x01(\x0b\x32*.google.cloud.dataplex.v1.Trigger.OnDemandH\x00\x12>\n\x08schedule\x18\x65 \x01(\x0b\x32*.google.cloud.dataplex.v1.Trigger.ScheduleH\x00\x1a\n\n\x08OnDemand\x1a\x1d\n\x08Schedule\x12\x11\n\x04\x63ron\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x06\n\x04mode\"i\n\nDataSource\x12\x38\n\x06\x65ntity\x18\x64 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1e\x64\x61taplex.googleapis.com/EntityH\x00\x12\x17\n\x08resource\x18\x65 \x01(\tB\x03\xe0\x41\x05H\x00\x42\x08\n\x06source\"\xaf\x01\n\x0bScannedData\x12S\n\x11incremental_field\x18\x01 \x01(\x0b\x32\x36.google.cloud.dataplex.v1.ScannedData.IncrementalFieldH\x00\x1a=\n\x10IncrementalField\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\r\n\x05start\x18\x02 \x01(\t\x12\x0b\n\x03\x65nd\x18\x03 \x01(\tB\x0c\n\ndata_rangeBk\n\x1c\x63om.google.cloud.dataplex.v1B\x0fProcessingProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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 = [ + ] + 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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/resources_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/resources_pb.rb index 112804a0fe08..29064030aff3 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/resources_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/resources_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/resources.proto @@ -8,253 +9,33 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/resources.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.Lake" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :uid, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - map :labels, :string, :string, 6 - optional :description, :string, 7 - optional :state, :enum, 8, "google.cloud.dataplex.v1.State" - optional :service_account, :string, 9 - optional :metastore, :message, 102, "google.cloud.dataplex.v1.Lake.Metastore" - optional :asset_status, :message, 103, "google.cloud.dataplex.v1.AssetStatus" - optional :metastore_status, :message, 104, "google.cloud.dataplex.v1.Lake.MetastoreStatus" - end - add_message "google.cloud.dataplex.v1.Lake.Metastore" do - optional :service, :string, 1 - end - add_message "google.cloud.dataplex.v1.Lake.MetastoreStatus" do - optional :state, :enum, 1, "google.cloud.dataplex.v1.Lake.MetastoreStatus.State" - optional :message, :string, 2 - optional :update_time, :message, 3, "google.protobuf.Timestamp" - optional :endpoint, :string, 4 - end - add_enum "google.cloud.dataplex.v1.Lake.MetastoreStatus.State" do - value :STATE_UNSPECIFIED, 0 - value :NONE, 1 - value :READY, 2 - value :UPDATING, 3 - value :ERROR, 4 - end - add_message "google.cloud.dataplex.v1.AssetStatus" do - optional :update_time, :message, 1, "google.protobuf.Timestamp" - optional :active_assets, :int32, 2 - optional :security_policy_applying_assets, :int32, 3 - end - add_message "google.cloud.dataplex.v1.Zone" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :uid, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - map :labels, :string, :string, 6 - optional :description, :string, 7 - optional :state, :enum, 8, "google.cloud.dataplex.v1.State" - optional :type, :enum, 9, "google.cloud.dataplex.v1.Zone.Type" - optional :discovery_spec, :message, 103, "google.cloud.dataplex.v1.Zone.DiscoverySpec" - optional :resource_spec, :message, 104, "google.cloud.dataplex.v1.Zone.ResourceSpec" - optional :asset_status, :message, 105, "google.cloud.dataplex.v1.AssetStatus" - end - add_message "google.cloud.dataplex.v1.Zone.ResourceSpec" do - optional :location_type, :enum, 1, "google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType" - end - add_enum "google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType" do - value :LOCATION_TYPE_UNSPECIFIED, 0 - value :SINGLE_REGION, 1 - value :MULTI_REGION, 2 - end - add_message "google.cloud.dataplex.v1.Zone.DiscoverySpec" do - optional :enabled, :bool, 1 - repeated :include_patterns, :string, 2 - repeated :exclude_patterns, :string, 3 - optional :csv_options, :message, 4, "google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions" - optional :json_options, :message, 5, "google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions" - oneof :trigger do - optional :schedule, :string, 10 - end - end - add_message "google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions" do - optional :header_rows, :int32, 1 - optional :delimiter, :string, 2 - optional :encoding, :string, 3 - optional :disable_type_inference, :bool, 4 - end - add_message "google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions" do - optional :encoding, :string, 1 - optional :disable_type_inference, :bool, 2 - end - add_enum "google.cloud.dataplex.v1.Zone.Type" do - value :TYPE_UNSPECIFIED, 0 - value :RAW, 1 - value :CURATED, 2 - end - add_message "google.cloud.dataplex.v1.Action" do - optional :category, :enum, 1, "google.cloud.dataplex.v1.Action.Category" - optional :issue, :string, 2 - optional :detect_time, :message, 4, "google.protobuf.Timestamp" - optional :name, :string, 5 - optional :lake, :string, 6 - optional :zone, :string, 7 - optional :asset, :string, 8 - repeated :data_locations, :string, 9 - oneof :details do - optional :invalid_data_format, :message, 10, "google.cloud.dataplex.v1.Action.InvalidDataFormat" - optional :incompatible_data_schema, :message, 11, "google.cloud.dataplex.v1.Action.IncompatibleDataSchema" - optional :invalid_data_partition, :message, 12, "google.cloud.dataplex.v1.Action.InvalidDataPartition" - optional :missing_data, :message, 13, "google.cloud.dataplex.v1.Action.MissingData" - optional :missing_resource, :message, 14, "google.cloud.dataplex.v1.Action.MissingResource" - optional :unauthorized_resource, :message, 15, "google.cloud.dataplex.v1.Action.UnauthorizedResource" - optional :failed_security_policy_apply, :message, 21, "google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply" - optional :invalid_data_organization, :message, 22, "google.cloud.dataplex.v1.Action.InvalidDataOrganization" - end - end - add_message "google.cloud.dataplex.v1.Action.MissingResource" do - end - add_message "google.cloud.dataplex.v1.Action.UnauthorizedResource" do - end - add_message "google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply" do - optional :asset, :string, 1 - end - add_message "google.cloud.dataplex.v1.Action.InvalidDataFormat" do - repeated :sampled_data_locations, :string, 1 - optional :expected_format, :string, 2 - optional :new_format, :string, 3 - end - add_message "google.cloud.dataplex.v1.Action.IncompatibleDataSchema" do - optional :table, :string, 1 - optional :existing_schema, :string, 2 - optional :new_schema, :string, 3 - repeated :sampled_data_locations, :string, 4 - optional :schema_change, :enum, 5, "google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange" - end - add_enum "google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange" do - value :SCHEMA_CHANGE_UNSPECIFIED, 0 - value :INCOMPATIBLE, 1 - value :MODIFIED, 2 - end - add_message "google.cloud.dataplex.v1.Action.InvalidDataPartition" do - optional :expected_structure, :enum, 1, "google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure" - end - add_enum "google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure" do - value :PARTITION_STRUCTURE_UNSPECIFIED, 0 - value :CONSISTENT_KEYS, 1 - value :HIVE_STYLE_KEYS, 2 - end - add_message "google.cloud.dataplex.v1.Action.MissingData" do - end - add_message "google.cloud.dataplex.v1.Action.InvalidDataOrganization" do - end - add_enum "google.cloud.dataplex.v1.Action.Category" do - value :CATEGORY_UNSPECIFIED, 0 - value :RESOURCE_MANAGEMENT, 1 - value :SECURITY_POLICY, 2 - value :DATA_DISCOVERY, 3 - end - add_message "google.cloud.dataplex.v1.Asset" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :uid, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - map :labels, :string, :string, 6 - optional :description, :string, 7 - optional :state, :enum, 8, "google.cloud.dataplex.v1.State" - optional :resource_spec, :message, 100, "google.cloud.dataplex.v1.Asset.ResourceSpec" - optional :resource_status, :message, 101, "google.cloud.dataplex.v1.Asset.ResourceStatus" - optional :security_status, :message, 103, "google.cloud.dataplex.v1.Asset.SecurityStatus" - optional :discovery_spec, :message, 106, "google.cloud.dataplex.v1.Asset.DiscoverySpec" - optional :discovery_status, :message, 107, "google.cloud.dataplex.v1.Asset.DiscoveryStatus" - end - add_message "google.cloud.dataplex.v1.Asset.SecurityStatus" do - optional :state, :enum, 1, "google.cloud.dataplex.v1.Asset.SecurityStatus.State" - optional :message, :string, 2 - optional :update_time, :message, 3, "google.protobuf.Timestamp" - end - add_enum "google.cloud.dataplex.v1.Asset.SecurityStatus.State" do - value :STATE_UNSPECIFIED, 0 - value :READY, 1 - value :APPLYING, 2 - value :ERROR, 3 - end - add_message "google.cloud.dataplex.v1.Asset.DiscoverySpec" do - optional :enabled, :bool, 1 - repeated :include_patterns, :string, 2 - repeated :exclude_patterns, :string, 3 - optional :csv_options, :message, 4, "google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions" - optional :json_options, :message, 5, "google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions" - oneof :trigger do - optional :schedule, :string, 10 - end - end - add_message "google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions" do - optional :header_rows, :int32, 1 - optional :delimiter, :string, 2 - optional :encoding, :string, 3 - optional :disable_type_inference, :bool, 4 - end - add_message "google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions" do - optional :encoding, :string, 1 - optional :disable_type_inference, :bool, 2 - end - add_message "google.cloud.dataplex.v1.Asset.ResourceSpec" do - optional :name, :string, 1 - optional :type, :enum, 2, "google.cloud.dataplex.v1.Asset.ResourceSpec.Type" - optional :read_access_mode, :enum, 5, "google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode" - end - add_enum "google.cloud.dataplex.v1.Asset.ResourceSpec.Type" do - value :TYPE_UNSPECIFIED, 0 - value :STORAGE_BUCKET, 1 - value :BIGQUERY_DATASET, 2 - end - add_enum "google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode" do - value :ACCESS_MODE_UNSPECIFIED, 0 - value :DIRECT, 1 - value :MANAGED, 2 - end - add_message "google.cloud.dataplex.v1.Asset.ResourceStatus" do - optional :state, :enum, 1, "google.cloud.dataplex.v1.Asset.ResourceStatus.State" - optional :message, :string, 2 - optional :update_time, :message, 3, "google.protobuf.Timestamp" - optional :managed_access_identity, :string, 4 - end - add_enum "google.cloud.dataplex.v1.Asset.ResourceStatus.State" do - value :STATE_UNSPECIFIED, 0 - value :READY, 1 - value :ERROR, 2 - end - add_message "google.cloud.dataplex.v1.Asset.DiscoveryStatus" do - optional :state, :enum, 1, "google.cloud.dataplex.v1.Asset.DiscoveryStatus.State" - optional :message, :string, 2 - optional :update_time, :message, 3, "google.protobuf.Timestamp" - optional :last_run_time, :message, 4, "google.protobuf.Timestamp" - optional :stats, :message, 6, "google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats" - optional :last_run_duration, :message, 7, "google.protobuf.Duration" - end - add_message "google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats" do - optional :data_items, :int64, 1 - optional :data_size, :int64, 2 - optional :tables, :int64, 3 - optional :filesets, :int64, 4 - end - add_enum "google.cloud.dataplex.v1.Asset.DiscoveryStatus.State" do - value :STATE_UNSPECIFIED, 0 - value :SCHEDULED, 1 - value :IN_PROGRESS, 2 - value :PAUSED, 3 - value :DISABLED, 5 - end - add_enum "google.cloud.dataplex.v1.State" do - value :STATE_UNSPECIFIED, 0 - value :ACTIVE, 1 - value :CREATING, 2 - value :DELETING, 3 - value :ACTION_REQUIRED, 4 + +descriptor_data = "\n(google/cloud/dataplex/v1/resources.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfa\x07\n\x04Lake\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x06 \x03(\x0b\x32*.google.cloud.dataplex.v1.Lake.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x05state\x18\x08 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03\x12\x1c\n\x0fservice_account\x18\t \x01(\tB\x03\xe0\x41\x03\x12@\n\tmetastore\x18\x66 \x01(\x0b\x32(.google.cloud.dataplex.v1.Lake.MetastoreB\x03\xe0\x41\x01\x12@\n\x0c\x61sset_status\x18g \x01(\x0b\x32%.google.cloud.dataplex.v1.AssetStatusB\x03\xe0\x41\x03\x12M\n\x10metastore_status\x18h \x01(\x0b\x32..google.cloud.dataplex.v1.Lake.MetastoreStatusB\x03\xe0\x41\x03\x1a!\n\tMetastore\x12\x14\n\x07service\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\xf8\x01\n\x0fMetastoreStatus\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32\x34.google.cloud.dataplex.v1.Lake.MetastoreStatus.State\x12\x0f\n\x07message\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\"L\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:W\xea\x41T\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x34projects/{project}/locations/{location}/lakes/{lake}\"~\n\x0b\x41ssetStatus\x12/\n\x0bupdate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\ractive_assets\x18\x02 \x01(\x05\x12\'\n\x1fsecurity_policy_applying_assets\x18\x03 \x01(\x05\"\xf4\x0b\n\x04Zone\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x06 \x03(\x0b\x32*.google.cloud.dataplex.v1.Zone.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x05state\x18\x08 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03\x12\x39\n\x04type\x18\t \x01(\x0e\x32#.google.cloud.dataplex.v1.Zone.TypeB\x06\xe0\x41\x02\xe0\x41\x05\x12I\n\x0e\x64iscovery_spec\x18g \x01(\x0b\x32,.google.cloud.dataplex.v1.Zone.DiscoverySpecB\x03\xe0\x41\x01\x12G\n\rresource_spec\x18h \x01(\x0b\x32+.google.cloud.dataplex.v1.Zone.ResourceSpecB\x03\xe0\x41\x02\x12@\n\x0c\x61sset_status\x18i \x01(\x0b\x32%.google.cloud.dataplex.v1.AssetStatusB\x03\xe0\x41\x03\x1a\xbb\x01\n\x0cResourceSpec\x12W\n\rlocation_type\x18\x01 \x01(\x0e\x32\x38.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationTypeB\x06\xe0\x41\x02\xe0\x41\x05\"R\n\x0cLocationType\x12\x1d\n\x19LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rSINGLE_REGION\x10\x01\x12\x10\n\x0cMULTI_REGION\x10\x02\x1a\xf6\x03\n\rDiscoverySpec\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12\x1d\n\x10include_patterns\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x65xclude_patterns\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12Q\n\x0b\x63sv_options\x18\x04 \x01(\x0b\x32\x37.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptionsB\x03\xe0\x41\x01\x12S\n\x0cjson_options\x18\x05 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsB\x03\xe0\x41\x01\x12\x17\n\x08schedule\x18\n \x01(\tB\x03\xe0\x41\x01H\x00\x1az\n\nCsvOptions\x12\x18\n\x0bheader_rows\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x16\n\tdelimiter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x65ncoding\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16\x64isable_type_inference\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x1aI\n\x0bJsonOptions\x12\x15\n\x08\x65ncoding\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16\x64isable_type_inference\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x42\t\n\x07trigger\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"2\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03RAW\x10\x01\x12\x0b\n\x07\x43URATED\x10\x02:d\xea\x41\x61\n\x1c\x64\x61taplex.googleapis.com/Zone\x12\x41projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}\"\xab\x11\n\x06\x41\x63tion\x12;\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32).google.cloud.dataplex.v1.Action.Category\x12\r\n\x05issue\x18\x02 \x01(\t\x12/\n\x0b\x64\x65tect_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x04name\x18\x05 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1e\x64\x61taplex.googleapis.com/Action\x12\x32\n\x04lake\x18\x06 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x32\n\x04zone\x18\x07 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\x12\x34\n\x05\x61sset\x18\x08 \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x64\x61taplex.googleapis.com/Asset\x12\x16\n\x0e\x64\x61ta_locations\x18\t \x03(\t\x12Q\n\x13invalid_data_format\x18\n \x01(\x0b\x32\x32.google.cloud.dataplex.v1.Action.InvalidDataFormatH\x00\x12[\n\x18incompatible_data_schema\x18\x0b \x01(\x0b\x32\x37.google.cloud.dataplex.v1.Action.IncompatibleDataSchemaH\x00\x12W\n\x16invalid_data_partition\x18\x0c \x01(\x0b\x32\x35.google.cloud.dataplex.v1.Action.InvalidDataPartitionH\x00\x12\x44\n\x0cmissing_data\x18\r \x01(\x0b\x32,.google.cloud.dataplex.v1.Action.MissingDataH\x00\x12L\n\x10missing_resource\x18\x0e \x01(\x0b\x32\x30.google.cloud.dataplex.v1.Action.MissingResourceH\x00\x12V\n\x15unauthorized_resource\x18\x0f \x01(\x0b\x32\x35.google.cloud.dataplex.v1.Action.UnauthorizedResourceH\x00\x12\x62\n\x1c\x66\x61iled_security_policy_apply\x18\x15 \x01(\x0b\x32:.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApplyH\x00\x12]\n\x19invalid_data_organization\x18\x16 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.Action.InvalidDataOrganizationH\x00\x1a\x11\n\x0fMissingResource\x1a\x16\n\x14UnauthorizedResource\x1a*\n\x19\x46\x61iledSecurityPolicyApply\x12\r\n\x05\x61sset\x18\x01 \x01(\t\x1a`\n\x11InvalidDataFormat\x12\x1e\n\x16sampled_data_locations\x18\x01 \x03(\t\x12\x17\n\x0f\x65xpected_format\x18\x02 \x01(\t\x12\x12\n\nnew_format\x18\x03 \x01(\t\x1a\xa0\x02\n\x16IncompatibleDataSchema\x12\r\n\x05table\x18\x01 \x01(\t\x12\x17\n\x0f\x65xisting_schema\x18\x02 \x01(\t\x12\x12\n\nnew_schema\x18\x03 \x01(\t\x12\x1e\n\x16sampled_data_locations\x18\x04 \x03(\t\x12[\n\rschema_change\x18\x05 \x01(\x0e\x32\x44.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange\"M\n\x0cSchemaChange\x12\x1d\n\x19SCHEMA_CHANGE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINCOMPATIBLE\x10\x01\x12\x0c\n\x08MODIFIED\x10\x02\x1a\xe1\x01\n\x14InvalidDataPartition\x12\x64\n\x12\x65xpected_structure\x18\x01 \x01(\x0e\x32H.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure\"c\n\x12PartitionStructure\x12#\n\x1fPARTITION_STRUCTURE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43ONSISTENT_KEYS\x10\x01\x12\x13\n\x0fHIVE_STYLE_KEYS\x10\x02\x1a\r\n\x0bMissingData\x1a\x19\n\x17InvalidDataOrganization\"f\n\x08\x43\x61tegory\x12\x18\n\x14\x43\x41TEGORY_UNSPECIFIED\x10\x00\x12\x17\n\x13RESOURCE_MANAGEMENT\x10\x01\x12\x13\n\x0fSECURITY_POLICY\x10\x02\x12\x12\n\x0e\x44\x41TA_DISCOVERY\x10\x03:\xa2\x02\xea\x41\x9e\x02\n\x1e\x64\x61taplex.googleapis.com/Action\x12\x45projects/{project}/locations/{location}/lakes/{lake}/actions/{action}\x12Rprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}\x12\x61projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}B\t\n\x07\x64\x65tails\"\xa4\x15\n\x05\x41sset\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x64\x61taplex.googleapis.com/Asset\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x06labels\x18\x06 \x03(\x0b\x32+.google.cloud.dataplex.v1.Asset.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x05state\x18\x08 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03\x12H\n\rresource_spec\x18\x64 \x01(\x0b\x32,.google.cloud.dataplex.v1.Asset.ResourceSpecB\x03\xe0\x41\x02\x12L\n\x0fresource_status\x18\x65 \x01(\x0b\x32..google.cloud.dataplex.v1.Asset.ResourceStatusB\x03\xe0\x41\x03\x12L\n\x0fsecurity_status\x18g \x01(\x0b\x32..google.cloud.dataplex.v1.Asset.SecurityStatusB\x03\xe0\x41\x03\x12J\n\x0e\x64iscovery_spec\x18j \x01(\x0b\x32-.google.cloud.dataplex.v1.Asset.DiscoverySpecB\x03\xe0\x41\x01\x12N\n\x10\x64iscovery_status\x18k \x01(\x0b\x32/.google.cloud.dataplex.v1.Asset.DiscoveryStatusB\x03\xe0\x41\x03\x1a\xdb\x01\n\x0eSecurityStatus\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32\x34.google.cloud.dataplex.v1.Asset.SecurityStatus.State\x12\x0f\n\x07message\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"B\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x41PPLYING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x1a\xf8\x03\n\rDiscoverySpec\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1d\n\x10include_patterns\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x65xclude_patterns\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12R\n\x0b\x63sv_options\x18\x04 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptionsB\x03\xe0\x41\x01\x12T\n\x0cjson_options\x18\x05 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptionsB\x03\xe0\x41\x01\x12\x17\n\x08schedule\x18\n \x01(\tB\x03\xe0\x41\x01H\x00\x1az\n\nCsvOptions\x12\x18\n\x0bheader_rows\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x16\n\tdelimiter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x65ncoding\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16\x64isable_type_inference\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x1aI\n\x0bJsonOptions\x12\x15\n\x08\x65ncoding\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16\x64isable_type_inference\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x42\t\n\x07trigger\x1a\xce\x02\n\x0cResourceSpec\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12G\n\x04type\x18\x02 \x01(\x0e\x32\x31.google.cloud.dataplex.v1.Asset.ResourceSpec.TypeB\x06\xe0\x41\x02\xe0\x41\x05\x12V\n\x10read_access_mode\x18\x05 \x01(\x0e\x32\x37.google.cloud.dataplex.v1.Asset.ResourceSpec.AccessModeB\x03\xe0\x41\x01\"F\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTORAGE_BUCKET\x10\x01\x12\x14\n\x10\x42IGQUERY_DATASET\x10\x02\"B\n\nAccessMode\x12\x1b\n\x17\x41\x43\x43\x45SS_MODE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44IRECT\x10\x01\x12\x0b\n\x07MANAGED\x10\x02\x1a\xf3\x01\n\x0eResourceStatus\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32\x34.google.cloud.dataplex.v1.Asset.ResourceStatus.State\x12\x0f\n\x07message\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12$\n\x17managed_access_identity\x18\x04 \x01(\tB\x03\xe0\x41\x03\"4\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x1a\xf4\x03\n\x0f\x44iscoveryStatus\x12\x44\n\x05state\x18\x01 \x01(\x0e\x32\x35.google.cloud.dataplex.v1.Asset.DiscoveryStatus.State\x12\x0f\n\x07message\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rlast_run_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x05stats\x18\x06 \x01(\x0b\x32\x35.google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats\x12\x34\n\x11last_run_duration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x1aP\n\x05Stats\x12\x12\n\ndata_items\x18\x01 \x01(\x03\x12\x11\n\tdata_size\x18\x02 \x01(\x03\x12\x0e\n\x06tables\x18\x03 \x01(\x03\x12\x10\n\x08\x66ilesets\x18\x04 \x01(\x03\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:t\xea\x41q\n\x1d\x64\x61taplex.googleapis.com/Asset\x12Pprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}*[\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x13\n\x0f\x41\x43TION_REQUIRED\x10\x04\x42j\n\x1c\x63om.google.cloud.dataplex.v1B\x0eResourcesProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/service_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/service_pb.rb index 5307243d5ef2..723fe67dd4d4 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/service_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/service.proto @@ -15,210 +16,36 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/service.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.CreateLakeRequest" do - optional :parent, :string, 1 - optional :lake_id, :string, 2 - optional :lake, :message, 3, "google.cloud.dataplex.v1.Lake" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.dataplex.v1.UpdateLakeRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :lake, :message, 2, "google.cloud.dataplex.v1.Lake" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DeleteLakeRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.ListLakesRequest" 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.dataplex.v1.ListLakesResponse" do - repeated :lakes, :message, 1, "google.cloud.dataplex.v1.Lake" - optional :next_page_token, :string, 2 - repeated :unreachable_locations, :string, 3 - end - add_message "google.cloud.dataplex.v1.ListLakeActionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataplex.v1.ListActionsResponse" do - repeated :actions, :message, 1, "google.cloud.dataplex.v1.Action" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.GetLakeRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.CreateZoneRequest" do - optional :parent, :string, 1 - optional :zone_id, :string, 2 - optional :zone, :message, 3, "google.cloud.dataplex.v1.Zone" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.dataplex.v1.UpdateZoneRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :zone, :message, 2, "google.cloud.dataplex.v1.Zone" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DeleteZoneRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.ListZonesRequest" 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.dataplex.v1.ListZonesResponse" do - repeated :zones, :message, 1, "google.cloud.dataplex.v1.Zone" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.ListZoneActionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataplex.v1.GetZoneRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.CreateAssetRequest" do - optional :parent, :string, 1 - optional :asset_id, :string, 2 - optional :asset, :message, 3, "google.cloud.dataplex.v1.Asset" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.dataplex.v1.UpdateAssetRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :asset, :message, 2, "google.cloud.dataplex.v1.Asset" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DeleteAssetRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.ListAssetsRequest" 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.dataplex.v1.ListAssetsResponse" do - repeated :assets, :message, 1, "google.cloud.dataplex.v1.Asset" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.ListAssetActionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataplex.v1.GetAssetRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.OperationMetadata" do - optional :create_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :target, :string, 3 - optional :verb, :string, 4 - optional :status_message, :string, 5 - optional :requested_cancellation, :bool, 6 - optional :api_version, :string, 7 - end - add_message "google.cloud.dataplex.v1.CreateTaskRequest" do - optional :parent, :string, 1 - optional :task_id, :string, 2 - optional :task, :message, 3, "google.cloud.dataplex.v1.Task" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.dataplex.v1.UpdateTaskRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :task, :message, 2, "google.cloud.dataplex.v1.Task" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DeleteTaskRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.ListTasksRequest" 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.dataplex.v1.ListTasksResponse" do - repeated :tasks, :message, 1, "google.cloud.dataplex.v1.Task" - optional :next_page_token, :string, 2 - repeated :unreachable_locations, :string, 3 - end - add_message "google.cloud.dataplex.v1.GetTaskRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.GetJobRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.RunTaskRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.RunTaskResponse" do - optional :job, :message, 1, "google.cloud.dataplex.v1.Job" - end - add_message "google.cloud.dataplex.v1.ListJobsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataplex.v1.ListJobsResponse" do - repeated :jobs, :message, 1, "google.cloud.dataplex.v1.Job" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.CancelJobRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.CreateEnvironmentRequest" do - optional :parent, :string, 1 - optional :environment_id, :string, 2 - optional :environment, :message, 3, "google.cloud.dataplex.v1.Environment" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.dataplex.v1.UpdateEnvironmentRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :environment, :message, 2, "google.cloud.dataplex.v1.Environment" - optional :validate_only, :bool, 3 - end - add_message "google.cloud.dataplex.v1.DeleteEnvironmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.ListEnvironmentsRequest" 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.dataplex.v1.ListEnvironmentsResponse" do - repeated :environments, :message, 1, "google.cloud.dataplex.v1.Environment" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataplex.v1.GetEnvironmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataplex.v1.ListSessionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.dataplex.v1.ListSessionsResponse" do - repeated :sessions, :message, 1, "google.cloud.dataplex.v1.Session" - optional :next_page_token, :string, 2 + +descriptor_data = "\n&google/cloud/dataplex/v1/service.proto\x12\x18google.cloud.dataplex.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/dataplex/v1/analyze.proto\x1a(google/cloud/dataplex/v1/resources.proto\x1a$google/cloud/dataplex/v1/tasks.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb3\x01\n\x11\x43reateLakeRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x14\n\x07lake_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x04lake\x18\x03 \x01(\x0b\x32\x1e.google.cloud.dataplex.v1.LakeB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x98\x01\n\x11UpdateLakeRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x31\n\x04lake\x18\x02 \x01(\x0b\x32\x1e.google.cloud.dataplex.v1.LakeB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"G\n\x11\x44\x65leteLakeRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\"\xaa\x01\n\x10ListLakesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"z\n\x11ListLakesResponse\x12-\n\x05lakes\x18\x01 \x03(\x0b\x32\x1e.google.cloud.dataplex.v1.Lake\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"\x7f\n\x16ListLakeActionsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"a\n\x13ListActionsResponse\x12\x31\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32 .google.cloud.dataplex.v1.Action\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"D\n\x0eGetLakeRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\"\xae\x01\n\x11\x43reateZoneRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x14\n\x07zone_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x04zone\x18\x03 \x01(\x0b\x32\x1e.google.cloud.dataplex.v1.ZoneB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x98\x01\n\x11UpdateZoneRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x31\n\x04zone\x18\x02 \x01(\x0b\x32\x1e.google.cloud.dataplex.v1.ZoneB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"G\n\x11\x44\x65leteZoneRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\"\xa5\x01\n\x10ListZonesRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"[\n\x11ListZonesResponse\x12-\n\x05zones\x18\x01 \x03(\x0b\x32\x1e.google.cloud.dataplex.v1.Zone\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x16ListZoneActionsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"D\n\x0eGetZoneRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\"\xb2\x01\n\x12\x43reateAssetRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\x12\x15\n\x08\x61sset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05\x61sset\x18\x03 \x01(\x0b\x32\x1f.google.cloud.dataplex.v1.AssetB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x9b\x01\n\x12UpdateAssetRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x33\n\x05\x61sset\x18\x02 \x01(\x0b\x32\x1f.google.cloud.dataplex.v1.AssetB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"I\n\x12\x44\x65leteAssetRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taplex.googleapis.com/Asset\"\xa6\x01\n\x11ListAssetsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Zone\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"^\n\x12ListAssetsResponse\x12/\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x1f.google.cloud.dataplex.v1.Asset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x81\x01\n\x17ListAssetActionsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taplex.googleapis.com/Asset\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"F\n\x0fGetAssetRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taplex.googleapis.com/Asset\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xae\x01\n\x11\x43reateTaskRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x14\n\x07task_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x04task\x18\x03 \x01(\x0b\x32\x1e.google.cloud.dataplex.v1.TaskB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x98\x01\n\x11UpdateTaskRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x31\n\x04task\x18\x02 \x01(\x0b\x32\x1e.google.cloud.dataplex.v1.TaskB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"G\n\x11\x44\x65leteTaskRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Task\"\xa5\x01\n\x10ListTasksRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"z\n\x11ListTasksResponse\x12-\n\x05tasks\x18\x01 \x03(\x0b\x32\x1e.google.cloud.dataplex.v1.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"D\n\x0eGetTaskRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Task\"B\n\rGetJobRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x64\x61taplex.googleapis.com/Job\"D\n\x0eRunTaskRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Task\"=\n\x0fRunTaskResponse\x12*\n\x03job\x18\x01 \x01(\x0b\x32\x1d.google.cloud.dataplex.v1.Job\"x\n\x0fListJobsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Task\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"X\n\x10ListJobsResponse\x12+\n\x04jobs\x18\x01 \x03(\x0b\x32\x1d.google.cloud.dataplex.v1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"E\n\x10\x43\x61ncelJobRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x64\x61taplex.googleapis.com/Job\"\xca\x01\n\x18\x43reateEnvironmentRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x1b\n\x0e\x65nvironment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12?\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32%.google.cloud.dataplex.v1.EnvironmentB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xad\x01\n\x18UpdateEnvironmentRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12?\n\x0b\x65nvironment\x18\x02 \x01(\x0b\x32%.google.cloud.dataplex.v1.EnvironmentB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"U\n\x18\x44\x65leteEnvironmentRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/Environment\"\xac\x01\n\x17ListEnvironmentsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"p\n\x18ListEnvironmentsResponse\x12;\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32%.google.cloud.dataplex.v1.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"R\n\x15GetEnvironmentRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/Environment\"\x98\x01\n\x13ListSessionsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/Environment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"d\n\x14ListSessionsResponse\x12\x33\n\x08sessions\x18\x01 \x03(\x0b\x32!.google.cloud.dataplex.v1.Session\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xac\x32\n\x0f\x44\x61taplexService\x12\xc3\x01\n\nCreateLake\x12+.google.cloud.dataplex.v1.CreateLakeRequest\x1a\x1d.google.longrunning.Operation\"i\x82\xd3\xe4\x93\x02\x31\")/v1/{parent=projects/*/locations/*}/lakes:\x04lake\xda\x41\x13parent,lake,lake_id\xca\x41\x19\n\x04Lake\x12\x11OperationMetadata\x12\xc5\x01\n\nUpdateLake\x12+.google.cloud.dataplex.v1.UpdateLakeRequest\x1a\x1d.google.longrunning.Operation\"k\x82\xd3\xe4\x93\x02\x36\x32./v1/{lake.name=projects/*/locations/*/lakes/*}:\x04lake\xda\x41\x10lake,update_mask\xca\x41\x19\n\x04Lake\x12\x11OperationMetadata\x12\xbf\x01\n\nDeleteLake\x12+.google.cloud.dataplex.v1.DeleteLakeRequest\x1a\x1d.google.longrunning.Operation\"e\x82\xd3\xe4\x93\x02+*)/v1/{name=projects/*/locations/*/lakes/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xa0\x01\n\tListLakes\x12*.google.cloud.dataplex.v1.ListLakesRequest\x1a+.google.cloud.dataplex.v1.ListLakesResponse\":\x82\xd3\xe4\x93\x02+\x12)/v1/{parent=projects/*/locations/*}/lakes\xda\x41\x06parent\x12\x8d\x01\n\x07GetLake\x12(.google.cloud.dataplex.v1.GetLakeRequest\x1a\x1e.google.cloud.dataplex.v1.Lake\"8\x82\xd3\xe4\x93\x02+\x12)/v1/{name=projects/*/locations/*/lakes/*}\xda\x41\x04name\x12\xb8\x01\n\x0fListLakeActions\x12\x30.google.cloud.dataplex.v1.ListLakeActionsRequest\x1a-.google.cloud.dataplex.v1.ListActionsResponse\"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*/lakes/*}/actions\xda\x41\x06parent\x12\xcb\x01\n\nCreateZone\x12+.google.cloud.dataplex.v1.CreateZoneRequest\x1a\x1d.google.longrunning.Operation\"q\x82\xd3\xe4\x93\x02\x39\"1/v1/{parent=projects/*/locations/*/lakes/*}/zones:\x04zone\xda\x41\x13parent,zone,zone_id\xca\x41\x19\n\x04Zone\x12\x11OperationMetadata\x12\xcd\x01\n\nUpdateZone\x12+.google.cloud.dataplex.v1.UpdateZoneRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02>26/v1/{zone.name=projects/*/locations/*/lakes/*/zones/*}:\x04zone\xda\x41\x10zone,update_mask\xca\x41\x19\n\x04Zone\x12\x11OperationMetadata\x12\xc7\x01\n\nDeleteZone\x12+.google.cloud.dataplex.v1.DeleteZoneRequest\x1a\x1d.google.longrunning.Operation\"m\x82\xd3\xe4\x93\x02\x33*1/v1/{name=projects/*/locations/*/lakes/*/zones/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xa8\x01\n\tListZones\x12*.google.cloud.dataplex.v1.ListZonesRequest\x1a+.google.cloud.dataplex.v1.ListZonesResponse\"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{parent=projects/*/locations/*/lakes/*}/zones\xda\x41\x06parent\x12\x95\x01\n\x07GetZone\x12(.google.cloud.dataplex.v1.GetZoneRequest\x1a\x1e.google.cloud.dataplex.v1.Zone\"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{name=projects/*/locations/*/lakes/*/zones/*}\xda\x41\x04name\x12\xc0\x01\n\x0fListZoneActions\x12\x30.google.cloud.dataplex.v1.ListZoneActionsRequest\x1a-.google.cloud.dataplex.v1.ListActionsResponse\"L\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/actions\xda\x41\x06parent\x12\xda\x01\n\x0b\x43reateAsset\x12,.google.cloud.dataplex.v1.CreateAssetRequest\x1a\x1d.google.longrunning.Operation\"~\x82\xd3\xe4\x93\x02\x43\":/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets:\x05\x61sset\xda\x41\x15parent,asset,asset_id\xca\x41\x1a\n\x05\x41sset\x12\x11OperationMetadata\x12\xdd\x01\n\x0bUpdateAsset\x12,.google.cloud.dataplex.v1.UpdateAssetRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\x82\xd3\xe4\x93\x02I2@/v1/{asset.name=projects/*/locations/*/lakes/*/zones/*/assets/*}:\x05\x61sset\xda\x41\x11\x61sset,update_mask\xca\x41\x1a\n\x05\x41sset\x12\x11OperationMetadata\x12\xd2\x01\n\x0b\x44\x65leteAsset\x12,.google.cloud.dataplex.v1.DeleteAssetRequest\x1a\x1d.google.longrunning.Operation\"v\x82\xd3\xe4\x93\x02<*:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xb4\x01\n\nListAssets\x12+.google.cloud.dataplex.v1.ListAssetsRequest\x1a,.google.cloud.dataplex.v1.ListAssetsResponse\"K\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets\xda\x41\x06parent\x12\xa1\x01\n\x08GetAsset\x12).google.cloud.dataplex.v1.GetAssetRequest\x1a\x1f.google.cloud.dataplex.v1.Asset\"I\x82\xd3\xe4\x93\x02<\x12:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\xda\x41\x04name\x12\xcb\x01\n\x10ListAssetActions\x12\x31.google.cloud.dataplex.v1.ListAssetActionsRequest\x1a-.google.cloud.dataplex.v1.ListActionsResponse\"U\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{parent=projects/*/locations/*/lakes/*/zones/*/assets/*}/actions\xda\x41\x06parent\x12\xcb\x01\n\nCreateTask\x12+.google.cloud.dataplex.v1.CreateTaskRequest\x1a\x1d.google.longrunning.Operation\"q\x82\xd3\xe4\x93\x02\x39\"1/v1/{parent=projects/*/locations/*/lakes/*}/tasks:\x04task\xda\x41\x13parent,task,task_id\xca\x41\x19\n\x04Task\x12\x11OperationMetadata\x12\xcd\x01\n\nUpdateTask\x12+.google.cloud.dataplex.v1.UpdateTaskRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02>26/v1/{task.name=projects/*/locations/*/lakes/*/tasks/*}:\x04task\xda\x41\x10task,update_mask\xca\x41\x19\n\x04Task\x12\x11OperationMetadata\x12\xc7\x01\n\nDeleteTask\x12+.google.cloud.dataplex.v1.DeleteTaskRequest\x1a\x1d.google.longrunning.Operation\"m\x82\xd3\xe4\x93\x02\x33*1/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xa8\x01\n\tListTasks\x12*.google.cloud.dataplex.v1.ListTasksRequest\x1a+.google.cloud.dataplex.v1.ListTasksResponse\"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{parent=projects/*/locations/*/lakes/*}/tasks\xda\x41\x06parent\x12\x95\x01\n\x07GetTask\x12(.google.cloud.dataplex.v1.GetTaskRequest\x1a\x1e.google.cloud.dataplex.v1.Task\"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\xda\x41\x04name\x12\xac\x01\n\x08ListJobs\x12).google.cloud.dataplex.v1.ListJobsRequest\x1a*.google.cloud.dataplex.v1.ListJobsResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/lakes/*/tasks/*}/jobs\xda\x41\x06parent\x12\xa7\x01\n\x07RunTask\x12(.google.cloud.dataplex.v1.RunTaskRequest\x1a).google.cloud.dataplex.v1.RunTaskResponse\"G\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/lakes/*/tasks/*}:run:\x01*\xda\x41\x04name\x12\x99\x01\n\x06GetJob\x12\'.google.cloud.dataplex.v1.GetJobRequest\x1a\x1d.google.cloud.dataplex.v1.Job\"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}\xda\x41\x04name\x12\xa2\x01\n\tCancelJob\x12*.google.cloud.dataplex.v1.CancelJobRequest\x1a\x16.google.protobuf.Empty\"Q\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}:cancel:\x01*\xda\x41\x04name\x12\xfd\x01\n\x11\x43reateEnvironment\x12\x32.google.cloud.dataplex.v1.CreateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\x94\x01\x82\xd3\xe4\x93\x02G\"8/v1/{parent=projects/*/locations/*/lakes/*}/environments:\x0b\x65nvironment\xda\x41!parent,environment,environment_id\xca\x41 \n\x0b\x45nvironment\x12\x11OperationMetadata\x12\xff\x01\n\x11UpdateEnvironment\x12\x32.google.cloud.dataplex.v1.UpdateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\x96\x01\x82\xd3\xe4\x93\x02S2D/v1/{environment.name=projects/*/locations/*/lakes/*/environments/*}:\x0b\x65nvironment\xda\x41\x17\x65nvironment,update_mask\xca\x41 \n\x0b\x45nvironment\x12\x11OperationMetadata\x12\xdc\x01\n\x11\x44\x65leteEnvironment\x12\x32.google.cloud.dataplex.v1.DeleteEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"t\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/lakes/*/environments/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xc4\x01\n\x10ListEnvironments\x12\x31.google.cloud.dataplex.v1.ListEnvironmentsRequest\x1a\x32.google.cloud.dataplex.v1.ListEnvironmentsResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/lakes/*}/environments\xda\x41\x06parent\x12\xb1\x01\n\x0eGetEnvironment\x12/.google.cloud.dataplex.v1.GetEnvironmentRequest\x1a%.google.cloud.dataplex.v1.Environment\"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/lakes/*/environments/*}\xda\x41\x04name\x12\xc3\x01\n\x0cListSessions\x12-.google.cloud.dataplex.v1.ListSessionsRequest\x1a..google.cloud.dataplex.v1.ListSessionsResponse\"T\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*/lakes/*/environments/*}/sessions\xda\x41\x06parent\x1aK\xca\x41\x17\x64\x61taplex.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBh\n\x1c\x63om.google.cloud.dataplex.v1B\x0cServiceProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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.dataplex.v1.Lake", "google/cloud/dataplex/v1/resources.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dataplex.v1.Task", "google/cloud/dataplex/v1/tasks.proto"], + ["google.cloud.dataplex.v1.Environment", "google/cloud/dataplex/v1/analyze.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 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 diff --git a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/tasks_pb.rb b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/tasks_pb.rb index d522c4ac195f..e3355c39fbec 100644 --- a/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/tasks_pb.rb +++ b/google-cloud-dataplex-v1/lib/google/cloud/dataplex/v1/tasks_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataplex/v1/tasks.proto @@ -9,121 +10,33 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataplex/v1/tasks.proto", :syntax => :proto3) do - add_message "google.cloud.dataplex.v1.Task" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :update_time, :message, 4, "google.protobuf.Timestamp" - optional :description, :string, 5 - optional :display_name, :string, 6 - optional :state, :enum, 7, "google.cloud.dataplex.v1.State" - map :labels, :string, :string, 8 - optional :trigger_spec, :message, 100, "google.cloud.dataplex.v1.Task.TriggerSpec" - optional :execution_spec, :message, 101, "google.cloud.dataplex.v1.Task.ExecutionSpec" - optional :execution_status, :message, 201, "google.cloud.dataplex.v1.Task.ExecutionStatus" - oneof :config do - optional :spark, :message, 300, "google.cloud.dataplex.v1.Task.SparkTaskConfig" - optional :notebook, :message, 302, "google.cloud.dataplex.v1.Task.NotebookTaskConfig" - end - end - add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec" do - oneof :resources do - optional :batch, :message, 52, "google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources" - end - oneof :runtime do - optional :container_image, :message, 101, "google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime" - end - oneof :network do - optional :vpc_network, :message, 150, "google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork" - end - end - add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources" do - optional :executors_count, :int32, 1 - optional :max_executors_count, :int32, 2 - end - add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime" do - optional :image, :string, 1 - repeated :java_jars, :string, 2 - repeated :python_packages, :string, 3 - map :properties, :string, :string, 4 - end - add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork" do - repeated :network_tags, :string, 3 - oneof :network_name do - optional :network, :string, 1 - optional :sub_network, :string, 2 - end - end - add_message "google.cloud.dataplex.v1.Task.TriggerSpec" do - optional :type, :enum, 5, "google.cloud.dataplex.v1.Task.TriggerSpec.Type" - optional :start_time, :message, 6, "google.protobuf.Timestamp" - optional :disabled, :bool, 4 - optional :max_retries, :int32, 7 - oneof :trigger do - optional :schedule, :string, 100 - end - end - add_enum "google.cloud.dataplex.v1.Task.TriggerSpec.Type" do - value :TYPE_UNSPECIFIED, 0 - value :ON_DEMAND, 1 - value :RECURRING, 2 - end - add_message "google.cloud.dataplex.v1.Task.ExecutionSpec" do - map :args, :string, :string, 4 - optional :service_account, :string, 5 - optional :project, :string, 7 - optional :max_job_execution_lifetime, :message, 8, "google.protobuf.Duration" - optional :kms_key, :string, 9 - end - add_message "google.cloud.dataplex.v1.Task.SparkTaskConfig" do - repeated :file_uris, :string, 3 - repeated :archive_uris, :string, 4 - optional :infrastructure_spec, :message, 6, "google.cloud.dataplex.v1.Task.InfrastructureSpec" - oneof :driver do - optional :main_jar_file_uri, :string, 100 - optional :main_class, :string, 101 - optional :python_script_file, :string, 102 - optional :sql_script_file, :string, 104 - optional :sql_script, :string, 105 - end - end - add_message "google.cloud.dataplex.v1.Task.NotebookTaskConfig" do - optional :notebook, :string, 4 - optional :infrastructure_spec, :message, 3, "google.cloud.dataplex.v1.Task.InfrastructureSpec" - repeated :file_uris, :string, 5 - repeated :archive_uris, :string, 6 - end - add_message "google.cloud.dataplex.v1.Task.ExecutionStatus" do - optional :update_time, :message, 3, "google.protobuf.Timestamp" - optional :latest_job, :message, 9, "google.cloud.dataplex.v1.Job" - end - add_message "google.cloud.dataplex.v1.Job" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :start_time, :message, 3, "google.protobuf.Timestamp" - optional :end_time, :message, 4, "google.protobuf.Timestamp" - optional :state, :enum, 5, "google.cloud.dataplex.v1.Job.State" - optional :retry_count, :uint32, 6 - optional :service, :enum, 7, "google.cloud.dataplex.v1.Job.Service" - optional :service_job, :string, 8 - optional :message, :string, 9 - end - add_enum "google.cloud.dataplex.v1.Job.Service" do - value :SERVICE_UNSPECIFIED, 0 - value :DATAPROC, 1 - end - add_enum "google.cloud.dataplex.v1.Job.State" do - value :STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :CANCELLING, 2 - value :CANCELLED, 3 - value :SUCCEEDED, 4 - value :FAILED, 5 - value :ABORTED, 6 + +descriptor_data = "\n$google/cloud/dataplex/v1/tasks.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dataplex/v1/resources.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9f\x16\n\x04Task\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Task\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x05state\x18\x07 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x08 \x03(\x0b\x32*.google.cloud.dataplex.v1.Task.LabelsEntryB\x03\xe0\x41\x01\x12\x45\n\x0ctrigger_spec\x18\x64 \x01(\x0b\x32*.google.cloud.dataplex.v1.Task.TriggerSpecB\x03\xe0\x41\x02\x12I\n\x0e\x65xecution_spec\x18\x65 \x01(\x0b\x32,.google.cloud.dataplex.v1.Task.ExecutionSpecB\x03\xe0\x41\x02\x12N\n\x10\x65xecution_status\x18\xc9\x01 \x01(\x0b\x32..google.cloud.dataplex.v1.Task.ExecutionStatusB\x03\xe0\x41\x03\x12@\n\x05spark\x18\xac\x02 \x01(\x0b\x32..google.cloud.dataplex.v1.Task.SparkTaskConfigH\x00\x12\x46\n\x08notebook\x18\xae\x02 \x01(\x0b\x32\x31.google.cloud.dataplex.v1.Task.NotebookTaskConfigH\x00\x1a\x9a\x06\n\x12InfrastructureSpec\x12X\n\x05\x62\x61tch\x18\x34 \x01(\x0b\x32G.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesH\x00\x12\x62\n\x0f\x63ontainer_image\x18\x65 \x01(\x0b\x32G.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeH\x01\x12T\n\x0bvpc_network\x18\x96\x01 \x01(\x0b\x32<.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkH\x02\x1aW\n\x15\x42\x61tchComputeResources\x12\x1c\n\x0f\x65xecutors_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12 \n\x13max_executors_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x1a\x86\x02\n\x15\x43ontainerImageRuntime\x12\x12\n\x05image\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tjava_jars\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fpython_packages\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12p\n\nproperties\x18\x04 \x03(\x0b\x32W.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.PropertiesEntryB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1ak\n\nVpcNetwork\x12\x16\n\x07network\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1a\n\x0bsub_network\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\x0cnetwork_tags\x18\x03 \x03(\tB\x03\xe0\x41\x01\x42\x0e\n\x0cnetwork_nameB\x0b\n\tresourcesB\t\n\x07runtimeB\t\n\x07network\x1a\x9a\x02\n\x0bTriggerSpec\x12\x45\n\x04type\x18\x05 \x01(\x0e\x32/.google.cloud.dataplex.v1.Task.TriggerSpec.TypeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x33\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x15\n\x08\x64isabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0bmax_retries\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\x08schedule\x18\x64 \x01(\tB\x03\xe0\x41\x01H\x00\":\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tON_DEMAND\x10\x01\x12\r\n\tRECURRING\x10\x02\x42\t\n\x07trigger\x1a\x95\x02\n\rExecutionSpec\x12I\n\x04\x61rgs\x18\x04 \x03(\x0b\x32\x36.google.cloud.dataplex.v1.Task.ExecutionSpec.ArgsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07project\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x1amax_job_execution_lifetime\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x14\n\x07kms_key\x18\t \x01(\tB\x03\xe0\x41\x01\x1a+\n\tArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xa5\x02\n\x0fSparkTaskConfig\x12\x1b\n\x11main_jar_file_uri\x18\x64 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x65 \x01(\tH\x00\x12\x1c\n\x12python_script_file\x18\x66 \x01(\tH\x00\x12\x19\n\x0fsql_script_file\x18h \x01(\tH\x00\x12\x14\n\nsql_script\x18i \x01(\tH\x00\x12\x16\n\tfile_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12S\n\x13infrastructure_spec\x18\x06 \x01(\x0b\x32\x31.google.cloud.dataplex.v1.Task.InfrastructureSpecB\x03\xe0\x41\x01\x42\x08\n\x06\x64river\x1a\xb3\x01\n\x12NotebookTaskConfig\x12\x15\n\x08notebook\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12S\n\x13infrastructure_spec\x18\x03 \x01(\x0b\x32\x31.google.cloud.dataplex.v1.Task.InfrastructureSpecB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x1a\x7f\n\x0f\x45xecutionStatus\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\nlatest_job\x18\t \x01(\x0b\x32\x1d.google.cloud.dataplex.v1.JobB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:d\xea\x41\x61\n\x1c\x64\x61taplex.googleapis.com/Task\x12\x41projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}B\x08\n\x06\x63onfig\"\x88\x05\n\x03Job\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1b\x64\x61taplex.googleapis.com/Job\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x37\n\x05state\x18\x05 \x01(\x0e\x32#.google.cloud.dataplex.v1.Job.StateB\x03\xe0\x41\x03\x12\x18\n\x0bretry_count\x18\x06 \x01(\rB\x03\xe0\x41\x03\x12;\n\x07service\x18\x07 \x01(\x0e\x32%.google.cloud.dataplex.v1.Job.ServiceB\x03\xe0\x41\x03\x12\x18\n\x0bservice_job\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\t \x01(\tB\x03\xe0\x41\x03\"0\n\x07Service\x12\x17\n\x13SERVICE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x41TAPROC\x10\x01\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0b\n\x07\x41\x42ORTED\x10\x06:n\xea\x41k\n\x1b\x64\x61taplex.googleapis.com/Job\x12Lprojects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job}Bf\n\x1c\x63om.google.cloud.dataplex.v1B\nTasksProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dataplex-v1/proto_docs/google/protobuf/any.rb b/google-cloud-dataplex-v1/proto_docs/google/protobuf/any.rb index 578d374b9bf9..aa8fa7123d39 100644 --- a/google-cloud-dataplex-v1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-dataplex-v1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-dataplex-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-dataplex-v1/proto_docs/google/protobuf/timestamp.rb index 3ef501e6ca93..dc016e2c9eca 100644 --- a/google-cloud-dataplex-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-dataplex-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-dataproc-v1/google-cloud-dataproc-v1.gemspec b/google-cloud-dataproc-v1/google-cloud-dataproc-v1.gemspec index fcd50c1f658b..50ca3a372802 100644 --- a/google-cloud-dataproc-v1/google-cloud-dataproc-v1.gemspec +++ b/google-cloud-dataproc-v1/google-cloud-dataproc-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-iam-v1", ">= 0.4", "< 2.a" diff --git a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb index 1fde2c75140c..00e7252567e1 100644 --- a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +++ b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/autoscaling_policies.proto @@ -10,59 +11,32 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/empty_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/autoscaling_policies.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.AutoscalingPolicy" do - optional :id, :string, 1 - optional :name, :string, 2 - optional :worker_config, :message, 4, "google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig" - optional :secondary_worker_config, :message, 5, "google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig" - map :labels, :string, :string, 6 - oneof :algorithm do - optional :basic_algorithm, :message, 3, "google.cloud.dataproc.v1.BasicAutoscalingAlgorithm" - end - end - add_message "google.cloud.dataproc.v1.BasicAutoscalingAlgorithm" do - optional :cooldown_period, :message, 2, "google.protobuf.Duration" - oneof :config do - optional :yarn_config, :message, 1, "google.cloud.dataproc.v1.BasicYarnAutoscalingConfig" - end - end - add_message "google.cloud.dataproc.v1.BasicYarnAutoscalingConfig" do - optional :graceful_decommission_timeout, :message, 5, "google.protobuf.Duration" - optional :scale_up_factor, :double, 1 - optional :scale_down_factor, :double, 2 - optional :scale_up_min_worker_fraction, :double, 3 - optional :scale_down_min_worker_fraction, :double, 4 - end - add_message "google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig" do - optional :min_instances, :int32, 1 - optional :max_instances, :int32, 2 - optional :weight, :int32, 3 - end - add_message "google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest" do - optional :parent, :string, 1 - optional :policy, :message, 2, "google.cloud.dataproc.v1.AutoscalingPolicy" - end - add_message "google.cloud.dataproc.v1.GetAutoscalingPolicyRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest" do - optional :policy, :message, 1, "google.cloud.dataproc.v1.AutoscalingPolicy" - end - add_message "google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse" do - repeated :policies, :message, 1, "google.cloud.dataproc.v1.AutoscalingPolicy" - optional :next_page_token, :string, 2 + +descriptor_data = "\n3google/cloud/dataproc/v1/autoscaling_policies.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xa5\x05\n\x11\x41utoscalingPolicy\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0f\x62\x61sic_algorithm\x18\x03 \x01(\x0b\x32\x33.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmB\x03\xe0\x41\x02H\x00\x12Z\n\rworker_config\x18\x04 \x01(\x0b\x32>.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigB\x03\xe0\x41\x02\x12\x64\n\x17secondary_worker_config\x18\x05 \x01(\x0b\x32>.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigB\x03\xe0\x41\x01\x12L\n\x06labels\x18\x06 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.AutoscalingPolicy.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xcf\x01\xea\x41\xcb\x01\n)dataproc.googleapis.com/AutoscalingPolicy\x12Pprojects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}\x12Lprojects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}B\x0b\n\talgorithm\"\xb0\x01\n\x19\x42\x61sicAutoscalingAlgorithm\x12P\n\x0byarn_config\x18\x01 \x01(\x0b\x32\x34.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigB\x03\xe0\x41\x02H\x00\x12\x37\n\x0f\x63ooldown_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xf9\x01\n\x1a\x42\x61sicYarnAutoscalingConfig\x12\x45\n\x1dgraceful_decommission_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12\x1c\n\x0fscale_up_factor\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x1e\n\x11scale_down_factor\x18\x02 \x01(\x01\x42\x03\xe0\x41\x02\x12)\n\x1cscale_up_min_worker_fraction\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12+\n\x1escale_down_min_worker_fraction\x18\x04 \x01(\x01\x42\x03\xe0\x41\x01\"s\n$InstanceGroupAutoscalingPolicyConfig\x12\x1a\n\rmin_instances\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1a\n\rmax_instances\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x13\n\x06weight\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"\xa5\x01\n\x1e\x43reateAutoscalingPolicyRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)dataproc.googleapis.com/AutoscalingPolicy\x12@\n\x06policy\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x03\xe0\x41\x02\"^\n\x1bGetAutoscalingPolicyRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataproc.googleapis.com/AutoscalingPolicy\"b\n\x1eUpdateAutoscalingPolicyRequest\x12@\n\x06policy\x18\x01 \x01(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x03\xe0\x41\x02\"a\n\x1e\x44\x65leteAutoscalingPolicyRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataproc.googleapis.com/AutoscalingPolicy\"\x94\x01\n\x1eListAutoscalingPoliciesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)dataproc.googleapis.com/AutoscalingPolicy\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1fListAutoscalingPoliciesResponse\x12\x42\n\x08policies\x18\x01 \x03(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\x32\xae\x0b\n\x18\x41utoscalingPolicyService\x12\x9c\x02\n\x17\x43reateAutoscalingPolicy\x12\x38.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest\x1a+.google.cloud.dataproc.v1.AutoscalingPolicy\"\x99\x01\x82\xd3\xe4\x93\x02\x82\x01\"7/v1/{parent=projects/*/locations/*}/autoscalingPolicies:\x06policyZ?\"5/v1/{parent=projects/*/regions/*}/autoscalingPolicies:\x06policy\xda\x41\rparent,policy\x12\xa3\x02\n\x17UpdateAutoscalingPolicy\x12\x38.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest\x1a+.google.cloud.dataproc.v1.AutoscalingPolicy\"\xa0\x01\x82\xd3\xe4\x93\x02\x90\x01\x1a>/v1/{policy.name=projects/*/locations/*/autoscalingPolicies/*}:\x06policyZF\x1a 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.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/batches_pb.rb b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/batches_pb.rb index e4d174e8ae23..21cc6dc3a20d 100644 --- a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/batches_pb.rb +++ b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/batches_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/batches.proto @@ -12,96 +13,33 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/batches.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.CreateBatchRequest" do - optional :parent, :string, 1 - optional :batch, :message, 2, "google.cloud.dataproc.v1.Batch" - optional :batch_id, :string, 3 - optional :request_id, :string, 4 - end - add_message "google.cloud.dataproc.v1.GetBatchRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataproc.v1.ListBatchesRequest" 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.dataproc.v1.ListBatchesResponse" do - repeated :batches, :message, 1, "google.cloud.dataproc.v1.Batch" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataproc.v1.DeleteBatchRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataproc.v1.Batch" do - optional :name, :string, 1 - optional :uuid, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :runtime_info, :message, 8, "google.cloud.dataproc.v1.RuntimeInfo" - optional :state, :enum, 9, "google.cloud.dataproc.v1.Batch.State" - optional :state_message, :string, 10 - optional :state_time, :message, 11, "google.protobuf.Timestamp" - optional :creator, :string, 12 - map :labels, :string, :string, 13 - optional :runtime_config, :message, 14, "google.cloud.dataproc.v1.RuntimeConfig" - optional :environment_config, :message, 15, "google.cloud.dataproc.v1.EnvironmentConfig" - optional :operation, :string, 16 - repeated :state_history, :message, 17, "google.cloud.dataproc.v1.Batch.StateHistory" - oneof :batch_config do - optional :pyspark_batch, :message, 4, "google.cloud.dataproc.v1.PySparkBatch" - optional :spark_batch, :message, 5, "google.cloud.dataproc.v1.SparkBatch" - optional :spark_r_batch, :message, 6, "google.cloud.dataproc.v1.SparkRBatch" - optional :spark_sql_batch, :message, 7, "google.cloud.dataproc.v1.SparkSqlBatch" - end - end - add_message "google.cloud.dataproc.v1.Batch.StateHistory" do - optional :state, :enum, 1, "google.cloud.dataproc.v1.Batch.State" - optional :state_message, :string, 2 - optional :state_start_time, :message, 3, "google.protobuf.Timestamp" - end - add_enum "google.cloud.dataproc.v1.Batch.State" do - value :STATE_UNSPECIFIED, 0 - value :PENDING, 1 - value :RUNNING, 2 - value :CANCELLING, 3 - value :CANCELLED, 4 - value :SUCCEEDED, 5 - value :FAILED, 6 - end - add_message "google.cloud.dataproc.v1.PySparkBatch" do - optional :main_python_file_uri, :string, 1 - repeated :args, :string, 2 - repeated :python_file_uris, :string, 3 - repeated :jar_file_uris, :string, 4 - repeated :file_uris, :string, 5 - repeated :archive_uris, :string, 6 - end - add_message "google.cloud.dataproc.v1.SparkBatch" do - repeated :args, :string, 3 - repeated :jar_file_uris, :string, 4 - repeated :file_uris, :string, 5 - repeated :archive_uris, :string, 6 - oneof :driver do - optional :main_jar_file_uri, :string, 1 - optional :main_class, :string, 2 - end - end - add_message "google.cloud.dataproc.v1.SparkRBatch" do - optional :main_r_file_uri, :string, 1 - repeated :args, :string, 2 - repeated :file_uris, :string, 3 - repeated :archive_uris, :string, 4 - end - add_message "google.cloud.dataproc.v1.SparkSqlBatch" do - optional :query_file_uri, :string, 1 - map :query_variables, :string, :string, 2 - repeated :jar_file_uris, :string, 3 + +descriptor_data = "\n&google/cloud/dataproc/v1/batches.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb0\x01\n\x12\x43reateBatchRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x33\n\x05\x62\x61tch\x18\x02 \x01(\x0b\x32\x1f.google.cloud.dataproc.v1.BatchB\x03\xe0\x41\x02\x12\x15\n\x08\x62\x61tch_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"F\n\x0fGetBatchRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\xa8\x01\n\x12ListBatchesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"`\n\x13ListBatchesResponse\x12\x30\n\x07\x62\x61tches\x18\x01 \x03(\x0b\x32\x1f.google.cloud.dataproc.v1.Batch\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"I\n\x12\x44\x65leteBatchRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\xc8\n\n\x05\x42\x61tch\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04uuid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\rpyspark_batch\x18\x04 \x01(\x0b\x32&.google.cloud.dataproc.v1.PySparkBatchB\x03\xe0\x41\x01H\x00\x12@\n\x0bspark_batch\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.SparkBatchB\x03\xe0\x41\x01H\x00\x12\x43\n\rspark_r_batch\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkRBatchB\x03\xe0\x41\x01H\x00\x12G\n\x0fspark_sql_batch\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.SparkSqlBatchB\x03\xe0\x41\x01H\x00\x12@\n\x0cruntime_info\x18\x08 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\t \x01(\x0e\x32%.google.cloud.dataproc.v1.Batch.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12@\n\x06labels\x18\r \x03(\x0b\x32+.google.cloud.dataproc.v1.Batch.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x0e \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\x0f \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x16\n\toperation\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12H\n\rstate_history\x18\x11 \x03(\x0b\x32,.google.cloud.dataproc.v1.Batch.StateHistoryB\x03\xe0\x41\x03\x1a\xa0\x01\n\x0cStateHistory\x12\x39\n\x05state\x18\x01 \x01(\x0e\x32%.google.cloud.dataproc.v1.Batch.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nCANCELLING\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06:[\xea\x41X\n\x1d\x64\x61taproc.googleapis.com/Batch\x12\x37projects/{project}/locations/{location}/batches/{batch}B\x0e\n\x0c\x62\x61tch_config\"\xb2\x01\n\x0cPySparkBatch\x12!\n\x14main_python_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10python_file_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\"\xb5\x01\n\nSparkBatch\x12 \n\x11main_jar_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\nmain_class\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x11\n\x04\x61rgs\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x42\x08\n\x06\x64river\"q\n\x0bSparkRBatch\x12\x1c\n\x0fmain_r_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\"\xda\x01\n\rSparkSqlBatch\x12\x1b\n\x0equery_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x0fquery_variables\x18\x02 \x03(\x0b\x32;.google.cloud.dataproc.v1.SparkSqlBatch.QueryVariablesEntryB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x1a\x35\n\x13QueryVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\x9d\x06\n\x0f\x42\x61tchController\x12\xea\x01\n\x0b\x43reateBatch\x12,.google.cloud.dataproc.v1.CreateBatchRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/batches:\x05\x62\x61tch\xda\x41\x15parent,batch,batch_id\xca\x41\x38\n\x05\x42\x61tch\x12/google.cloud.dataproc.v1.BatchOperationMetadata\x12\x92\x01\n\x08GetBatch\x12).google.cloud.dataproc.v1.GetBatchRequest\x1a\x1f.google.cloud.dataproc.v1.Batch\":\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/batches/*}\xda\x41\x04name\x12\xa8\x01\n\x0bListBatches\x12,.google.cloud.dataproc.v1.ListBatchesRequest\x1a-.google.cloud.dataproc.v1.ListBatchesResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/batches\xda\x41\x06parent\x12\x8f\x01\n\x0b\x44\x65leteBatch\x12,.google.cloud.dataproc.v1.DeleteBatchRequest\x1a\x16.google.protobuf.Empty\":\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/batches/*}\xda\x41\x04name\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBk\n\x1c\x63om.google.cloud.dataproc.v1B\x0c\x42\x61tchesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dataproc.v1.RuntimeInfo", "google/cloud/dataproc/v1/shared.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 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 diff --git a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/clusters_pb.rb b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/clusters_pb.rb index 4ac290721921..d3d513529f17 100644 --- a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/clusters_pb.rb +++ b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/clusters_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/clusters.proto @@ -13,297 +14,35 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/clusters.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.Cluster" do - optional :project_id, :string, 1 - optional :cluster_name, :string, 2 - optional :config, :message, 3, "google.cloud.dataproc.v1.ClusterConfig" - optional :virtual_cluster_config, :message, 10, "google.cloud.dataproc.v1.VirtualClusterConfig" - map :labels, :string, :string, 8 - optional :status, :message, 4, "google.cloud.dataproc.v1.ClusterStatus" - repeated :status_history, :message, 7, "google.cloud.dataproc.v1.ClusterStatus" - optional :cluster_uuid, :string, 6 - optional :metrics, :message, 9, "google.cloud.dataproc.v1.ClusterMetrics" - end - add_message "google.cloud.dataproc.v1.ClusterConfig" do - optional :config_bucket, :string, 1 - optional :temp_bucket, :string, 2 - optional :gce_cluster_config, :message, 8, "google.cloud.dataproc.v1.GceClusterConfig" - optional :master_config, :message, 9, "google.cloud.dataproc.v1.InstanceGroupConfig" - optional :worker_config, :message, 10, "google.cloud.dataproc.v1.InstanceGroupConfig" - optional :secondary_worker_config, :message, 12, "google.cloud.dataproc.v1.InstanceGroupConfig" - optional :software_config, :message, 13, "google.cloud.dataproc.v1.SoftwareConfig" - repeated :initialization_actions, :message, 11, "google.cloud.dataproc.v1.NodeInitializationAction" - optional :encryption_config, :message, 15, "google.cloud.dataproc.v1.EncryptionConfig" - optional :autoscaling_config, :message, 18, "google.cloud.dataproc.v1.AutoscalingConfig" - optional :security_config, :message, 16, "google.cloud.dataproc.v1.SecurityConfig" - optional :lifecycle_config, :message, 17, "google.cloud.dataproc.v1.LifecycleConfig" - optional :endpoint_config, :message, 19, "google.cloud.dataproc.v1.EndpointConfig" - optional :metastore_config, :message, 20, "google.cloud.dataproc.v1.MetastoreConfig" - optional :dataproc_metric_config, :message, 23, "google.cloud.dataproc.v1.DataprocMetricConfig" - repeated :auxiliary_node_groups, :message, 25, "google.cloud.dataproc.v1.AuxiliaryNodeGroup" - end - add_message "google.cloud.dataproc.v1.VirtualClusterConfig" do - optional :staging_bucket, :string, 1 - optional :auxiliary_services_config, :message, 7, "google.cloud.dataproc.v1.AuxiliaryServicesConfig" - oneof :infrastructure_config do - optional :kubernetes_cluster_config, :message, 6, "google.cloud.dataproc.v1.KubernetesClusterConfig" - end - end - add_message "google.cloud.dataproc.v1.AuxiliaryServicesConfig" do - optional :metastore_config, :message, 1, "google.cloud.dataproc.v1.MetastoreConfig" - optional :spark_history_server_config, :message, 2, "google.cloud.dataproc.v1.SparkHistoryServerConfig" - end - add_message "google.cloud.dataproc.v1.EndpointConfig" do - map :http_ports, :string, :string, 1 - optional :enable_http_port_access, :bool, 2 - end - add_message "google.cloud.dataproc.v1.AutoscalingConfig" do - optional :policy_uri, :string, 1 - end - add_message "google.cloud.dataproc.v1.EncryptionConfig" do - optional :gce_pd_kms_key_name, :string, 1 - end - add_message "google.cloud.dataproc.v1.GceClusterConfig" do - optional :zone_uri, :string, 1 - optional :network_uri, :string, 2 - optional :subnetwork_uri, :string, 6 - proto3_optional :internal_ip_only, :bool, 7 - optional :private_ipv6_google_access, :enum, 12, "google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess" - optional :service_account, :string, 8 - repeated :service_account_scopes, :string, 3 - repeated :tags, :string, 4 - map :metadata, :string, :string, 5 - optional :reservation_affinity, :message, 11, "google.cloud.dataproc.v1.ReservationAffinity" - optional :node_group_affinity, :message, 13, "google.cloud.dataproc.v1.NodeGroupAffinity" - optional :shielded_instance_config, :message, 14, "google.cloud.dataproc.v1.ShieldedInstanceConfig" - optional :confidential_instance_config, :message, 15, "google.cloud.dataproc.v1.ConfidentialInstanceConfig" - end - add_enum "google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess" do - value :PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, 0 - value :INHERIT_FROM_SUBNETWORK, 1 - value :OUTBOUND, 2 - value :BIDIRECTIONAL, 3 - end - add_message "google.cloud.dataproc.v1.NodeGroupAffinity" do - optional :node_group_uri, :string, 1 - end - add_message "google.cloud.dataproc.v1.ShieldedInstanceConfig" do - proto3_optional :enable_secure_boot, :bool, 1 - proto3_optional :enable_vtpm, :bool, 2 - proto3_optional :enable_integrity_monitoring, :bool, 3 - end - add_message "google.cloud.dataproc.v1.ConfidentialInstanceConfig" do - optional :enable_confidential_compute, :bool, 1 - end - add_message "google.cloud.dataproc.v1.InstanceGroupConfig" do - optional :num_instances, :int32, 1 - repeated :instance_names, :string, 2 - optional :image_uri, :string, 3 - optional :machine_type_uri, :string, 4 - optional :disk_config, :message, 5, "google.cloud.dataproc.v1.DiskConfig" - optional :is_preemptible, :bool, 6 - optional :preemptibility, :enum, 10, "google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility" - optional :managed_group_config, :message, 7, "google.cloud.dataproc.v1.ManagedGroupConfig" - repeated :accelerators, :message, 8, "google.cloud.dataproc.v1.AcceleratorConfig" - optional :min_cpu_platform, :string, 9 - end - add_enum "google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility" do - value :PREEMPTIBILITY_UNSPECIFIED, 0 - value :NON_PREEMPTIBLE, 1 - value :PREEMPTIBLE, 2 - value :SPOT, 3 - end - add_message "google.cloud.dataproc.v1.ManagedGroupConfig" do - optional :instance_template_name, :string, 1 - optional :instance_group_manager_name, :string, 2 - end - add_message "google.cloud.dataproc.v1.AcceleratorConfig" do - optional :accelerator_type_uri, :string, 1 - optional :accelerator_count, :int32, 2 - end - add_message "google.cloud.dataproc.v1.DiskConfig" do - optional :boot_disk_type, :string, 3 - optional :boot_disk_size_gb, :int32, 1 - optional :num_local_ssds, :int32, 2 - optional :local_ssd_interface, :string, 4 - end - add_message "google.cloud.dataproc.v1.AuxiliaryNodeGroup" do - optional :node_group, :message, 1, "google.cloud.dataproc.v1.NodeGroup" - optional :node_group_id, :string, 2 - end - add_message "google.cloud.dataproc.v1.NodeGroup" do - optional :name, :string, 1 - repeated :roles, :enum, 2, "google.cloud.dataproc.v1.NodeGroup.Role" - optional :node_group_config, :message, 3, "google.cloud.dataproc.v1.InstanceGroupConfig" - map :labels, :string, :string, 4 - end - add_enum "google.cloud.dataproc.v1.NodeGroup.Role" do - value :ROLE_UNSPECIFIED, 0 - value :DRIVER, 1 - end - add_message "google.cloud.dataproc.v1.NodeInitializationAction" do - optional :executable_file, :string, 1 - optional :execution_timeout, :message, 2, "google.protobuf.Duration" - end - add_message "google.cloud.dataproc.v1.ClusterStatus" do - optional :state, :enum, 1, "google.cloud.dataproc.v1.ClusterStatus.State" - optional :detail, :string, 2 - optional :state_start_time, :message, 3, "google.protobuf.Timestamp" - optional :substate, :enum, 4, "google.cloud.dataproc.v1.ClusterStatus.Substate" - end - add_enum "google.cloud.dataproc.v1.ClusterStatus.State" do - value :UNKNOWN, 0 - value :CREATING, 1 - value :RUNNING, 2 - value :ERROR, 3 - value :ERROR_DUE_TO_UPDATE, 9 - value :DELETING, 4 - value :UPDATING, 5 - value :STOPPING, 6 - value :STOPPED, 7 - value :STARTING, 8 - end - add_enum "google.cloud.dataproc.v1.ClusterStatus.Substate" do - value :UNSPECIFIED, 0 - value :UNHEALTHY, 1 - value :STALE_STATUS, 2 - end - add_message "google.cloud.dataproc.v1.SecurityConfig" do - optional :kerberos_config, :message, 1, "google.cloud.dataproc.v1.KerberosConfig" - optional :identity_config, :message, 2, "google.cloud.dataproc.v1.IdentityConfig" - end - add_message "google.cloud.dataproc.v1.KerberosConfig" do - optional :enable_kerberos, :bool, 1 - optional :root_principal_password_uri, :string, 2 - optional :kms_key_uri, :string, 3 - optional :keystore_uri, :string, 4 - optional :truststore_uri, :string, 5 - optional :keystore_password_uri, :string, 6 - optional :key_password_uri, :string, 7 - optional :truststore_password_uri, :string, 8 - optional :cross_realm_trust_realm, :string, 9 - optional :cross_realm_trust_kdc, :string, 10 - optional :cross_realm_trust_admin_server, :string, 11 - optional :cross_realm_trust_shared_password_uri, :string, 12 - optional :kdc_db_key_uri, :string, 13 - optional :tgt_lifetime_hours, :int32, 14 - optional :realm, :string, 15 - end - add_message "google.cloud.dataproc.v1.IdentityConfig" do - map :user_service_account_mapping, :string, :string, 1 - end - add_message "google.cloud.dataproc.v1.SoftwareConfig" do - optional :image_version, :string, 1 - map :properties, :string, :string, 2 - repeated :optional_components, :enum, 3, "google.cloud.dataproc.v1.Component" - end - add_message "google.cloud.dataproc.v1.LifecycleConfig" do - optional :idle_delete_ttl, :message, 1, "google.protobuf.Duration" - optional :idle_start_time, :message, 4, "google.protobuf.Timestamp" - oneof :ttl do - optional :auto_delete_time, :message, 2, "google.protobuf.Timestamp" - optional :auto_delete_ttl, :message, 3, "google.protobuf.Duration" - end - end - add_message "google.cloud.dataproc.v1.MetastoreConfig" do - optional :dataproc_metastore_service, :string, 1 - end - add_message "google.cloud.dataproc.v1.ClusterMetrics" do - map :hdfs_metrics, :string, :int64, 1 - map :yarn_metrics, :string, :int64, 2 - end - add_message "google.cloud.dataproc.v1.DataprocMetricConfig" do - repeated :metrics, :message, 1, "google.cloud.dataproc.v1.DataprocMetricConfig.Metric" - end - add_message "google.cloud.dataproc.v1.DataprocMetricConfig.Metric" do - optional :metric_source, :enum, 1, "google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource" - repeated :metric_overrides, :string, 2 - end - add_enum "google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource" do - value :METRIC_SOURCE_UNSPECIFIED, 0 - value :MONITORING_AGENT_DEFAULTS, 1 - value :HDFS, 2 - value :SPARK, 3 - value :YARN, 4 - value :SPARK_HISTORY_SERVER, 5 - value :HIVESERVER2, 6 - value :HIVEMETASTORE, 7 - end - add_message "google.cloud.dataproc.v1.CreateClusterRequest" do - optional :project_id, :string, 1 - optional :region, :string, 3 - optional :cluster, :message, 2, "google.cloud.dataproc.v1.Cluster" - optional :request_id, :string, 4 - optional :action_on_failed_primary_workers, :enum, 5, "google.cloud.dataproc.v1.FailureAction" - end - add_message "google.cloud.dataproc.v1.UpdateClusterRequest" do - optional :project_id, :string, 1 - optional :region, :string, 5 - optional :cluster_name, :string, 2 - optional :cluster, :message, 3, "google.cloud.dataproc.v1.Cluster" - optional :graceful_decommission_timeout, :message, 6, "google.protobuf.Duration" - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - optional :request_id, :string, 7 - end - add_message "google.cloud.dataproc.v1.StopClusterRequest" do - optional :project_id, :string, 1 - optional :region, :string, 2 - optional :cluster_name, :string, 3 - optional :cluster_uuid, :string, 4 - optional :request_id, :string, 5 - end - add_message "google.cloud.dataproc.v1.StartClusterRequest" do - optional :project_id, :string, 1 - optional :region, :string, 2 - optional :cluster_name, :string, 3 - optional :cluster_uuid, :string, 4 - optional :request_id, :string, 5 - end - add_message "google.cloud.dataproc.v1.DeleteClusterRequest" do - optional :project_id, :string, 1 - optional :region, :string, 3 - optional :cluster_name, :string, 2 - optional :cluster_uuid, :string, 4 - optional :request_id, :string, 5 - end - add_message "google.cloud.dataproc.v1.GetClusterRequest" do - optional :project_id, :string, 1 - optional :region, :string, 3 - optional :cluster_name, :string, 2 - end - add_message "google.cloud.dataproc.v1.ListClustersRequest" do - optional :project_id, :string, 1 - optional :region, :string, 4 - optional :filter, :string, 5 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataproc.v1.ListClustersResponse" do - repeated :clusters, :message, 1, "google.cloud.dataproc.v1.Cluster" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataproc.v1.DiagnoseClusterRequest" do - optional :project_id, :string, 1 - optional :region, :string, 3 - optional :cluster_name, :string, 2 - end - add_message "google.cloud.dataproc.v1.DiagnoseClusterResults" do - optional :output_uri, :string, 1 - end - add_message "google.cloud.dataproc.v1.ReservationAffinity" do - optional :consume_reservation_type, :enum, 1, "google.cloud.dataproc.v1.ReservationAffinity.Type" - optional :key, :string, 2 - repeated :values, :string, 3 - end - add_enum "google.cloud.dataproc.v1.ReservationAffinity.Type" do - value :TYPE_UNSPECIFIED, 0 - value :NO_RESERVATION, 1 - value :ANY_RESERVATION, 2 - value :SPECIFIC_RESERVATION, 3 + +descriptor_data = "\n\'google/cloud/dataproc/v1/clusters.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa2\x04\n\x07\x43luster\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterConfigB\x03\xe0\x41\x01\x12S\n\x16virtual_cluster_config\x18\n \x01(\x0b\x32..google.cloud.dataproc.v1.VirtualClusterConfigB\x03\xe0\x41\x01\x12\x42\n\x06labels\x18\x08 \x03(\x0b\x32-.google.cloud.dataproc.v1.Cluster.LabelsEntryB\x03\xe0\x41\x01\x12<\n\x06status\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterStatusB\x03\xe0\x41\x03\x12\x44\n\x0estatus_history\x18\x07 \x03(\x0b\x32\'.google.cloud.dataproc.v1.ClusterStatusB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_uuid\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12>\n\x07metrics\x18\t \x01(\x0b\x32(.google.cloud.dataproc.v1.ClusterMetricsB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x83\t\n\rClusterConfig\x12\x1a\n\rconfig_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0btemp_bucket\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\x12gce_cluster_config\x18\x08 \x01(\x0b\x32*.google.cloud.dataproc.v1.GceClusterConfigB\x03\xe0\x41\x01\x12I\n\rmaster_config\x18\t \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfigB\x03\xe0\x41\x01\x12I\n\rworker_config\x18\n \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfigB\x03\xe0\x41\x01\x12S\n\x17secondary_worker_config\x18\x0c \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfigB\x03\xe0\x41\x01\x12\x46\n\x0fsoftware_config\x18\r \x01(\x0b\x32(.google.cloud.dataproc.v1.SoftwareConfigB\x03\xe0\x41\x01\x12W\n\x16initialization_actions\x18\x0b \x03(\x0b\x32\x32.google.cloud.dataproc.v1.NodeInitializationActionB\x03\xe0\x41\x01\x12J\n\x11\x65ncryption_config\x18\x0f \x01(\x0b\x32*.google.cloud.dataproc.v1.EncryptionConfigB\x03\xe0\x41\x01\x12L\n\x12\x61utoscaling_config\x18\x12 \x01(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingConfigB\x03\xe0\x41\x01\x12\x46\n\x0fsecurity_config\x18\x10 \x01(\x0b\x32(.google.cloud.dataproc.v1.SecurityConfigB\x03\xe0\x41\x01\x12H\n\x10lifecycle_config\x18\x11 \x01(\x0b\x32).google.cloud.dataproc.v1.LifecycleConfigB\x03\xe0\x41\x01\x12\x46\n\x0f\x65ndpoint_config\x18\x13 \x01(\x0b\x32(.google.cloud.dataproc.v1.EndpointConfigB\x03\xe0\x41\x01\x12H\n\x10metastore_config\x18\x14 \x01(\x0b\x32).google.cloud.dataproc.v1.MetastoreConfigB\x03\xe0\x41\x01\x12S\n\x16\x64\x61taproc_metric_config\x18\x17 \x01(\x0b\x32..google.cloud.dataproc.v1.DataprocMetricConfigB\x03\xe0\x41\x01\x12P\n\x15\x61uxiliary_node_groups\x18\x19 \x03(\x0b\x32,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\x03\xe0\x41\x01\"\x84\x02\n\x14VirtualClusterConfig\x12\x1b\n\x0estaging_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12[\n\x19kubernetes_cluster_config\x18\x06 \x01(\x0b\x32\x31.google.cloud.dataproc.v1.KubernetesClusterConfigB\x03\xe0\x41\x02H\x00\x12Y\n\x19\x61uxiliary_services_config\x18\x07 \x01(\x0b\x32\x31.google.cloud.dataproc.v1.AuxiliaryServicesConfigB\x03\xe0\x41\x01\x42\x17\n\x15infrastructure_config\"\xc1\x01\n\x17\x41uxiliaryServicesConfig\x12H\n\x10metastore_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.MetastoreConfigB\x03\xe0\x41\x01\x12\\\n\x1bspark_history_server_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\"\xba\x01\n\x0e\x45ndpointConfig\x12P\n\nhttp_ports\x18\x01 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\x03\xe0\x41\x03\x12$\n\x17\x65nable_http_port_access\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x30\n\x0eHttpPortsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\",\n\x11\x41utoscalingConfig\x12\x17\n\npolicy_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\"4\n\x10\x45ncryptionConfig\x12 \n\x13gce_pd_kms_key_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xb5\x07\n\x10GceClusterConfig\x12\x15\n\x08zone_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bnetwork_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0esubnetwork_uri\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\"\n\x10internal_ip_only\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12k\n\x1aprivate_ipv6_google_access\x18\x0c \x01(\x0e\x32\x42.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccessB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16service_account_scopes\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry\x12P\n\x14reservation_affinity\x18\x0b \x01(\x0b\x32-.google.cloud.dataproc.v1.ReservationAffinityB\x03\xe0\x41\x01\x12M\n\x13node_group_affinity\x18\r \x01(\x0b\x32+.google.cloud.dataproc.v1.NodeGroupAffinityB\x03\xe0\x41\x01\x12W\n\x18shielded_instance_config\x18\x0e \x01(\x0b\x32\x30.google.cloud.dataproc.v1.ShieldedInstanceConfigB\x03\xe0\x41\x01\x12_\n\x1c\x63onfidential_instance_config\x18\x0f \x01(\x0b\x32\x34.google.cloud.dataproc.v1.ConfidentialInstanceConfigB\x03\xe0\x41\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x83\x01\n\x17PrivateIpv6GoogleAccess\x12*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\x10\x00\x12\x1b\n\x17INHERIT_FROM_SUBNETWORK\x10\x01\x12\x0c\n\x08OUTBOUND\x10\x02\x12\x11\n\rBIDIRECTIONAL\x10\x03\x42\x13\n\x11_internal_ip_only\"0\n\x11NodeGroupAffinity\x12\x1b\n\x0enode_group_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xd3\x01\n\x16ShieldedInstanceConfig\x12$\n\x12\x65nable_secure_boot\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1d\n\x0b\x65nable_vtpm\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12-\n\x1b\x65nable_integrity_monitoring\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x42\x15\n\x13_enable_secure_bootB\x0e\n\x0c_enable_vtpmB\x1e\n\x1c_enable_integrity_monitoring\"F\n\x1a\x43onfidentialInstanceConfig\x12(\n\x1b\x65nable_confidential_compute\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"\xd7\x04\n\x13InstanceGroupConfig\x12\x1a\n\rnum_instances\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0einstance_names\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12\x16\n\timage_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10machine_type_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12>\n\x0b\x64isk_config\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.DiskConfigB\x03\xe0\x41\x01\x12\x1b\n\x0eis_preemptible\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12Y\n\x0epreemptibility\x18\n \x01(\x0e\x32<.google.cloud.dataproc.v1.InstanceGroupConfig.PreemptibilityB\x03\xe0\x41\x01\x12O\n\x14managed_group_config\x18\x07 \x01(\x0b\x32,.google.cloud.dataproc.v1.ManagedGroupConfigB\x03\xe0\x41\x03\x12\x46\n\x0c\x61\x63\x63\x65lerators\x18\x08 \x03(\x0b\x32+.google.cloud.dataproc.v1.AcceleratorConfigB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\t \x01(\tB\x03\xe0\x41\x01\"`\n\x0ePreemptibility\x12\x1e\n\x1aPREEMPTIBILITY_UNSPECIFIED\x10\x00\x12\x13\n\x0fNON_PREEMPTIBLE\x10\x01\x12\x0f\n\x0bPREEMPTIBLE\x10\x02\x12\x08\n\x04SPOT\x10\x03\"c\n\x12ManagedGroupConfig\x12#\n\x16instance_template_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12(\n\x1binstance_group_manager_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\"L\n\x11\x41\x63\x63\x65leratorConfig\x12\x1c\n\x14\x61\x63\x63\x65lerator_type_uri\x18\x01 \x01(\t\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x02 \x01(\x05\"\x88\x01\n\nDiskConfig\x12\x1b\n\x0e\x62oot_disk_type\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x62oot_disk_size_gb\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0enum_local_ssds\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12 \n\x13local_ssd_interface\x18\x04 \x01(\tB\x03\xe0\x41\x01\"n\n\x12\x41uxiliaryNodeGroup\x12<\n\nnode_group\x18\x01 \x01(\x0b\x32#.google.cloud.dataproc.v1.NodeGroupB\x03\xe0\x41\x02\x12\x1a\n\rnode_group_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xbd\x03\n\tNodeGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\x05roles\x18\x02 \x03(\x0e\x32(.google.cloud.dataproc.v1.NodeGroup.RoleB\x03\xe0\x41\x02\x12M\n\x11node_group_config\x18\x03 \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfigB\x03\xe0\x41\x01\x12\x44\n\x06labels\x18\x04 \x03(\x0b\x32/.google.cloud.dataproc.v1.NodeGroup.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"(\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44RIVER\x10\x01:v\xea\x41s\n!dataproc.googleapis.com/NodeGroup\x12Nprojects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n\x18NodeInitializationAction\x12\x1c\n\x0f\x65xecutable_file\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x11\x65xecution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"\xc7\x03\n\rClusterStatus\x12\x41\n\x05state\x18\x01 \x01(\x0e\x32-.google.cloud.dataproc.v1.ClusterStatus.StateB\x03\xe0\x41\x03\x12\x16\n\x06\x64\x65tail\x18\x02 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x01\x12\x39\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x08substate\x18\x04 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.ClusterStatus.SubstateB\x03\xe0\x41\x03\"\x98\x01\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x17\n\x13\x45RROR_DUE_TO_UPDATE\x10\t\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x0c\n\x08STOPPING\x10\x06\x12\x0b\n\x07STOPPED\x10\x07\x12\x0c\n\x08STARTING\x10\x08\"<\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tUNHEALTHY\x10\x01\x12\x10\n\x0cSTALE_STATUS\x10\x02\"\xa0\x01\n\x0eSecurityConfig\x12\x46\n\x0fkerberos_config\x18\x01 \x01(\x0b\x32(.google.cloud.dataproc.v1.KerberosConfigB\x03\xe0\x41\x01\x12\x46\n\x0fidentity_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1.IdentityConfigB\x03\xe0\x41\x01\"\x90\x04\n\x0eKerberosConfig\x12\x1c\n\x0f\x65nable_kerberos\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1broot_principal_password_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bkms_key_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ckeystore_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0etruststore_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\"\n\x15keystore_password_uri\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10key_password_uri\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12$\n\x17truststore_password_uri\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12$\n\x17\x63ross_realm_trust_realm\x18\t \x01(\tB\x03\xe0\x41\x01\x12\"\n\x15\x63ross_realm_trust_kdc\x18\n \x01(\tB\x03\xe0\x41\x01\x12+\n\x1e\x63ross_realm_trust_admin_server\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x32\n%cross_realm_trust_shared_password_uri\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0ekdc_db_key_uri\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12tgt_lifetime_hours\x18\x0e \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\x05realm\x18\x0f \x01(\tB\x03\xe0\x41\x01\"\xc6\x01\n\x0eIdentityConfig\x12r\n\x1cuser_service_account_mapping\x18\x01 \x03(\x0b\x32G.google.cloud.dataproc.v1.IdentityConfig.UserServiceAccountMappingEntryB\x03\xe0\x41\x02\x1a@\n\x1eUserServiceAccountMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf9\x01\n\x0eSoftwareConfig\x12\x1a\n\rimage_version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12Q\n\nproperties\x18\x02 \x03(\x0b\x32\x38.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\x03\xe0\x41\x01\x12\x45\n\x13optional_components\x18\x03 \x03(\x0e\x32#.google.cloud.dataproc.v1.ComponentB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x83\x02\n\x0fLifecycleConfig\x12\x37\n\x0fidle_delete_ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12;\n\x10\x61uto_delete_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x00\x12\x39\n\x0f\x61uto_delete_ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x00\x12\x38\n\x0fidle_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x05\n\x03ttl\"_\n\x0fMetastoreConfig\x12L\n\x1a\x64\x61taproc_metastore_service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\"\x9a\x02\n\x0e\x43lusterMetrics\x12O\n\x0chdfs_metrics\x18\x01 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\x12O\n\x0cyarn_metrics\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\x1a\x32\n\x10HdfsMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x32\n\x10YarnMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\x92\x03\n\x14\x44\x61taprocMetricConfig\x12K\n\x07metrics\x18\x01 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.DataprocMetricConfig.MetricB\x03\xe0\x41\x02\x1a\x80\x01\n\x06Metric\x12W\n\rmetric_source\x18\x01 \x01(\x0e\x32;.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\x03\xe0\x41\x02\x12\x1d\n\x10metric_overrides\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xa9\x01\n\x0cMetricSource\x12\x1d\n\x19METRIC_SOURCE_UNSPECIFIED\x10\x00\x12\x1d\n\x19MONITORING_AGENT_DEFAULTS\x10\x01\x12\x08\n\x04HDFS\x10\x02\x12\t\n\x05SPARK\x10\x03\x12\x08\n\x04YARN\x10\x04\x12\x18\n\x14SPARK_HISTORY_SERVER\x10\x05\x12\x0f\n\x0bHIVESERVER2\x10\x06\x12\x11\n\rHIVEMETASTORE\x10\x07\"\xee\x01\n\x14\x43reateClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.ClusterB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12V\n action_on_failed_primary_workers\x18\x05 \x01(\x0e\x32\'.google.cloud.dataproc.v1.FailureActionB\x03\xe0\x41\x01\"\xae\x02\n\x14UpdateClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.cloud.dataproc.v1.ClusterB\x03\xe0\x41\x02\x12\x45\n\x1dgraceful_decommission_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\x91\x01\n\x12StopClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_uuid\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x92\x01\n\x13StartClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_uuid\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x93\x01\n\x14\x44\x65leteClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_uuid\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\\\n\x11GetClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x89\x01\n\x13ListClustersRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x14ListClustersResponse\x12\x38\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.ClusterB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"a\n\x16\x44iagnoseClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"1\n\x16\x44iagnoseClusterResults\x12\x17\n\noutput_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"\xf8\x01\n\x13ReservationAffinity\x12Y\n\x18\x63onsume_reservation_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.dataproc.v1.ReservationAffinity.TypeB\x03\xe0\x41\x01\x12\x10\n\x03key\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06values\x18\x03 \x03(\tB\x03\xe0\x41\x01\"_\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_RESERVATION\x10\x01\x12\x13\n\x0f\x41NY_RESERVATION\x10\x02\x12\x18\n\x14SPECIFIC_RESERVATION\x10\x03\x32\xe4\x10\n\x11\x43lusterController\x12\x80\x02\n\rCreateCluster\x12..google.cloud.dataproc.v1.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02>\"3/v1/projects/{project_id}/regions/{region}/clusters:\x07\x63luster\xda\x41\x19project_id,region,cluster\xca\x41<\n\x07\x43luster\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\xa8\x02\n\rUpdateCluster\x12..google.cloud.dataproc.v1.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\xc7\x01\x82\xd3\xe4\x93\x02M2B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\x07\x63luster\xda\x41\x32project_id,region,cluster_name,cluster,update_mask\xca\x41<\n\x07\x43luster\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\xee\x01\n\x0bStopCluster\x12,.google.cloud.dataproc.v1.StopClusterRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\x82\xd3\xe4\x93\x02L\"G/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\x01*\xca\x41<\n\x07\x43luster\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\xf1\x01\n\x0cStartCluster\x12-.google.cloud.dataproc.v1.StartClusterRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\x82\xd3\xe4\x93\x02M\"H/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:start:\x01*\xca\x41<\n\x07\x43luster\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\x99\x02\n\rDeleteCluster\x12..google.cloud.dataproc.v1.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation\"\xb8\x01\x82\xd3\xe4\x93\x02\x44*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\xda\x41\x1eproject_id,region,cluster_name\xca\x41J\n\x15google.protobuf.Empty\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\xc9\x01\n\nGetCluster\x12+.google.cloud.dataproc.v1.GetClusterRequest\x1a!.google.cloud.dataproc.v1.Cluster\"k\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\xda\x41\x1eproject_id,region,cluster_name\x12\xd9\x01\n\x0cListClusters\x12-.google.cloud.dataproc.v1.ListClustersRequest\x1a..google.cloud.dataproc.v1.ListClustersResponse\"j\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/projects/{project_id}/regions/{region}/clusters\xda\x41\x11project_id,region\xda\x41\x18project_id,region,filter\x12\xaa\x02\n\x0f\x44iagnoseCluster\x12\x30.google.cloud.dataproc.v1.DiagnoseClusterRequest\x1a\x1d.google.longrunning.Operation\"\xc5\x01\x82\xd3\xe4\x93\x02P\"K/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\x01*\xda\x41\x1eproject_id,region,cluster_name\xca\x41K\n\x16\x44iagnoseClusterResults\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBl\n\x1c\x63om.google.cloud.dataproc.v1B\rClustersProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\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.dataproc.v1.KubernetesClusterConfig", "google/cloud/dataproc/v1/shared.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/jobs_pb.rb b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/jobs_pb.rb index c0a98079fc5a..fb86b09f5e1b 100644 --- a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/jobs_pb.rb +++ b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/jobs_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/jobs.proto @@ -11,256 +12,33 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/jobs.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.LoggingConfig" do - map :driver_log_levels, :string, :enum, 2, "google.cloud.dataproc.v1.LoggingConfig.Level" - end - add_enum "google.cloud.dataproc.v1.LoggingConfig.Level" do - value :LEVEL_UNSPECIFIED, 0 - value :ALL, 1 - value :TRACE, 2 - value :DEBUG, 3 - value :INFO, 4 - value :WARN, 5 - value :ERROR, 6 - value :FATAL, 7 - value :OFF, 8 - end - add_message "google.cloud.dataproc.v1.HadoopJob" do - repeated :args, :string, 3 - repeated :jar_file_uris, :string, 4 - repeated :file_uris, :string, 5 - repeated :archive_uris, :string, 6 - map :properties, :string, :string, 7 - optional :logging_config, :message, 8, "google.cloud.dataproc.v1.LoggingConfig" - oneof :driver do - optional :main_jar_file_uri, :string, 1 - optional :main_class, :string, 2 - end - end - add_message "google.cloud.dataproc.v1.SparkJob" do - repeated :args, :string, 3 - repeated :jar_file_uris, :string, 4 - repeated :file_uris, :string, 5 - repeated :archive_uris, :string, 6 - map :properties, :string, :string, 7 - optional :logging_config, :message, 8, "google.cloud.dataproc.v1.LoggingConfig" - oneof :driver do - optional :main_jar_file_uri, :string, 1 - optional :main_class, :string, 2 - end - end - add_message "google.cloud.dataproc.v1.PySparkJob" do - optional :main_python_file_uri, :string, 1 - repeated :args, :string, 2 - repeated :python_file_uris, :string, 3 - repeated :jar_file_uris, :string, 4 - repeated :file_uris, :string, 5 - repeated :archive_uris, :string, 6 - map :properties, :string, :string, 7 - optional :logging_config, :message, 8, "google.cloud.dataproc.v1.LoggingConfig" - end - add_message "google.cloud.dataproc.v1.QueryList" do - repeated :queries, :string, 1 - end - add_message "google.cloud.dataproc.v1.HiveJob" do - optional :continue_on_failure, :bool, 3 - map :script_variables, :string, :string, 4 - map :properties, :string, :string, 5 - repeated :jar_file_uris, :string, 6 - oneof :queries do - optional :query_file_uri, :string, 1 - optional :query_list, :message, 2, "google.cloud.dataproc.v1.QueryList" - end - end - add_message "google.cloud.dataproc.v1.SparkSqlJob" do - map :script_variables, :string, :string, 3 - map :properties, :string, :string, 4 - repeated :jar_file_uris, :string, 56 - optional :logging_config, :message, 6, "google.cloud.dataproc.v1.LoggingConfig" - oneof :queries do - optional :query_file_uri, :string, 1 - optional :query_list, :message, 2, "google.cloud.dataproc.v1.QueryList" - end - end - add_message "google.cloud.dataproc.v1.PigJob" do - optional :continue_on_failure, :bool, 3 - map :script_variables, :string, :string, 4 - map :properties, :string, :string, 5 - repeated :jar_file_uris, :string, 6 - optional :logging_config, :message, 7, "google.cloud.dataproc.v1.LoggingConfig" - oneof :queries do - optional :query_file_uri, :string, 1 - optional :query_list, :message, 2, "google.cloud.dataproc.v1.QueryList" - end - end - add_message "google.cloud.dataproc.v1.SparkRJob" do - optional :main_r_file_uri, :string, 1 - repeated :args, :string, 2 - repeated :file_uris, :string, 3 - repeated :archive_uris, :string, 4 - map :properties, :string, :string, 5 - optional :logging_config, :message, 6, "google.cloud.dataproc.v1.LoggingConfig" - end - add_message "google.cloud.dataproc.v1.PrestoJob" do - optional :continue_on_failure, :bool, 3 - optional :output_format, :string, 4 - repeated :client_tags, :string, 5 - map :properties, :string, :string, 6 - optional :logging_config, :message, 7, "google.cloud.dataproc.v1.LoggingConfig" - oneof :queries do - optional :query_file_uri, :string, 1 - optional :query_list, :message, 2, "google.cloud.dataproc.v1.QueryList" - end - end - add_message "google.cloud.dataproc.v1.TrinoJob" do - optional :continue_on_failure, :bool, 3 - optional :output_format, :string, 4 - repeated :client_tags, :string, 5 - map :properties, :string, :string, 6 - optional :logging_config, :message, 7, "google.cloud.dataproc.v1.LoggingConfig" - oneof :queries do - optional :query_file_uri, :string, 1 - optional :query_list, :message, 2, "google.cloud.dataproc.v1.QueryList" - end - end - add_message "google.cloud.dataproc.v1.JobPlacement" do - optional :cluster_name, :string, 1 - optional :cluster_uuid, :string, 2 - map :cluster_labels, :string, :string, 3 - end - add_message "google.cloud.dataproc.v1.JobStatus" do - optional :state, :enum, 1, "google.cloud.dataproc.v1.JobStatus.State" - optional :details, :string, 2 - optional :state_start_time, :message, 6, "google.protobuf.Timestamp" - optional :substate, :enum, 7, "google.cloud.dataproc.v1.JobStatus.Substate" - end - add_enum "google.cloud.dataproc.v1.JobStatus.State" do - value :STATE_UNSPECIFIED, 0 - value :PENDING, 1 - value :SETUP_DONE, 8 - value :RUNNING, 2 - value :CANCEL_PENDING, 3 - value :CANCEL_STARTED, 7 - value :CANCELLED, 4 - value :DONE, 5 - value :ERROR, 6 - value :ATTEMPT_FAILURE, 9 - end - add_enum "google.cloud.dataproc.v1.JobStatus.Substate" do - value :UNSPECIFIED, 0 - value :SUBMITTED, 1 - value :QUEUED, 2 - value :STALE_STATUS, 3 - end - add_message "google.cloud.dataproc.v1.JobReference" do - optional :project_id, :string, 1 - optional :job_id, :string, 2 - end - add_message "google.cloud.dataproc.v1.YarnApplication" do - optional :name, :string, 1 - optional :state, :enum, 2, "google.cloud.dataproc.v1.YarnApplication.State" - optional :progress, :float, 3 - optional :tracking_url, :string, 4 - end - add_enum "google.cloud.dataproc.v1.YarnApplication.State" do - value :STATE_UNSPECIFIED, 0 - value :NEW, 1 - value :NEW_SAVING, 2 - value :SUBMITTED, 3 - value :ACCEPTED, 4 - value :RUNNING, 5 - value :FINISHED, 6 - value :FAILED, 7 - value :KILLED, 8 - end - add_message "google.cloud.dataproc.v1.Job" do - optional :reference, :message, 1, "google.cloud.dataproc.v1.JobReference" - optional :placement, :message, 2, "google.cloud.dataproc.v1.JobPlacement" - optional :status, :message, 8, "google.cloud.dataproc.v1.JobStatus" - repeated :status_history, :message, 13, "google.cloud.dataproc.v1.JobStatus" - repeated :yarn_applications, :message, 9, "google.cloud.dataproc.v1.YarnApplication" - optional :driver_output_resource_uri, :string, 17 - optional :driver_control_files_uri, :string, 15 - map :labels, :string, :string, 18 - optional :scheduling, :message, 20, "google.cloud.dataproc.v1.JobScheduling" - optional :job_uuid, :string, 22 - optional :done, :bool, 24 - optional :driver_scheduling_config, :message, 27, "google.cloud.dataproc.v1.DriverSchedulingConfig" - oneof :type_job do - optional :hadoop_job, :message, 3, "google.cloud.dataproc.v1.HadoopJob" - optional :spark_job, :message, 4, "google.cloud.dataproc.v1.SparkJob" - optional :pyspark_job, :message, 5, "google.cloud.dataproc.v1.PySparkJob" - optional :hive_job, :message, 6, "google.cloud.dataproc.v1.HiveJob" - optional :pig_job, :message, 7, "google.cloud.dataproc.v1.PigJob" - optional :spark_r_job, :message, 21, "google.cloud.dataproc.v1.SparkRJob" - optional :spark_sql_job, :message, 12, "google.cloud.dataproc.v1.SparkSqlJob" - optional :presto_job, :message, 23, "google.cloud.dataproc.v1.PrestoJob" - optional :trino_job, :message, 28, "google.cloud.dataproc.v1.TrinoJob" - end - end - add_message "google.cloud.dataproc.v1.DriverSchedulingConfig" do - optional :memory_mb, :int32, 1 - optional :vcores, :int32, 2 - end - add_message "google.cloud.dataproc.v1.JobScheduling" do - optional :max_failures_per_hour, :int32, 1 - optional :max_failures_total, :int32, 2 - end - add_message "google.cloud.dataproc.v1.SubmitJobRequest" do - optional :project_id, :string, 1 - optional :region, :string, 3 - optional :job, :message, 2, "google.cloud.dataproc.v1.Job" - optional :request_id, :string, 4 - end - add_message "google.cloud.dataproc.v1.JobMetadata" do - optional :job_id, :string, 1 - optional :status, :message, 2, "google.cloud.dataproc.v1.JobStatus" - optional :operation_type, :string, 3 - optional :start_time, :message, 4, "google.protobuf.Timestamp" - end - add_message "google.cloud.dataproc.v1.GetJobRequest" do - optional :project_id, :string, 1 - optional :region, :string, 3 - optional :job_id, :string, 2 - end - add_message "google.cloud.dataproc.v1.ListJobsRequest" do - optional :project_id, :string, 1 - optional :region, :string, 6 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :cluster_name, :string, 4 - optional :job_state_matcher, :enum, 5, "google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher" - optional :filter, :string, 7 - end - add_enum "google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher" do - value :ALL, 0 - value :ACTIVE, 1 - value :NON_ACTIVE, 2 - end - add_message "google.cloud.dataproc.v1.UpdateJobRequest" do - optional :project_id, :string, 1 - optional :region, :string, 2 - optional :job_id, :string, 3 - optional :job, :message, 4, "google.cloud.dataproc.v1.Job" - optional :update_mask, :message, 5, "google.protobuf.FieldMask" - end - add_message "google.cloud.dataproc.v1.ListJobsResponse" do - repeated :jobs, :message, 1, "google.cloud.dataproc.v1.Job" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataproc.v1.CancelJobRequest" do - optional :project_id, :string, 1 - optional :region, :string, 3 - optional :job_id, :string, 2 - end - add_message "google.cloud.dataproc.v1.DeleteJobRequest" do - optional :project_id, :string, 1 - optional :region, :string, 3 - optional :job_id, :string, 2 + +descriptor_data = "\n#google/cloud/dataproc/v1/jobs.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc1\x02\n\rLoggingConfig\x12W\n\x11\x64river_log_levels\x18\x02 \x03(\x0b\x32<.google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry\x1a\x65\n\x14\x44riverLogLevelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0e\x32-.google.cloud.dataproc.v1.LoggingConfig.Level:\x02\x38\x01\"p\n\x05Level\x12\x15\n\x11LEVEL_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\t\n\x05TRACE\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x08\n\x04INFO\x10\x04\x12\x08\n\x04WARN\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\t\n\x05\x46\x41TAL\x10\x07\x12\x07\n\x03OFF\x10\x08\"\xf1\x02\n\tHadoopJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x11\n\x04\x61rgs\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12L\n\nproperties\x18\x07 \x03(\x0b\x32\x33.google.cloud.dataproc.v1.HadoopJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfigB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river\"\xef\x02\n\x08SparkJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x11\n\x04\x61rgs\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12K\n\nproperties\x18\x07 \x03(\x0b\x32\x32.google.cloud.dataproc.v1.SparkJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfigB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river\"\xf8\x02\n\nPySparkJob\x12!\n\x14main_python_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10python_file_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12M\n\nproperties\x18\x07 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.PySparkJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfigB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"!\n\tQueryList\x12\x14\n\x07queries\x18\x01 \x03(\tB\x03\xe0\x41\x02\"\xb5\x03\n\x07HiveJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12 \n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12U\n\x10script_variables\x18\x04 \x03(\x0b\x32\x36.google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntryB\x03\xe0\x41\x01\x12J\n\nproperties\x18\x05 \x03(\x0b\x32\x31.google.cloud.dataproc.v1.HiveJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\xe5\x03\n\x0bSparkSqlJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12Y\n\x10script_variables\x18\x03 \x03(\x0b\x32:.google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntryB\x03\xe0\x41\x01\x12N\n\nproperties\x18\x04 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x38 \x03(\tB\x03\xe0\x41\x01\x12\x44\n\x0elogging_config\x18\x06 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfigB\x03\xe0\x41\x01\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\xf8\x03\n\x06PigJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12 \n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12T\n\x10script_variables\x18\x04 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.PigJob.ScriptVariablesEntryB\x03\xe0\x41\x01\x12I\n\nproperties\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataproc.v1.PigJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x44\n\x0elogging_config\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfigB\x03\xe0\x41\x01\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\xb6\x02\n\tSparkRJob\x12\x1c\n\x0fmain_r_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12L\n\nproperties\x18\x05 \x03(\x0b\x32\x33.google.cloud.dataproc.v1.SparkRJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x44\n\x0elogging_config\x18\x06 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfigB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8a\x03\n\tPrestoJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12 \n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\routput_format\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x63lient_tags\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12L\n\nproperties\x18\x06 \x03(\x0b\x32\x33.google.cloud.dataproc.v1.PrestoJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x44\n\x0elogging_config\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfigB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\x88\x03\n\x08TrinoJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12 \n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\routput_format\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x63lient_tags\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12K\n\nproperties\x18\x06 \x03(\x0b\x32\x32.google.cloud.dataproc.v1.TrinoJob.PropertiesEntryB\x03\xe0\x41\x01\x12\x44\n\x0elogging_config\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfigB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\xd2\x01\n\x0cJobPlacement\x12\x19\n\x0c\x63luster_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_uuid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12V\n\x0e\x63luster_labels\x18\x03 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.JobPlacement.ClusterLabelsEntryB\x03\xe0\x41\x01\x1a\x34\n\x12\x43lusterLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd9\x03\n\tJobStatus\x12=\n\x05state\x18\x01 \x01(\x0e\x32).google.cloud.dataproc.v1.JobStatus.StateB\x03\xe0\x41\x03\x12\x17\n\x07\x64\x65tails\x18\x02 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x01\x12\x39\n\x10state_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x08substate\x18\x07 \x01(\x0e\x32,.google.cloud.dataproc.v1.JobStatus.SubstateB\x03\xe0\x41\x03\"\xa9\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0e\n\nSETUP_DONE\x10\x08\x12\x0b\n\x07RUNNING\x10\x02\x12\x12\n\x0e\x43\x41NCEL_PENDING\x10\x03\x12\x12\n\x0e\x43\x41NCEL_STARTED\x10\x07\x12\r\n\tCANCELLED\x10\x04\x12\x08\n\x04\x44ONE\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\x13\n\x0f\x41TTEMPT_FAILURE\x10\t\"H\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tSUBMITTED\x10\x01\x12\n\n\x06QUEUED\x10\x02\x12\x10\n\x0cSTALE_STATUS\x10\x03\"<\n\x0cJobReference\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa5\x02\n\x0fYarnApplication\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x43\n\x05state\x18\x02 \x01(\x0e\x32/.google.cloud.dataproc.v1.YarnApplication.StateB\x03\xe0\x41\x02\x12\x15\n\x08progress\x18\x03 \x01(\x02\x42\x03\xe0\x41\x02\x12\x19\n\x0ctracking_url\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x87\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x0e\n\nNEW_SAVING\x10\x02\x12\r\n\tSUBMITTED\x10\x03\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x04\x12\x0b\n\x07RUNNING\x10\x05\x12\x0c\n\x08\x46INISHED\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\n\n\x06KILLED\x10\x08\"\x96\n\n\x03Job\x12>\n\treference\x18\x01 \x01(\x0b\x32&.google.cloud.dataproc.v1.JobReferenceB\x03\xe0\x41\x01\x12>\n\tplacement\x18\x02 \x01(\x0b\x32&.google.cloud.dataproc.v1.JobPlacementB\x03\xe0\x41\x02\x12>\n\nhadoop_job\x18\x03 \x01(\x0b\x32#.google.cloud.dataproc.v1.HadoopJobB\x03\xe0\x41\x01H\x00\x12<\n\tspark_job\x18\x04 \x01(\x0b\x32\".google.cloud.dataproc.v1.SparkJobB\x03\xe0\x41\x01H\x00\x12@\n\x0bpyspark_job\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.PySparkJobB\x03\xe0\x41\x01H\x00\x12:\n\x08hive_job\x18\x06 \x01(\x0b\x32!.google.cloud.dataproc.v1.HiveJobB\x03\xe0\x41\x01H\x00\x12\x38\n\x07pig_job\x18\x07 \x01(\x0b\x32 .google.cloud.dataproc.v1.PigJobB\x03\xe0\x41\x01H\x00\x12?\n\x0bspark_r_job\x18\x15 \x01(\x0b\x32#.google.cloud.dataproc.v1.SparkRJobB\x03\xe0\x41\x01H\x00\x12\x43\n\rspark_sql_job\x18\x0c \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkSqlJobB\x03\xe0\x41\x01H\x00\x12>\n\npresto_job\x18\x17 \x01(\x0b\x32#.google.cloud.dataproc.v1.PrestoJobB\x03\xe0\x41\x01H\x00\x12<\n\ttrino_job\x18\x1c \x01(\x0b\x32\".google.cloud.dataproc.v1.TrinoJobB\x03\xe0\x41\x01H\x00\x12\x38\n\x06status\x18\x08 \x01(\x0b\x32#.google.cloud.dataproc.v1.JobStatusB\x03\xe0\x41\x03\x12@\n\x0estatus_history\x18\r \x03(\x0b\x32#.google.cloud.dataproc.v1.JobStatusB\x03\xe0\x41\x03\x12I\n\x11yarn_applications\x18\t \x03(\x0b\x32).google.cloud.dataproc.v1.YarnApplicationB\x03\xe0\x41\x03\x12\'\n\x1a\x64river_output_resource_uri\x18\x11 \x01(\tB\x03\xe0\x41\x03\x12%\n\x18\x64river_control_files_uri\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12>\n\x06labels\x18\x12 \x03(\x0b\x32).google.cloud.dataproc.v1.Job.LabelsEntryB\x03\xe0\x41\x01\x12@\n\nscheduling\x18\x14 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JobSchedulingB\x03\xe0\x41\x01\x12\x15\n\x08job_uuid\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04\x64one\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03\x12W\n\x18\x64river_scheduling_config\x18\x1b \x01(\x0b\x32\x30.google.cloud.dataproc.v1.DriverSchedulingConfigB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08type_job\"E\n\x16\x44riverSchedulingConfig\x12\x16\n\tmemory_mb\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x13\n\x06vcores\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"T\n\rJobScheduling\x12\"\n\x15max_failures_per_hour\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12max_failures_total\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"\x8a\x01\n\x10SubmitJobRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12/\n\x03job\x18\x02 \x01(\x0b\x32\x1d.google.cloud.dataproc.v1.JobB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xae\x01\n\x0bJobMetadata\x12\x13\n\x06job_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x38\n\x06status\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.JobStatusB\x03\xe0\x41\x03\x12\x1b\n\x0eoperation_type\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"R\n\rGetJobRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xb3\x02\n\x0fListJobsRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x63luster_name\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x11job_state_matcher\x18\x05 \x01(\x0e\x32\x39.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcherB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x07 \x01(\tB\x03\xe0\x41\x01\"6\n\x0fJobStateMatcher\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nNON_ACTIVE\x10\x02\"\xbc\x01\n\x10UpdateJobRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12/\n\x03job\x18\x04 \x01(\x0b\x32\x1d.google.cloud.dataproc.v1.JobB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"b\n\x10ListJobsResponse\x12\x30\n\x04jobs\x18\x01 \x03(\x0b\x32\x1d.google.cloud.dataproc.v1.JobB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"U\n\x10\x43\x61ncelJobRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"U\n\x10\x44\x65leteJobRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x32\xfc\n\n\rJobController\x12\xb1\x01\n\tSubmitJob\x12*.google.cloud.dataproc.v1.SubmitJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job\"Y\x82\xd3\xe4\x93\x02;\"6/v1/projects/{project_id}/regions/{region}/jobs:submit:\x01*\xda\x41\x15project_id,region,job\x12\xde\x01\n\x14SubmitJobAsOperation\x12*.google.cloud.dataproc.v1.SubmitJobRequest\x1a\x1d.google.longrunning.Operation\"{\x82\xd3\xe4\x93\x02\x46\"A/v1/projects/{project_id}/regions/{region}/jobs:submitAsOperation:\x01*\xda\x41\x17project_id, region, job\xca\x41\x12\n\x03Job\x12\x0bJobMetadata\x12\xad\x01\n\x06GetJob\x12\'.google.cloud.dataproc.v1.GetJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job\"[\x82\xd3\xe4\x93\x02:\x12\x38/v1/projects/{project_id}/regions/{region}/jobs/{job_id}\xda\x41\x18project_id,region,job_id\x12\xc9\x01\n\x08ListJobs\x12).google.cloud.dataproc.v1.ListJobsRequest\x1a*.google.cloud.dataproc.v1.ListJobsResponse\"f\x82\xd3\xe4\x93\x02\x31\x12//v1/projects/{project_id}/regions/{region}/jobs\xda\x41\x11project_id,region\xda\x41\x18project_id,region,filter\x12\x9d\x01\n\tUpdateJob\x12*.google.cloud.dataproc.v1.UpdateJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job\"E\x82\xd3\xe4\x93\x02?28/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:\x03job\x12\xbd\x01\n\tCancelJob\x12*.google.cloud.dataproc.v1.CancelJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job\"e\x82\xd3\xe4\x93\x02\x44\"?/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\x01*\xda\x41\x18project_id,region,job_id\x12\xac\x01\n\tDeleteJob\x12*.google.cloud.dataproc.v1.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"[\x82\xd3\xe4\x93\x02:*8/v1/projects/{project_id}/regions/{region}/jobs/{job_id}\xda\x41\x18project_id,region,job_id\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBh\n\x1c\x63om.google.cloud.dataproc.v1B\tJobsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/node_groups_pb.rb b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/node_groups_pb.rb index 1f3c60b9f52e..4458fc48cf3e 100644 --- a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/node_groups_pb.rb +++ b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/node_groups_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/node_groups.proto @@ -11,24 +12,33 @@ require 'google/longrunning/operations_pb' require 'google/protobuf/duration_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/node_groups.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.CreateNodeGroupRequest" do - optional :parent, :string, 1 - optional :node_group, :message, 2, "google.cloud.dataproc.v1.NodeGroup" - optional :node_group_id, :string, 4 - optional :request_id, :string, 3 - end - add_message "google.cloud.dataproc.v1.ResizeNodeGroupRequest" do - optional :name, :string, 1 - optional :size, :int32, 2 - optional :request_id, :string, 3 - optional :graceful_decommission_timeout, :message, 4, "google.protobuf.Duration" - end - add_message "google.cloud.dataproc.v1.GetNodeGroupRequest" do - optional :name, :string, 1 + +descriptor_data = "\n*google/cloud/dataproc/v1/node_groups.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/dataproc/v1/clusters.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\"\xc6\x01\n\x16\x43reateNodeGroupRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dataproc.googleapis.com/NodeGroup\x12<\n\nnode_group\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.NodeGroupB\x03\xe0\x41\x02\x12\x1a\n\rnode_group_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9e\x01\n\x16ResizeNodeGroupRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x1dgraceful_decommission_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"N\n\x13GetNodeGroupRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataproc.googleapis.com/NodeGroup2\xa7\x06\n\x13NodeGroupController\x12\x95\x02\n\x0f\x43reateNodeGroup\x12\x30.google.cloud.dataproc.v1.CreateNodeGroupRequest\x1a\x1d.google.longrunning.Operation\"\xb0\x01\x82\xd3\xe4\x93\x02\x45\"7/v1/{parent=projects/*/regions/*/clusters/*}/nodeGroups:\nnode_group\xda\x41\x1fparent,node_group,node_group_id\xca\x41@\n\tNodeGroup\x12\x33google.cloud.dataproc.v1.NodeGroupOperationMetadata\x12\xfd\x01\n\x0fResizeNodeGroup\x12\x30.google.cloud.dataproc.v1.ResizeNodeGroupRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02\x43\">/v1/{name=projects/*/regions/*/clusters/*/nodeGroups/*}:resize:\x01*\xda\x41\tname,size\xca\x41@\n\tNodeGroup\x12\x33google.cloud.dataproc.v1.NodeGroupOperationMetadata\x12\xaa\x01\n\x0cGetNodeGroup\x12-.google.cloud.dataproc.v1.GetNodeGroupRequest\x1a#.google.cloud.dataproc.v1.NodeGroup\"F\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/regions/*/clusters/*/nodeGroups/*}\xda\x41\x04name\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd0\x01\n\x1c\x63om.google.cloud.dataproc.v1B\x0fNodeGroupsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41_\n%dataproc.googleapis.com/ClusterRegion\x12\x36projects/{project}/regions/{region}/clusters/{cluster}b\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.dataproc.v1.NodeGroup", "google/cloud/dataproc/v1/clusters.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/operations_pb.rb b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/operations_pb.rb index 2d19879c29aa..b675aa117609 100644 --- a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/operations_pb.rb +++ b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/operations_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/operations.proto @@ -6,63 +7,32 @@ require 'google/api/field_behavior_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/operations.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.BatchOperationMetadata" do - optional :batch, :string, 1 - optional :batch_uuid, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :done_time, :message, 4, "google.protobuf.Timestamp" - optional :operation_type, :enum, 6, "google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType" - optional :description, :string, 7 - map :labels, :string, :string, 8 - repeated :warnings, :string, 9 - end - add_enum "google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType" do - value :BATCH_OPERATION_TYPE_UNSPECIFIED, 0 - value :BATCH, 1 - end - add_message "google.cloud.dataproc.v1.ClusterOperationStatus" do - optional :state, :enum, 1, "google.cloud.dataproc.v1.ClusterOperationStatus.State" - optional :inner_state, :string, 2 - optional :details, :string, 3 - optional :state_start_time, :message, 4, "google.protobuf.Timestamp" - end - add_enum "google.cloud.dataproc.v1.ClusterOperationStatus.State" do - value :UNKNOWN, 0 - value :PENDING, 1 - value :RUNNING, 2 - value :DONE, 3 - end - add_message "google.cloud.dataproc.v1.ClusterOperationMetadata" do - optional :cluster_name, :string, 7 - optional :cluster_uuid, :string, 8 - optional :status, :message, 9, "google.cloud.dataproc.v1.ClusterOperationStatus" - repeated :status_history, :message, 10, "google.cloud.dataproc.v1.ClusterOperationStatus" - optional :operation_type, :string, 11 - optional :description, :string, 12 - map :labels, :string, :string, 13 - repeated :warnings, :string, 14 - repeated :child_operation_ids, :string, 15 - end - add_message "google.cloud.dataproc.v1.NodeGroupOperationMetadata" do - optional :node_group_id, :string, 1 - optional :cluster_uuid, :string, 2 - optional :status, :message, 3, "google.cloud.dataproc.v1.ClusterOperationStatus" - repeated :status_history, :message, 4, "google.cloud.dataproc.v1.ClusterOperationStatus" - optional :operation_type, :enum, 5, "google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType" - optional :description, :string, 6 - map :labels, :string, :string, 7 - repeated :warnings, :string, 8 - end - add_enum "google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType" do - value :NODE_GROUP_OPERATION_TYPE_UNSPECIFIED, 0 - value :CREATE, 1 - value :UPDATE, 2 - value :DELETE, 3 - value :RESIZE, 4 + +descriptor_data = "\n)google/cloud/dataproc/v1/operations.proto\x12\x18google.cloud.dataproc.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe3\x03\n\x16\x42\x61tchOperationMetadata\x12\r\n\x05\x62\x61tch\x18\x01 \x01(\t\x12\x12\n\nbatch_uuid\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\tdone_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12[\n\x0eoperation_type\x18\x06 \x01(\x0e\x32\x43.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12L\n\x06labels\x18\x08 \x03(\x0b\x32<.google.cloud.dataproc.v1.BatchOperationMetadata.LabelsEntry\x12\x10\n\x08warnings\x18\t \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x12\x42\x61tchOperationType\x12$\n BATCH_OPERATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41TCH\x10\x01\"\x89\x02\n\x16\x43lusterOperationStatus\x12J\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.dataproc.v1.ClusterOperationStatus.StateB\x03\xe0\x41\x03\x12\x18\n\x0binner_state\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x64\x65tails\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x10state_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\"\xda\x03\n\x18\x43lusterOperationMetadata\x12\x19\n\x0c\x63luster_name\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_uuid\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x06status\x18\t \x01(\x0b\x32\x30.google.cloud.dataproc.v1.ClusterOperationStatusB\x03\xe0\x41\x03\x12M\n\x0estatus_history\x18\n \x03(\x0b\x32\x30.google.cloud.dataproc.v1.ClusterOperationStatusB\x03\xe0\x41\x03\x12\x1b\n\x0eoperation_type\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12S\n\x06labels\x18\r \x03(\x0b\x32>.google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntryB\x03\xe0\x41\x03\x12\x15\n\x08warnings\x18\x0e \x03(\tB\x03\xe0\x41\x03\x12 \n\x13\x63hild_operation_ids\x18\x0f \x03(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xfa\x04\n\x1aNodeGroupOperationMetadata\x12\x1a\n\rnode_group_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_uuid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x06status\x18\x03 \x01(\x0b\x32\x30.google.cloud.dataproc.v1.ClusterOperationStatusB\x03\xe0\x41\x03\x12M\n\x0estatus_history\x18\x04 \x03(\x0b\x32\x30.google.cloud.dataproc.v1.ClusterOperationStatusB\x03\xe0\x41\x03\x12\x63\n\x0eoperation_type\x18\x05 \x01(\x0e\x32K.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12U\n\x06labels\x18\x07 \x03(\x0b\x32@.google.cloud.dataproc.v1.NodeGroupOperationMetadata.LabelsEntryB\x03\xe0\x41\x03\x12\x15\n\x08warnings\x18\x08 \x03(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"s\n\x16NodeGroupOperationType\x12)\n%NODE_GROUP_OPERATION_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\x12\n\n\x06RESIZE\x10\x04\x42n\n\x1c\x63om.google.cloud.dataproc.v1B\x0fOperationsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/shared_pb.rb b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/shared_pb.rb index 033ab70fa717..9ddd7a40febb 100644 --- a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/shared_pb.rb +++ b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/shared_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/shared.proto @@ -8,124 +9,33 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/shared.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.RuntimeConfig" do - optional :version, :string, 1 - optional :container_image, :string, 2 - map :properties, :string, :string, 3 - end - add_message "google.cloud.dataproc.v1.EnvironmentConfig" do - optional :execution_config, :message, 1, "google.cloud.dataproc.v1.ExecutionConfig" - optional :peripherals_config, :message, 2, "google.cloud.dataproc.v1.PeripheralsConfig" - end - add_message "google.cloud.dataproc.v1.ExecutionConfig" do - optional :service_account, :string, 2 - repeated :network_tags, :string, 6 - optional :kms_key, :string, 7 - optional :ttl, :message, 9, "google.protobuf.Duration" - optional :staging_bucket, :string, 10 - oneof :network do - optional :network_uri, :string, 4 - optional :subnetwork_uri, :string, 5 - end - end - add_message "google.cloud.dataproc.v1.SparkHistoryServerConfig" do - optional :dataproc_cluster, :string, 1 - end - add_message "google.cloud.dataproc.v1.PeripheralsConfig" do - optional :metastore_service, :string, 1 - optional :spark_history_server_config, :message, 2, "google.cloud.dataproc.v1.SparkHistoryServerConfig" - end - add_message "google.cloud.dataproc.v1.RuntimeInfo" do - map :endpoints, :string, :string, 1 - optional :output_uri, :string, 2 - optional :diagnostic_output_uri, :string, 3 - optional :approximate_usage, :message, 6, "google.cloud.dataproc.v1.UsageMetrics" - optional :current_usage, :message, 7, "google.cloud.dataproc.v1.UsageSnapshot" - end - add_message "google.cloud.dataproc.v1.UsageMetrics" do - optional :milli_dcu_seconds, :int64, 1 - optional :shuffle_storage_gb_seconds, :int64, 2 - end - add_message "google.cloud.dataproc.v1.UsageSnapshot" do - optional :milli_dcu, :int64, 1 - optional :shuffle_storage_gb, :int64, 2 - optional :snapshot_time, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.cloud.dataproc.v1.GkeClusterConfig" do - optional :gke_cluster_target, :string, 2 - repeated :node_pool_target, :message, 3, "google.cloud.dataproc.v1.GkeNodePoolTarget" - end - add_message "google.cloud.dataproc.v1.KubernetesClusterConfig" do - optional :kubernetes_namespace, :string, 1 - optional :kubernetes_software_config, :message, 3, "google.cloud.dataproc.v1.KubernetesSoftwareConfig" - oneof :config do - optional :gke_cluster_config, :message, 2, "google.cloud.dataproc.v1.GkeClusterConfig" - end - end - add_message "google.cloud.dataproc.v1.KubernetesSoftwareConfig" do - map :component_version, :string, :string, 1 - map :properties, :string, :string, 2 - end - add_message "google.cloud.dataproc.v1.GkeNodePoolTarget" do - optional :node_pool, :string, 1 - repeated :roles, :enum, 2, "google.cloud.dataproc.v1.GkeNodePoolTarget.Role" - optional :node_pool_config, :message, 3, "google.cloud.dataproc.v1.GkeNodePoolConfig" - end - add_enum "google.cloud.dataproc.v1.GkeNodePoolTarget.Role" do - value :ROLE_UNSPECIFIED, 0 - value :DEFAULT, 1 - value :CONTROLLER, 2 - value :SPARK_DRIVER, 3 - value :SPARK_EXECUTOR, 4 - end - add_message "google.cloud.dataproc.v1.GkeNodePoolConfig" do - optional :config, :message, 2, "google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig" - repeated :locations, :string, 13 - optional :autoscaling, :message, 4, "google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig" - end - add_message "google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig" do - optional :machine_type, :string, 1 - optional :local_ssd_count, :int32, 7 - optional :preemptible, :bool, 10 - repeated :accelerators, :message, 11, "google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig" - optional :min_cpu_platform, :string, 13 - optional :boot_disk_kms_key, :string, 23 - optional :spot, :bool, 32 - end - add_message "google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig" do - optional :accelerator_count, :int64, 1 - optional :accelerator_type, :string, 2 - optional :gpu_partition_size, :string, 3 - end - add_message "google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig" do - optional :min_node_count, :int32, 2 - optional :max_node_count, :int32, 3 - end - add_enum "google.cloud.dataproc.v1.Component" do - value :COMPONENT_UNSPECIFIED, 0 - value :ANACONDA, 5 - value :DOCKER, 13 - value :DRUID, 9 - value :FLINK, 14 - value :HBASE, 11 - value :HIVE_WEBHCAT, 3 - value :HUDI, 18 - value :JUPYTER, 1 - value :PRESTO, 6 - value :TRINO, 17 - value :RANGER, 12 - value :SOLR, 10 - value :ZEPPELIN, 4 - value :ZOOKEEPER, 8 - end - add_enum "google.cloud.dataproc.v1.FailureAction" do - value :FAILURE_ACTION_UNSPECIFIED, 0 - value :NO_ACTION, 1 - value :DELETE, 2 + +descriptor_data = "\n%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc8\x01\n\rRuntimeConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63ontainer_image\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\nproperties\x18\x03 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xab\x01\n\x11\x45nvironmentConfig\x12H\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.ExecutionConfigB\x03\xe0\x41\x01\x12L\n\x12peripherals_config\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xe0\x41\x01\"\xf0\x01\n\x0f\x45xecutionConfig\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\x0bnetwork_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1d\n\x0esubnetwork_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\x0cnetwork_tags\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x14\n\x07kms_key\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12+\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1b\n\x0estaging_bucket\x18\n \x01(\tB\x03\xe0\x41\x01\x42\t\n\x07network\"9\n\x18SparkHistoryServerConfig\x12\x1d\n\x10\x64\x61taproc_cluster\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xb6\x01\n\x11PeripheralsConfig\x12\x43\n\x11metastore_service\x18\x01 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n metastore.googleapis.com/Service\x12\\\n\x1bspark_history_server_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\"\xd7\x02\n\x0bRuntimeInfo\x12L\n\tendpoints\x18\x01 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.RuntimeInfo.EndpointsEntryB\x03\xe0\x41\x03\x12\x17\n\noutput_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64iagnostic_output_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x11\x61pproximate_usage\x18\x06 \x01(\x0b\x32&.google.cloud.dataproc.v1.UsageMetricsB\x03\xe0\x41\x03\x12\x43\n\rcurrent_usage\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.UsageSnapshotB\x03\xe0\x41\x03\x1a\x30\n\x0e\x45ndpointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\x0cUsageMetrics\x12\x1e\n\x11milli_dcu_seconds\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_seconds\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\"\x80\x01\n\rUsageSnapshot\x12\x16\n\tmilli_dcu\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1f\n\x12shuffle_storage_gb\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12\x36\n\rsnapshot_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xa4\x01\n\x10GkeClusterConfig\x12\x44\n\x12gke_cluster_target\x18\x02 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n container.googleapis.com/Cluster\x12J\n\x10node_pool_target\x18\x03 \x03(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolTargetB\x03\xe0\x41\x01\"\xf2\x01\n\x17KubernetesClusterConfig\x12!\n\x14kubernetes_namespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12M\n\x12gke_cluster_config\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.GkeClusterConfigB\x03\xe0\x41\x02H\x00\x12[\n\x1akubernetes_software_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.KubernetesSoftwareConfigB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xc3\x02\n\x18KubernetesSoftwareConfig\x12\x63\n\x11\x63omponent_version\x18\x01 \x03(\x0b\x32H.google.cloud.dataproc.v1.KubernetesSoftwareConfig.ComponentVersionEntry\x12V\n\nproperties\x18\x02 \x03(\x0b\x32\x42.google.cloud.dataproc.v1.KubernetesSoftwareConfig.PropertiesEntry\x1a\x37\n\x15\x43omponentVersionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x02\n\x11GkeNodePoolTarget\x12\x16\n\tnode_pool\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x05roles\x18\x02 \x03(\x0e\x32\x30.google.cloud.dataproc.v1.GkeNodePoolTarget.RoleB\x03\xe0\x41\x02\x12J\n\x10node_pool_config\x18\x03 \x01(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolConfigB\x03\xe0\x41\x04\"_\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\x0e\n\nCONTROLLER\x10\x02\x12\x10\n\x0cSPARK_DRIVER\x10\x03\x12\x12\n\x0eSPARK_EXECUTOR\x10\x04\"\xbc\x05\n\x11GkeNodePoolConfig\x12N\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x39.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigB\x03\xe0\x41\x01\x12\x16\n\tlocations\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x62\n\x0b\x61utoscaling\x18\x04 \x01(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigB\x03\xe0\x41\x01\x1a\x99\x02\n\rGkeNodeConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0flocal_ssd_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bpreemptible\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x62oot_disk_kms_key\x18\x17 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04spot\x18 \x01(\x08\x42\x03\xe0\x41\x01\x1ao\n\x1cGkeNodePoolAcceleratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\x12\x1a\n\x12gpu_partition_size\x18\x03 \x01(\t\x1aN\n\x1cGkeNodePoolAutoscalingConfig\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05*\xd4\x01\n\tComponent\x12\x19\n\x15\x43OMPONENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41NACONDA\x10\x05\x12\n\n\x06\x44OCKER\x10\r\x12\t\n\x05\x44RUID\x10\t\x12\t\n\x05\x46LINK\x10\x0e\x12\t\n\x05HBASE\x10\x0b\x12\x10\n\x0cHIVE_WEBHCAT\x10\x03\x12\x08\n\x04HUDI\x10\x12\x12\x0b\n\x07JUPYTER\x10\x01\x12\n\n\x06PRESTO\x10\x06\x12\t\n\x05TRINO\x10\x11\x12\n\n\x06RANGER\x10\x0c\x12\x08\n\x04SOLR\x10\n\x12\x0c\n\x08ZEPPELIN\x10\x04\x12\r\n\tZOOKEEPER\x10\x08*J\n\rFailureAction\x12\x1e\n\x1a\x46\x41ILURE_ACTION_UNSPECIFIED\x10\x00\x12\r\n\tNO_ACTION\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x42\xac\x02\n\x1c\x63om.google.cloud.dataproc.v1B\x0bSharedProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41^\n container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}b\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.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb index 6a1e8bb3db7f..d927f4476c32 100644 --- a/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +++ b/google-cloud-dataproc-v1/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/workflow_templates.proto @@ -14,150 +15,35 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/workflow_templates.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.WorkflowTemplate" do - optional :id, :string, 2 - optional :name, :string, 1 - optional :version, :int32, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - map :labels, :string, :string, 6 - optional :placement, :message, 7, "google.cloud.dataproc.v1.WorkflowTemplatePlacement" - repeated :jobs, :message, 8, "google.cloud.dataproc.v1.OrderedJob" - repeated :parameters, :message, 9, "google.cloud.dataproc.v1.TemplateParameter" - optional :dag_timeout, :message, 10, "google.protobuf.Duration" - end - add_message "google.cloud.dataproc.v1.WorkflowTemplatePlacement" do - oneof :placement do - optional :managed_cluster, :message, 1, "google.cloud.dataproc.v1.ManagedCluster" - optional :cluster_selector, :message, 2, "google.cloud.dataproc.v1.ClusterSelector" - end - end - add_message "google.cloud.dataproc.v1.ManagedCluster" do - optional :cluster_name, :string, 2 - optional :config, :message, 3, "google.cloud.dataproc.v1.ClusterConfig" - map :labels, :string, :string, 4 - end - add_message "google.cloud.dataproc.v1.ClusterSelector" do - optional :zone, :string, 1 - map :cluster_labels, :string, :string, 2 - end - add_message "google.cloud.dataproc.v1.OrderedJob" do - optional :step_id, :string, 1 - map :labels, :string, :string, 8 - optional :scheduling, :message, 9, "google.cloud.dataproc.v1.JobScheduling" - repeated :prerequisite_step_ids, :string, 10 - oneof :job_type do - optional :hadoop_job, :message, 2, "google.cloud.dataproc.v1.HadoopJob" - optional :spark_job, :message, 3, "google.cloud.dataproc.v1.SparkJob" - optional :pyspark_job, :message, 4, "google.cloud.dataproc.v1.PySparkJob" - optional :hive_job, :message, 5, "google.cloud.dataproc.v1.HiveJob" - optional :pig_job, :message, 6, "google.cloud.dataproc.v1.PigJob" - optional :spark_r_job, :message, 11, "google.cloud.dataproc.v1.SparkRJob" - optional :spark_sql_job, :message, 7, "google.cloud.dataproc.v1.SparkSqlJob" - optional :presto_job, :message, 12, "google.cloud.dataproc.v1.PrestoJob" - end - end - add_message "google.cloud.dataproc.v1.TemplateParameter" do - optional :name, :string, 1 - repeated :fields, :string, 2 - optional :description, :string, 3 - optional :validation, :message, 4, "google.cloud.dataproc.v1.ParameterValidation" - end - add_message "google.cloud.dataproc.v1.ParameterValidation" do - oneof :validation_type do - optional :regex, :message, 1, "google.cloud.dataproc.v1.RegexValidation" - optional :values, :message, 2, "google.cloud.dataproc.v1.ValueValidation" - end - end - add_message "google.cloud.dataproc.v1.RegexValidation" do - repeated :regexes, :string, 1 - end - add_message "google.cloud.dataproc.v1.ValueValidation" do - repeated :values, :string, 1 - end - add_message "google.cloud.dataproc.v1.WorkflowMetadata" do - optional :template, :string, 1 - optional :version, :int32, 2 - optional :create_cluster, :message, 3, "google.cloud.dataproc.v1.ClusterOperation" - optional :graph, :message, 4, "google.cloud.dataproc.v1.WorkflowGraph" - optional :delete_cluster, :message, 5, "google.cloud.dataproc.v1.ClusterOperation" - optional :state, :enum, 6, "google.cloud.dataproc.v1.WorkflowMetadata.State" - optional :cluster_name, :string, 7 - map :parameters, :string, :string, 8 - optional :start_time, :message, 9, "google.protobuf.Timestamp" - optional :end_time, :message, 10, "google.protobuf.Timestamp" - optional :cluster_uuid, :string, 11 - optional :dag_timeout, :message, 12, "google.protobuf.Duration" - optional :dag_start_time, :message, 13, "google.protobuf.Timestamp" - optional :dag_end_time, :message, 14, "google.protobuf.Timestamp" - end - add_enum "google.cloud.dataproc.v1.WorkflowMetadata.State" do - value :UNKNOWN, 0 - value :PENDING, 1 - value :RUNNING, 2 - value :DONE, 3 - end - add_message "google.cloud.dataproc.v1.ClusterOperation" do - optional :operation_id, :string, 1 - optional :error, :string, 2 - optional :done, :bool, 3 - end - add_message "google.cloud.dataproc.v1.WorkflowGraph" do - repeated :nodes, :message, 1, "google.cloud.dataproc.v1.WorkflowNode" - end - add_message "google.cloud.dataproc.v1.WorkflowNode" do - optional :step_id, :string, 1 - repeated :prerequisite_step_ids, :string, 2 - optional :job_id, :string, 3 - optional :state, :enum, 5, "google.cloud.dataproc.v1.WorkflowNode.NodeState" - optional :error, :string, 6 - end - add_enum "google.cloud.dataproc.v1.WorkflowNode.NodeState" do - value :NODE_STATE_UNSPECIFIED, 0 - value :BLOCKED, 1 - value :RUNNABLE, 2 - value :RUNNING, 3 - value :COMPLETED, 4 - value :FAILED, 5 - end - add_message "google.cloud.dataproc.v1.CreateWorkflowTemplateRequest" do - optional :parent, :string, 1 - optional :template, :message, 2, "google.cloud.dataproc.v1.WorkflowTemplate" - end - add_message "google.cloud.dataproc.v1.GetWorkflowTemplateRequest" do - optional :name, :string, 1 - optional :version, :int32, 2 - end - add_message "google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest" do - optional :name, :string, 1 - optional :version, :int32, 2 - optional :request_id, :string, 5 - map :parameters, :string, :string, 6 - end - add_message "google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest" do - optional :parent, :string, 1 - optional :template, :message, 2, "google.cloud.dataproc.v1.WorkflowTemplate" - optional :request_id, :string, 3 - end - add_message "google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest" do - optional :template, :message, 1, "google.cloud.dataproc.v1.WorkflowTemplate" - end - add_message "google.cloud.dataproc.v1.ListWorkflowTemplatesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataproc.v1.ListWorkflowTemplatesResponse" do - repeated :templates, :message, 1, "google.cloud.dataproc.v1.WorkflowTemplate" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest" do - optional :name, :string, 1 - optional :version, :int32, 2 + +descriptor_data = "\n1google/cloud/dataproc/v1/workflow_templates.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/dataproc/v1/clusters.proto\x1a#google/cloud/dataproc/v1/jobs.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x82\x06\n\x10WorkflowTemplate\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\x06labels\x18\x06 \x03(\x0b\x32\x36.google.cloud.dataproc.v1.WorkflowTemplate.LabelsEntryB\x03\xe0\x41\x01\x12K\n\tplacement\x18\x07 \x01(\x0b\x32\x33.google.cloud.dataproc.v1.WorkflowTemplatePlacementB\x03\xe0\x41\x02\x12\x37\n\x04jobs\x18\x08 \x03(\x0b\x32$.google.cloud.dataproc.v1.OrderedJobB\x03\xe0\x41\x02\x12\x44\n\nparameters\x18\t \x03(\x0b\x32+.google.cloud.dataproc.v1.TemplateParameterB\x03\xe0\x41\x01\x12\x33\n\x0b\x64\x61g_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xca\x01\xea\x41\xc6\x01\n(dataproc.googleapis.com/WorkflowTemplate\x12Iprojects/{project}/regions/{region}/workflowTemplates/{workflow_template}\x12Mprojects/{project}/locations/{location}/workflowTemplates/{workflow_template} \x01\"\xb4\x01\n\x19WorkflowTemplatePlacement\x12\x43\n\x0fmanaged_cluster\x18\x01 \x01(\x0b\x32(.google.cloud.dataproc.v1.ManagedClusterH\x00\x12\x45\n\x10\x63luster_selector\x18\x02 \x01(\x0b\x32).google.cloud.dataproc.v1.ClusterSelectorH\x00\x42\x0b\n\tplacement\"\xe3\x01\n\x0eManagedCluster\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterConfigB\x03\xe0\x41\x02\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.ManagedCluster.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb5\x01\n\x0f\x43lusterSelector\x12\x11\n\x04zone\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x0e\x63luster_labels\x18\x02 \x03(\x0b\x32<.google.cloud.dataproc.v1.ClusterSelector.ClusterLabelsEntryB\x03\xe0\x41\x02\x1a\x34\n\x12\x43lusterLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x86\x06\n\nOrderedJob\x12\x14\n\x07step_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12>\n\nhadoop_job\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.HadoopJobB\x03\xe0\x41\x01H\x00\x12<\n\tspark_job\x18\x03 \x01(\x0b\x32\".google.cloud.dataproc.v1.SparkJobB\x03\xe0\x41\x01H\x00\x12@\n\x0bpyspark_job\x18\x04 \x01(\x0b\x32$.google.cloud.dataproc.v1.PySparkJobB\x03\xe0\x41\x01H\x00\x12:\n\x08hive_job\x18\x05 \x01(\x0b\x32!.google.cloud.dataproc.v1.HiveJobB\x03\xe0\x41\x01H\x00\x12\x38\n\x07pig_job\x18\x06 \x01(\x0b\x32 .google.cloud.dataproc.v1.PigJobB\x03\xe0\x41\x01H\x00\x12?\n\x0bspark_r_job\x18\x0b \x01(\x0b\x32#.google.cloud.dataproc.v1.SparkRJobB\x03\xe0\x41\x01H\x00\x12\x43\n\rspark_sql_job\x18\x07 \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkSqlJobB\x03\xe0\x41\x01H\x00\x12>\n\npresto_job\x18\x0c \x01(\x0b\x32#.google.cloud.dataproc.v1.PrestoJobB\x03\xe0\x41\x01H\x00\x12\x45\n\x06labels\x18\x08 \x03(\x0b\x32\x30.google.cloud.dataproc.v1.OrderedJob.LabelsEntryB\x03\xe0\x41\x01\x12@\n\nscheduling\x18\t \x01(\x0b\x32\'.google.cloud.dataproc.v1.JobSchedulingB\x03\xe0\x41\x01\x12\"\n\x15prerequisite_step_ids\x18\n \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08job_type\"\x9d\x01\n\x11TemplateParameter\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ields\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x46\n\nvalidation\x18\x04 \x01(\x0b\x32-.google.cloud.dataproc.v1.ParameterValidationB\x03\xe0\x41\x01\"\xa1\x01\n\x13ParameterValidation\x12:\n\x05regex\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.RegexValidationH\x00\x12;\n\x06values\x18\x02 \x01(\x0b\x32).google.cloud.dataproc.v1.ValueValidationH\x00\x42\x11\n\x0fvalidation_type\"\'\n\x0fRegexValidation\x12\x14\n\x07regexes\x18\x01 \x03(\tB\x03\xe0\x41\x02\"&\n\x0fValueValidation\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\"\xd4\x06\n\x10WorkflowMetadata\x12\x15\n\x08template\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12G\n\x0e\x63reate_cluster\x18\x03 \x01(\x0b\x32*.google.cloud.dataproc.v1.ClusterOperationB\x03\xe0\x41\x03\x12;\n\x05graph\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.WorkflowGraphB\x03\xe0\x41\x03\x12G\n\x0e\x64\x65lete_cluster\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.ClusterOperationB\x03\xe0\x41\x03\x12\x44\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.WorkflowMetadata.StateB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_name\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12N\n\nparameters\x18\x08 \x03(\x0b\x32:.google.cloud.dataproc.v1.WorkflowMetadata.ParametersEntry\x12\x33\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_uuid\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x33\n\x0b\x64\x61g_timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x37\n\x0e\x64\x61g_start_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0c\x64\x61g_end_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\"T\n\x10\x43lusterOperation\x12\x19\n\x0coperation_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x65rror\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04\x64one\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\"K\n\rWorkflowGraph\x12:\n\x05nodes\x18\x01 \x03(\x0b\x32&.google.cloud.dataproc.v1.WorkflowNodeB\x03\xe0\x41\x03\"\xa3\x02\n\x0cWorkflowNode\x12\x14\n\x07step_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15prerequisite_step_ids\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x05state\x18\x05 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.WorkflowNode.NodeStateB\x03\xe0\x41\x03\x12\x12\n\x05\x65rror\x18\x06 \x01(\tB\x03\xe0\x41\x03\"j\n\tNodeState\x12\x1a\n\x16NODE_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LOCKED\x10\x01\x12\x0c\n\x08RUNNABLE\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"\xa4\x01\n\x1d\x43reateWorkflowTemplateRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(dataproc.googleapis.com/WorkflowTemplate\x12\x41\n\x08template\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplateB\x03\xe0\x41\x02\"r\n\x1aGetWorkflowTemplateRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dataproc.googleapis.com/WorkflowTemplate\x12\x14\n\x07version\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"\xad\x02\n\"InstantiateWorkflowTemplateRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dataproc.googleapis.com/WorkflowTemplate\x12\x14\n\x07version\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x65\n\nparameters\x18\x06 \x03(\x0b\x32L.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.ParametersEntryB\x03\xe0\x41\x01\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc8\x01\n(InstantiateInlineWorkflowTemplateRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(dataproc.googleapis.com/WorkflowTemplate\x12\x41\n\x08template\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplateB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"b\n\x1dUpdateWorkflowTemplateRequest\x12\x41\n\x08template\x18\x01 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplateB\x03\xe0\x41\x02\"\x91\x01\n\x1cListWorkflowTemplatesRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(dataproc.googleapis.com/WorkflowTemplate\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x81\x01\n\x1dListWorkflowTemplatesResponse\x12\x42\n\ttemplates\x18\x01 \x03(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplateB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"u\n\x1d\x44\x65leteWorkflowTemplateRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dataproc.googleapis.com/WorkflowTemplate\x12\x14\n\x07version\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x32\xe6\x10\n\x17WorkflowTemplateService\x12\x9b\x02\n\x16\x43reateWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"\x9b\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v1/{parent=projects/*/locations/*}/workflowTemplates:\x08templateZ?\"3/v1/{parent=projects/*/regions/*}/workflowTemplates:\x08template\xda\x41\x0fparent,template\x12\xf4\x01\n\x13GetWorkflowTemplate\x12\x34.google.cloud.dataproc.v1.GetWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"{\x82\xd3\xe4\x93\x02n\x12\x35/v1/{name=projects/*/locations/*/workflowTemplates/*}Z5\x12\x33/v1/{name=projects/*/regions/*/workflowTemplates/*}\xda\x41\x04name\x12\xd5\x02\n\x1bInstantiateWorkflowTemplate\x12<.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation\"\xd8\x01\x82\xd3\xe4\x93\x02\x8c\x01\"A/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate:\x01*ZD\"?/v1/{name=projects/*/regions/*/workflowTemplates/*}:instantiate:\x01*\xda\x41\x04name\xda\x41\x0fname,parameters\xca\x41)\n\x15google.protobuf.Empty\x12\x10WorkflowMetadata\x12\xf4\x02\n!InstantiateInlineWorkflowTemplate\x12\x42.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation\"\xeb\x01\x82\xd3\xe4\x93\x02\xa6\x01\"G/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline:\x08templateZQ\"E/v1/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline:\x08template\xda\x41\x0fparent,template\xca\x41)\n\x15google.protobuf.Empty\x12\x10WorkflowMetadata\x12\xa6\x02\n\x16UpdateWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"\xa6\x01\x82\xd3\xe4\x93\x02\x94\x01\x1a>/v1/{template.name=projects/*/locations/*/workflowTemplates/*}:\x08templateZH\x1a 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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.cloud.dataproc.v1.ClusterConfig", "google/cloud/dataproc/v1/clusters.proto"], + ["google.cloud.dataproc.v1.HadoopJob", "google/cloud/dataproc/v1/jobs.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 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 diff --git a/google-cloud-dataproc-v1/proto_docs/google/protobuf/any.rb b/google-cloud-dataproc-v1/proto_docs/google/protobuf/any.rb index 8774b7f4a815..68a54aef5a75 100644 --- a/google-cloud-dataproc-v1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-dataproc-v1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-dataproc-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-dataproc-v1/proto_docs/google/protobuf/timestamp.rb index 7c4e206ac5fb..4891104f14b9 100644 --- a/google-cloud-dataproc-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-dataproc-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-dataqna-v1alpha/google-cloud-dataqna-v1alpha.gemspec b/google-cloud-dataqna-v1alpha/google-cloud-dataqna-v1alpha.gemspec index bb23b5e6503f..03de940a3d3f 100644 --- a/google-cloud-dataqna-v1alpha/google-cloud-dataqna-v1alpha.gemspec +++ b/google-cloud-dataqna-v1alpha/google-cloud-dataqna-v1alpha.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/annotated_string_pb.rb b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/annotated_string_pb.rb index 4ca38523569d..20f07ce9d886 100644 --- a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/annotated_string_pb.rb +++ b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/annotated_string_pb.rb @@ -1,30 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataqna/v1alpha/annotated_string.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataqna/v1alpha/annotated_string.proto", :syntax => :proto3) do - add_message "google.cloud.dataqna.v1alpha.AnnotatedString" do - optional :text_formatted, :string, 1 - optional :html_formatted, :string, 2 - repeated :markups, :message, 3, "google.cloud.dataqna.v1alpha.AnnotatedString.SemanticMarkup" - end - add_message "google.cloud.dataqna.v1alpha.AnnotatedString.SemanticMarkup" do - optional :type, :enum, 1, "google.cloud.dataqna.v1alpha.AnnotatedString.SemanticMarkupType" - optional :start_char_index, :int32, 2 - optional :length, :int32, 3 - end - add_enum "google.cloud.dataqna.v1alpha.AnnotatedString.SemanticMarkupType" do - value :MARKUP_TYPE_UNSPECIFIED, 0 - value :METRIC, 1 - value :DIMENSION, 2 - value :FILTER, 3 - value :UNUSED, 4 - value :BLOCKED, 5 - value :ROW, 6 + +descriptor_data = "\n3google/cloud/dataqna/v1alpha/annotated_string.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\"\x99\x03\n\x0f\x41nnotatedString\x12\x16\n\x0etext_formatted\x18\x01 \x01(\t\x12\x16\n\x0ehtml_formatted\x18\x02 \x01(\t\x12M\n\x07markups\x18\x03 \x03(\x0b\x32<.google.cloud.dataqna.v1alpha.AnnotatedString.SemanticMarkup\x1a\x8a\x01\n\x0eSemanticMarkup\x12N\n\x04type\x18\x01 \x01(\x0e\x32@.google.cloud.dataqna.v1alpha.AnnotatedString.SemanticMarkupType\x12\x18\n\x10start_char_index\x18\x02 \x01(\x05\x12\x0e\n\x06length\x18\x03 \x01(\x05\"z\n\x12SemanticMarkupType\x12\x1b\n\x17MARKUP_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06METRIC\x10\x01\x12\r\n\tDIMENSION\x10\x02\x12\n\n\x06\x46ILTER\x10\x03\x12\n\n\x06UNUSED\x10\x04\x12\x0b\n\x07\x42LOCKED\x10\x05\x12\x07\n\x03ROW\x10\x06\x42\xd6\x01\n com.google.cloud.dataqna.v1alphaB\x14\x41nnotatedStringProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\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 = [ + ] + 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 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 diff --git a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/auto_suggestion_service_pb.rb b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/auto_suggestion_service_pb.rb index a060c16d8e8d..fc35f29b25da 100644 --- a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/auto_suggestion_service_pb.rb +++ b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/auto_suggestion_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataqna/v1alpha/auto_suggestion_service.proto @@ -9,36 +10,32 @@ require 'google/cloud/dataqna/v1alpha/annotated_string_pb' require 'google/api/client_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataqna/v1alpha/auto_suggestion_service.proto", :syntax => :proto3) do - add_message "google.cloud.dataqna.v1alpha.SuggestQueriesRequest" do - optional :parent, :string, 1 - repeated :scopes, :string, 2 - optional :query, :string, 3 - repeated :suggestion_types, :enum, 4, "google.cloud.dataqna.v1alpha.SuggestionType" - end - add_message "google.cloud.dataqna.v1alpha.Suggestion" do - optional :suggestion_info, :message, 1, "google.cloud.dataqna.v1alpha.SuggestionInfo" - optional :ranking_score, :double, 2 - optional :suggestion_type, :enum, 3, "google.cloud.dataqna.v1alpha.SuggestionType" - end - add_message "google.cloud.dataqna.v1alpha.SuggestionInfo" do - optional :annotated_suggestion, :message, 1, "google.cloud.dataqna.v1alpha.AnnotatedString" - repeated :query_matches, :message, 2, "google.cloud.dataqna.v1alpha.SuggestionInfo.MatchInfo" - end - add_message "google.cloud.dataqna.v1alpha.SuggestionInfo.MatchInfo" do - optional :start_char_index, :int32, 1 - optional :length, :int32, 2 - end - add_message "google.cloud.dataqna.v1alpha.SuggestQueriesResponse" do - repeated :suggestions, :message, 1, "google.cloud.dataqna.v1alpha.Suggestion" - end - add_enum "google.cloud.dataqna.v1alpha.SuggestionType" do - value :SUGGESTION_TYPE_UNSPECIFIED, 0 - value :ENTITY, 1 - value :TEMPLATE, 2 + +descriptor_data = "\n:google/cloud/dataqna/v1alpha/auto_suggestion_service.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dataqna/v1alpha/annotated_string.proto\x1a\x17google/api/client.proto\"\xb9\x01\n\x15SuggestQueriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06scopes\x18\x02 \x03(\t\x12\r\n\x05query\x18\x03 \x01(\t\x12\x46\n\x10suggestion_types\x18\x04 \x03(\x0e\x32,.google.cloud.dataqna.v1alpha.SuggestionType\"\xb1\x01\n\nSuggestion\x12\x45\n\x0fsuggestion_info\x18\x01 \x01(\x0b\x32,.google.cloud.dataqna.v1alpha.SuggestionInfo\x12\x15\n\rranking_score\x18\x02 \x01(\x01\x12\x45\n\x0fsuggestion_type\x18\x03 \x01(\x0e\x32,.google.cloud.dataqna.v1alpha.SuggestionType\"\xe3\x01\n\x0eSuggestionInfo\x12K\n\x14\x61nnotated_suggestion\x18\x01 \x01(\x0b\x32-.google.cloud.dataqna.v1alpha.AnnotatedString\x12M\n\rquery_matches\x18\x02 \x03(\x0b\x32\x36.google.cloud.dataqna.v1alpha.SuggestionInfo.MatchInfo\x1a\x35\n\tMatchInfo\x12\x18\n\x10start_char_index\x18\x01 \x01(\x05\x12\x0e\n\x06length\x18\x02 \x01(\x05\"W\n\x16SuggestQueriesResponse\x12=\n\x0bsuggestions\x18\x01 \x03(\x0b\x32(.google.cloud.dataqna.v1alpha.Suggestion*K\n\x0eSuggestionType\x12\x1f\n\x1bSUGGESTION_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x45NTITY\x10\x01\x12\x0c\n\x08TEMPLATE\x10\x02\x32\xa5\x02\n\x15\x41utoSuggestionService\x12\xbf\x01\n\x0eSuggestQueries\x12\x33.google.cloud.dataqna.v1alpha.SuggestQueriesRequest\x1a\x34.google.cloud.dataqna.v1alpha.SuggestQueriesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1alpha/{parent=projects/*/locations/*}:suggestQueries:\x01*\x1aJ\xca\x41\x16\x64\x61taqna.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xdc\x01\n com.google.cloud.dataqna.v1alphaB\x1a\x41utoSuggestionServiceProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\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.dataqna.v1alpha.AnnotatedString", "google/cloud/dataqna/v1alpha/annotated_string.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 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 diff --git a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/question_pb.rb b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/question_pb.rb index db8f7909982a..31409eb45f26 100644 --- a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/question_pb.rb +++ b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/question_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataqna/v1alpha/question.proto @@ -10,122 +11,35 @@ require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataqna/v1alpha/question.proto", :syntax => :proto3) do - add_message "google.cloud.dataqna.v1alpha.Question" do - optional :name, :string, 1 - repeated :scopes, :string, 2 - optional :query, :string, 3 - repeated :data_source_annotations, :string, 4 - optional :interpret_error, :message, 5, "google.cloud.dataqna.v1alpha.InterpretError" - repeated :interpretations, :message, 6, "google.cloud.dataqna.v1alpha.Interpretation" - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :user_email, :string, 8 - optional :debug_flags, :message, 9, "google.cloud.dataqna.v1alpha.DebugFlags" - optional :debug_info, :message, 10, "google.protobuf.Any" - end - add_message "google.cloud.dataqna.v1alpha.InterpretError" do - optional :message, :string, 1 - optional :code, :enum, 2, "google.cloud.dataqna.v1alpha.InterpretError.InterpretErrorCode" - optional :details, :message, 3, "google.cloud.dataqna.v1alpha.InterpretError.InterpretErrorDetails" - end - add_message "google.cloud.dataqna.v1alpha.InterpretError.InterpretErrorDetails" do - optional :unsupported_details, :message, 1, "google.cloud.dataqna.v1alpha.InterpretError.InterpretUnsupportedDetails" - optional :incomplete_query_details, :message, 2, "google.cloud.dataqna.v1alpha.InterpretError.InterpretIncompleteQueryDetails" - optional :ambiguity_details, :message, 3, "google.cloud.dataqna.v1alpha.InterpretError.InterpretAmbiguityDetails" - end - add_message "google.cloud.dataqna.v1alpha.InterpretError.InterpretUnsupportedDetails" do - repeated :operators, :string, 1 - repeated :intent, :string, 2 - end - add_message "google.cloud.dataqna.v1alpha.InterpretError.InterpretIncompleteQueryDetails" do - repeated :entities, :enum, 1, "google.cloud.dataqna.v1alpha.InterpretEntity" - end - add_message "google.cloud.dataqna.v1alpha.InterpretError.InterpretAmbiguityDetails" do - end - add_enum "google.cloud.dataqna.v1alpha.InterpretError.InterpretErrorCode" do - value :INTERPRET_ERROR_CODE_UNSPECIFIED, 0 - value :INVALID_QUERY, 1 - value :FAILED_TO_UNDERSTAND, 2 - value :FAILED_TO_ANSWER, 3 - end - add_message "google.cloud.dataqna.v1alpha.ExecutionInfo" do - optional :job_creation_status, :message, 1, "google.rpc.Status" - optional :job_execution_state, :enum, 2, "google.cloud.dataqna.v1alpha.ExecutionInfo.JobExecutionState" - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :bigquery_job, :message, 4, "google.cloud.dataqna.v1alpha.BigQueryJob" - end - add_enum "google.cloud.dataqna.v1alpha.ExecutionInfo.JobExecutionState" do - value :JOB_EXECUTION_STATE_UNSPECIFIED, 0 - value :NOT_EXECUTED, 1 - value :RUNNING, 2 - value :SUCCEEDED, 3 - value :FAILED, 4 - end - add_message "google.cloud.dataqna.v1alpha.BigQueryJob" do - optional :job_id, :string, 1 - optional :project_id, :string, 2 - optional :location, :string, 3 - end - add_message "google.cloud.dataqna.v1alpha.Interpretation" do - repeated :data_sources, :string, 1 - optional :confidence, :double, 2 - repeated :unused_phrases, :string, 3 - optional :human_readable, :message, 4, "google.cloud.dataqna.v1alpha.HumanReadable" - optional :interpretation_structure, :message, 5, "google.cloud.dataqna.v1alpha.InterpretationStructure" - optional :data_query, :message, 6, "google.cloud.dataqna.v1alpha.DataQuery" - optional :execution_info, :message, 7, "google.cloud.dataqna.v1alpha.ExecutionInfo" - end - add_message "google.cloud.dataqna.v1alpha.DataQuery" do - optional :sql, :string, 1 - end - add_message "google.cloud.dataqna.v1alpha.HumanReadable" do - optional :generated_interpretation, :message, 1, "google.cloud.dataqna.v1alpha.AnnotatedString" - optional :original_question, :message, 2, "google.cloud.dataqna.v1alpha.AnnotatedString" - end - add_message "google.cloud.dataqna.v1alpha.InterpretationStructure" do - repeated :visualization_types, :enum, 1, "google.cloud.dataqna.v1alpha.InterpretationStructure.VisualizationType" - repeated :column_info, :message, 2, "google.cloud.dataqna.v1alpha.InterpretationStructure.ColumnInfo" - end - add_message "google.cloud.dataqna.v1alpha.InterpretationStructure.ColumnInfo" do - optional :output_alias, :string, 1 - optional :display_name, :string, 2 - end - add_enum "google.cloud.dataqna.v1alpha.InterpretationStructure.VisualizationType" do - value :VISUALIZATION_TYPE_UNSPECIFIED, 0 - value :TABLE, 1 - value :BAR_CHART, 2 - value :COLUMN_CHART, 3 - value :TIMELINE, 4 - value :SCATTER_PLOT, 5 - value :PIE_CHART, 6 - value :LINE_CHART, 7 - value :AREA_CHART, 8 - value :COMBO_CHART, 9 - value :HISTOGRAM, 10 - value :GENERIC_CHART, 11 - value :CHART_NOT_UNDERSTOOD, 12 - end - add_message "google.cloud.dataqna.v1alpha.DebugFlags" do - optional :include_va_query, :bool, 1 - optional :include_nested_va_query, :bool, 2 - optional :include_human_interpretation, :bool, 3 - optional :include_aqua_debug_response, :bool, 4 - optional :time_override, :int64, 5 - optional :is_internal_google_user, :bool, 6 - optional :ignore_cache, :bool, 7 - optional :include_search_entities_rpc, :bool, 8 - optional :include_list_column_annotations_rpc, :bool, 9 - optional :include_virtual_analyst_entities, :bool, 10 - optional :include_table_list, :bool, 11 - optional :include_domain_list, :bool, 12 - end - add_enum "google.cloud.dataqna.v1alpha.InterpretEntity" do - value :INTERPRET_ENTITY_UNSPECIFIED, 0 - value :DIMENSION, 1 - value :METRIC, 2 + +descriptor_data = "\n+google/cloud/dataqna/v1alpha/question.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dataqna/v1alpha/annotated_string.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9d\x04\n\x08Question\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12\x16\n\x06scopes\x18\x02 \x03(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x15\n\x05query\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1f\n\x17\x64\x61ta_source_annotations\x18\x04 \x03(\t\x12\x45\n\x0finterpret_error\x18\x05 \x01(\x0b\x32,.google.cloud.dataqna.v1alpha.InterpretError\x12\x45\n\x0finterpretations\x18\x06 \x03(\x0b\x32,.google.cloud.dataqna.v1alpha.Interpretation\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\nuser_email\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x0b\x64\x65\x62ug_flags\x18\t \x01(\x0b\x32(.google.cloud.dataqna.v1alpha.DebugFlagsB\x06\xe0\x41\x05\xe0\x41\x04\x12(\n\ndebug_info\x18\n \x01(\x0b\x32\x14.google.protobuf.Any:b\xea\x41_\n\x1f\x64\x61taqna.googleapis.com/Question\x12 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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Any", "google/protobuf/any.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.cloud.dataqna.v1alpha.AnnotatedString", "google/cloud/dataqna/v1alpha/annotated_string.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 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 diff --git a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/question_service_pb.rb b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/question_service_pb.rb index 57ed02b385aa..8b9a620ad090 100644 --- a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/question_service_pb.rb +++ b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/question_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataqna/v1alpha/question_service.proto @@ -11,28 +12,34 @@ require 'google/cloud/dataqna/v1alpha/user_feedback_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataqna/v1alpha/question_service.proto", :syntax => :proto3) do - add_message "google.cloud.dataqna.v1alpha.GetQuestionRequest" do - optional :name, :string, 1 - optional :read_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dataqna.v1alpha.CreateQuestionRequest" do - optional :parent, :string, 1 - optional :question, :message, 2, "google.cloud.dataqna.v1alpha.Question" - end - add_message "google.cloud.dataqna.v1alpha.ExecuteQuestionRequest" do - optional :name, :string, 1 - optional :interpretation_index, :int32, 2 - end - add_message "google.cloud.dataqna.v1alpha.GetUserFeedbackRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dataqna.v1alpha.UpdateUserFeedbackRequest" do - optional :user_feedback, :message, 1, "google.cloud.dataqna.v1alpha.UserFeedback" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" + +descriptor_data = "\n3google/cloud/dataqna/v1alpha/question_service.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/dataqna/v1alpha/question.proto\x1a\x30google/cloud/dataqna/v1alpha/user_feedback.proto\x1a google/protobuf/field_mask.proto\"z\n\x12GetQuestionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taqna.googleapis.com/Question\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x91\x01\n\x15\x43reateQuestionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\x08question\x18\x02 \x01(\x0b\x32&.google.cloud.dataqna.v1alpha.QuestionB\x03\xe0\x41\x02\"N\n\x16\x45xecuteQuestionRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14interpretation_index\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"S\n\x16GetUserFeedbackRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataqna.googleapis.com/UserFeedback\"\x94\x01\n\x19UpdateUserFeedbackRequest\x12\x46\n\ruser_feedback\x18\x01 \x01(\x0b\x32*.google.cloud.dataqna.v1alpha.UserFeedbackB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xec\x08\n\x0fQuestionService\x12\xaa\x01\n\x0bGetQuestion\x12\x30.google.cloud.dataqna.v1alpha.GetQuestionRequest\x1a&.google.cloud.dataqna.v1alpha.Question\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=projects/*/locations/*/questions/*}\xda\x41\x04name\x12\xc5\x01\n\x0e\x43reateQuestion\x12\x33.google.cloud.dataqna.v1alpha.CreateQuestionRequest\x1a&.google.cloud.dataqna.v1alpha.Question\"V\x82\xd3\xe4\x93\x02>\"2/v1alpha/{parent=projects/*/locations/*}/questions:\x08question\xda\x41\x0fparent,question\x12\xd2\x01\n\x0f\x45xecuteQuestion\x12\x34.google.cloud.dataqna.v1alpha.ExecuteQuestionRequest\x1a&.google.cloud.dataqna.v1alpha.Question\"a\x82\xd3\xe4\x93\x02?\":/v1alpha/{name=projects/*/locations/*/questions/*}:execute:\x01*\xda\x41\x19name,interpretation_index\x12\xc3\x01\n\x0fGetUserFeedback\x12\x34.google.cloud.dataqna.v1alpha.GetUserFeedbackRequest\x1a*.google.cloud.dataqna.v1alpha.UserFeedback\"N\x82\xd3\xe4\x93\x02\x41\x12?/v1alpha/{name=projects/*/locations/*/questions/*/userFeedback}\xda\x41\x04name\x12\xfc\x01\n\x12UpdateUserFeedback\x12\x37.google.cloud.dataqna.v1alpha.UpdateUserFeedbackRequest\x1a*.google.cloud.dataqna.v1alpha.UserFeedback\"\x80\x01\x82\xd3\xe4\x93\x02^2M/v1alpha/{user_feedback.name=projects/*/locations/*/questions/*/userFeedback}:\ruser_feedback\xda\x41\x19user_feedback,update_mask\x1aJ\xca\x41\x16\x64\x61taqna.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd6\x01\n com.google.cloud.dataqna.v1alphaB\x14QuestionServiceProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\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.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.cloud.dataqna.v1alpha.Question", "google/cloud/dataqna/v1alpha/question.proto"], + ["google.cloud.dataqna.v1alpha.UserFeedback", "google/cloud/dataqna/v1alpha/user_feedback.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 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 diff --git a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/user_feedback_pb.rb b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/user_feedback_pb.rb index 741f44dbcfbc..942d68725c91 100644 --- a/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/user_feedback_pb.rb +++ b/google-cloud-dataqna-v1alpha/lib/google/cloud/dataqna/v1alpha/user_feedback_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataqna/v1alpha/user_feedback.proto @@ -6,19 +7,31 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataqna/v1alpha/user_feedback.proto", :syntax => :proto3) do - add_message "google.cloud.dataqna.v1alpha.UserFeedback" do - optional :name, :string, 1 - optional :free_form_feedback, :string, 2 - optional :rating, :enum, 3, "google.cloud.dataqna.v1alpha.UserFeedback.UserFeedbackRating" - end - add_enum "google.cloud.dataqna.v1alpha.UserFeedback.UserFeedbackRating" do - value :USER_FEEDBACK_RATING_UNSPECIFIED, 0 - value :POSITIVE, 1 - value :NEGATIVE, 2 + +descriptor_data = "\n0google/cloud/dataqna/v1alpha/user_feedback.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd9\x02\n\x0cUserFeedback\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\x12\x66ree_form_feedback\x18\x02 \x01(\t\x12M\n\x06rating\x18\x03 \x01(\x0e\x32=.google.cloud.dataqna.v1alpha.UserFeedback.UserFeedbackRating\"V\n\x12UserFeedbackRating\x12$\n USER_FEEDBACK_RATING_UNSPECIFIED\x10\x00\x12\x0c\n\x08POSITIVE\x10\x01\x12\x0c\n\x08NEGATIVE\x10\x02:s\xea\x41p\n#dataqna.googleapis.com/UserFeedback\x12Iprojects/{project}/locations/{location}/questions/{question}/userFeedbackB\xd3\x01\n com.google.cloud.dataqna.v1alphaB\x11UserFeedbackProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\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 = [ + ] + 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 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 diff --git a/google-cloud-dataqna-v1alpha/proto_docs/google/protobuf/any.rb b/google-cloud-dataqna-v1alpha/proto_docs/google/protobuf/any.rb index 39618af2c75c..9f9367c74a8d 100644 --- a/google-cloud-dataqna-v1alpha/proto_docs/google/protobuf/any.rb +++ b/google-cloud-dataqna-v1alpha/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-dataqna-v1alpha/proto_docs/google/protobuf/timestamp.rb b/google-cloud-dataqna-v1alpha/proto_docs/google/protobuf/timestamp.rb index fb9d03c73c8d..626cd5e0bf3a 100644 --- a/google-cloud-dataqna-v1alpha/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-dataqna-v1alpha/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-datastore-admin-v1/google-cloud-datastore-admin-v1.gemspec b/google-cloud-datastore-admin-v1/google-cloud-datastore-admin-v1.gemspec index 34df021e1b6c..2c84a69cf074 100644 --- a/google-cloud-datastore-admin-v1/google-cloud-datastore-admin-v1.gemspec +++ b/google-cloud-datastore-admin-v1/google-cloud-datastore-admin-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/datastore_admin_pb.rb b/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/datastore_admin_pb.rb index f0213e7119f4..767d3a98b715 100644 --- a/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/datastore_admin_pb.rb +++ b/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/datastore_admin_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/datastore/admin/v1/datastore_admin.proto @@ -11,101 +12,33 @@ require 'google/longrunning/operations_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/datastore/admin/v1/datastore_admin.proto", :syntax => :proto3) do - add_message "google.datastore.admin.v1.CommonMetadata" do - optional :start_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :operation_type, :enum, 3, "google.datastore.admin.v1.OperationType" - map :labels, :string, :string, 4 - optional :state, :enum, 5, "google.datastore.admin.v1.CommonMetadata.State" - end - add_enum "google.datastore.admin.v1.CommonMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :INITIALIZING, 1 - value :PROCESSING, 2 - value :CANCELLING, 3 - value :FINALIZING, 4 - value :SUCCESSFUL, 5 - value :FAILED, 6 - value :CANCELLED, 7 - end - add_message "google.datastore.admin.v1.Progress" do - optional :work_completed, :int64, 1 - optional :work_estimated, :int64, 2 - end - add_message "google.datastore.admin.v1.ExportEntitiesRequest" do - optional :project_id, :string, 1 - map :labels, :string, :string, 2 - optional :entity_filter, :message, 3, "google.datastore.admin.v1.EntityFilter" - optional :output_url_prefix, :string, 4 - end - add_message "google.datastore.admin.v1.ImportEntitiesRequest" do - optional :project_id, :string, 1 - map :labels, :string, :string, 2 - optional :input_url, :string, 3 - optional :entity_filter, :message, 4, "google.datastore.admin.v1.EntityFilter" - end - add_message "google.datastore.admin.v1.ExportEntitiesResponse" do - optional :output_url, :string, 1 - end - add_message "google.datastore.admin.v1.ExportEntitiesMetadata" do - optional :common, :message, 1, "google.datastore.admin.v1.CommonMetadata" - optional :progress_entities, :message, 2, "google.datastore.admin.v1.Progress" - optional :progress_bytes, :message, 3, "google.datastore.admin.v1.Progress" - optional :entity_filter, :message, 4, "google.datastore.admin.v1.EntityFilter" - optional :output_url_prefix, :string, 5 - end - add_message "google.datastore.admin.v1.ImportEntitiesMetadata" do - optional :common, :message, 1, "google.datastore.admin.v1.CommonMetadata" - optional :progress_entities, :message, 2, "google.datastore.admin.v1.Progress" - optional :progress_bytes, :message, 3, "google.datastore.admin.v1.Progress" - optional :entity_filter, :message, 4, "google.datastore.admin.v1.EntityFilter" - optional :input_url, :string, 5 - end - add_message "google.datastore.admin.v1.EntityFilter" do - repeated :kinds, :string, 1 - repeated :namespace_ids, :string, 2 - end - add_message "google.datastore.admin.v1.CreateIndexRequest" do - optional :project_id, :string, 1 - optional :index, :message, 3, "google.datastore.admin.v1.Index" - end - add_message "google.datastore.admin.v1.DeleteIndexRequest" do - optional :project_id, :string, 1 - optional :index_id, :string, 3 - end - add_message "google.datastore.admin.v1.GetIndexRequest" do - optional :project_id, :string, 1 - optional :index_id, :string, 3 - end - add_message "google.datastore.admin.v1.ListIndexesRequest" do - optional :project_id, :string, 1 - optional :filter, :string, 3 - optional :page_size, :int32, 4 - optional :page_token, :string, 5 - end - add_message "google.datastore.admin.v1.ListIndexesResponse" do - repeated :indexes, :message, 1, "google.datastore.admin.v1.Index" - optional :next_page_token, :string, 2 - end - add_message "google.datastore.admin.v1.IndexOperationMetadata" do - optional :common, :message, 1, "google.datastore.admin.v1.CommonMetadata" - optional :progress_entities, :message, 2, "google.datastore.admin.v1.Progress" - optional :index_id, :string, 3 - end - add_message "google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata" do - optional :migration_state, :enum, 1, "google.datastore.admin.v1.MigrationState" - optional :migration_step, :enum, 2, "google.datastore.admin.v1.MigrationStep" - end - add_enum "google.datastore.admin.v1.OperationType" do - value :OPERATION_TYPE_UNSPECIFIED, 0 - value :EXPORT_ENTITIES, 1 - value :IMPORT_ENTITIES, 2 - value :CREATE_INDEX, 3 - value :DELETE_INDEX, 4 + +descriptor_data = "\n/google/datastore/admin/v1/datastore_admin.proto\x12\x19google.datastore.admin.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a%google/datastore/admin/v1/index.proto\x1a)google/datastore/admin/v1/migration.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf4\x03\n\x0e\x43ommonMetadata\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x0eoperation_type\x18\x03 \x01(\x0e\x32(.google.datastore.admin.v1.OperationType\x12\x45\n\x06labels\x18\x04 \x03(\x0b\x32\x35.google.datastore.admin.v1.CommonMetadata.LabelsEntry\x12>\n\x05state\x18\x05 \x01(\x0e\x32/.google.datastore.admin.v1.CommonMetadata.State\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8b\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\x0e\n\nCANCELLING\x10\x03\x12\x0e\n\nFINALIZING\x10\x04\x12\x0e\n\nSUCCESSFUL\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\r\n\tCANCELLED\x10\x07\":\n\x08Progress\x12\x16\n\x0ework_completed\x18\x01 \x01(\x03\x12\x16\n\x0ework_estimated\x18\x02 \x01(\x03\"\x8d\x02\n\x15\x45xportEntitiesRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x06labels\x18\x02 \x03(\x0b\x32<.google.datastore.admin.v1.ExportEntitiesRequest.LabelsEntry\x12>\n\rentity_filter\x18\x03 \x01(\x0b\x32\'.google.datastore.admin.v1.EntityFilter\x12\x1e\n\x11output_url_prefix\x18\x04 \x01(\tB\x03\xe0\x41\x02\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x85\x02\n\x15ImportEntitiesRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x06labels\x18\x02 \x03(\x0b\x32<.google.datastore.admin.v1.ImportEntitiesRequest.LabelsEntry\x12\x16\n\tinput_url\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12>\n\rentity_filter\x18\x04 \x01(\x0b\x32\'.google.datastore.admin.v1.EntityFilter\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\",\n\x16\x45xportEntitiesResponse\x12\x12\n\noutput_url\x18\x01 \x01(\t\"\xab\x02\n\x16\x45xportEntitiesMetadata\x12\x39\n\x06\x63ommon\x18\x01 \x01(\x0b\x32).google.datastore.admin.v1.CommonMetadata\x12>\n\x11progress_entities\x18\x02 \x01(\x0b\x32#.google.datastore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x03 \x01(\x0b\x32#.google.datastore.admin.v1.Progress\x12>\n\rentity_filter\x18\x04 \x01(\x0b\x32\'.google.datastore.admin.v1.EntityFilter\x12\x19\n\x11output_url_prefix\x18\x05 \x01(\t\"\xa3\x02\n\x16ImportEntitiesMetadata\x12\x39\n\x06\x63ommon\x18\x01 \x01(\x0b\x32).google.datastore.admin.v1.CommonMetadata\x12>\n\x11progress_entities\x18\x02 \x01(\x0b\x32#.google.datastore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x03 \x01(\x0b\x32#.google.datastore.admin.v1.Progress\x12>\n\rentity_filter\x18\x04 \x01(\x0b\x32\'.google.datastore.admin.v1.EntityFilter\x12\x11\n\tinput_url\x18\x05 \x01(\t\"4\n\x0c\x45ntityFilter\x12\r\n\x05kinds\x18\x01 \x03(\t\x12\x15\n\rnamespace_ids\x18\x02 \x03(\t\"Y\n\x12\x43reateIndexRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12/\n\x05index\x18\x03 \x01(\x0b\x32 .google.datastore.admin.v1.Index\":\n\x12\x44\x65leteIndexRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08index_id\x18\x03 \x01(\t\"7\n\x0fGetIndexRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08index_id\x18\x03 \x01(\t\"_\n\x12ListIndexesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListIndexesResponse\x12\x31\n\x07indexes\x18\x01 \x03(\x0b\x32 .google.datastore.admin.v1.Index\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x16IndexOperationMetadata\x12\x39\n\x06\x63ommon\x18\x01 \x01(\x0b\x32).google.datastore.admin.v1.CommonMetadata\x12>\n\x11progress_entities\x18\x02 \x01(\x0b\x32#.google.datastore.admin.v1.Progress\x12\x10\n\x08index_id\x18\x03 \x01(\t\"\xab\x01\n#DatastoreFirestoreMigrationMetadata\x12\x42\n\x0fmigration_state\x18\x01 \x01(\x0e\x32).google.datastore.admin.v1.MigrationState\x12@\n\x0emigration_step\x18\x02 \x01(\x0e\x32(.google.datastore.admin.v1.MigrationStep*}\n\rOperationType\x12\x1e\n\x1aOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x45XPORT_ENTITIES\x10\x01\x12\x13\n\x0fIMPORT_ENTITIES\x10\x02\x12\x10\n\x0c\x43REATE_INDEX\x10\x03\x12\x10\n\x0c\x44\x45LETE_INDEX\x10\x04\x32\x84\n\n\x0e\x44\x61tastoreAdmin\x12\xf6\x01\n\x0e\x45xportEntities\x12\x30.google.datastore.admin.v1.ExportEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:export:\x01*\xda\x41\x31project_id,labels,entity_filter,output_url_prefix\xca\x41\x30\n\x16\x45xportEntitiesResponse\x12\x16\x45xportEntitiesMetadata\x12\xed\x01\n\x0eImportEntities\x12\x30.google.datastore.admin.v1.ImportEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:import:\x01*\xda\x41)project_id,labels,input_url,entity_filter\xca\x41/\n\x15google.protobuf.Empty\x12\x16ImportEntitiesMetadata\x12\xaf\x01\n\x0b\x43reateIndex\x12-.google.datastore.admin.v1.CreateIndexRequest\x1a\x1d.google.longrunning.Operation\"R\x82\xd3\xe4\x93\x02*\"!/v1/projects/{project_id}/indexes:\x05index\xca\x41\x1f\n\x05Index\x12\x16IndexOperationMetadata\x12\xb3\x01\n\x0b\x44\x65leteIndex\x12-.google.datastore.admin.v1.DeleteIndexRequest\x1a\x1d.google.longrunning.Operation\"V\x82\xd3\xe4\x93\x02.*,/v1/projects/{project_id}/indexes/{index_id}\xca\x41\x1f\n\x05Index\x12\x16IndexOperationMetadata\x12\x8e\x01\n\x08GetIndex\x12*.google.datastore.admin.v1.GetIndexRequest\x1a .google.datastore.admin.v1.Index\"4\x82\xd3\xe4\x93\x02.\x12,/v1/projects/{project_id}/indexes/{index_id}\x12\x97\x01\n\x0bListIndexes\x12-.google.datastore.admin.v1.ListIndexesRequest\x1a..google.datastore.admin.v1.ListIndexesResponse\")\x82\xd3\xe4\x93\x02#\x12!/v1/projects/{project_id}/indexes\x1av\xca\x41\x18\x64\x61tastore.googleapis.com\xd2\x41Xhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xdb\x01\n\x1d\x63om.google.datastore.admin.v1B\x13\x44\x61tastoreAdminProtoP\x01Z9cloud.google.com/go/datastore/admin/apiv1/adminpb;adminpb\xaa\x02\x1fGoogle.Cloud.Datastore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Datastore\\Admin\\V1\xea\x02#Google::Cloud::Datastore::Admin::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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.datastore.admin.v1.Index", "google/datastore/admin/v1/index.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 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 diff --git a/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/index_pb.rb b/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/index_pb.rb index 594cc606d48a..aeaafc499b73 100644 --- a/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/index_pb.rb +++ b/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/index_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/datastore/admin/v1/index.proto @@ -5,38 +6,31 @@ require 'google/api/field_behavior_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/datastore/admin/v1/index.proto", :syntax => :proto3) do - add_message "google.datastore.admin.v1.Index" do - optional :project_id, :string, 1 - optional :index_id, :string, 3 - optional :kind, :string, 4 - optional :ancestor, :enum, 5, "google.datastore.admin.v1.Index.AncestorMode" - repeated :properties, :message, 6, "google.datastore.admin.v1.Index.IndexedProperty" - optional :state, :enum, 7, "google.datastore.admin.v1.Index.State" - end - add_message "google.datastore.admin.v1.Index.IndexedProperty" do - optional :name, :string, 1 - optional :direction, :enum, 2, "google.datastore.admin.v1.Index.Direction" - end - add_enum "google.datastore.admin.v1.Index.AncestorMode" do - value :ANCESTOR_MODE_UNSPECIFIED, 0 - value :NONE, 1 - value :ALL_ANCESTORS, 2 - end - add_enum "google.datastore.admin.v1.Index.Direction" do - value :DIRECTION_UNSPECIFIED, 0 - value :ASCENDING, 1 - value :DESCENDING, 2 - end - add_enum "google.datastore.admin.v1.Index.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATING, 1 - value :READY, 2 - value :DELETING, 3 - value :ERROR, 4 + +descriptor_data = "\n%google/datastore/admin/v1/index.proto\x12\x19google.datastore.admin.v1\x1a\x1fgoogle/api/field_behavior.proto\"\xe6\x04\n\x05Index\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08index_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04kind\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x08\x61ncestor\x18\x05 \x01(\x0e\x32-.google.datastore.admin.v1.Index.AncestorModeB\x03\xe0\x41\x02\x12I\n\nproperties\x18\x06 \x03(\x0b\x32\x30.google.datastore.admin.v1.Index.IndexedPropertyB\x03\xe0\x41\x02\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.datastore.admin.v1.Index.StateB\x03\xe0\x41\x03\x1ah\n\x0fIndexedProperty\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\tdirection\x18\x02 \x01(\x0e\x32*.google.datastore.admin.v1.Index.DirectionB\x03\xe0\x41\x02\"J\n\x0c\x41ncestorMode\x12\x1d\n\x19\x41NCESTOR_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x11\n\rALL_ANCESTORS\x10\x02\"E\n\tDirection\x12\x19\n\x15\x44IRECTION_UNSPECIFIED\x10\x00\x12\r\n\tASCENDING\x10\x01\x12\x0e\n\nDESCENDING\x10\x02\"P\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x42\xd2\x01\n\x1d\x63om.google.datastore.admin.v1B\nIndexProtoP\x01Z9cloud.google.com/go/datastore/admin/apiv1/adminpb;adminpb\xaa\x02\x1fGoogle.Cloud.Datastore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Datastore\\Admin\\V1\xea\x02#Google::Cloud::Datastore::Admin::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 = [ + ] + 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 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 diff --git a/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/migration_pb.rb b/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/migration_pb.rb index ee4b4d7ad7b2..91ba7c9ea588 100644 --- a/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/migration_pb.rb +++ b/google-cloud-datastore-admin-v1/lib/google/datastore/admin/v1/migration_pb.rb @@ -1,49 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/datastore/admin/v1/migration.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/datastore/admin/v1/migration.proto", :syntax => :proto3) do - add_message "google.datastore.admin.v1.MigrationStateEvent" do - optional :state, :enum, 1, "google.datastore.admin.v1.MigrationState" - end - add_message "google.datastore.admin.v1.MigrationProgressEvent" do - optional :step, :enum, 1, "google.datastore.admin.v1.MigrationStep" - oneof :step_details do - optional :prepare_step_details, :message, 2, "google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails" - optional :redirect_writes_step_details, :message, 3, "google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails" - end - end - add_message "google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails" do - optional :concurrency_mode, :enum, 1, "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode" - end - add_message "google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails" do - optional :concurrency_mode, :enum, 1, "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode" - end - add_enum "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode" do - value :CONCURRENCY_MODE_UNSPECIFIED, 0 - value :PESSIMISTIC, 1 - value :OPTIMISTIC, 2 - value :OPTIMISTIC_WITH_ENTITY_GROUPS, 3 - end - add_enum "google.datastore.admin.v1.MigrationState" do - value :MIGRATION_STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :PAUSED, 2 - value :COMPLETE, 3 - end - add_enum "google.datastore.admin.v1.MigrationStep" do - value :MIGRATION_STEP_UNSPECIFIED, 0 - value :PREPARE, 6 - value :START, 1 - value :APPLY_WRITES_SYNCHRONOUSLY, 7 - value :COPY_AND_VERIFY, 2 - value :REDIRECT_EVENTUALLY_CONSISTENT_READS, 3 - value :REDIRECT_STRONGLY_CONSISTENT_READS, 4 - value :REDIRECT_WRITES, 5 + +descriptor_data = "\n)google/datastore/admin/v1/migration.proto\x12\x19google.datastore.admin.v1\"O\n\x13MigrationStateEvent\x12\x38\n\x05state\x18\x01 \x01(\x0e\x32).google.datastore.admin.v1.MigrationState\"\xa1\x05\n\x16MigrationProgressEvent\x12\x36\n\x04step\x18\x01 \x01(\x0e\x32(.google.datastore.admin.v1.MigrationStep\x12\x64\n\x14prepare_step_details\x18\x02 \x01(\x0b\x32\x44.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetailsH\x00\x12s\n\x1credirect_writes_step_details\x18\x03 \x01(\x0b\x32K.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetailsH\x00\x1aq\n\x12PrepareStepDetails\x12[\n\x10\x63oncurrency_mode\x18\x01 \x01(\x0e\x32\x41.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode\x1ax\n\x19RedirectWritesStepDetails\x12[\n\x10\x63oncurrency_mode\x18\x01 \x01(\x0e\x32\x41.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode\"w\n\x0f\x43oncurrencyMode\x12 \n\x1c\x43ONCURRENCY_MODE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPESSIMISTIC\x10\x01\x12\x0e\n\nOPTIMISTIC\x10\x02\x12!\n\x1dOPTIMISTIC_WITH_ENTITY_GROUPS\x10\x03\x42\x0e\n\x0cstep_details*X\n\x0eMigrationState\x12\x1f\n\x1bMIGRATION_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03*\xe3\x01\n\rMigrationStep\x12\x1e\n\x1aMIGRATION_STEP_UNSPECIFIED\x10\x00\x12\x0b\n\x07PREPARE\x10\x06\x12\t\n\x05START\x10\x01\x12\x1e\n\x1a\x41PPLY_WRITES_SYNCHRONOUSLY\x10\x07\x12\x13\n\x0f\x43OPY_AND_VERIFY\x10\x02\x12(\n$REDIRECT_EVENTUALLY_CONSISTENT_READS\x10\x03\x12&\n\"REDIRECT_STRONGLY_CONSISTENT_READS\x10\x04\x12\x13\n\x0fREDIRECT_WRITES\x10\x05\x42\xd6\x01\n\x1d\x63om.google.datastore.admin.v1B\x0eMigrationProtoP\x01Z9cloud.google.com/go/datastore/admin/apiv1/adminpb;adminpb\xaa\x02\x1fGoogle.Cloud.Datastore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Datastore\\Admin\\V1\xea\x02#Google::Cloud::Datastore::Admin::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 = [ + ] + 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 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 diff --git a/google-cloud-datastore-admin-v1/proto_docs/google/protobuf/any.rb b/google-cloud-datastore-admin-v1/proto_docs/google/protobuf/any.rb index 8774b7f4a815..68a54aef5a75 100644 --- a/google-cloud-datastore-admin-v1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-datastore-admin-v1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-datastore-admin-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-datastore-admin-v1/proto_docs/google/protobuf/timestamp.rb index 7c4e206ac5fb..4891104f14b9 100644 --- a/google-cloud-datastore-admin-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-datastore-admin-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-datastore-v1/google-cloud-datastore-v1.gemspec b/google-cloud-datastore-v1/google-cloud-datastore-v1.gemspec index 8f985280d47f..d22969c3d04a 100644 --- a/google-cloud-datastore-v1/google-cloud-datastore-v1.gemspec +++ b/google-cloud-datastore-v1/google-cloud-datastore-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-datastore-v1/lib/google/datastore/v1/aggregation_result_pb.rb b/google-cloud-datastore-v1/lib/google/datastore/v1/aggregation_result_pb.rb index f25fe91d1694..df8e3d64eb74 100644 --- a/google-cloud-datastore-v1/lib/google/datastore/v1/aggregation_result_pb.rb +++ b/google-cloud-datastore-v1/lib/google/datastore/v1/aggregation_result_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/datastore/v1/aggregation_result.proto @@ -7,17 +8,33 @@ require 'google/datastore/v1/query_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/datastore/v1/aggregation_result.proto", :syntax => :proto3) do - add_message "google.datastore.v1.AggregationResult" do - map :aggregate_properties, :string, :message, 2, "google.datastore.v1.Value" - end - add_message "google.datastore.v1.AggregationResultBatch" do - repeated :aggregation_results, :message, 1, "google.datastore.v1.AggregationResult" - optional :more_results, :enum, 2, "google.datastore.v1.QueryResultBatch.MoreResultsType" - optional :read_time, :message, 3, "google.protobuf.Timestamp" + +descriptor_data = "\n,google/datastore/v1/aggregation_result.proto\x12\x13google.datastore.v1\x1a google/datastore/v1/entity.proto\x1a\x1fgoogle/datastore/v1/query.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xca\x01\n\x11\x41ggregationResult\x12]\n\x14\x61ggregate_properties\x18\x02 \x03(\x0b\x32?.google.datastore.v1.AggregationResult.AggregatePropertiesEntry\x1aV\n\x18\x41ggregatePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.Value:\x02\x38\x01\"\xd9\x01\n\x16\x41ggregationResultBatch\x12\x43\n\x13\x61ggregation_results\x18\x01 \x03(\x0b\x32&.google.datastore.v1.AggregationResult\x12K\n\x0cmore_results\x18\x02 \x01(\x0e\x32\x35.google.datastore.v1.QueryResultBatch.MoreResultsType\x12-\n\tread_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\xc8\x01\n\x17\x63om.google.datastore.v1B\x16\x41ggregationResultProtoP\x01Z 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.datastore.v1.Value", "google/datastore/v1/entity.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-datastore-v1/lib/google/datastore/v1/datastore_pb.rb b/google-cloud-datastore-v1/lib/google/datastore/v1/datastore_pb.rb index 4733de740857..aec3c47c62bf 100644 --- a/google-cloud-datastore-v1/lib/google/datastore/v1/datastore_pb.rb +++ b/google-cloud-datastore-v1/lib/google/datastore/v1/datastore_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/datastore/v1/datastore.proto @@ -12,146 +13,35 @@ require 'google/datastore/v1/query_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/datastore/v1/datastore.proto", :syntax => :proto3) do - add_message "google.datastore.v1.LookupRequest" do - optional :project_id, :string, 8 - optional :database_id, :string, 9 - optional :read_options, :message, 1, "google.datastore.v1.ReadOptions" - repeated :keys, :message, 3, "google.datastore.v1.Key" - end - add_message "google.datastore.v1.LookupResponse" do - repeated :found, :message, 1, "google.datastore.v1.EntityResult" - repeated :missing, :message, 2, "google.datastore.v1.EntityResult" - repeated :deferred, :message, 3, "google.datastore.v1.Key" - optional :transaction, :bytes, 5 - optional :read_time, :message, 7, "google.protobuf.Timestamp" - end - add_message "google.datastore.v1.RunQueryRequest" do - optional :project_id, :string, 8 - optional :database_id, :string, 9 - optional :partition_id, :message, 2, "google.datastore.v1.PartitionId" - optional :read_options, :message, 1, "google.datastore.v1.ReadOptions" - oneof :query_type do - optional :query, :message, 3, "google.datastore.v1.Query" - optional :gql_query, :message, 7, "google.datastore.v1.GqlQuery" - end - end - add_message "google.datastore.v1.RunQueryResponse" do - optional :batch, :message, 1, "google.datastore.v1.QueryResultBatch" - optional :query, :message, 2, "google.datastore.v1.Query" - optional :transaction, :bytes, 5 - end - add_message "google.datastore.v1.RunAggregationQueryRequest" do - optional :project_id, :string, 8 - optional :database_id, :string, 9 - optional :partition_id, :message, 2, "google.datastore.v1.PartitionId" - optional :read_options, :message, 1, "google.datastore.v1.ReadOptions" - oneof :query_type do - optional :aggregation_query, :message, 3, "google.datastore.v1.AggregationQuery" - optional :gql_query, :message, 7, "google.datastore.v1.GqlQuery" - end - end - add_message "google.datastore.v1.RunAggregationQueryResponse" do - optional :batch, :message, 1, "google.datastore.v1.AggregationResultBatch" - optional :query, :message, 2, "google.datastore.v1.AggregationQuery" - optional :transaction, :bytes, 5 - end - add_message "google.datastore.v1.BeginTransactionRequest" do - optional :project_id, :string, 8 - optional :database_id, :string, 9 - optional :transaction_options, :message, 10, "google.datastore.v1.TransactionOptions" - end - add_message "google.datastore.v1.BeginTransactionResponse" do - optional :transaction, :bytes, 1 - end - add_message "google.datastore.v1.RollbackRequest" do - optional :project_id, :string, 8 - optional :database_id, :string, 9 - optional :transaction, :bytes, 1 - end - add_message "google.datastore.v1.RollbackResponse" do - end - add_message "google.datastore.v1.CommitRequest" do - optional :project_id, :string, 8 - optional :database_id, :string, 9 - optional :mode, :enum, 5, "google.datastore.v1.CommitRequest.Mode" - repeated :mutations, :message, 6, "google.datastore.v1.Mutation" - oneof :transaction_selector do - optional :transaction, :bytes, 1 - optional :single_use_transaction, :message, 10, "google.datastore.v1.TransactionOptions" - end - end - add_enum "google.datastore.v1.CommitRequest.Mode" do - value :MODE_UNSPECIFIED, 0 - value :TRANSACTIONAL, 1 - value :NON_TRANSACTIONAL, 2 - end - add_message "google.datastore.v1.CommitResponse" do - repeated :mutation_results, :message, 3, "google.datastore.v1.MutationResult" - optional :index_updates, :int32, 4 - optional :commit_time, :message, 8, "google.protobuf.Timestamp" - end - add_message "google.datastore.v1.AllocateIdsRequest" do - optional :project_id, :string, 8 - optional :database_id, :string, 9 - repeated :keys, :message, 1, "google.datastore.v1.Key" - end - add_message "google.datastore.v1.AllocateIdsResponse" do - repeated :keys, :message, 1, "google.datastore.v1.Key" - end - add_message "google.datastore.v1.ReserveIdsRequest" do - optional :project_id, :string, 8 - optional :database_id, :string, 9 - repeated :keys, :message, 1, "google.datastore.v1.Key" - end - add_message "google.datastore.v1.ReserveIdsResponse" do - end - add_message "google.datastore.v1.Mutation" do - oneof :operation do - optional :insert, :message, 4, "google.datastore.v1.Entity" - optional :update, :message, 5, "google.datastore.v1.Entity" - optional :upsert, :message, 6, "google.datastore.v1.Entity" - optional :delete, :message, 7, "google.datastore.v1.Key" - end - oneof :conflict_detection_strategy do - optional :base_version, :int64, 8 - optional :update_time, :message, 11, "google.protobuf.Timestamp" - end - end - add_message "google.datastore.v1.MutationResult" do - optional :key, :message, 3, "google.datastore.v1.Key" - optional :version, :int64, 4 - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :update_time, :message, 6, "google.protobuf.Timestamp" - optional :conflict_detected, :bool, 5 - end - add_message "google.datastore.v1.ReadOptions" do - oneof :consistency_type do - optional :read_consistency, :enum, 1, "google.datastore.v1.ReadOptions.ReadConsistency" - optional :transaction, :bytes, 2 - optional :new_transaction, :message, 3, "google.datastore.v1.TransactionOptions" - optional :read_time, :message, 4, "google.protobuf.Timestamp" - end - end - add_enum "google.datastore.v1.ReadOptions.ReadConsistency" do - value :READ_CONSISTENCY_UNSPECIFIED, 0 - value :STRONG, 1 - value :EVENTUAL, 2 - end - add_message "google.datastore.v1.TransactionOptions" do - oneof :mode do - optional :read_write, :message, 1, "google.datastore.v1.TransactionOptions.ReadWrite" - optional :read_only, :message, 2, "google.datastore.v1.TransactionOptions.ReadOnly" - end - end - add_message "google.datastore.v1.TransactionOptions.ReadWrite" do - optional :previous_transaction, :bytes, 1 - end - add_message "google.datastore.v1.TransactionOptions.ReadOnly" do - optional :read_time, :message, 1, "google.protobuf.Timestamp" + +descriptor_data = "\n#google/datastore/v1/datastore.proto\x12\x13google.datastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x18google/api/routing.proto\x1a,google/datastore/v1/aggregation_result.proto\x1a google/datastore/v1/entity.proto\x1a\x1fgoogle/datastore/v1/query.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa2\x01\n\rLookupRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x04keys\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\"\xe6\x01\n\x0eLookupResponse\x12\x30\n\x05\x66ound\x18\x01 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x32\n\x07missing\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12*\n\x08\x64\x65\x66\x65rred\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.Key\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\x12-\n\tread_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9e\x02\n\x0fRunQueryRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cpartition_id\x18\x02 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x05query\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.QueryH\x00\x12\x32\n\tgql_query\x18\x07 \x01(\x0b\x32\x1d.google.datastore.v1.GqlQueryH\x00\x42\x0c\n\nquery_type\"\x88\x01\n\x10RunQueryResponse\x12\x34\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32%.google.datastore.v1.QueryResultBatch\x12)\n\x05query\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.Query\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\"\xc0\x02\n\x1aRunAggregationQueryRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cpartition_id\x18\x02 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12\x42\n\x11\x61ggregation_query\x18\x03 \x01(\x0b\x32%.google.datastore.v1.AggregationQueryH\x00\x12\x32\n\tgql_query\x18\x07 \x01(\x0b\x32\x1d.google.datastore.v1.GqlQueryH\x00\x42\x0c\n\nquery_type\"\xa4\x01\n\x1bRunAggregationQueryResponse\x12:\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32+.google.datastore.v1.AggregationResultBatch\x12\x34\n\x05query\x18\x02 \x01(\x0b\x32%.google.datastore.v1.AggregationQuery\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\"\x8d\x01\n\x17\x42\x65ginTransactionRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x44\n\x13transaction_options\x18\n \x01(\x0b\x32\'.google.datastore.v1.TransactionOptions\"/\n\x18\x42\x65ginTransactionResponse\x12\x13\n\x0btransaction\x18\x01 \x01(\x0c\"Y\n\x0fRollbackRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x18\n\x0btransaction\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\"\x12\n\x10RollbackResponse\"\xe8\x02\n\rCommitRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x35\n\x04mode\x18\x05 \x01(\x0e\x32\'.google.datastore.v1.CommitRequest.Mode\x12\x15\n\x0btransaction\x18\x01 \x01(\x0cH\x00\x12I\n\x16single_use_transaction\x18\n \x01(\x0b\x32\'.google.datastore.v1.TransactionOptionsH\x00\x12\x30\n\tmutations\x18\x06 \x03(\x0b\x32\x1d.google.datastore.v1.Mutation\"F\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x11\n\rTRANSACTIONAL\x10\x01\x12\x15\n\x11NON_TRANSACTIONAL\x10\x02\x42\x16\n\x14transaction_selector\"\x97\x01\n\x0e\x43ommitResponse\x12=\n\x10mutation_results\x18\x03 \x03(\x0b\x32#.google.datastore.v1.MutationResult\x12\x15\n\rindex_updates\x18\x04 \x01(\x05\x12/\n\x0b\x63ommit_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"o\n\x12\x41llocateIdsRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12+\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\"=\n\x13\x41llocateIdsResponse\x12&\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.Key\"n\n\x11ReserveIdsRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12+\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\"\x14\n\x12ReserveIdsResponse\"\xba\x02\n\x08Mutation\x12-\n\x06insert\x18\x04 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06update\x18\x05 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06upsert\x18\x06 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12*\n\x06\x64\x65lete\x18\x07 \x01(\x0b\x32\x18.google.datastore.v1.KeyH\x00\x12\x16\n\x0c\x62\x61se_version\x18\x08 \x01(\x03H\x01\x12\x31\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x42\x0b\n\toperationB\x1d\n\x1b\x63onflict_detection_strategy\"\xc5\x01\n\x0eMutationResult\x12%\n\x03key\x18\x03 \x01(\x0b\x32\x18.google.datastore.v1.Key\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x63onflict_detected\x18\x05 \x01(\x08\"\xca\x02\n\x0bReadOptions\x12L\n\x10read_consistency\x18\x01 \x01(\x0e\x32\x30.google.datastore.v1.ReadOptions.ReadConsistencyH\x00\x12\x15\n\x0btransaction\x18\x02 \x01(\x0cH\x00\x12\x42\n\x0fnew_transaction\x18\x03 \x01(\x0b\x32\'.google.datastore.v1.TransactionOptionsH\x00\x12/\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\"M\n\x0fReadConsistency\x12 \n\x1cREAD_CONSISTENCY_UNSPECIFIED\x10\x00\x12\n\n\x06STRONG\x10\x01\x12\x0c\n\x08\x45VENTUAL\x10\x02\x42\x12\n\x10\x63onsistency_type\"\x92\x02\n\x12TransactionOptions\x12G\n\nread_write\x18\x01 \x01(\x0b\x32\x31.google.datastore.v1.TransactionOptions.ReadWriteH\x00\x12\x45\n\tread_only\x18\x02 \x01(\x0b\x32\x30.google.datastore.v1.TransactionOptions.ReadOnlyH\x00\x1a)\n\tReadWrite\x12\x1c\n\x14previous_transaction\x18\x01 \x01(\x0c\x1a\x39\n\x08ReadOnly\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\n\x04mode2\xe1\r\n\tDatastore\x12\xc0\x01\n\x06Lookup\x12\".google.datastore.v1.LookupRequest\x1a#.google.datastore.v1.LookupResponse\"m\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:lookup:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\xda\x41\x1cproject_id,read_options,keys\x12\xa9\x01\n\x08RunQuery\x12$.google.datastore.v1.RunQueryRequest\x1a%.google.datastore.v1.RunQueryResponse\"P\x82\xd3\xe4\x93\x02\'\"\"/v1/projects/{project_id}:runQuery:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xd5\x01\n\x13RunAggregationQuery\x12/.google.datastore.v1.RunAggregationQueryRequest\x1a\x30.google.datastore.v1.RunAggregationQueryResponse\"[\x82\xd3\xe4\x93\x02\x32\"-/v1/projects/{project_id}:runAggregationQuery:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xd6\x01\n\x10\x42\x65ginTransaction\x12,.google.datastore.v1.BeginTransactionRequest\x1a-.google.datastore.v1.BeginTransactionResponse\"e\x82\xd3\xe4\x93\x02/\"*/v1/projects/{project_id}:beginTransaction:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\xda\x41\nproject_id\x12\xe6\x01\n\x06\x43ommit\x12\".google.datastore.v1.CommitRequest\x1a#.google.datastore.v1.CommitResponse\"\x92\x01\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:commit:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\xda\x41%project_id,mode,transaction,mutations\xda\x41\x19project_id,mode,mutations\x12\xc2\x01\n\x08Rollback\x12$.google.datastore.v1.RollbackRequest\x1a%.google.datastore.v1.RollbackResponse\"i\x82\xd3\xe4\x93\x02\'\"\"/v1/projects/{project_id}:rollback:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\xda\x41\x16project_id,transaction\x12\xc7\x01\n\x0b\x41llocateIds\x12\'.google.datastore.v1.AllocateIdsRequest\x1a(.google.datastore.v1.AllocateIdsResponse\"e\x82\xd3\xe4\x93\x02*\"%/v1/projects/{project_id}:allocateIds:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\xda\x41\x0fproject_id,keys\x12\xc3\x01\n\nReserveIds\x12&.google.datastore.v1.ReserveIdsRequest\x1a\'.google.datastore.v1.ReserveIdsResponse\"d\x82\xd3\xe4\x93\x02)\"$/v1/projects/{project_id}:reserveIds:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\xda\x41\x0fproject_id,keys\x1av\xca\x41\x18\x64\x61tastore.googleapis.com\xd2\x41Xhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xc0\x01\n\x17\x63om.google.datastore.v1B\x0e\x44\x61tastoreProtoP\x01Z 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.datastore.v1.Key", "google/datastore/v1/entity.proto"], + ["google.datastore.v1.EntityResult", "google/datastore/v1/query.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.datastore.v1.AggregationResultBatch", "google/datastore/v1/aggregation_result.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 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 diff --git a/google-cloud-datastore-v1/lib/google/datastore/v1/entity_pb.rb b/google-cloud-datastore-v1/lib/google/datastore/v1/entity_pb.rb index 9cd0404d1d65..29293dcdc024 100644 --- a/google-cloud-datastore-v1/lib/google/datastore/v1/entity_pb.rb +++ b/google-cloud-datastore-v1/lib/google/datastore/v1/entity_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/datastore/v1/entity.proto @@ -7,49 +8,33 @@ require 'google/protobuf/timestamp_pb' require 'google/type/latlng_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/datastore/v1/entity.proto", :syntax => :proto3) do - add_message "google.datastore.v1.PartitionId" do - optional :project_id, :string, 2 - optional :database_id, :string, 3 - optional :namespace_id, :string, 4 - end - add_message "google.datastore.v1.Key" do - optional :partition_id, :message, 1, "google.datastore.v1.PartitionId" - repeated :path, :message, 2, "google.datastore.v1.Key.PathElement" - end - add_message "google.datastore.v1.Key.PathElement" do - optional :kind, :string, 1 - oneof :id_type do - optional :id, :int64, 2 - optional :name, :string, 3 - end - end - add_message "google.datastore.v1.ArrayValue" do - repeated :values, :message, 1, "google.datastore.v1.Value" - end - add_message "google.datastore.v1.Value" do - optional :meaning, :int32, 14 - optional :exclude_from_indexes, :bool, 19 - oneof :value_type do - optional :null_value, :enum, 11, "google.protobuf.NullValue" - optional :boolean_value, :bool, 1 - optional :integer_value, :int64, 2 - optional :double_value, :double, 3 - optional :timestamp_value, :message, 10, "google.protobuf.Timestamp" - optional :key_value, :message, 5, "google.datastore.v1.Key" - optional :string_value, :string, 17 - optional :blob_value, :bytes, 18 - optional :geo_point_value, :message, 8, "google.type.LatLng" - optional :entity_value, :message, 6, "google.datastore.v1.Entity" - optional :array_value, :message, 9, "google.datastore.v1.ArrayValue" - end - end - add_message "google.datastore.v1.Entity" do - optional :key, :message, 1, "google.datastore.v1.Key" - map :properties, :string, :message, 3, "google.datastore.v1.Value" + +descriptor_data = "\n google/datastore/v1/entity.proto\x12\x13google.datastore.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18google/type/latlng.proto\"L\n\x0bPartitionId\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\"\xb7\x01\n\x03Key\x12\x36\n\x0cpartition_id\x18\x01 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x32\n\x04path\x18\x02 \x03(\x0b\x32$.google.datastore.v1.Key.PathElement\x1a\x44\n\x0bPathElement\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x02id\x18\x02 \x01(\x03H\x00\x12\x0e\n\x04name\x18\x03 \x01(\tH\x00\x42\t\n\x07id_type\"8\n\nArrayValue\x12*\n\x06values\x18\x01 \x03(\x0b\x32\x1a.google.datastore.v1.Value\"\xf1\x03\n\x05Value\x12\x30\n\nnull_value\x18\x0b \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x17\n\rboolean_value\x18\x01 \x01(\x08H\x00\x12\x17\n\rinteger_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x35\n\x0ftimestamp_value\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12-\n\tkey_value\x18\x05 \x01(\x0b\x32\x18.google.datastore.v1.KeyH\x00\x12\x16\n\x0cstring_value\x18\x11 \x01(\tH\x00\x12\x14\n\nblob_value\x18\x12 \x01(\x0cH\x00\x12.\n\x0fgeo_point_value\x18\x08 \x01(\x0b\x32\x13.google.type.LatLngH\x00\x12\x33\n\x0c\x65ntity_value\x18\x06 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12\x36\n\x0b\x61rray_value\x18\t \x01(\x0b\x32\x1f.google.datastore.v1.ArrayValueH\x00\x12\x0f\n\x07meaning\x18\x0e \x01(\x05\x12\x1c\n\x14\x65xclude_from_indexes\x18\x13 \x01(\x08\x42\x0c\n\nvalue_type\"\xbf\x01\n\x06\x45ntity\x12%\n\x03key\x18\x01 \x01(\x0b\x32\x18.google.datastore.v1.Key\x12?\n\nproperties\x18\x03 \x03(\x0b\x32+.google.datastore.v1.Entity.PropertiesEntry\x1aM\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.Value:\x02\x38\x01\x42\xbd\x01\n\x17\x63om.google.datastore.v1B\x0b\x45ntityProtoP\x01Z 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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.type.LatLng", "google/type/latlng.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 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 diff --git a/google-cloud-datastore-v1/lib/google/datastore/v1/query_pb.rb b/google-cloud-datastore-v1/lib/google/datastore/v1/query_pb.rb index f37c89800fda..17cea70a1a19 100644 --- a/google-cloud-datastore-v1/lib/google/datastore/v1/query_pb.rb +++ b/google-cloud-datastore-v1/lib/google/datastore/v1/query_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/datastore/v1/query.proto @@ -8,127 +9,34 @@ require 'google/protobuf/timestamp_pb' require 'google/protobuf/wrappers_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/datastore/v1/query.proto", :syntax => :proto3) do - add_message "google.datastore.v1.EntityResult" do - optional :entity, :message, 1, "google.datastore.v1.Entity" - optional :version, :int64, 4 - optional :create_time, :message, 6, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - optional :cursor, :bytes, 3 - end - add_enum "google.datastore.v1.EntityResult.ResultType" do - value :RESULT_TYPE_UNSPECIFIED, 0 - value :FULL, 1 - value :PROJECTION, 2 - value :KEY_ONLY, 3 - end - add_message "google.datastore.v1.Query" do - repeated :projection, :message, 2, "google.datastore.v1.Projection" - repeated :kind, :message, 3, "google.datastore.v1.KindExpression" - optional :filter, :message, 4, "google.datastore.v1.Filter" - repeated :order, :message, 5, "google.datastore.v1.PropertyOrder" - repeated :distinct_on, :message, 6, "google.datastore.v1.PropertyReference" - optional :start_cursor, :bytes, 7 - optional :end_cursor, :bytes, 8 - optional :offset, :int32, 10 - optional :limit, :message, 12, "google.protobuf.Int32Value" - end - add_message "google.datastore.v1.AggregationQuery" do - repeated :aggregations, :message, 3, "google.datastore.v1.AggregationQuery.Aggregation" - oneof :query_type do - optional :nested_query, :message, 1, "google.datastore.v1.Query" - end - end - add_message "google.datastore.v1.AggregationQuery.Aggregation" do - optional :alias, :string, 7 - oneof :operator do - optional :count, :message, 1, "google.datastore.v1.AggregationQuery.Aggregation.Count" - end - end - add_message "google.datastore.v1.AggregationQuery.Aggregation.Count" do - optional :up_to, :message, 1, "google.protobuf.Int64Value" - end - add_message "google.datastore.v1.KindExpression" do - optional :name, :string, 1 - end - add_message "google.datastore.v1.PropertyReference" do - optional :name, :string, 2 - end - add_message "google.datastore.v1.Projection" do - optional :property, :message, 1, "google.datastore.v1.PropertyReference" - end - add_message "google.datastore.v1.PropertyOrder" do - optional :property, :message, 1, "google.datastore.v1.PropertyReference" - optional :direction, :enum, 2, "google.datastore.v1.PropertyOrder.Direction" - end - add_enum "google.datastore.v1.PropertyOrder.Direction" do - value :DIRECTION_UNSPECIFIED, 0 - value :ASCENDING, 1 - value :DESCENDING, 2 - end - add_message "google.datastore.v1.Filter" do - oneof :filter_type do - optional :composite_filter, :message, 1, "google.datastore.v1.CompositeFilter" - optional :property_filter, :message, 2, "google.datastore.v1.PropertyFilter" - end - end - add_message "google.datastore.v1.CompositeFilter" do - optional :op, :enum, 1, "google.datastore.v1.CompositeFilter.Operator" - repeated :filters, :message, 2, "google.datastore.v1.Filter" - end - add_enum "google.datastore.v1.CompositeFilter.Operator" do - value :OPERATOR_UNSPECIFIED, 0 - value :AND, 1 - value :OR, 2 - end - add_message "google.datastore.v1.PropertyFilter" do - optional :property, :message, 1, "google.datastore.v1.PropertyReference" - optional :op, :enum, 2, "google.datastore.v1.PropertyFilter.Operator" - optional :value, :message, 3, "google.datastore.v1.Value" - end - add_enum "google.datastore.v1.PropertyFilter.Operator" do - value :OPERATOR_UNSPECIFIED, 0 - value :LESS_THAN, 1 - value :LESS_THAN_OR_EQUAL, 2 - value :GREATER_THAN, 3 - value :GREATER_THAN_OR_EQUAL, 4 - value :EQUAL, 5 - value :IN, 6 - value :NOT_EQUAL, 9 - value :HAS_ANCESTOR, 11 - value :NOT_IN, 13 - end - add_message "google.datastore.v1.GqlQuery" do - optional :query_string, :string, 1 - optional :allow_literals, :bool, 2 - map :named_bindings, :string, :message, 5, "google.datastore.v1.GqlQueryParameter" - repeated :positional_bindings, :message, 4, "google.datastore.v1.GqlQueryParameter" - end - add_message "google.datastore.v1.GqlQueryParameter" do - oneof :parameter_type do - optional :value, :message, 2, "google.datastore.v1.Value" - optional :cursor, :bytes, 3 - end - end - add_message "google.datastore.v1.QueryResultBatch" do - optional :skipped_results, :int32, 6 - optional :skipped_cursor, :bytes, 3 - optional :entity_result_type, :enum, 1, "google.datastore.v1.EntityResult.ResultType" - repeated :entity_results, :message, 2, "google.datastore.v1.EntityResult" - optional :end_cursor, :bytes, 4 - optional :more_results, :enum, 5, "google.datastore.v1.QueryResultBatch.MoreResultsType" - optional :snapshot_version, :int64, 7 - optional :read_time, :message, 8, "google.protobuf.Timestamp" - end - add_enum "google.datastore.v1.QueryResultBatch.MoreResultsType" do - value :MORE_RESULTS_TYPE_UNSPECIFIED, 0 - value :NOT_FINISHED, 1 - value :MORE_RESULTS_AFTER_LIMIT, 2 - value :MORE_RESULTS_AFTER_CURSOR, 4 - value :NO_MORE_RESULTS, 3 + +descriptor_data = "\n\x1fgoogle/datastore/v1/query.proto\x12\x13google.datastore.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a google/datastore/v1/entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x91\x02\n\x0c\x45ntityResult\x12+\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x1b.google.datastore.v1.Entity\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x63ursor\x18\x03 \x01(\x0c\"Q\n\nResultType\x12\x1b\n\x17RESULT_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\x0e\n\nPROJECTION\x10\x02\x12\x0c\n\x08KEY_ONLY\x10\x03\"\xf2\x02\n\x05Query\x12\x33\n\nprojection\x18\x02 \x03(\x0b\x32\x1f.google.datastore.v1.Projection\x12\x31\n\x04kind\x18\x03 \x03(\x0b\x32#.google.datastore.v1.KindExpression\x12+\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x1b.google.datastore.v1.Filter\x12\x31\n\x05order\x18\x05 \x03(\x0b\x32\".google.datastore.v1.PropertyOrder\x12;\n\x0b\x64istinct_on\x18\x06 \x03(\x0b\x32&.google.datastore.v1.PropertyReference\x12\x14\n\x0cstart_cursor\x18\x07 \x01(\x0c\x12\x12\n\nend_cursor\x18\x08 \x01(\x0c\x12\x0e\n\x06offset\x18\n \x01(\x05\x12*\n\x05limit\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\xd6\x02\n\x10\x41ggregationQuery\x12\x32\n\x0cnested_query\x18\x01 \x01(\x0b\x32\x1a.google.datastore.v1.QueryH\x00\x12L\n\x0c\x61ggregations\x18\x03 \x03(\x0b\x32\x31.google.datastore.v1.AggregationQuery.AggregationB\x03\xe0\x41\x01\x1a\xb1\x01\n\x0b\x41ggregation\x12H\n\x05\x63ount\x18\x01 \x01(\x0b\x32\x37.google.datastore.v1.AggregationQuery.Aggregation.CountH\x00\x12\x12\n\x05\x61lias\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a\x38\n\x05\x43ount\x12/\n\x05up_to\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x01\x42\n\n\x08operatorB\x0c\n\nquery_type\"\x1e\n\x0eKindExpression\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x11PropertyReference\x12\x0c\n\x04name\x18\x02 \x01(\t\"F\n\nProjection\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\"\xd1\x01\n\rPropertyOrder\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\x12?\n\tdirection\x18\x02 \x01(\x0e\x32,.google.datastore.v1.PropertyOrder.Direction\"E\n\tDirection\x12\x19\n\x15\x44IRECTION_UNSPECIFIED\x10\x00\x12\r\n\tASCENDING\x10\x01\x12\x0e\n\nDESCENDING\x10\x02\"\x99\x01\n\x06\x46ilter\x12@\n\x10\x63omposite_filter\x18\x01 \x01(\x0b\x32$.google.datastore.v1.CompositeFilterH\x00\x12>\n\x0fproperty_filter\x18\x02 \x01(\x0b\x32#.google.datastore.v1.PropertyFilterH\x00\x42\r\n\x0b\x66ilter_type\"\xb1\x01\n\x0f\x43ompositeFilter\x12\x39\n\x02op\x18\x01 \x01(\x0e\x32-.google.datastore.v1.CompositeFilter.Operator\x12,\n\x07\x66ilters\x18\x02 \x03(\x0b\x32\x1b.google.datastore.v1.Filter\"5\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\"\xea\x02\n\x0ePropertyFilter\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\x12\x38\n\x02op\x18\x02 \x01(\x0e\x32,.google.datastore.v1.PropertyFilter.Operator\x12)\n\x05value\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.Value\"\xb8\x01\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\r\n\tLESS_THAN\x10\x01\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x04\x12\t\n\x05\x45QUAL\x10\x05\x12\x06\n\x02IN\x10\x06\x12\r\n\tNOT_EQUAL\x10\t\x12\x10\n\x0cHAS_ANCESTOR\x10\x0b\x12\n\n\x06NOT_IN\x10\r\"\xa5\x02\n\x08GqlQuery\x12\x14\n\x0cquery_string\x18\x01 \x01(\t\x12\x16\n\x0e\x61llow_literals\x18\x02 \x01(\x08\x12H\n\x0enamed_bindings\x18\x05 \x03(\x0b\x32\x30.google.datastore.v1.GqlQuery.NamedBindingsEntry\x12\x43\n\x13positional_bindings\x18\x04 \x03(\x0b\x32&.google.datastore.v1.GqlQueryParameter\x1a\\\n\x12NamedBindingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.datastore.v1.GqlQueryParameter:\x02\x38\x01\"d\n\x11GqlQueryParameter\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.ValueH\x00\x12\x10\n\x06\x63ursor\x18\x03 \x01(\x0cH\x00\x42\x10\n\x0eparameter_type\"\x8d\x04\n\x10QueryResultBatch\x12\x17\n\x0fskipped_results\x18\x06 \x01(\x05\x12\x16\n\x0eskipped_cursor\x18\x03 \x01(\x0c\x12H\n\x12\x65ntity_result_type\x18\x01 \x01(\x0e\x32,.google.datastore.v1.EntityResult.ResultType\x12\x39\n\x0e\x65ntity_results\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x12\n\nend_cursor\x18\x04 \x01(\x0c\x12K\n\x0cmore_results\x18\x05 \x01(\x0e\x32\x35.google.datastore.v1.QueryResultBatch.MoreResultsType\x12\x18\n\x10snapshot_version\x18\x07 \x01(\x03\x12-\n\tread_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x98\x01\n\x0fMoreResultsType\x12!\n\x1dMORE_RESULTS_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_FINISHED\x10\x01\x12\x1c\n\x18MORE_RESULTS_AFTER_LIMIT\x10\x02\x12\x1d\n\x19MORE_RESULTS_AFTER_CURSOR\x10\x04\x12\x13\n\x0fNO_MORE_RESULTS\x10\x03\x42\xbc\x01\n\x17\x63om.google.datastore.v1B\nQueryProtoP\x01Z 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.datastore.v1.Entity", "google/datastore/v1/entity.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Int32Value", "google/protobuf/wrappers.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 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 diff --git a/google-cloud-datastore-v1/proto_docs/google/protobuf/struct.rb b/google-cloud-datastore-v1/proto_docs/google/protobuf/struct.rb index e6e877e712fb..25e2ea17d987 100644 --- a/google-cloud-datastore-v1/proto_docs/google/protobuf/struct.rb +++ b/google-cloud-datastore-v1/proto_docs/google/protobuf/struct.rb @@ -87,7 +87,7 @@ class ListValue # `NullValue` is a singleton enumeration to represent the null value for the # `Value` type union. # - # The JSON representation for `NullValue` is JSON `null`. + # The JSON representation for `NullValue` is JSON `null`. module NullValue # Null value. NULL_VALUE = 0 diff --git a/google-cloud-datastore-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-datastore-v1/proto_docs/google/protobuf/timestamp.rb index 7c4e206ac5fb..4891104f14b9 100644 --- a/google-cloud-datastore-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-datastore-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-datastream-v1/google-cloud-datastream-v1.gemspec b/google-cloud-datastream-v1/google-cloud-datastream-v1.gemspec index e310cbd54bc9..97cba9ff4bb7 100644 --- a/google-cloud-datastream-v1/google-cloud-datastream-v1.gemspec +++ b/google-cloud-datastream-v1/google-cloud-datastream-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-cloud-location", ">= 0.4", "< 2.a" gem.add_dependency "google-iam-v1", ">= 0.4", "< 2.a" diff --git a/google-cloud-datastream-v1/lib/google/cloud/datastream/v1/datastream_pb.rb b/google-cloud-datastream-v1/lib/google/cloud/datastream/v1/datastream_pb.rb index 8226192a792a..97c34456ac08 100644 --- a/google-cloud-datastream-v1/lib/google/cloud/datastream/v1/datastream_pb.rb +++ b/google-cloud-datastream-v1/lib/google/cloud/datastream/v1/datastream_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datastream/v1/datastream.proto @@ -13,199 +14,34 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/datastream/v1/datastream.proto", :syntax => :proto3) do - add_message "google.cloud.datastream.v1.DiscoverConnectionProfileRequest" do - optional :parent, :string, 1 - oneof :target do - optional :connection_profile, :message, 200, "google.cloud.datastream.v1.ConnectionProfile" - optional :connection_profile_name, :string, 201 - end - oneof :hierarchy do - optional :full_hierarchy, :bool, 3 - optional :hierarchy_depth, :int32, 4 - end - oneof :data_object do - optional :oracle_rdbms, :message, 100, "google.cloud.datastream.v1.OracleRdbms" - optional :mysql_rdbms, :message, 101, "google.cloud.datastream.v1.MysqlRdbms" - optional :postgresql_rdbms, :message, 102, "google.cloud.datastream.v1.PostgresqlRdbms" - end - end - add_message "google.cloud.datastream.v1.DiscoverConnectionProfileResponse" do - oneof :data_object do - optional :oracle_rdbms, :message, 100, "google.cloud.datastream.v1.OracleRdbms" - optional :mysql_rdbms, :message, 101, "google.cloud.datastream.v1.MysqlRdbms" - optional :postgresql_rdbms, :message, 102, "google.cloud.datastream.v1.PostgresqlRdbms" - end - end - add_message "google.cloud.datastream.v1.FetchStaticIpsRequest" do - optional :name, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.datastream.v1.FetchStaticIpsResponse" do - repeated :static_ips, :string, 1 - optional :next_page_token, :string, 2 - end - add_message "google.cloud.datastream.v1.ListConnectionProfilesRequest" 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.datastream.v1.ListConnectionProfilesResponse" do - repeated :connection_profiles, :message, 1, "google.cloud.datastream.v1.ConnectionProfile" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.datastream.v1.GetConnectionProfileRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.datastream.v1.CreateConnectionProfileRequest" do - optional :parent, :string, 1 - optional :connection_profile_id, :string, 2 - optional :connection_profile, :message, 3, "google.cloud.datastream.v1.ConnectionProfile" - optional :request_id, :string, 4 - optional :validate_only, :bool, 5 - optional :force, :bool, 6 - end - add_message "google.cloud.datastream.v1.UpdateConnectionProfileRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :connection_profile, :message, 2, "google.cloud.datastream.v1.ConnectionProfile" - optional :request_id, :string, 3 - optional :validate_only, :bool, 4 - optional :force, :bool, 5 - end - add_message "google.cloud.datastream.v1.DeleteConnectionProfileRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - end - add_message "google.cloud.datastream.v1.ListStreamsRequest" 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.datastream.v1.ListStreamsResponse" do - repeated :streams, :message, 1, "google.cloud.datastream.v1.Stream" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.datastream.v1.GetStreamRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.datastream.v1.CreateStreamRequest" do - optional :parent, :string, 1 - optional :stream_id, :string, 2 - optional :stream, :message, 3, "google.cloud.datastream.v1.Stream" - optional :request_id, :string, 4 - optional :validate_only, :bool, 5 - optional :force, :bool, 6 - end - add_message "google.cloud.datastream.v1.UpdateStreamRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :stream, :message, 2, "google.cloud.datastream.v1.Stream" - optional :request_id, :string, 3 - optional :validate_only, :bool, 4 - optional :force, :bool, 5 - end - add_message "google.cloud.datastream.v1.DeleteStreamRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - end - add_message "google.cloud.datastream.v1.GetStreamObjectRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.datastream.v1.LookupStreamObjectRequest" do - optional :parent, :string, 1 - optional :source_object_identifier, :message, 2, "google.cloud.datastream.v1.SourceObjectIdentifier" - end - add_message "google.cloud.datastream.v1.StartBackfillJobRequest" do - optional :object, :string, 1 - end - add_message "google.cloud.datastream.v1.StartBackfillJobResponse" do - optional :object, :message, 1, "google.cloud.datastream.v1.StreamObject" - end - add_message "google.cloud.datastream.v1.StopBackfillJobRequest" do - optional :object, :string, 1 - end - add_message "google.cloud.datastream.v1.StopBackfillJobResponse" do - optional :object, :message, 1, "google.cloud.datastream.v1.StreamObject" - end - add_message "google.cloud.datastream.v1.ListStreamObjectsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.datastream.v1.ListStreamObjectsResponse" do - repeated :stream_objects, :message, 1, "google.cloud.datastream.v1.StreamObject" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.datastream.v1.OperationMetadata" do - optional :create_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :target, :string, 3 - optional :verb, :string, 4 - optional :status_message, :string, 5 - optional :requested_cancellation, :bool, 6 - optional :api_version, :string, 7 - optional :validation_result, :message, 8, "google.cloud.datastream.v1.ValidationResult" - end - add_message "google.cloud.datastream.v1.CreatePrivateConnectionRequest" do - optional :parent, :string, 1 - optional :private_connection_id, :string, 2 - optional :private_connection, :message, 3, "google.cloud.datastream.v1.PrivateConnection" - optional :request_id, :string, 4 - optional :force, :bool, 6 - end - add_message "google.cloud.datastream.v1.ListPrivateConnectionsRequest" 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.datastream.v1.ListPrivateConnectionsResponse" do - repeated :private_connections, :message, 1, "google.cloud.datastream.v1.PrivateConnection" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.datastream.v1.DeletePrivateConnectionRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - optional :force, :bool, 3 - end - add_message "google.cloud.datastream.v1.GetPrivateConnectionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.datastream.v1.CreateRouteRequest" do - optional :parent, :string, 1 - optional :route_id, :string, 2 - optional :route, :message, 3, "google.cloud.datastream.v1.Route" - optional :request_id, :string, 4 - end - add_message "google.cloud.datastream.v1.ListRoutesRequest" 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.datastream.v1.ListRoutesResponse" do - repeated :routes, :message, 1, "google.cloud.datastream.v1.Route" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.datastream.v1.DeleteRouteRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - end - add_message "google.cloud.datastream.v1.GetRouteRequest" do - optional :name, :string, 1 + +descriptor_data = "\n+google/cloud/datastream/v1/datastream.proto\x12\x1agoogle.cloud.datastream.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/datastream/v1/datastream_resources.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x03\n DiscoverConnectionProfileRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/ConnectionProfile\x12L\n\x12\x63onnection_profile\x18\xc8\x01 \x01(\x0b\x32-.google.cloud.datastream.v1.ConnectionProfileH\x00\x12\"\n\x17\x63onnection_profile_name\x18\xc9\x01 \x01(\tH\x00\x12\x18\n\x0e\x66ull_hierarchy\x18\x03 \x01(\x08H\x01\x12\x19\n\x0fhierarchy_depth\x18\x04 \x01(\x05H\x01\x12?\n\x0coracle_rdbms\x18\x64 \x01(\x0b\x32\'.google.cloud.datastream.v1.OracleRdbmsH\x02\x12=\n\x0bmysql_rdbms\x18\x65 \x01(\x0b\x32&.google.cloud.datastream.v1.MysqlRdbmsH\x02\x12G\n\x10postgresql_rdbms\x18\x66 \x01(\x0b\x32+.google.cloud.datastream.v1.PostgresqlRdbmsH\x02\x42\x08\n\x06targetB\x0b\n\thierarchyB\r\n\x0b\x64\x61ta_object\"\xfb\x01\n!DiscoverConnectionProfileResponse\x12?\n\x0coracle_rdbms\x18\x64 \x01(\x0b\x32\'.google.cloud.datastream.v1.OracleRdbmsH\x00\x12=\n\x0bmysql_rdbms\x18\x65 \x01(\x0b\x32&.google.cloud.datastream.v1.MysqlRdbmsH\x00\x12G\n\x10postgresql_rdbms\x18\x66 \x01(\x0b\x32+.google.cloud.datastream.v1.PostgresqlRdbmsH\x00\x42\r\n\x0b\x64\x61ta_object\"w\n\x15\x46\x65tchStaticIpsRequest\x12\x37\n\x04name\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\"E\n\x16\x46\x65tchStaticIpsResponse\x12\x12\n\nstatic_ips\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x1dListConnectionProfilesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/ConnectionProfile\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\"\x9a\x01\n\x1eListConnectionProfilesResponse\x12J\n\x13\x63onnection_profiles\x18\x01 \x03(\x0b\x32-.google.cloud.datastream.v1.ConnectionProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1bGetConnectionProfileRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/ConnectionProfile\"\xa2\x02\n\x1e\x43reateConnectionProfileRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/ConnectionProfile\x12\"\n\x15\x63onnection_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x12\x63onnection_profile\x18\x03 \x01(\x0b\x32-.google.cloud.datastream.v1.ConnectionProfileB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\xef\x01\n\x1eUpdateConnectionProfileRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12N\n\x12\x63onnection_profile\x18\x02 \x01(\x0b\x32-.google.cloud.datastream.v1.ConnectionProfileB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"|\n\x1e\x44\x65leteConnectionProfileRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/ConnectionProfile\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n\x12ListStreamsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 datastream.googleapis.com/Stream\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\"x\n\x13ListStreamsResponse\x12\x33\n\x07streams\x18\x01 \x03(\x0b\x32\".google.cloud.datastream.v1.Stream\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"J\n\x10GetStreamRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n datastream.googleapis.com/Stream\"\xe9\x01\n\x13\x43reateStreamRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 datastream.googleapis.com/Stream\x12\x16\n\tstream_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x06stream\x18\x03 \x01(\x0b\x32\".google.cloud.datastream.v1.StreamB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\xcd\x01\n\x13UpdateStreamRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x37\n\x06stream\x18\x02 \x01(\x0b\x32\".google.cloud.datastream.v1.StreamB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"f\n\x13\x44\x65leteStreamRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n datastream.googleapis.com/Stream\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"V\n\x16GetStreamObjectRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datastream.googleapis.com/StreamObject\"\xb0\x01\n\x19LookupStreamObjectRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n datastream.googleapis.com/Stream\x12Y\n\x18source_object_identifier\x18\x02 \x01(\x0b\x32\x32.google.cloud.datastream.v1.SourceObjectIdentifierB\x03\xe0\x41\x02\"Y\n\x17StartBackfillJobRequest\x12>\n\x06object\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datastream.googleapis.com/StreamObject\"T\n\x18StartBackfillJobResponse\x12\x38\n\x06object\x18\x01 \x01(\x0b\x32(.google.cloud.datastream.v1.StreamObject\"X\n\x16StopBackfillJobRequest\x12>\n\x06object\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datastream.googleapis.com/StreamObject\"S\n\x17StopBackfillJobResponse\x12\x38\n\x06object\x18\x01 \x01(\x0b\x32(.google.cloud.datastream.v1.StreamObject\"\x81\x01\n\x18ListStreamObjectsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&datastream.googleapis.com/StreamObject\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"v\n\x19ListStreamObjectsResponse\x12@\n\x0estream_objects\x18\x01 \x03(\x0b\x32(.google.cloud.datastream.v1.StreamObject\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xce\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12L\n\x11validation_result\x18\x08 \x01(\x0b\x32,.google.cloud.datastream.v1.ValidationResultB\x03\xe0\x41\x03\"\x86\x02\n\x1e\x43reatePrivateConnectionRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/PrivateConnection\x12\"\n\x15private_connection_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x12private_connection\x18\x03 \x01(\x0b\x32-.google.cloud.datastream.v1.PrivateConnectionB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\xad\x01\n\x1dListPrivateConnectionsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/PrivateConnection\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\"\x9a\x01\n\x1eListPrivateConnectionsResponse\x12J\n\x13private_connections\x18\x01 \x03(\x0b\x32-.google.cloud.datastream.v1.PrivateConnection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x90\x01\n\x1e\x44\x65letePrivateConnectionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/PrivateConnection\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"`\n\x1bGetPrivateConnectionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/PrivateConnection\"\xb4\x01\n\x12\x43reateRouteRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61tastream.googleapis.com/Route\x12\x15\n\x08route_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x05route\x18\x03 \x01(\x0b\x32!.google.cloud.datastream.v1.RouteB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x95\x01\n\x11ListRoutesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61tastream.googleapis.com/Route\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\"u\n\x12ListRoutesResponse\x12\x31\n\x06routes\x18\x01 \x03(\x0b\x32!.google.cloud.datastream.v1.Route\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"d\n\x12\x44\x65leteRouteRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61tastream.googleapis.com/Route\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"H\n\x0fGetRouteRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61tastream.googleapis.com/Route2\xfd*\n\nDatastream\x12\xd8\x01\n\x16ListConnectionProfiles\x12\x39.google.cloud.datastream.v1.ListConnectionProfilesRequest\x1a:.google.cloud.datastream.v1.ListConnectionProfilesResponse\"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*}/connectionProfiles\xda\x41\x06parent\x12\xc5\x01\n\x14GetConnectionProfile\x12\x37.google.cloud.datastream.v1.GetConnectionProfileRequest\x1a-.google.cloud.datastream.v1.ConnectionProfile\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/connectionProfiles/*}\xda\x41\x04name\x12\xa4\x02\n\x17\x43reateConnectionProfile\x12:.google.cloud.datastream.v1.CreateConnectionProfileRequest\x1a\x1d.google.longrunning.Operation\"\xad\x01\x82\xd3\xe4\x93\x02L\"6/v1/{parent=projects/*/locations/*}/connectionProfiles:\x12\x63onnection_profile\xda\x41/parent,connection_profile,connection_profile_id\xca\x41&\n\x11\x43onnectionProfile\x12\x11OperationMetadata\x12\xa6\x02\n\x17UpdateConnectionProfile\x12:.google.cloud.datastream.v1.UpdateConnectionProfileRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\x82\xd3\xe4\x93\x02_2I/v1/{connection_profile.name=projects/*/locations/*/connectionProfiles/*}:\x12\x63onnection_profile\xda\x41\x1e\x63onnection_profile,update_mask\xca\x41&\n\x11\x43onnectionProfile\x12\x11OperationMetadata\x12\xe8\x01\n\x17\x44\x65leteConnectionProfile\x12:.google.cloud.datastream.v1.DeleteConnectionProfileRequest\x1a\x1d.google.longrunning.Operation\"r\x82\xd3\xe4\x93\x02\x38*6/v1/{name=projects/*/locations/*/connectionProfiles/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe4\x01\n\x19\x44iscoverConnectionProfile\x12<.google.cloud.datastream.v1.DiscoverConnectionProfileRequest\x1a=.google.cloud.datastream.v1.DiscoverConnectionProfileResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/{parent=projects/*/locations/*}/connectionProfiles:discover:\x01*\x12\xac\x01\n\x0bListStreams\x12..google.cloud.datastream.v1.ListStreamsRequest\x1a/.google.cloud.datastream.v1.ListStreamsResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/streams\xda\x41\x06parent\x12\x99\x01\n\tGetStream\x12,.google.cloud.datastream.v1.GetStreamRequest\x1a\".google.cloud.datastream.v1.Stream\":\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/streams/*}\xda\x41\x04name\x12\xd3\x01\n\x0c\x43reateStream\x12/.google.cloud.datastream.v1.CreateStreamRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/streams:\x06stream\xda\x41\x17parent,stream,stream_id\xca\x41\x1b\n\x06Stream\x12\x11OperationMetadata\x12\xd5\x01\n\x0cUpdateStream\x12/.google.cloud.datastream.v1.UpdateStreamRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02<22/v1/{stream.name=projects/*/locations/*/streams/*}:\x06stream\xda\x41\x12stream,update_mask\xca\x41\x1b\n\x06Stream\x12\x11OperationMetadata\x12\xc7\x01\n\x0c\x44\x65leteStream\x12/.google.cloud.datastream.v1.DeleteStreamRequest\x1a\x1d.google.longrunning.Operation\"g\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/streams/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xb5\x01\n\x0fGetStreamObject\x12\x32.google.cloud.datastream.v1.GetStreamObjectRequest\x1a(.google.cloud.datastream.v1.StreamObject\"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/streams/*/objects/*}\xda\x41\x04name\x12\xbe\x01\n\x12LookupStreamObject\x12\x35.google.cloud.datastream.v1.LookupStreamObjectRequest\x1a(.google.cloud.datastream.v1.StreamObject\"G\x82\xd3\xe4\x93\x02\x41\"cloud.google.com/go/datastream/apiv1/datastreampb;datastreampb\xaa\x02\x1aGoogle.Cloud.Datastream.V1\xca\x02\x1aGoogle\\Cloud\\Datastream\\V1\xea\x02\x1dGoogle::Cloud::Datastream::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.datastream.v1.ConnectionProfile", "google/cloud/datastream/v1/datastream_resources.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-datastream-v1/lib/google/cloud/datastream/v1/datastream_resources_pb.rb b/google-cloud-datastream-v1/lib/google/cloud/datastream/v1/datastream_resources_pb.rb index e75692da2287..b1bcbe60f697 100644 --- a/google-cloud-datastream-v1/lib/google/cloud/datastream/v1/datastream_resources_pb.rb +++ b/google-cloud-datastream-v1/lib/google/cloud/datastream/v1/datastream_resources_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datastream/v1/datastream_resources.proto @@ -8,376 +9,33 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/datastream/v1/datastream_resources.proto", :syntax => :proto3) do - add_message "google.cloud.datastream.v1.OracleProfile" do - optional :hostname, :string, 1 - optional :port, :int32, 2 - optional :username, :string, 3 - optional :password, :string, 4 - optional :database_service, :string, 5 - map :connection_attributes, :string, :string, 6 - end - add_message "google.cloud.datastream.v1.MysqlProfile" do - optional :hostname, :string, 1 - optional :port, :int32, 2 - optional :username, :string, 3 - optional :password, :string, 4 - optional :ssl_config, :message, 5, "google.cloud.datastream.v1.MysqlSslConfig" - end - add_message "google.cloud.datastream.v1.PostgresqlProfile" do - optional :hostname, :string, 1 - optional :port, :int32, 2 - optional :username, :string, 3 - optional :password, :string, 4 - optional :database, :string, 5 - end - add_message "google.cloud.datastream.v1.GcsProfile" do - optional :bucket, :string, 1 - optional :root_path, :string, 2 - end - add_message "google.cloud.datastream.v1.BigQueryProfile" do - end - add_message "google.cloud.datastream.v1.StaticServiceIpConnectivity" do - end - add_message "google.cloud.datastream.v1.ForwardSshTunnelConnectivity" do - optional :hostname, :string, 1 - optional :username, :string, 2 - optional :port, :int32, 3 - oneof :authentication_method do - optional :password, :string, 100 - optional :private_key, :string, 101 - end - end - add_message "google.cloud.datastream.v1.VpcPeeringConfig" do - optional :vpc, :string, 1 - optional :subnet, :string, 2 - end - add_message "google.cloud.datastream.v1.PrivateConnection" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - map :labels, :string, :string, 4 - optional :display_name, :string, 5 - optional :state, :enum, 6, "google.cloud.datastream.v1.PrivateConnection.State" - optional :error, :message, 7, "google.cloud.datastream.v1.Error" - optional :vpc_peering_config, :message, 100, "google.cloud.datastream.v1.VpcPeeringConfig" - end - add_enum "google.cloud.datastream.v1.PrivateConnection.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATING, 1 - value :CREATED, 2 - value :FAILED, 3 - value :DELETING, 4 - value :FAILED_TO_DELETE, 5 - end - add_message "google.cloud.datastream.v1.PrivateConnectivity" do - optional :private_connection, :string, 1 - end - add_message "google.cloud.datastream.v1.Route" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - map :labels, :string, :string, 4 - optional :display_name, :string, 5 - optional :destination_address, :string, 6 - optional :destination_port, :int32, 7 - end - add_message "google.cloud.datastream.v1.MysqlSslConfig" do - optional :client_key, :string, 1 - optional :client_key_set, :bool, 2 - optional :client_certificate, :string, 3 - optional :client_certificate_set, :bool, 4 - optional :ca_certificate, :string, 5 - optional :ca_certificate_set, :bool, 6 - end - add_message "google.cloud.datastream.v1.ConnectionProfile" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - map :labels, :string, :string, 4 - optional :display_name, :string, 5 - oneof :profile do - optional :oracle_profile, :message, 100, "google.cloud.datastream.v1.OracleProfile" - optional :gcs_profile, :message, 101, "google.cloud.datastream.v1.GcsProfile" - optional :mysql_profile, :message, 102, "google.cloud.datastream.v1.MysqlProfile" - optional :bigquery_profile, :message, 103, "google.cloud.datastream.v1.BigQueryProfile" - optional :postgresql_profile, :message, 104, "google.cloud.datastream.v1.PostgresqlProfile" - end - oneof :connectivity do - optional :static_service_ip_connectivity, :message, 200, "google.cloud.datastream.v1.StaticServiceIpConnectivity" - optional :forward_ssh_connectivity, :message, 201, "google.cloud.datastream.v1.ForwardSshTunnelConnectivity" - optional :private_connectivity, :message, 202, "google.cloud.datastream.v1.PrivateConnectivity" - end - end - add_message "google.cloud.datastream.v1.OracleColumn" do - optional :column, :string, 1 - optional :data_type, :string, 2 - optional :length, :int32, 3 - optional :precision, :int32, 4 - optional :scale, :int32, 5 - optional :encoding, :string, 6 - optional :primary_key, :bool, 7 - optional :nullable, :bool, 8 - optional :ordinal_position, :int32, 9 - end - add_message "google.cloud.datastream.v1.OracleTable" do - optional :table, :string, 1 - repeated :oracle_columns, :message, 2, "google.cloud.datastream.v1.OracleColumn" - end - add_message "google.cloud.datastream.v1.OracleSchema" do - optional :schema, :string, 1 - repeated :oracle_tables, :message, 2, "google.cloud.datastream.v1.OracleTable" - end - add_message "google.cloud.datastream.v1.OracleRdbms" do - repeated :oracle_schemas, :message, 1, "google.cloud.datastream.v1.OracleSchema" - end - add_message "google.cloud.datastream.v1.OracleSourceConfig" do - optional :include_objects, :message, 1, "google.cloud.datastream.v1.OracleRdbms" - optional :exclude_objects, :message, 2, "google.cloud.datastream.v1.OracleRdbms" - optional :max_concurrent_cdc_tasks, :int32, 3 - optional :max_concurrent_backfill_tasks, :int32, 4 - oneof :large_objects_handling do - optional :drop_large_objects, :message, 100, "google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects" - optional :stream_large_objects, :message, 102, "google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects" - end - end - add_message "google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects" do - end - add_message "google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects" do - end - add_message "google.cloud.datastream.v1.PostgresqlColumn" do - optional :column, :string, 1 - optional :data_type, :string, 2 - optional :length, :int32, 3 - optional :precision, :int32, 4 - optional :scale, :int32, 5 - optional :primary_key, :bool, 7 - optional :nullable, :bool, 8 - optional :ordinal_position, :int32, 9 - end - add_message "google.cloud.datastream.v1.PostgresqlTable" do - optional :table, :string, 1 - repeated :postgresql_columns, :message, 2, "google.cloud.datastream.v1.PostgresqlColumn" - end - add_message "google.cloud.datastream.v1.PostgresqlSchema" do - optional :schema, :string, 1 - repeated :postgresql_tables, :message, 2, "google.cloud.datastream.v1.PostgresqlTable" - end - add_message "google.cloud.datastream.v1.PostgresqlRdbms" do - repeated :postgresql_schemas, :message, 1, "google.cloud.datastream.v1.PostgresqlSchema" - end - add_message "google.cloud.datastream.v1.PostgresqlSourceConfig" do - optional :include_objects, :message, 1, "google.cloud.datastream.v1.PostgresqlRdbms" - optional :exclude_objects, :message, 2, "google.cloud.datastream.v1.PostgresqlRdbms" - optional :replication_slot, :string, 3 - optional :publication, :string, 4 - optional :max_concurrent_backfill_tasks, :int32, 5 - end - add_message "google.cloud.datastream.v1.MysqlColumn" do - optional :column, :string, 1 - optional :data_type, :string, 2 - optional :length, :int32, 3 - optional :collation, :string, 4 - optional :primary_key, :bool, 5 - optional :nullable, :bool, 6 - optional :ordinal_position, :int32, 7 - end - add_message "google.cloud.datastream.v1.MysqlTable" do - optional :table, :string, 1 - repeated :mysql_columns, :message, 2, "google.cloud.datastream.v1.MysqlColumn" - end - add_message "google.cloud.datastream.v1.MysqlDatabase" do - optional :database, :string, 1 - repeated :mysql_tables, :message, 2, "google.cloud.datastream.v1.MysqlTable" - end - add_message "google.cloud.datastream.v1.MysqlRdbms" do - repeated :mysql_databases, :message, 1, "google.cloud.datastream.v1.MysqlDatabase" - end - add_message "google.cloud.datastream.v1.MysqlSourceConfig" do - optional :include_objects, :message, 1, "google.cloud.datastream.v1.MysqlRdbms" - optional :exclude_objects, :message, 2, "google.cloud.datastream.v1.MysqlRdbms" - optional :max_concurrent_cdc_tasks, :int32, 3 - optional :max_concurrent_backfill_tasks, :int32, 4 - end - add_message "google.cloud.datastream.v1.SourceConfig" do - optional :source_connection_profile, :string, 1 - oneof :source_stream_config do - optional :oracle_source_config, :message, 100, "google.cloud.datastream.v1.OracleSourceConfig" - optional :mysql_source_config, :message, 101, "google.cloud.datastream.v1.MysqlSourceConfig" - optional :postgresql_source_config, :message, 102, "google.cloud.datastream.v1.PostgresqlSourceConfig" - end - end - add_message "google.cloud.datastream.v1.AvroFileFormat" do - end - add_message "google.cloud.datastream.v1.JsonFileFormat" do - optional :schema_file_format, :enum, 1, "google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat" - optional :compression, :enum, 2, "google.cloud.datastream.v1.JsonFileFormat.JsonCompression" - end - add_enum "google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat" do - value :SCHEMA_FILE_FORMAT_UNSPECIFIED, 0 - value :NO_SCHEMA_FILE, 1 - value :AVRO_SCHEMA_FILE, 2 - end - add_enum "google.cloud.datastream.v1.JsonFileFormat.JsonCompression" do - value :JSON_COMPRESSION_UNSPECIFIED, 0 - value :NO_COMPRESSION, 1 - value :GZIP, 2 - end - add_message "google.cloud.datastream.v1.GcsDestinationConfig" do - optional :path, :string, 1 - optional :file_rotation_mb, :int32, 2 - optional :file_rotation_interval, :message, 3, "google.protobuf.Duration" - oneof :file_format do - optional :avro_file_format, :message, 100, "google.cloud.datastream.v1.AvroFileFormat" - optional :json_file_format, :message, 101, "google.cloud.datastream.v1.JsonFileFormat" - end - end - add_message "google.cloud.datastream.v1.BigQueryDestinationConfig" do - optional :data_freshness, :message, 300, "google.protobuf.Duration" - oneof :dataset_config do - optional :single_target_dataset, :message, 201, "google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset" - optional :source_hierarchy_datasets, :message, 202, "google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets" - end - end - add_message "google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset" do - optional :dataset_id, :string, 1 - end - add_message "google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets" do - optional :dataset_template, :message, 2, "google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate" - end - add_message "google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate" do - optional :location, :string, 1 - optional :dataset_id_prefix, :string, 2 - optional :kms_key_name, :string, 3 - end - add_message "google.cloud.datastream.v1.DestinationConfig" do - optional :destination_connection_profile, :string, 1 - oneof :destination_stream_config do - optional :gcs_destination_config, :message, 100, "google.cloud.datastream.v1.GcsDestinationConfig" - optional :bigquery_destination_config, :message, 101, "google.cloud.datastream.v1.BigQueryDestinationConfig" - end - end - add_message "google.cloud.datastream.v1.Stream" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - map :labels, :string, :string, 4 - optional :display_name, :string, 5 - optional :source_config, :message, 6, "google.cloud.datastream.v1.SourceConfig" - optional :destination_config, :message, 7, "google.cloud.datastream.v1.DestinationConfig" - optional :state, :enum, 8, "google.cloud.datastream.v1.Stream.State" - repeated :errors, :message, 9, "google.cloud.datastream.v1.Error" - proto3_optional :customer_managed_encryption_key, :string, 10 - oneof :backfill_strategy do - optional :backfill_all, :message, 101, "google.cloud.datastream.v1.Stream.BackfillAllStrategy" - optional :backfill_none, :message, 102, "google.cloud.datastream.v1.Stream.BackfillNoneStrategy" - end - end - add_message "google.cloud.datastream.v1.Stream.BackfillAllStrategy" do - oneof :excluded_objects do - optional :oracle_excluded_objects, :message, 1, "google.cloud.datastream.v1.OracleRdbms" - optional :mysql_excluded_objects, :message, 2, "google.cloud.datastream.v1.MysqlRdbms" - optional :postgresql_excluded_objects, :message, 3, "google.cloud.datastream.v1.PostgresqlRdbms" - end - end - add_message "google.cloud.datastream.v1.Stream.BackfillNoneStrategy" do - end - add_enum "google.cloud.datastream.v1.Stream.State" do - value :STATE_UNSPECIFIED, 0 - value :NOT_STARTED, 1 - value :RUNNING, 2 - value :PAUSED, 3 - value :MAINTENANCE, 4 - value :FAILED, 5 - value :FAILED_PERMANENTLY, 6 - value :STARTING, 7 - value :DRAINING, 8 - end - add_message "google.cloud.datastream.v1.StreamObject" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - optional :display_name, :string, 5 - repeated :errors, :message, 6, "google.cloud.datastream.v1.Error" - optional :backfill_job, :message, 7, "google.cloud.datastream.v1.BackfillJob" - optional :source_object, :message, 8, "google.cloud.datastream.v1.SourceObjectIdentifier" - end - add_message "google.cloud.datastream.v1.SourceObjectIdentifier" do - oneof :source_identifier do - optional :oracle_identifier, :message, 1, "google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier" - optional :mysql_identifier, :message, 2, "google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier" - optional :postgresql_identifier, :message, 3, "google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier" - end - end - add_message "google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier" do - optional :schema, :string, 1 - optional :table, :string, 2 - end - add_message "google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier" do - optional :schema, :string, 1 - optional :table, :string, 2 - end - add_message "google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier" do - optional :database, :string, 1 - optional :table, :string, 2 - end - add_message "google.cloud.datastream.v1.BackfillJob" do - optional :state, :enum, 1, "google.cloud.datastream.v1.BackfillJob.State" - optional :trigger, :enum, 2, "google.cloud.datastream.v1.BackfillJob.Trigger" - optional :last_start_time, :message, 3, "google.protobuf.Timestamp" - optional :last_end_time, :message, 4, "google.protobuf.Timestamp" - repeated :errors, :message, 5, "google.cloud.datastream.v1.Error" - end - add_enum "google.cloud.datastream.v1.BackfillJob.State" do - value :STATE_UNSPECIFIED, 0 - value :NOT_STARTED, 1 - value :PENDING, 2 - value :ACTIVE, 3 - value :STOPPED, 4 - value :FAILED, 5 - value :COMPLETED, 6 - value :UNSUPPORTED, 7 - end - add_enum "google.cloud.datastream.v1.BackfillJob.Trigger" do - value :TRIGGER_UNSPECIFIED, 0 - value :AUTOMATIC, 1 - value :MANUAL, 2 - end - add_message "google.cloud.datastream.v1.Error" do - optional :reason, :string, 1 - optional :error_uuid, :string, 2 - optional :message, :string, 3 - optional :error_time, :message, 4, "google.protobuf.Timestamp" - map :details, :string, :string, 5 - end - add_message "google.cloud.datastream.v1.ValidationResult" do - repeated :validations, :message, 1, "google.cloud.datastream.v1.Validation" - end - add_message "google.cloud.datastream.v1.Validation" do - optional :description, :string, 1 - optional :state, :enum, 2, "google.cloud.datastream.v1.Validation.State" - repeated :message, :message, 3, "google.cloud.datastream.v1.ValidationMessage" - optional :code, :string, 4 - end - add_enum "google.cloud.datastream.v1.Validation.State" do - value :STATE_UNSPECIFIED, 0 - value :NOT_EXECUTED, 1 - value :FAILED, 2 - value :PASSED, 3 - end - add_message "google.cloud.datastream.v1.ValidationMessage" do - optional :message, :string, 1 - optional :level, :enum, 2, "google.cloud.datastream.v1.ValidationMessage.Level" - map :metadata, :string, :string, 3 - optional :code, :string, 4 - end - add_enum "google.cloud.datastream.v1.ValidationMessage.Level" do - value :LEVEL_UNSPECIFIED, 0 - value :WARNING, 1 - value :ERROR, 2 + +descriptor_data = "\n5google/cloud/datastream/v1/datastream_resources.proto\x12\x1agoogle.cloud.datastream.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa2\x02\n\rOracleProfile\x12\x15\n\x08hostname\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x15\n\x08username\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10\x64\x61tabase_service\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x62\n\x15\x63onnection_attributes\x18\x06 \x03(\x0b\x32\x43.google.cloud.datastream.v1.OracleProfile.ConnectionAttributesEntry\x1a;\n\x19\x43onnectionAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x01\n\x0cMysqlProfile\x12\x15\n\x08hostname\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x15\n\x08username\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x08password\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x04\x12>\n\nssl_config\x18\x05 \x01(\x0b\x32*.google.cloud.datastream.v1.MysqlSslConfig\"}\n\x11PostgresqlProfile\x12\x15\n\x08hostname\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x15\n\x08username\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x64\x61tabase\x18\x05 \x01(\tB\x03\xe0\x41\x02\"4\n\nGcsProfile\x12\x13\n\x06\x62ucket\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\troot_path\x18\x02 \x01(\t\"\x11\n\x0f\x42igQueryProfile\"\x1d\n\x1bStaticServiceIpConnectivity\"\xa8\x01\n\x1c\x46orwardSshTunnelConnectivity\x12\x15\n\x08hostname\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12\x17\n\x08password\x18\x64 \x01(\tB\x03\xe0\x41\x04H\x00\x12\x1a\n\x0bprivate_key\x18\x65 \x01(\tB\x03\xe0\x41\x04H\x00\x42\x17\n\x15\x61uthentication_method\"]\n\x10VpcPeeringConfig\x12\x34\n\x03vpc\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ompute.googleapis.com/Networks\x12\x13\n\x06subnet\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xe0\x05\n\x11PrivateConnection\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x39.google.cloud.datastream.v1.PrivateConnection.LabelsEntry\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12G\n\x05state\x18\x06 \x01(\x0e\x32\x33.google.cloud.datastream.v1.PrivateConnection.StateB\x03\xe0\x41\x03\x12\x35\n\x05\x65rror\x18\x07 \x01(\x0b\x32!.google.cloud.datastream.v1.ErrorB\x03\xe0\x41\x03\x12H\n\x12vpc_peering_config\x18\x64 \x01(\x0b\x32,.google.cloud.datastream.v1.VpcPeeringConfig\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"i\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07\x43REATED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x14\n\x10\x46\x41ILED_TO_DELETE\x10\x05:\x81\x01\xea\x41~\n+datastream.googleapis.com/PrivateConnection\x12Oprojects/{project}/locations/{location}/privateConnections/{private_connection}\"f\n\x13PrivateConnectivity\x12O\n\x12private_connection\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/PrivateConnection\"\xd3\x03\n\x05Route\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x06labels\x18\x04 \x03(\x0b\x32-.google.cloud.datastream.v1.Route.LabelsEntry\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x64\x65stination_address\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x64\x65stination_port\x18\x07 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\x1f\x64\x61tastream.googleapis.com/Route\x12^projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}\"\xca\x01\n\x0eMysqlSslConfig\x12\x17\n\nclient_key\x18\x01 \x01(\tB\x03\xe0\x41\x04\x12\x1b\n\x0e\x63lient_key_set\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1f\n\x12\x63lient_certificate\x18\x03 \x01(\tB\x03\xe0\x41\x04\x12#\n\x16\x63lient_certificate_set\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1b\n\x0e\x63\x61_certificate\x18\x05 \x01(\tB\x03\xe0\x41\x04\x12\x1f\n\x12\x63\x61_certificate_set\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\"\xb8\x08\n\x11\x43onnectionProfile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x39.google.cloud.datastream.v1.ConnectionProfile.LabelsEntry\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x43\n\x0eoracle_profile\x18\x64 \x01(\x0b\x32).google.cloud.datastream.v1.OracleProfileH\x00\x12=\n\x0bgcs_profile\x18\x65 \x01(\x0b\x32&.google.cloud.datastream.v1.GcsProfileH\x00\x12\x41\n\rmysql_profile\x18\x66 \x01(\x0b\x32(.google.cloud.datastream.v1.MysqlProfileH\x00\x12G\n\x10\x62igquery_profile\x18g \x01(\x0b\x32+.google.cloud.datastream.v1.BigQueryProfileH\x00\x12K\n\x12postgresql_profile\x18h \x01(\x0b\x32-.google.cloud.datastream.v1.PostgresqlProfileH\x00\x12\x62\n\x1estatic_service_ip_connectivity\x18\xc8\x01 \x01(\x0b\x32\x37.google.cloud.datastream.v1.StaticServiceIpConnectivityH\x01\x12]\n\x18\x66orward_ssh_connectivity\x18\xc9\x01 \x01(\x0b\x32\x38.google.cloud.datastream.v1.ForwardSshTunnelConnectivityH\x01\x12P\n\x14private_connectivity\x18\xca\x01 \x01(\x0b\x32/.google.cloud.datastream.v1.PrivateConnectivityH\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x81\x01\xea\x41~\n+datastream.googleapis.com/ConnectionProfile\x12Oprojects/{project}/locations/{location}/connectionProfiles/{connection_profile}B\t\n\x07profileB\x0e\n\x0c\x63onnectivity\"\xb6\x01\n\x0cOracleColumn\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\tprecision\x18\x04 \x01(\x05\x12\r\n\x05scale\x18\x05 \x01(\x05\x12\x10\n\x08\x65ncoding\x18\x06 \x01(\t\x12\x13\n\x0bprimary_key\x18\x07 \x01(\x08\x12\x10\n\x08nullable\x18\x08 \x01(\x08\x12\x18\n\x10ordinal_position\x18\t \x01(\x05\"^\n\x0bOracleTable\x12\r\n\x05table\x18\x01 \x01(\t\x12@\n\x0eoracle_columns\x18\x02 \x03(\x0b\x32(.google.cloud.datastream.v1.OracleColumn\"^\n\x0cOracleSchema\x12\x0e\n\x06schema\x18\x01 \x01(\t\x12>\n\roracle_tables\x18\x02 \x03(\x0b\x32\'.google.cloud.datastream.v1.OracleTable\"O\n\x0bOracleRdbms\x12@\n\x0eoracle_schemas\x18\x01 \x03(\x0b\x32(.google.cloud.datastream.v1.OracleSchema\"\xe7\x03\n\x12OracleSourceConfig\x12@\n\x0finclude_objects\x18\x01 \x01(\x0b\x32\'.google.cloud.datastream.v1.OracleRdbms\x12@\n\x0f\x65xclude_objects\x18\x02 \x01(\x0b\x32\'.google.cloud.datastream.v1.OracleRdbms\x12 \n\x18max_concurrent_cdc_tasks\x18\x03 \x01(\x05\x12%\n\x1dmax_concurrent_backfill_tasks\x18\x04 \x01(\x05\x12]\n\x12\x64rop_large_objects\x18\x64 \x01(\x0b\x32?.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsH\x00\x12\x61\n\x14stream_large_objects\x18\x66 \x01(\x0b\x32\x41.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsH\x00\x1a\x12\n\x10\x44ropLargeObjects\x1a\x14\n\x12StreamLargeObjectsB\x18\n\x16large_objects_handling\"\xa8\x01\n\x10PostgresqlColumn\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\tprecision\x18\x04 \x01(\x05\x12\r\n\x05scale\x18\x05 \x01(\x05\x12\x13\n\x0bprimary_key\x18\x07 \x01(\x08\x12\x10\n\x08nullable\x18\x08 \x01(\x08\x12\x18\n\x10ordinal_position\x18\t \x01(\x05\"j\n\x0fPostgresqlTable\x12\r\n\x05table\x18\x01 \x01(\t\x12H\n\x12postgresql_columns\x18\x02 \x03(\x0b\x32,.google.cloud.datastream.v1.PostgresqlColumn\"j\n\x10PostgresqlSchema\x12\x0e\n\x06schema\x18\x01 \x01(\t\x12\x46\n\x11postgresql_tables\x18\x02 \x03(\x0b\x32+.google.cloud.datastream.v1.PostgresqlTable\"[\n\x0fPostgresqlRdbms\x12H\n\x12postgresql_schemas\x18\x01 \x03(\x0b\x32,.google.cloud.datastream.v1.PostgresqlSchema\"\x87\x02\n\x16PostgresqlSourceConfig\x12\x44\n\x0finclude_objects\x18\x01 \x01(\x0b\x32+.google.cloud.datastream.v1.PostgresqlRdbms\x12\x44\n\x0f\x65xclude_objects\x18\x02 \x01(\x0b\x32+.google.cloud.datastream.v1.PostgresqlRdbms\x12 \n\x10replication_slot\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x18\n\x0bpublication\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12%\n\x1dmax_concurrent_backfill_tasks\x18\x05 \x01(\x05\"\x94\x01\n\x0bMysqlColumn\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\tcollation\x18\x04 \x01(\t\x12\x13\n\x0bprimary_key\x18\x05 \x01(\x08\x12\x10\n\x08nullable\x18\x06 \x01(\x08\x12\x18\n\x10ordinal_position\x18\x07 \x01(\x05\"[\n\nMysqlTable\x12\r\n\x05table\x18\x01 \x01(\t\x12>\n\rmysql_columns\x18\x02 \x03(\x0b\x32\'.google.cloud.datastream.v1.MysqlColumn\"_\n\rMysqlDatabase\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12<\n\x0cmysql_tables\x18\x02 \x03(\x0b\x32&.google.cloud.datastream.v1.MysqlTable\"P\n\nMysqlRdbms\x12\x42\n\x0fmysql_databases\x18\x01 \x03(\x0b\x32).google.cloud.datastream.v1.MysqlDatabase\"\xde\x01\n\x11MysqlSourceConfig\x12?\n\x0finclude_objects\x18\x01 \x01(\x0b\x32&.google.cloud.datastream.v1.MysqlRdbms\x12?\n\x0f\x65xclude_objects\x18\x02 \x01(\x0b\x32&.google.cloud.datastream.v1.MysqlRdbms\x12 \n\x18max_concurrent_cdc_tasks\x18\x03 \x01(\x05\x12%\n\x1dmax_concurrent_backfill_tasks\x18\x04 \x01(\x05\"\xf4\x02\n\x0cSourceConfig\x12V\n\x19source_connection_profile\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/ConnectionProfile\x12N\n\x14oracle_source_config\x18\x64 \x01(\x0b\x32..google.cloud.datastream.v1.OracleSourceConfigH\x00\x12L\n\x13mysql_source_config\x18\x65 \x01(\x0b\x32-.google.cloud.datastream.v1.MysqlSourceConfigH\x00\x12V\n\x18postgresql_source_config\x18\x66 \x01(\x0b\x32\x32.google.cloud.datastream.v1.PostgresqlSourceConfigH\x00\x42\x16\n\x14source_stream_config\"\x10\n\x0e\x41vroFileFormat\"\xef\x02\n\x0eJsonFileFormat\x12W\n\x12schema_file_format\x18\x01 \x01(\x0e\x32;.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat\x12O\n\x0b\x63ompression\x18\x02 \x01(\x0e\x32:.google.cloud.datastream.v1.JsonFileFormat.JsonCompression\"`\n\x10SchemaFileFormat\x12\"\n\x1eSCHEMA_FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_SCHEMA_FILE\x10\x01\x12\x14\n\x10\x41VRO_SCHEMA_FILE\x10\x02\"Q\n\x0fJsonCompression\x12 \n\x1cJSON_COMPRESSION_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_COMPRESSION\x10\x01\x12\x08\n\x04GZIP\x10\x02\"\x98\x02\n\x14GcsDestinationConfig\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x18\n\x10\x66ile_rotation_mb\x18\x02 \x01(\x05\x12\x39\n\x16\x66ile_rotation_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x46\n\x10\x61vro_file_format\x18\x64 \x01(\x0b\x32*.google.cloud.datastream.v1.AvroFileFormatH\x00\x12\x46\n\x10json_file_format\x18\x65 \x01(\x0b\x32*.google.cloud.datastream.v1.JsonFileFormatH\x00\x42\r\n\x0b\x66ile_format\"\xde\x04\n\x19\x42igQueryDestinationConfig\x12k\n\x15single_target_dataset\x18\xc9\x01 \x01(\x0b\x32I.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetH\x00\x12s\n\x19source_hierarchy_datasets\x18\xca\x01 \x01(\x0b\x32M.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsH\x00\x12\x32\n\x0e\x64\x61ta_freshness\x18\xac\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a)\n\x13SingleTargetDataset\x12\x12\n\ndataset_id\x18\x01 \x01(\t\x1a\xed\x01\n\x17SourceHierarchyDatasets\x12w\n\x10\x64\x61taset_template\x18\x02 \x01(\x0b\x32].google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate\x1aY\n\x0f\x44\x61tasetTemplate\x12\x15\n\x08location\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x11\x64\x61taset_id_prefix\x18\x02 \x01(\t\x12\x14\n\x0ckms_key_name\x18\x03 \x01(\tB\x10\n\x0e\x64\x61taset_config\"\xbf\x02\n\x11\x44\x65stinationConfig\x12[\n\x1e\x64\x65stination_connection_profile\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/ConnectionProfile\x12R\n\x16gcs_destination_config\x18\x64 \x01(\x0b\x32\x30.google.cloud.datastream.v1.GcsDestinationConfigH\x00\x12\\\n\x1b\x62igquery_destination_config\x18\x65 \x01(\x0b\x32\x35.google.cloud.datastream.v1.BigQueryDestinationConfigH\x00\x42\x1b\n\x19\x64\x65stination_stream_config\"\xd1\n\n\x06Stream\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x06labels\x18\x04 \x03(\x0b\x32..google.cloud.datastream.v1.Stream.LabelsEntry\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\rsource_config\x18\x06 \x01(\x0b\x32(.google.cloud.datastream.v1.SourceConfigB\x03\xe0\x41\x02\x12N\n\x12\x64\x65stination_config\x18\x07 \x01(\x0b\x32-.google.cloud.datastream.v1.DestinationConfigB\x03\xe0\x41\x02\x12\x37\n\x05state\x18\x08 \x01(\x0e\x32(.google.cloud.datastream.v1.Stream.State\x12N\n\x0c\x62\x61\x63kfill_all\x18\x65 \x01(\x0b\x32\x36.google.cloud.datastream.v1.Stream.BackfillAllStrategyH\x00\x12P\n\rbackfill_none\x18\x66 \x01(\x0b\x32\x37.google.cloud.datastream.v1.Stream.BackfillNoneStrategyH\x00\x12\x36\n\x06\x65rrors\x18\t \x03(\x0b\x32!.google.cloud.datastream.v1.ErrorB\x03\xe0\x41\x03\x12\x31\n\x1f\x63ustomer_managed_encryption_key\x18\n \x01(\tB\x03\xe0\x41\x05H\x01\x88\x01\x01\x1a\x93\x02\n\x13\x42\x61\x63kfillAllStrategy\x12J\n\x17oracle_excluded_objects\x18\x01 \x01(\x0b\x32\'.google.cloud.datastream.v1.OracleRdbmsH\x00\x12H\n\x16mysql_excluded_objects\x18\x02 \x01(\x0b\x32&.google.cloud.datastream.v1.MysqlRdbmsH\x00\x12R\n\x1bpostgresql_excluded_objects\x18\x03 \x01(\x0b\x32+.google.cloud.datastream.v1.PostgresqlRdbmsH\x00\x42\x12\n\x10\x65xcluded_objects\x1a\x16\n\x14\x42\x61\x63kfillNoneStrategy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x99\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_STARTED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0f\n\x0bMAINTENANCE\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x16\n\x12\x46\x41ILED_PERMANENTLY\x10\x06\x12\x0c\n\x08STARTING\x10\x07\x12\x0c\n\x08\x44RAINING\x10\x08:_\xea\x41\\\n datastream.googleapis.com/Stream\x12\x38projects/{project}/locations/{location}/streams/{stream}B\x13\n\x11\x62\x61\x63kfill_strategyB\"\n _customer_managed_encryption_key\"\xe2\x03\n\x0cStreamObject\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x06\x65rrors\x18\x06 \x03(\x0b\x32!.google.cloud.datastream.v1.ErrorB\x03\xe0\x41\x03\x12=\n\x0c\x62\x61\x63kfill_job\x18\x07 \x01(\x0b\x32\'.google.cloud.datastream.v1.BackfillJob\x12I\n\rsource_object\x18\x08 \x01(\x0b\x32\x32.google.cloud.datastream.v1.SourceObjectIdentifier:v\xea\x41s\n&datastream.googleapis.com/StreamObject\x12Iprojects/{project}/locations/{location}/streams/{stream}/objects/{object}\"\xb9\x04\n\x16SourceObjectIdentifier\x12\x66\n\x11oracle_identifier\x18\x01 \x01(\x0b\x32I.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierH\x00\x12\x64\n\x10mysql_identifier\x18\x02 \x01(\x0b\x32H.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierH\x00\x12n\n\x15postgresql_identifier\x18\x03 \x01(\x0b\x32M.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierH\x00\x1a\x41\n\x16OracleObjectIdentifier\x12\x13\n\x06schema\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05table\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\x45\n\x1aPostgresqlObjectIdentifier\x12\x13\n\x06schema\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05table\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\x42\n\x15MysqlObjectIdentifier\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05table\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\x13\n\x11source_identifier\"\xfa\x03\n\x0b\x42\x61\x63kfillJob\x12<\n\x05state\x18\x01 \x01(\x0e\x32-.google.cloud.datastream.v1.BackfillJob.State\x12@\n\x07trigger\x18\x02 \x01(\x0e\x32/.google.cloud.datastream.v1.BackfillJob.Trigger\x12\x38\n\x0flast_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rlast_end_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\x06\x65rrors\x18\x05 \x03(\x0b\x32!.google.cloud.datastream.v1.ErrorB\x03\xe0\x41\x03\"\x81\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_STARTED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0b\n\x07STOPPED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\r\n\tCOMPLETED\x10\x06\x12\x0f\n\x0bUNSUPPORTED\x10\x07\"=\n\x07Trigger\x12\x17\n\x13TRIGGER_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATIC\x10\x01\x12\n\n\x06MANUAL\x10\x02\"\xdd\x01\n\x05\x45rror\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x12\n\nerror_uuid\x18\x02 \x01(\t\x12\x0f\n\x07message\x18\x03 \x01(\t\x12.\n\nerror_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x07\x64\x65tails\x18\x05 \x03(\x0b\x32..google.cloud.datastream.v1.Error.DetailsEntry\x1a.\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"O\n\x10ValidationResult\x12;\n\x0bvalidations\x18\x01 \x03(\x0b\x32&.google.cloud.datastream.v1.Validation\"\xf6\x01\n\nValidation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12;\n\x05state\x18\x02 \x01(\x0e\x32,.google.cloud.datastream.v1.Validation.State\x12>\n\x07message\x18\x03 \x03(\x0b\x32-.google.cloud.datastream.v1.ValidationMessage\x12\x0c\n\x04\x63ode\x18\x04 \x01(\t\"H\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_EXECUTED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\n\n\x06PASSED\x10\x03\"\xae\x02\n\x11ValidationMessage\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x42\n\x05level\x18\x02 \x01(\x0e\x32\x33.google.cloud.datastream.v1.ValidationMessage.Level\x12M\n\x08metadata\x18\x03 \x03(\x0b\x32;.google.cloud.datastream.v1.ValidationMessage.MetadataEntry\x12\x0c\n\x04\x63ode\x18\x04 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"6\n\x05Level\x12\x15\n\x11LEVEL_UNSPECIFIED\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x42\xa8\x02\n\x1e\x63om.google.cloud.datastream.v1B\x18\x44\x61tastreamResourcesProtoP\x01Z>cloud.google.com/go/datastream/apiv1/datastreampb;datastreampb\xaa\x02\x1aGoogle.Cloud.Datastream.V1\xca\x02\x1aGoogle\\Cloud\\Datastream\\V1\xea\x02\x1dGoogle::Cloud::Datastream::V1\xea\x41O\n\x1f\x63ompute.googleapis.com/Networks\x12,projects/{project}/global/networks/{network}b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-datastream-v1/proto_docs/google/protobuf/any.rb b/google-cloud-datastream-v1/proto_docs/google/protobuf/any.rb index 578d374b9bf9..aa8fa7123d39 100644 --- a/google-cloud-datastream-v1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-datastream-v1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-datastream-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-datastream-v1/proto_docs/google/protobuf/timestamp.rb index 3ef501e6ca93..dc016e2c9eca 100644 --- a/google-cloud-datastream-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-datastream-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-datastream-v1alpha1/google-cloud-datastream-v1alpha1.gemspec b/google-cloud-datastream-v1alpha1/google-cloud-datastream-v1alpha1.gemspec index 2400fc331929..d92e5f4902ac 100644 --- a/google-cloud-datastream-v1alpha1/google-cloud-datastream-v1alpha1.gemspec +++ b/google-cloud-datastream-v1alpha1/google-cloud-datastream-v1alpha1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-datastream-v1alpha1/lib/google/cloud/datastream/v1alpha1/datastream_pb.rb b/google-cloud-datastream-v1alpha1/lib/google/cloud/datastream/v1alpha1/datastream_pb.rb index 60e8b17f4bdd..3007d6d90424 100644 --- a/google-cloud-datastream-v1alpha1/lib/google/cloud/datastream/v1alpha1/datastream_pb.rb +++ b/google-cloud-datastream-v1alpha1/lib/google/cloud/datastream/v1alpha1/datastream_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datastream/v1alpha1/datastream.proto @@ -12,170 +13,34 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/datastream/v1alpha1/datastream.proto", :syntax => :proto3) do - add_message "google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest" do - optional :parent, :string, 1 - oneof :target do - optional :connection_profile, :message, 200, "google.cloud.datastream.v1alpha1.ConnectionProfile" - optional :connection_profile_name, :string, 201 - end - oneof :depth do - optional :recursive, :bool, 3 - optional :recursion_depth, :int32, 4 - end - oneof :data_object do - optional :oracle_rdbms, :message, 100, "google.cloud.datastream.v1alpha1.OracleRdbms" - optional :mysql_rdbms, :message, 101, "google.cloud.datastream.v1alpha1.MysqlRdbms" - end - end - add_message "google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse" do - oneof :data_object do - optional :oracle_rdbms, :message, 100, "google.cloud.datastream.v1alpha1.OracleRdbms" - optional :mysql_rdbms, :message, 101, "google.cloud.datastream.v1alpha1.MysqlRdbms" - end - end - add_message "google.cloud.datastream.v1alpha1.FetchStaticIpsRequest" do - optional :name, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.datastream.v1alpha1.FetchStaticIpsResponse" do - repeated :static_ips, :string, 1 - optional :next_page_token, :string, 2 - end - add_message "google.cloud.datastream.v1alpha1.FetchErrorsRequest" do - optional :stream, :string, 1 - end - add_message "google.cloud.datastream.v1alpha1.FetchErrorsResponse" do - repeated :errors, :message, 1, "google.cloud.datastream.v1alpha1.Error" - end - add_message "google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest" 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.datastream.v1alpha1.ListConnectionProfilesResponse" do - repeated :connection_profiles, :message, 1, "google.cloud.datastream.v1alpha1.ConnectionProfile" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.datastream.v1alpha1.GetConnectionProfileRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest" do - optional :parent, :string, 1 - optional :connection_profile_id, :string, 2 - optional :connection_profile, :message, 3, "google.cloud.datastream.v1alpha1.ConnectionProfile" - optional :request_id, :string, 4 - end - add_message "google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :connection_profile, :message, 2, "google.cloud.datastream.v1alpha1.ConnectionProfile" - optional :request_id, :string, 3 - end - add_message "google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - end - add_message "google.cloud.datastream.v1alpha1.ListStreamsRequest" 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.datastream.v1alpha1.ListStreamsResponse" do - repeated :streams, :message, 1, "google.cloud.datastream.v1alpha1.Stream" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.datastream.v1alpha1.GetStreamRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.datastream.v1alpha1.CreateStreamRequest" do - optional :parent, :string, 1 - optional :stream_id, :string, 2 - optional :stream, :message, 3, "google.cloud.datastream.v1alpha1.Stream" - optional :request_id, :string, 4 - optional :validate_only, :bool, 5 - optional :force, :bool, 6 - end - add_message "google.cloud.datastream.v1alpha1.UpdateStreamRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :stream, :message, 2, "google.cloud.datastream.v1alpha1.Stream" - optional :request_id, :string, 3 - optional :validate_only, :bool, 4 - optional :force, :bool, 5 - end - add_message "google.cloud.datastream.v1alpha1.DeleteStreamRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - end - add_message "google.cloud.datastream.v1alpha1.OperationMetadata" do - optional :create_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :target, :string, 3 - optional :verb, :string, 4 - optional :status_message, :string, 5 - optional :requested_cancellation, :bool, 6 - optional :api_version, :string, 7 - optional :validation_result, :message, 8, "google.cloud.datastream.v1alpha1.ValidationResult" - end - add_message "google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest" do - optional :parent, :string, 1 - optional :private_connection_id, :string, 2 - optional :private_connection, :message, 3, "google.cloud.datastream.v1alpha1.PrivateConnection" - optional :request_id, :string, 4 - end - add_message "google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest" 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.datastream.v1alpha1.ListPrivateConnectionsResponse" do - repeated :private_connections, :message, 1, "google.cloud.datastream.v1alpha1.PrivateConnection" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - optional :force, :bool, 3 - end - add_message "google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.datastream.v1alpha1.CreateRouteRequest" do - optional :parent, :string, 1 - optional :route_id, :string, 2 - optional :route, :message, 3, "google.cloud.datastream.v1alpha1.Route" - optional :request_id, :string, 4 - end - add_message "google.cloud.datastream.v1alpha1.ListRoutesRequest" 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.datastream.v1alpha1.ListRoutesResponse" do - repeated :routes, :message, 1, "google.cloud.datastream.v1alpha1.Route" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.datastream.v1alpha1.DeleteRouteRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - end - add_message "google.cloud.datastream.v1alpha1.GetRouteRequest" do - optional :name, :string, 1 + +descriptor_data = "\n1google/cloud/datastream/v1alpha1/datastream.proto\x12 google.cloud.datastream.v1alpha1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a;google/cloud/datastream/v1alpha1/datastream_resources.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbd\x03\n DiscoverConnectionProfileRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/ConnectionProfile\x12R\n\x12\x63onnection_profile\x18\xc8\x01 \x01(\x0b\x32\x33.google.cloud.datastream.v1alpha1.ConnectionProfileH\x00\x12\"\n\x17\x63onnection_profile_name\x18\xc9\x01 \x01(\tH\x00\x12\x13\n\trecursive\x18\x03 \x01(\x08H\x01\x12\x19\n\x0frecursion_depth\x18\x04 \x01(\x05H\x01\x12\x45\n\x0coracle_rdbms\x18\x64 \x01(\x0b\x32-.google.cloud.datastream.v1alpha1.OracleRdbmsH\x02\x12\x43\n\x0bmysql_rdbms\x18\x65 \x01(\x0b\x32,.google.cloud.datastream.v1alpha1.MysqlRdbmsH\x02\x42\x08\n\x06targetB\x07\n\x05\x64\x65pthB\r\n\x0b\x64\x61ta_object\"\xbe\x01\n!DiscoverConnectionProfileResponse\x12\x45\n\x0coracle_rdbms\x18\x64 \x01(\x0b\x32-.google.cloud.datastream.v1alpha1.OracleRdbmsH\x00\x12\x43\n\x0bmysql_rdbms\x18\x65 \x01(\x0b\x32,.google.cloud.datastream.v1alpha1.MysqlRdbmsH\x00\x42\r\n\x0b\x64\x61ta_object\"w\n\x15\x46\x65tchStaticIpsRequest\x12\x37\n\x04name\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\"E\n\x16\x46\x65tchStaticIpsResponse\x12\x12\n\nstatic_ips\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x12\x46\x65tchErrorsRequest\x12\x35\n\x06stream\x18\x01 \x01(\tB%\xfa\x41\"\n datastream.googleapis.com/Stream\"N\n\x13\x46\x65tchErrorsResponse\x12\x37\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\'.google.cloud.datastream.v1alpha1.Error\"\xad\x01\n\x1dListConnectionProfilesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/ConnectionProfile\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\"\xa0\x01\n\x1eListConnectionProfilesResponse\x12P\n\x13\x63onnection_profiles\x18\x01 \x03(\x0b\x32\x33.google.cloud.datastream.v1alpha1.ConnectionProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1bGetConnectionProfileRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/ConnectionProfile\"\xf8\x01\n\x1e\x43reateConnectionProfileRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/ConnectionProfile\x12\"\n\x15\x63onnection_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12T\n\x12\x63onnection_profile\x18\x03 \x01(\x0b\x32\x33.google.cloud.datastream.v1alpha1.ConnectionProfileB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xc5\x01\n\x1eUpdateConnectionProfileRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12T\n\x12\x63onnection_profile\x18\x02 \x01(\x0b\x32\x33.google.cloud.datastream.v1alpha1.ConnectionProfileB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"|\n\x1e\x44\x65leteConnectionProfileRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/ConnectionProfile\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n\x12ListStreamsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 datastream.googleapis.com/Stream\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\"~\n\x13ListStreamsResponse\x12\x39\n\x07streams\x18\x01 \x03(\x0b\x32(.google.cloud.datastream.v1alpha1.Stream\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"J\n\x10GetStreamRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n datastream.googleapis.com/Stream\"\xef\x01\n\x13\x43reateStreamRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 datastream.googleapis.com/Stream\x12\x16\n\tstream_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12=\n\x06stream\x18\x03 \x01(\x0b\x32(.google.cloud.datastream.v1alpha1.StreamB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\xd3\x01\n\x13UpdateStreamRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\x06stream\x18\x02 \x01(\x0b\x32(.google.cloud.datastream.v1alpha1.StreamB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"f\n\x13\x44\x65leteStreamRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n datastream.googleapis.com/Stream\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xd4\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12R\n\x11validation_result\x18\x08 \x01(\x0b\x32\x32.google.cloud.datastream.v1alpha1.ValidationResultB\x03\xe0\x41\x03\"\xf8\x01\n\x1e\x43reatePrivateConnectionRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/PrivateConnection\x12\"\n\x15private_connection_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12T\n\x12private_connection\x18\x03 \x01(\x0b\x32\x33.google.cloud.datastream.v1alpha1.PrivateConnectionB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xad\x01\n\x1dListPrivateConnectionsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+datastream.googleapis.com/PrivateConnection\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\"\xa0\x01\n\x1eListPrivateConnectionsResponse\x12P\n\x13private_connections\x18\x01 \x03(\x0b\x32\x33.google.cloud.datastream.v1alpha1.PrivateConnection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x90\x01\n\x1e\x44\x65letePrivateConnectionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/PrivateConnection\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"`\n\x1bGetPrivateConnectionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datastream.googleapis.com/PrivateConnection\"\xba\x01\n\x12\x43reateRouteRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61tastream.googleapis.com/Route\x12\x15\n\x08route_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12;\n\x05route\x18\x03 \x01(\x0b\x32\'.google.cloud.datastream.v1alpha1.RouteB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x95\x01\n\x11ListRoutesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61tastream.googleapis.com/Route\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\"{\n\x12ListRoutesResponse\x12\x37\n\x06routes\x18\x01 \x03(\x0b\x32\'.google.cloud.datastream.v1alpha1.Route\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"d\n\x12\x44\x65leteRouteRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61tastream.googleapis.com/Route\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"H\n\x0fGetRouteRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61tastream.googleapis.com/Route2\x8a\'\n\nDatastream\x12\xea\x01\n\x16ListConnectionProfiles\x12?.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest\x1a@.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse\"M\x82\xd3\xe4\x93\x02>\x12\x12*\x12\x12* 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.datastream.v1alpha1.ConnectionProfile", "google/cloud/datastream/v1alpha1/datastream_resources.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-datastream-v1alpha1/lib/google/cloud/datastream/v1alpha1/datastream_resources_pb.rb b/google-cloud-datastream-v1alpha1/lib/google/cloud/datastream/v1alpha1/datastream_resources_pb.rb index b4dca62a96d7..0134b7be910e 100644 --- a/google-cloud-datastream-v1alpha1/lib/google/cloud/datastream/v1alpha1/datastream_resources_pb.rb +++ b/google-cloud-datastream-v1alpha1/lib/google/cloud/datastream/v1alpha1/datastream_resources_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datastream/v1alpha1/datastream_resources.proto @@ -8,259 +9,33 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/datastream/v1alpha1/datastream_resources.proto", :syntax => :proto3) do - add_message "google.cloud.datastream.v1alpha1.OracleProfile" do - optional :hostname, :string, 1 - optional :port, :int32, 2 - optional :username, :string, 3 - optional :password, :string, 4 - optional :database_service, :string, 5 - map :connection_attributes, :string, :string, 6 - end - add_message "google.cloud.datastream.v1alpha1.MysqlProfile" do - optional :hostname, :string, 1 - optional :port, :int32, 2 - optional :username, :string, 3 - optional :password, :string, 4 - optional :ssl_config, :message, 5, "google.cloud.datastream.v1alpha1.MysqlSslConfig" - end - add_message "google.cloud.datastream.v1alpha1.GcsProfile" do - optional :bucket_name, :string, 1 - optional :root_path, :string, 2 - end - add_message "google.cloud.datastream.v1alpha1.NoConnectivitySettings" do - end - add_message "google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity" do - end - add_message "google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity" do - optional :hostname, :string, 1 - optional :username, :string, 2 - optional :port, :int32, 3 - oneof :authentication_method do - optional :password, :string, 100 - optional :private_key, :string, 101 - end - end - add_message "google.cloud.datastream.v1alpha1.VpcPeeringConfig" do - optional :vpc_name, :string, 1 - optional :subnet, :string, 2 - end - add_message "google.cloud.datastream.v1alpha1.PrivateConnection" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - map :labels, :string, :string, 4 - optional :display_name, :string, 5 - optional :state, :enum, 6, "google.cloud.datastream.v1alpha1.PrivateConnection.State" - optional :error, :message, 7, "google.cloud.datastream.v1alpha1.Error" - optional :vpc_peering_config, :message, 100, "google.cloud.datastream.v1alpha1.VpcPeeringConfig" - end - add_enum "google.cloud.datastream.v1alpha1.PrivateConnection.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATING, 1 - value :CREATED, 2 - value :FAILED, 3 - end - add_message "google.cloud.datastream.v1alpha1.PrivateConnectivity" do - optional :private_connection_name, :string, 1 - end - add_message "google.cloud.datastream.v1alpha1.Route" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - map :labels, :string, :string, 4 - optional :display_name, :string, 5 - optional :destination_address, :string, 6 - optional :destination_port, :int32, 7 - end - add_message "google.cloud.datastream.v1alpha1.MysqlSslConfig" do - optional :client_key, :string, 11 - optional :client_key_set, :bool, 12 - optional :client_certificate, :string, 13 - optional :client_certificate_set, :bool, 14 - optional :ca_certificate, :string, 15 - optional :ca_certificate_set, :bool, 16 - end - add_message "google.cloud.datastream.v1alpha1.ConnectionProfile" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - map :labels, :string, :string, 4 - optional :display_name, :string, 5 - oneof :profile do - optional :oracle_profile, :message, 100, "google.cloud.datastream.v1alpha1.OracleProfile" - optional :gcs_profile, :message, 101, "google.cloud.datastream.v1alpha1.GcsProfile" - optional :mysql_profile, :message, 102, "google.cloud.datastream.v1alpha1.MysqlProfile" - end - oneof :connectivity do - optional :no_connectivity, :message, 200, "google.cloud.datastream.v1alpha1.NoConnectivitySettings" - optional :static_service_ip_connectivity, :message, 201, "google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity" - optional :forward_ssh_connectivity, :message, 202, "google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity" - optional :private_connectivity, :message, 203, "google.cloud.datastream.v1alpha1.PrivateConnectivity" - end - end - add_message "google.cloud.datastream.v1alpha1.OracleColumn" do - optional :column_name, :string, 1 - optional :data_type, :string, 2 - optional :length, :int32, 3 - optional :precision, :int32, 4 - optional :scale, :int32, 5 - optional :encoding, :string, 6 - optional :primary_key, :bool, 7 - optional :nullable, :bool, 8 - optional :ordinal_position, :int32, 9 - end - add_message "google.cloud.datastream.v1alpha1.OracleTable" do - optional :table_name, :string, 1 - repeated :oracle_columns, :message, 2, "google.cloud.datastream.v1alpha1.OracleColumn" - end - add_message "google.cloud.datastream.v1alpha1.OracleSchema" do - optional :schema_name, :string, 1 - repeated :oracle_tables, :message, 2, "google.cloud.datastream.v1alpha1.OracleTable" - end - add_message "google.cloud.datastream.v1alpha1.OracleRdbms" do - repeated :oracle_schemas, :message, 1, "google.cloud.datastream.v1alpha1.OracleSchema" - end - add_message "google.cloud.datastream.v1alpha1.OracleSourceConfig" do - optional :allowlist, :message, 1, "google.cloud.datastream.v1alpha1.OracleRdbms" - optional :rejectlist, :message, 2, "google.cloud.datastream.v1alpha1.OracleRdbms" - end - add_message "google.cloud.datastream.v1alpha1.MysqlColumn" do - optional :column_name, :string, 1 - optional :data_type, :string, 2 - optional :length, :int32, 3 - optional :collation, :string, 4 - optional :primary_key, :bool, 5 - optional :nullable, :bool, 6 - optional :ordinal_position, :int32, 7 - end - add_message "google.cloud.datastream.v1alpha1.MysqlTable" do - optional :table_name, :string, 1 - repeated :mysql_columns, :message, 2, "google.cloud.datastream.v1alpha1.MysqlColumn" - end - add_message "google.cloud.datastream.v1alpha1.MysqlDatabase" do - optional :database_name, :string, 1 - repeated :mysql_tables, :message, 2, "google.cloud.datastream.v1alpha1.MysqlTable" - end - add_message "google.cloud.datastream.v1alpha1.MysqlRdbms" do - repeated :mysql_databases, :message, 1, "google.cloud.datastream.v1alpha1.MysqlDatabase" - end - add_message "google.cloud.datastream.v1alpha1.MysqlSourceConfig" do - optional :allowlist, :message, 1, "google.cloud.datastream.v1alpha1.MysqlRdbms" - optional :rejectlist, :message, 2, "google.cloud.datastream.v1alpha1.MysqlRdbms" - end - add_message "google.cloud.datastream.v1alpha1.SourceConfig" do - optional :source_connection_profile_name, :string, 1 - oneof :source_stream_config do - optional :oracle_source_config, :message, 100, "google.cloud.datastream.v1alpha1.OracleSourceConfig" - optional :mysql_source_config, :message, 101, "google.cloud.datastream.v1alpha1.MysqlSourceConfig" - end - end - add_message "google.cloud.datastream.v1alpha1.AvroFileFormat" do - end - add_message "google.cloud.datastream.v1alpha1.JsonFileFormat" do - optional :schema_file_format, :enum, 1, "google.cloud.datastream.v1alpha1.SchemaFileFormat" - optional :compression, :enum, 2, "google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression" - end - add_enum "google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression" do - value :JSON_COMPRESSION_UNSPECIFIED, 0 - value :NO_COMPRESSION, 1 - value :GZIP, 2 - end - add_message "google.cloud.datastream.v1alpha1.GcsDestinationConfig" do - optional :path, :string, 1 - optional :gcs_file_format, :enum, 2, "google.cloud.datastream.v1alpha1.GcsFileFormat" - optional :file_rotation_mb, :int32, 3 - optional :file_rotation_interval, :message, 4, "google.protobuf.Duration" - oneof :file_format do - optional :avro_file_format, :message, 100, "google.cloud.datastream.v1alpha1.AvroFileFormat" - optional :json_file_format, :message, 101, "google.cloud.datastream.v1alpha1.JsonFileFormat" - end - end - add_message "google.cloud.datastream.v1alpha1.DestinationConfig" do - optional :destination_connection_profile_name, :string, 1 - oneof :destination_stream_config do - optional :gcs_destination_config, :message, 100, "google.cloud.datastream.v1alpha1.GcsDestinationConfig" - end - end - add_message "google.cloud.datastream.v1alpha1.Stream" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - map :labels, :string, :string, 4 - optional :display_name, :string, 5 - optional :source_config, :message, 6, "google.cloud.datastream.v1alpha1.SourceConfig" - optional :destination_config, :message, 7, "google.cloud.datastream.v1alpha1.DestinationConfig" - optional :state, :enum, 8, "google.cloud.datastream.v1alpha1.Stream.State" - repeated :errors, :message, 9, "google.cloud.datastream.v1alpha1.Error" - oneof :backfill_strategy do - optional :backfill_all, :message, 101, "google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy" - optional :backfill_none, :message, 102, "google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy" - end - end - add_message "google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy" do - oneof :excluded_objects do - optional :oracle_excluded_objects, :message, 1, "google.cloud.datastream.v1alpha1.OracleRdbms" - optional :mysql_excluded_objects, :message, 2, "google.cloud.datastream.v1alpha1.MysqlRdbms" - end - end - add_message "google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy" do - end - add_enum "google.cloud.datastream.v1alpha1.Stream.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATED, 1 - value :RUNNING, 2 - value :PAUSED, 3 - value :MAINTENANCE, 4 - value :FAILED, 5 - value :FAILED_PERMANENTLY, 6 - value :STARTING, 7 - value :DRAINING, 8 - end - add_message "google.cloud.datastream.v1alpha1.Error" do - optional :reason, :string, 1 - optional :error_uuid, :string, 2 - optional :message, :string, 3 - optional :error_time, :message, 4, "google.protobuf.Timestamp" - map :details, :string, :string, 5 - end - add_message "google.cloud.datastream.v1alpha1.ValidationResult" do - repeated :validations, :message, 1, "google.cloud.datastream.v1alpha1.Validation" - end - add_message "google.cloud.datastream.v1alpha1.Validation" do - optional :description, :string, 1 - optional :status, :enum, 2, "google.cloud.datastream.v1alpha1.Validation.Status" - repeated :message, :message, 3, "google.cloud.datastream.v1alpha1.ValidationMessage" - optional :code, :string, 4 - end - add_enum "google.cloud.datastream.v1alpha1.Validation.Status" do - value :STATUS_UNSPECIFIED, 0 - value :NOT_EXECUTED, 1 - value :FAILED, 2 - value :PASSED, 3 - end - add_message "google.cloud.datastream.v1alpha1.ValidationMessage" do - optional :message, :string, 1 - optional :level, :enum, 2, "google.cloud.datastream.v1alpha1.ValidationMessage.Level" - map :metadata, :string, :string, 3 - optional :code, :string, 4 - end - add_enum "google.cloud.datastream.v1alpha1.ValidationMessage.Level" do - value :LEVEL_UNSPECIFIED, 0 - value :WARNING, 1 - value :ERROR, 2 - end - add_enum "google.cloud.datastream.v1alpha1.GcsFileFormat" do - value :GCS_FILE_FORMAT_UNSPECIFIED, 0 - value :AVRO, 1 - end - add_enum "google.cloud.datastream.v1alpha1.SchemaFileFormat" do - value :SCHEMA_FILE_FORMAT_UNSPECIFIED, 0 - value :NO_SCHEMA_FILE, 1 - value :AVRO_SCHEMA_FILE, 2 + +descriptor_data = "\n;google/cloud/datastream/v1alpha1/datastream_resources.proto\x12 google.cloud.datastream.v1alpha1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa8\x02\n\rOracleProfile\x12\x15\n\x08hostname\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x15\n\x08username\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10\x64\x61tabase_service\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12h\n\x15\x63onnection_attributes\x18\x06 \x03(\x0b\x32I.google.cloud.datastream.v1alpha1.OracleProfile.ConnectionAttributesEntry\x1a;\n\x19\x43onnectionAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xaa\x01\n\x0cMysqlProfile\x12\x15\n\x08hostname\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x15\n\x08username\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x08password\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x04\x12\x44\n\nssl_config\x18\x05 \x01(\x0b\x32\x30.google.cloud.datastream.v1alpha1.MysqlSslConfig\"9\n\nGcsProfile\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\troot_path\x18\x02 \x01(\t\"\x18\n\x16NoConnectivitySettings\"\x1d\n\x1bStaticServiceIpConnectivity\"\xa8\x01\n\x1c\x46orwardSshTunnelConnectivity\x12\x15\n\x08hostname\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12\x17\n\x08password\x18\x64 \x01(\tB\x03\xe0\x41\x04H\x00\x12\x1a\n\x0bprivate_key\x18\x65 \x01(\tB\x03\xe0\x41\x04H\x00\x42\x17\n\x15\x61uthentication_method\">\n\x10VpcPeeringConfig\x12\x15\n\x08vpc_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06subnet\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xd4\x05\n\x11PrivateConnection\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x06labels\x18\x04 \x03(\x0b\x32?.google.cloud.datastream.v1alpha1.PrivateConnection.LabelsEntry\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12M\n\x05state\x18\x06 \x01(\x0e\x32\x39.google.cloud.datastream.v1alpha1.PrivateConnection.StateB\x03\xe0\x41\x03\x12;\n\x05\x65rror\x18\x07 \x01(\x0b\x32\'.google.cloud.datastream.v1alpha1.ErrorB\x03\xe0\x41\x03\x12N\n\x12vpc_peering_config\x18\x64 \x01(\x0b\x32\x32.google.cloud.datastream.v1alpha1.VpcPeeringConfig\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07\x43REATED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:\x81\x01\xea\x41~\n+datastream.googleapis.com/PrivateConnection\x12Oprojects/{project}/locations/{location}/privateConnections/{private_connection}\";\n\x13PrivateConnectivity\x12$\n\x17private_connection_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xd9\x03\n\x05Route\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x04 \x03(\x0b\x32\x33.google.cloud.datastream.v1alpha1.Route.LabelsEntry\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x64\x65stination_address\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x64\x65stination_port\x18\x07 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\x1f\x64\x61tastream.googleapis.com/Route\x12^projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}\"\xca\x01\n\x0eMysqlSslConfig\x12\x17\n\nclient_key\x18\x0b \x01(\tB\x03\xe0\x41\x04\x12\x1b\n\x0e\x63lient_key_set\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12\x1f\n\x12\x63lient_certificate\x18\r \x01(\tB\x03\xe0\x41\x04\x12#\n\x16\x63lient_certificate_set\x18\x0e \x01(\x08\x42\x03\xe0\x41\x03\x12\x1b\n\x0e\x63\x61_certificate\x18\x0f \x01(\tB\x03\xe0\x41\x04\x12\x1f\n\x12\x63\x61_certificate_set\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\"\xa2\x08\n\x11\x43onnectionProfile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x06labels\x18\x04 \x03(\x0b\x32?.google.cloud.datastream.v1alpha1.ConnectionProfile.LabelsEntry\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12I\n\x0eoracle_profile\x18\x64 \x01(\x0b\x32/.google.cloud.datastream.v1alpha1.OracleProfileH\x00\x12\x43\n\x0bgcs_profile\x18\x65 \x01(\x0b\x32,.google.cloud.datastream.v1alpha1.GcsProfileH\x00\x12G\n\rmysql_profile\x18\x66 \x01(\x0b\x32..google.cloud.datastream.v1alpha1.MysqlProfileH\x00\x12T\n\x0fno_connectivity\x18\xc8\x01 \x01(\x0b\x32\x38.google.cloud.datastream.v1alpha1.NoConnectivitySettingsH\x01\x12h\n\x1estatic_service_ip_connectivity\x18\xc9\x01 \x01(\x0b\x32=.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityH\x01\x12\x63\n\x18\x66orward_ssh_connectivity\x18\xca\x01 \x01(\x0b\x32>.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityH\x01\x12V\n\x14private_connectivity\x18\xcb\x01 \x01(\x0b\x32\x35.google.cloud.datastream.v1alpha1.PrivateConnectivityH\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x81\x01\xea\x41~\n+datastream.googleapis.com/ConnectionProfile\x12Oprojects/{project}/locations/{location}/connectionProfiles/{connection_profile}B\t\n\x07profileB\x0e\n\x0c\x63onnectivity\"\xbb\x01\n\x0cOracleColumn\x12\x13\n\x0b\x63olumn_name\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\tprecision\x18\x04 \x01(\x05\x12\r\n\x05scale\x18\x05 \x01(\x05\x12\x10\n\x08\x65ncoding\x18\x06 \x01(\t\x12\x13\n\x0bprimary_key\x18\x07 \x01(\x08\x12\x10\n\x08nullable\x18\x08 \x01(\x08\x12\x18\n\x10ordinal_position\x18\t \x01(\x05\"i\n\x0bOracleTable\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x46\n\x0eoracle_columns\x18\x02 \x03(\x0b\x32..google.cloud.datastream.v1alpha1.OracleColumn\"i\n\x0cOracleSchema\x12\x13\n\x0bschema_name\x18\x01 \x01(\t\x12\x44\n\roracle_tables\x18\x02 \x03(\x0b\x32-.google.cloud.datastream.v1alpha1.OracleTable\"U\n\x0bOracleRdbms\x12\x46\n\x0eoracle_schemas\x18\x01 \x03(\x0b\x32..google.cloud.datastream.v1alpha1.OracleSchema\"\x99\x01\n\x12OracleSourceConfig\x12@\n\tallowlist\x18\x01 \x01(\x0b\x32-.google.cloud.datastream.v1alpha1.OracleRdbms\x12\x41\n\nrejectlist\x18\x02 \x01(\x0b\x32-.google.cloud.datastream.v1alpha1.OracleRdbms\"\x99\x01\n\x0bMysqlColumn\x12\x13\n\x0b\x63olumn_name\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\tcollation\x18\x04 \x01(\t\x12\x13\n\x0bprimary_key\x18\x05 \x01(\x08\x12\x10\n\x08nullable\x18\x06 \x01(\x08\x12\x18\n\x10ordinal_position\x18\x07 \x01(\x05\"f\n\nMysqlTable\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x44\n\rmysql_columns\x18\x02 \x03(\x0b\x32-.google.cloud.datastream.v1alpha1.MysqlColumn\"j\n\rMysqlDatabase\x12\x15\n\rdatabase_name\x18\x01 \x01(\t\x12\x42\n\x0cmysql_tables\x18\x02 \x03(\x0b\x32,.google.cloud.datastream.v1alpha1.MysqlTable\"V\n\nMysqlRdbms\x12H\n\x0fmysql_databases\x18\x01 \x03(\x0b\x32/.google.cloud.datastream.v1alpha1.MysqlDatabase\"\x96\x01\n\x11MysqlSourceConfig\x12?\n\tallowlist\x18\x01 \x01(\x0b\x32,.google.cloud.datastream.v1alpha1.MysqlRdbms\x12@\n\nrejectlist\x18\x02 \x01(\x0b\x32,.google.cloud.datastream.v1alpha1.MysqlRdbms\"\xfd\x01\n\x0cSourceConfig\x12+\n\x1esource_connection_profile_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\x14oracle_source_config\x18\x64 \x01(\x0b\x32\x34.google.cloud.datastream.v1alpha1.OracleSourceConfigH\x00\x12R\n\x13mysql_source_config\x18\x65 \x01(\x0b\x32\x33.google.cloud.datastream.v1alpha1.MysqlSourceConfigH\x00\x42\x16\n\x14source_stream_config\"\x10\n\x0e\x41vroFileFormat\"\x8a\x02\n\x0eJsonFileFormat\x12N\n\x12schema_file_format\x18\x01 \x01(\x0e\x32\x32.google.cloud.datastream.v1alpha1.SchemaFileFormat\x12U\n\x0b\x63ompression\x18\x02 \x01(\x0e\x32@.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression\"Q\n\x0fJsonCompression\x12 \n\x1cJSON_COMPRESSION_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_COMPRESSION\x10\x01\x12\x08\n\x04GZIP\x10\x02\"\xf2\x02\n\x14GcsDestinationConfig\x12\x0c\n\x04path\x18\x01 \x01(\t\x12L\n\x0fgcs_file_format\x18\x02 \x01(\x0e\x32/.google.cloud.datastream.v1alpha1.GcsFileFormatB\x02\x18\x01\x12\x18\n\x10\x66ile_rotation_mb\x18\x03 \x01(\x05\x12\x39\n\x16\x66ile_rotation_interval\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12L\n\x10\x61vro_file_format\x18\x64 \x01(\x0b\x32\x30.google.cloud.datastream.v1alpha1.AvroFileFormatH\x00\x12L\n\x10json_file_format\x18\x65 \x01(\x0b\x32\x30.google.cloud.datastream.v1alpha1.JsonFileFormatH\x00\x42\r\n\x0b\x66ile_format\"\xbc\x01\n\x11\x44\x65stinationConfig\x12\x30\n#destination_connection_profile_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\x16gcs_destination_config\x18\x64 \x01(\x0b\x32\x36.google.cloud.datastream.v1alpha1.GcsDestinationConfigH\x00\x42\x1b\n\x19\x64\x65stination_stream_config\"\xd8\t\n\x06Stream\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.datastream.v1alpha1.Stream.LabelsEntry\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12J\n\rsource_config\x18\x06 \x01(\x0b\x32..google.cloud.datastream.v1alpha1.SourceConfigB\x03\xe0\x41\x02\x12T\n\x12\x64\x65stination_config\x18\x07 \x01(\x0b\x32\x33.google.cloud.datastream.v1alpha1.DestinationConfigB\x03\xe0\x41\x02\x12=\n\x05state\x18\x08 \x01(\x0e\x32..google.cloud.datastream.v1alpha1.Stream.State\x12T\n\x0c\x62\x61\x63kfill_all\x18\x65 \x01(\x0b\x32<.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyH\x00\x12V\n\rbackfill_none\x18\x66 \x01(\x0b\x32=.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyH\x00\x12<\n\x06\x65rrors\x18\t \x03(\x0b\x32\'.google.cloud.datastream.v1alpha1.ErrorB\x03\xe0\x41\x03\x1a\xcb\x01\n\x13\x42\x61\x63kfillAllStrategy\x12P\n\x17oracle_excluded_objects\x18\x01 \x01(\x0b\x32-.google.cloud.datastream.v1alpha1.OracleRdbmsH\x00\x12N\n\x16mysql_excluded_objects\x18\x02 \x01(\x0b\x32,.google.cloud.datastream.v1alpha1.MysqlRdbmsH\x00\x42\x12\n\x10\x65xcluded_objects\x1a\x16\n\x14\x42\x61\x63kfillNoneStrategy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x95\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0f\n\x0bMAINTENANCE\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x16\n\x12\x46\x41ILED_PERMANENTLY\x10\x06\x12\x0c\n\x08STARTING\x10\x07\x12\x0c\n\x08\x44RAINING\x10\x08:_\xea\x41\\\n datastream.googleapis.com/Stream\x12\x38projects/{project}/locations/{location}/streams/{stream}B\x13\n\x11\x62\x61\x63kfill_strategy\"\xe3\x01\n\x05\x45rror\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x12\n\nerror_uuid\x18\x02 \x01(\t\x12\x0f\n\x07message\x18\x03 \x01(\t\x12.\n\nerror_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x07\x64\x65tails\x18\x05 \x03(\x0b\x32\x34.google.cloud.datastream.v1alpha1.Error.DetailsEntry\x1a.\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"U\n\x10ValidationResult\x12\x41\n\x0bvalidations\x18\x01 \x03(\x0b\x32,.google.cloud.datastream.v1alpha1.Validation\"\x86\x02\n\nValidation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x43\n\x06status\x18\x02 \x01(\x0e\x32\x33.google.cloud.datastream.v1alpha1.Validation.Status\x12\x44\n\x07message\x18\x03 \x03(\x0b\x32\x33.google.cloud.datastream.v1alpha1.ValidationMessage\x12\x0c\n\x04\x63ode\x18\x04 \x01(\t\"J\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_EXECUTED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\n\n\x06PASSED\x10\x03\"\xba\x02\n\x11ValidationMessage\x12\x0f\n\x07message\x18\x01 \x01(\t\x12H\n\x05level\x18\x02 \x01(\x0e\x32\x39.google.cloud.datastream.v1alpha1.ValidationMessage.Level\x12S\n\x08metadata\x18\x03 \x03(\x0b\x32\x41.google.cloud.datastream.v1alpha1.ValidationMessage.MetadataEntry\x12\x0c\n\x04\x63ode\x18\x04 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"6\n\x05Level\x12\x15\n\x11LEVEL_UNSPECIFIED\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02*>\n\rGcsFileFormat\x12\x1f\n\x1bGCS_FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x41VRO\x10\x01\x1a\x02\x18\x01*`\n\x10SchemaFileFormat\x12\"\n\x1eSCHEMA_FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_SCHEMA_FILE\x10\x01\x12\x14\n\x10\x41VRO_SCHEMA_FILE\x10\x02\x42\xf9\x01\n$com.google.cloud.datastream.v1alpha1B\x1d\x43loudDatastreamResourcesProtoP\x01ZDcloud.google.com/go/datastream/apiv1alpha1/datastreampb;datastreampb\xaa\x02 Google.Cloud.Datastream.V1Alpha1\xca\x02 Google\\Cloud\\Datastream\\V1alpha1\xea\x02#Google::Cloud::Datastream::V1alpha1b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-datastream-v1alpha1/proto_docs/google/protobuf/any.rb b/google-cloud-datastream-v1alpha1/proto_docs/google/protobuf/any.rb index 39618af2c75c..9f9367c74a8d 100644 --- a/google-cloud-datastream-v1alpha1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-datastream-v1alpha1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-datastream-v1alpha1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-datastream-v1alpha1/proto_docs/google/protobuf/timestamp.rb index fb9d03c73c8d..626cd5e0bf3a 100644 --- a/google-cloud-datastream-v1alpha1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-datastream-v1alpha1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-debugger-v2/google-cloud-debugger-v2.gemspec b/google-cloud-debugger-v2/google-cloud-debugger-v2.gemspec index 14bbd6329a21..26b60b2f1a2e 100644 --- a/google-cloud-debugger-v2/google-cloud-debugger-v2.gemspec +++ b/google-cloud-debugger-v2/google-cloud-debugger-v2.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/controller_pb.rb b/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/controller_pb.rb index 16e1fae075c8..5a85f3c22a45 100644 --- a/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/controller_pb.rb +++ b/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/controller_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/clouddebugger/v2/controller.proto @@ -8,31 +9,32 @@ require 'google/api/field_behavior_pb' require 'google/devtools/clouddebugger/v2/data_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/devtools/clouddebugger/v2/controller.proto", :syntax => :proto3) do - add_message "google.devtools.clouddebugger.v2.RegisterDebuggeeRequest" do - optional :debuggee, :message, 1, "google.devtools.clouddebugger.v2.Debuggee" - end - add_message "google.devtools.clouddebugger.v2.RegisterDebuggeeResponse" do - optional :debuggee, :message, 1, "google.devtools.clouddebugger.v2.Debuggee" - end - add_message "google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest" do - optional :debuggee_id, :string, 1 - optional :wait_token, :string, 2 - optional :success_on_timeout, :bool, 3 - end - add_message "google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse" do - repeated :breakpoints, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint" - optional :next_wait_token, :string, 2 - optional :wait_expired, :bool, 3 - end - add_message "google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest" do - optional :debuggee_id, :string, 1 - optional :breakpoint, :message, 2, "google.devtools.clouddebugger.v2.Breakpoint" - end - add_message "google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse" do + +descriptor_data = "\n1google/devtools/clouddebugger/v2/controller.proto\x12 google.devtools.clouddebugger.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a+google/devtools/clouddebugger/v2/data.proto\"\\\n\x17RegisterDebuggeeRequest\x12\x41\n\x08\x64\x65\x62uggee\x18\x01 \x01(\x0b\x32*.google.devtools.clouddebugger.v2.DebuggeeB\x03\xe0\x41\x02\"X\n\x18RegisterDebuggeeResponse\x12<\n\x08\x64\x65\x62uggee\x18\x01 \x01(\x0b\x32*.google.devtools.clouddebugger.v2.Debuggee\"h\n\x1cListActiveBreakpointsRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nwait_token\x18\x02 \x01(\t\x12\x1a\n\x12success_on_timeout\x18\x03 \x01(\x08\"\x91\x01\n\x1dListActiveBreakpointsResponse\x12\x41\n\x0b\x62reakpoints\x18\x01 \x03(\x0b\x32,.google.devtools.clouddebugger.v2.Breakpoint\x12\x17\n\x0fnext_wait_token\x18\x02 \x01(\t\x12\x14\n\x0cwait_expired\x18\x03 \x01(\x08\"\x80\x01\n\x1dUpdateActiveBreakpointRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nbreakpoint\x18\x02 \x01(\x0b\x32,.google.devtools.clouddebugger.v2.BreakpointB\x03\xe0\x41\x02\" \n\x1eUpdateActiveBreakpointResponse2\xbe\x06\n\x0b\x43ontroller2\x12\xc2\x01\n\x10RegisterDebuggee\x12\x39.google.devtools.clouddebugger.v2.RegisterDebuggeeRequest\x1a:.google.devtools.clouddebugger.v2.RegisterDebuggeeResponse\"7\x82\xd3\xe4\x93\x02&\"!/v2/controller/debuggees/register:\x01*\xda\x41\x08\x64\x65\x62uggee\x12\xe2\x01\n\x15ListActiveBreakpoints\x12>.google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest\x1a?.google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse\"H\x82\xd3\xe4\x93\x02\x34\x12\x32/v2/controller/debuggees/{debuggee_id}/breakpoints\xda\x41\x0b\x64\x65\x62uggee_id\x12\x83\x02\n\x16UpdateActiveBreakpoint\x12?.google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest\x1a@.google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse\"f\x82\xd3\xe4\x93\x02G\x1a\x42/v2/controller/debuggees/{debuggee_id}/breakpoints/{breakpoint.id}:\x01*\xda\x41\x16\x64\x65\x62uggee_id,breakpoint\x1a\x7f\xca\x41\x1c\x63louddebugger.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud_debuggerB\xc7\x01\n$com.google.devtools.clouddebugger.v2B\x0f\x43ontrollerProtoP\x01Z8cloud.google.com/go/debugger/apiv2/debuggerpb;debuggerpb\xaa\x02\x18Google.Cloud.Debugger.V2\xca\x02\x18Google\\Cloud\\Debugger\\V2\xea\x02\x1bGoogle::Cloud::Debugger::V2b\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.devtools.clouddebugger.v2.Debuggee", "google/devtools/clouddebugger/v2/data.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 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 diff --git a/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/data_pb.rb b/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/data_pb.rb index c19f70aad5f2..525d9cc522cb 100644 --- a/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/data_pb.rb +++ b/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/data_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/clouddebugger/v2/data.proto @@ -7,86 +8,34 @@ require 'google/protobuf/timestamp_pb' require 'google/protobuf/wrappers_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/devtools/clouddebugger/v2/data.proto", :syntax => :proto3) do - add_message "google.devtools.clouddebugger.v2.FormatMessage" do - optional :format, :string, 1 - repeated :parameters, :string, 2 - end - add_message "google.devtools.clouddebugger.v2.StatusMessage" do - optional :is_error, :bool, 1 - optional :refers_to, :enum, 2, "google.devtools.clouddebugger.v2.StatusMessage.Reference" - optional :description, :message, 3, "google.devtools.clouddebugger.v2.FormatMessage" - end - add_enum "google.devtools.clouddebugger.v2.StatusMessage.Reference" do - value :UNSPECIFIED, 0 - value :BREAKPOINT_SOURCE_LOCATION, 3 - value :BREAKPOINT_CONDITION, 4 - value :BREAKPOINT_EXPRESSION, 7 - value :BREAKPOINT_AGE, 8 - value :VARIABLE_NAME, 5 - value :VARIABLE_VALUE, 6 - end - add_message "google.devtools.clouddebugger.v2.SourceLocation" do - optional :path, :string, 1 - optional :line, :int32, 2 - optional :column, :int32, 3 - end - add_message "google.devtools.clouddebugger.v2.Variable" do - optional :name, :string, 1 - optional :value, :string, 2 - optional :type, :string, 6 - repeated :members, :message, 3, "google.devtools.clouddebugger.v2.Variable" - optional :var_table_index, :message, 4, "google.protobuf.Int32Value" - optional :status, :message, 5, "google.devtools.clouddebugger.v2.StatusMessage" - end - add_message "google.devtools.clouddebugger.v2.StackFrame" do - optional :function, :string, 1 - optional :location, :message, 2, "google.devtools.clouddebugger.v2.SourceLocation" - repeated :arguments, :message, 3, "google.devtools.clouddebugger.v2.Variable" - repeated :locals, :message, 4, "google.devtools.clouddebugger.v2.Variable" - end - add_message "google.devtools.clouddebugger.v2.Breakpoint" do - optional :id, :string, 1 - optional :action, :enum, 13, "google.devtools.clouddebugger.v2.Breakpoint.Action" - optional :location, :message, 2, "google.devtools.clouddebugger.v2.SourceLocation" - optional :condition, :string, 3 - repeated :expressions, :string, 4 - optional :log_message_format, :string, 14 - optional :log_level, :enum, 15, "google.devtools.clouddebugger.v2.Breakpoint.LogLevel" - optional :is_final_state, :bool, 5 - optional :create_time, :message, 11, "google.protobuf.Timestamp" - optional :final_time, :message, 12, "google.protobuf.Timestamp" - optional :user_email, :string, 16 - optional :status, :message, 10, "google.devtools.clouddebugger.v2.StatusMessage" - repeated :stack_frames, :message, 7, "google.devtools.clouddebugger.v2.StackFrame" - repeated :evaluated_expressions, :message, 8, "google.devtools.clouddebugger.v2.Variable" - repeated :variable_table, :message, 9, "google.devtools.clouddebugger.v2.Variable" - map :labels, :string, :string, 17 - end - add_enum "google.devtools.clouddebugger.v2.Breakpoint.Action" do - value :CAPTURE, 0 - value :LOG, 1 - end - add_enum "google.devtools.clouddebugger.v2.Breakpoint.LogLevel" do - value :INFO, 0 - value :WARNING, 1 - value :ERROR, 2 - end - add_message "google.devtools.clouddebugger.v2.Debuggee" do - optional :id, :string, 1 - optional :project, :string, 2 - optional :uniquifier, :string, 3 - optional :description, :string, 4 - optional :is_inactive, :bool, 5 - optional :agent_version, :string, 6 - optional :is_disabled, :bool, 7 - optional :status, :message, 8, "google.devtools.clouddebugger.v2.StatusMessage" - repeated :source_contexts, :message, 9, "google.devtools.source.v1.SourceContext" - repeated :ext_source_contexts, :message, 13, "google.devtools.source.v1.ExtendedSourceContext" - map :labels, :string, :string, 11 + +descriptor_data = "\n+google/devtools/clouddebugger/v2/data.proto\x12 google.devtools.clouddebugger.v2\x1a.google/devtools/source/v1/source_context.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"3\n\rFormatMessage\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x12\n\nparameters\x18\x02 \x03(\t\"\xe4\x02\n\rStatusMessage\x12\x10\n\x08is_error\x18\x01 \x01(\x08\x12L\n\trefers_to\x18\x02 \x01(\x0e\x32\x39.google.devtools.clouddebugger.v2.StatusMessage.Reference\x12\x44\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32/.google.devtools.clouddebugger.v2.FormatMessage\"\xac\x01\n\tReference\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x1e\n\x1a\x42REAKPOINT_SOURCE_LOCATION\x10\x03\x12\x18\n\x14\x42REAKPOINT_CONDITION\x10\x04\x12\x19\n\x15\x42REAKPOINT_EXPRESSION\x10\x07\x12\x12\n\x0e\x42REAKPOINT_AGE\x10\x08\x12\x11\n\rVARIABLE_NAME\x10\x05\x12\x12\n\x0eVARIABLE_VALUE\x10\x06\"<\n\x0eSourceLocation\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0c\n\x04line\x18\x02 \x01(\x05\x12\x0e\n\x06\x63olumn\x18\x03 \x01(\x05\"\xe9\x01\n\x08Variable\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x06 \x01(\t\x12;\n\x07members\x18\x03 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\x12\x34\n\x0fvar_table_index\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12?\n\x06status\x18\x05 \x01(\x0b\x32/.google.devtools.clouddebugger.v2.StatusMessage\"\xdd\x01\n\nStackFrame\x12\x10\n\x08\x66unction\x18\x01 \x01(\t\x12\x42\n\x08location\x18\x02 \x01(\x0b\x32\x30.google.devtools.clouddebugger.v2.SourceLocation\x12=\n\targuments\x18\x03 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\x12:\n\x06locals\x18\x04 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\"\x97\x07\n\nBreakpoint\x12\n\n\x02id\x18\x01 \x01(\t\x12\x43\n\x06\x61\x63tion\x18\r \x01(\x0e\x32\x33.google.devtools.clouddebugger.v2.Breakpoint.Action\x12\x42\n\x08location\x18\x02 \x01(\x0b\x32\x30.google.devtools.clouddebugger.v2.SourceLocation\x12\x11\n\tcondition\x18\x03 \x01(\t\x12\x13\n\x0b\x65xpressions\x18\x04 \x03(\t\x12\x1a\n\x12log_message_format\x18\x0e \x01(\t\x12H\n\tlog_level\x18\x0f \x01(\x0e\x32\x35.google.devtools.clouddebugger.v2.Breakpoint.LogLevel\x12\x16\n\x0eis_final_state\x18\x05 \x01(\x08\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nfinal_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nuser_email\x18\x10 \x01(\t\x12?\n\x06status\x18\n \x01(\x0b\x32/.google.devtools.clouddebugger.v2.StatusMessage\x12\x42\n\x0cstack_frames\x18\x07 \x03(\x0b\x32,.google.devtools.clouddebugger.v2.StackFrame\x12I\n\x15\x65valuated_expressions\x18\x08 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\x12\x42\n\x0evariable_table\x18\t \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\x12H\n\x06labels\x18\x11 \x03(\x0b\x32\x38.google.devtools.clouddebugger.v2.Breakpoint.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1e\n\x06\x41\x63tion\x12\x0b\n\x07\x43\x41PTURE\x10\x00\x12\x07\n\x03LOG\x10\x01\",\n\x08LogLevel\x12\x08\n\x04INFO\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"\xdf\x03\n\x08\x44\x65\x62uggee\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x12\n\nuniquifier\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x13\n\x0bis_inactive\x18\x05 \x01(\x08\x12\x15\n\ragent_version\x18\x06 \x01(\t\x12\x13\n\x0bis_disabled\x18\x07 \x01(\x08\x12?\n\x06status\x18\x08 \x01(\x0b\x32/.google.devtools.clouddebugger.v2.StatusMessage\x12\x41\n\x0fsource_contexts\x18\t \x03(\x0b\x32(.google.devtools.source.v1.SourceContext\x12Q\n\x13\x65xt_source_contexts\x18\r \x03(\x0b\x32\x30.google.devtools.source.v1.ExtendedSourceContextB\x02\x18\x01\x12\x46\n\x06labels\x18\x0b \x03(\x0b\x32\x36.google.devtools.clouddebugger.v2.Debuggee.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\xc4\x01\n$com.google.devtools.clouddebugger.v2B\tDataProtoP\x01Z8cloud.google.com/go/debugger/apiv2/debuggerpb;debuggerpb\xf8\x01\x01\xaa\x02\x18Google.Cloud.Debugger.V2\xca\x02\x18Google\\Cloud\\Debugger\\V2\xea\x02\x1bGoogle::Cloud::Debugger::V2b\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.protobuf.Int32Value", "google/protobuf/wrappers.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.devtools.source.v1.SourceContext", "google/devtools/source/v1/source_context.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 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 diff --git a/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/debugger_pb.rb b/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/debugger_pb.rb index aac7647c5e82..954a4d985ece 100644 --- a/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/debugger_pb.rb +++ b/google-cloud-debugger-v2/lib/google/devtools/clouddebugger/v2/debugger_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/clouddebugger/v2/debugger.proto @@ -9,54 +10,32 @@ require 'google/protobuf/empty_pb' require 'google/api/annotations_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/devtools/clouddebugger/v2/debugger.proto", :syntax => :proto3) do - add_message "google.devtools.clouddebugger.v2.SetBreakpointRequest" do - optional :debuggee_id, :string, 1 - optional :breakpoint, :message, 2, "google.devtools.clouddebugger.v2.Breakpoint" - optional :client_version, :string, 4 - end - add_message "google.devtools.clouddebugger.v2.SetBreakpointResponse" do - optional :breakpoint, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint" - end - add_message "google.devtools.clouddebugger.v2.GetBreakpointRequest" do - optional :debuggee_id, :string, 1 - optional :breakpoint_id, :string, 2 - optional :client_version, :string, 4 - end - add_message "google.devtools.clouddebugger.v2.GetBreakpointResponse" do - optional :breakpoint, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint" - end - add_message "google.devtools.clouddebugger.v2.DeleteBreakpointRequest" do - optional :debuggee_id, :string, 1 - optional :breakpoint_id, :string, 2 - optional :client_version, :string, 3 - end - add_message "google.devtools.clouddebugger.v2.ListBreakpointsRequest" do - optional :debuggee_id, :string, 1 - optional :include_all_users, :bool, 2 - optional :include_inactive, :bool, 3 - optional :action, :message, 4, "google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue" - optional :strip_results, :bool, 5 - optional :wait_token, :string, 6 - optional :client_version, :string, 8 - end - add_message "google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue" do - optional :value, :enum, 1, "google.devtools.clouddebugger.v2.Breakpoint.Action" - end - add_message "google.devtools.clouddebugger.v2.ListBreakpointsResponse" do - repeated :breakpoints, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint" - optional :next_wait_token, :string, 2 - end - add_message "google.devtools.clouddebugger.v2.ListDebuggeesRequest" do - optional :project, :string, 2 - optional :include_inactive, :bool, 3 - optional :client_version, :string, 4 - end - add_message "google.devtools.clouddebugger.v2.ListDebuggeesResponse" do - repeated :debuggees, :message, 1, "google.devtools.clouddebugger.v2.Debuggee" + +descriptor_data = "\n/google/devtools/clouddebugger/v2/debugger.proto\x12 google.devtools.clouddebugger.v2\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a+google/devtools/clouddebugger/v2/data.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\"\x94\x01\n\x14SetBreakpointRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nbreakpoint\x18\x02 \x01(\x0b\x32,.google.devtools.clouddebugger.v2.BreakpointB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63lient_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\"Y\n\x15SetBreakpointResponse\x12@\n\nbreakpoint\x18\x01 \x01(\x0b\x32,.google.devtools.clouddebugger.v2.Breakpoint\"i\n\x14GetBreakpointRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rbreakpoint_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63lient_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\"Y\n\x15GetBreakpointResponse\x12@\n\nbreakpoint\x18\x01 \x01(\x0b\x32,.google.devtools.clouddebugger.v2.Breakpoint\"l\n\x17\x44\x65leteBreakpointRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rbreakpoint_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63lient_version\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xf0\x02\n\x16ListBreakpointsRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x11include_all_users\x18\x02 \x01(\x08\x12\x18\n\x10include_inactive\x18\x03 \x01(\x08\x12^\n\x06\x61\x63tion\x18\x04 \x01(\x0b\x32N.google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue\x12\x19\n\rstrip_results\x18\x05 \x01(\x08\x42\x02\x18\x01\x12\x12\n\nwait_token\x18\x06 \x01(\t\x12\x1b\n\x0e\x63lient_version\x18\x08 \x01(\tB\x03\xe0\x41\x02\x1a[\n\x15\x42reakpointActionValue\x12\x42\n\x05value\x18\x01 \x01(\x0e\x32\x33.google.devtools.clouddebugger.v2.Breakpoint.Action\"u\n\x17ListBreakpointsResponse\x12\x41\n\x0b\x62reakpoints\x18\x01 \x03(\x0b\x32,.google.devtools.clouddebugger.v2.Breakpoint\x12\x17\n\x0fnext_wait_token\x18\x02 \x01(\t\"c\n\x14ListDebuggeesRequest\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10include_inactive\x18\x03 \x01(\x08\x12\x1b\n\x0e\x63lient_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\"V\n\x15ListDebuggeesResponse\x12=\n\tdebuggees\x18\x01 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Debuggee2\xf2\t\n\tDebugger2\x12\xf2\x01\n\rSetBreakpoint\x12\x36.google.devtools.clouddebugger.v2.SetBreakpointRequest\x1a\x37.google.devtools.clouddebugger.v2.SetBreakpointResponse\"p\x82\xd3\xe4\x93\x02\x42\"4/v2/debugger/debuggees/{debuggee_id}/breakpoints/set:\nbreakpoint\xda\x41%debuggee_id,breakpoint,client_version\x12\xf5\x01\n\rGetBreakpoint\x12\x36.google.devtools.clouddebugger.v2.GetBreakpointRequest\x1a\x37.google.devtools.clouddebugger.v2.GetBreakpointResponse\"s\x82\xd3\xe4\x93\x02\x42\x12@/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}\xda\x41(debuggee_id,breakpoint_id,client_version\x12\xda\x01\n\x10\x44\x65leteBreakpoint\x12\x39.google.devtools.clouddebugger.v2.DeleteBreakpointRequest\x1a\x16.google.protobuf.Empty\"s\x82\xd3\xe4\x93\x02\x42*@/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}\xda\x41(debuggee_id,breakpoint_id,client_version\x12\xdd\x01\n\x0fListBreakpoints\x12\x38.google.devtools.clouddebugger.v2.ListBreakpointsRequest\x1a\x39.google.devtools.clouddebugger.v2.ListBreakpointsResponse\"U\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/debugger/debuggees/{debuggee_id}/breakpoints\xda\x41\x1a\x64\x65\x62uggee_id,client_version\x12\xb9\x01\n\rListDebuggees\x12\x36.google.devtools.clouddebugger.v2.ListDebuggeesRequest\x1a\x37.google.devtools.clouddebugger.v2.ListDebuggeesResponse\"7\x82\xd3\xe4\x93\x02\x18\x12\x16/v2/debugger/debuggees\xda\x41\x16project,client_version\x1a\x7f\xca\x41\x1c\x63louddebugger.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud_debuggerB\xc5\x01\n$com.google.devtools.clouddebugger.v2B\rDebuggerProtoP\x01Z8cloud.google.com/go/debugger/apiv2/debuggerpb;debuggerpb\xaa\x02\x18Google.Cloud.Debugger.V2\xca\x02\x18Google\\Cloud\\Debugger\\V2\xea\x02\x1bGoogle::Cloud::Debugger::V2b\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.devtools.clouddebugger.v2.Breakpoint", "google/devtools/clouddebugger/v2/data.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 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 diff --git a/google-cloud-debugger-v2/lib/google/devtools/source/v1/source_context_pb.rb b/google-cloud-debugger-v2/lib/google/devtools/source/v1/source_context_pb.rb index 0a77bec7953c..bc040103b20a 100644 --- a/google-cloud-debugger-v2/lib/google/devtools/source/v1/source_context_pb.rb +++ b/google-cloud-debugger-v2/lib/google/devtools/source/v1/source_context_pb.rb @@ -1,72 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/source/v1/source_context.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/devtools/source/v1/source_context.proto", :syntax => :proto3) do - add_message "google.devtools.source.v1.SourceContext" do - oneof :context do - optional :cloud_repo, :message, 1, "google.devtools.source.v1.CloudRepoSourceContext" - optional :cloud_workspace, :message, 2, "google.devtools.source.v1.CloudWorkspaceSourceContext" - optional :gerrit, :message, 3, "google.devtools.source.v1.GerritSourceContext" - optional :git, :message, 6, "google.devtools.source.v1.GitSourceContext" - end - end - add_message "google.devtools.source.v1.ExtendedSourceContext" do - optional :context, :message, 1, "google.devtools.source.v1.SourceContext" - map :labels, :string, :string, 2 - end - add_message "google.devtools.source.v1.AliasContext" do - optional :kind, :enum, 1, "google.devtools.source.v1.AliasContext.Kind" - optional :name, :string, 2 - end - add_enum "google.devtools.source.v1.AliasContext.Kind" do - value :ANY, 0 - value :FIXED, 1 - value :MOVABLE, 2 - value :OTHER, 4 - end - add_message "google.devtools.source.v1.CloudRepoSourceContext" do - optional :repo_id, :message, 1, "google.devtools.source.v1.RepoId" - oneof :revision do - optional :revision_id, :string, 2 - optional :alias_name, :string, 3 - optional :alias_context, :message, 4, "google.devtools.source.v1.AliasContext" - end - end - add_message "google.devtools.source.v1.CloudWorkspaceSourceContext" do - optional :workspace_id, :message, 1, "google.devtools.source.v1.CloudWorkspaceId" - optional :snapshot_id, :string, 2 - end - add_message "google.devtools.source.v1.GerritSourceContext" do - optional :host_uri, :string, 1 - optional :gerrit_project, :string, 2 - oneof :revision do - optional :revision_id, :string, 3 - optional :alias_name, :string, 4 - optional :alias_context, :message, 5, "google.devtools.source.v1.AliasContext" - end - end - add_message "google.devtools.source.v1.GitSourceContext" do - optional :url, :string, 1 - optional :revision_id, :string, 2 - end - add_message "google.devtools.source.v1.RepoId" do - oneof :id do - optional :project_repo_id, :message, 1, "google.devtools.source.v1.ProjectRepoId" - optional :uid, :string, 2 - end - end - add_message "google.devtools.source.v1.ProjectRepoId" do - optional :project_id, :string, 1 - optional :repo_name, :string, 2 - end - add_message "google.devtools.source.v1.CloudWorkspaceId" do - optional :repo_id, :message, 1, "google.devtools.source.v1.RepoId" - optional :name, :string, 2 + +descriptor_data = "\n.google/devtools/source/v1/source_context.proto\x12\x19google.devtools.source.v1\"\xb4\x02\n\rSourceContext\x12G\n\ncloud_repo\x18\x01 \x01(\x0b\x32\x31.google.devtools.source.v1.CloudRepoSourceContextH\x00\x12Q\n\x0f\x63loud_workspace\x18\x02 \x01(\x0b\x32\x36.google.devtools.source.v1.CloudWorkspaceSourceContextH\x00\x12@\n\x06gerrit\x18\x03 \x01(\x0b\x32..google.devtools.source.v1.GerritSourceContextH\x00\x12:\n\x03git\x18\x06 \x01(\x0b\x32+.google.devtools.source.v1.GitSourceContextH\x00\x42\t\n\x07\x63ontext\"\xcf\x01\n\x15\x45xtendedSourceContext\x12\x39\n\x07\x63ontext\x18\x01 \x01(\x0b\x32(.google.devtools.source.v1.SourceContext\x12L\n\x06labels\x18\x02 \x03(\x0b\x32<.google.devtools.source.v1.ExtendedSourceContext.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8c\x01\n\x0c\x41liasContext\x12:\n\x04kind\x18\x01 \x01(\x0e\x32,.google.devtools.source.v1.AliasContext.Kind\x12\x0c\n\x04name\x18\x02 \x01(\t\"2\n\x04Kind\x12\x07\n\x03\x41NY\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x0b\n\x07MOVABLE\x10\x02\x12\t\n\x05OTHER\x10\x04\"\xcb\x01\n\x16\x43loudRepoSourceContext\x12\x32\n\x07repo_id\x18\x01 \x01(\x0b\x32!.google.devtools.source.v1.RepoId\x12\x15\n\x0brevision_id\x18\x02 \x01(\tH\x00\x12\x18\n\nalias_name\x18\x03 \x01(\tB\x02\x18\x01H\x00\x12@\n\ralias_context\x18\x04 \x01(\x0b\x32\'.google.devtools.source.v1.AliasContextH\x00\x42\n\n\x08revision\"u\n\x1b\x43loudWorkspaceSourceContext\x12\x41\n\x0cworkspace_id\x18\x01 \x01(\x0b\x32+.google.devtools.source.v1.CloudWorkspaceId\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\"\xbe\x01\n\x13GerritSourceContext\x12\x10\n\x08host_uri\x18\x01 \x01(\t\x12\x16\n\x0egerrit_project\x18\x02 \x01(\t\x12\x15\n\x0brevision_id\x18\x03 \x01(\tH\x00\x12\x18\n\nalias_name\x18\x04 \x01(\tB\x02\x18\x01H\x00\x12@\n\ralias_context\x18\x05 \x01(\x0b\x32\'.google.devtools.source.v1.AliasContextH\x00\x42\n\n\x08revision\"4\n\x10GitSourceContext\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x13\n\x0brevision_id\x18\x02 \x01(\t\"b\n\x06RepoId\x12\x43\n\x0fproject_repo_id\x18\x01 \x01(\x0b\x32(.google.devtools.source.v1.ProjectRepoIdH\x00\x12\r\n\x03uid\x18\x02 \x01(\tH\x00\x42\x04\n\x02id\"6\n\rProjectRepoId\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\"T\n\x10\x43loudWorkspaceId\x12\x32\n\x07repo_id\x18\x01 \x01(\x0b\x32!.google.devtools.source.v1.RepoId\x12\x0c\n\x04name\x18\x02 \x01(\tB\xbd\x01\n\x1d\x63om.google.devtools.source.v1B\x12SourceContextProtoP\x01Z?google.golang.org/genproto/googleapis/devtools/source/v1;source\xf8\x01\x01\xaa\x02\x1fGoogle.Cloud.DevTools.Source.V1\xca\x02\x1fGoogle\\Cloud\\DevTools\\Source\\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 = [ + ] + 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 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 diff --git a/google-cloud-debugger-v2/proto_docs/google/protobuf/timestamp.rb b/google-cloud-debugger-v2/proto_docs/google/protobuf/timestamp.rb index 7c4e206ac5fb..4891104f14b9 100644 --- a/google-cloud-debugger-v2/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-debugger-v2/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-deploy-v1/google-cloud-deploy-v1.gemspec b/google-cloud-deploy-v1/google-cloud-deploy-v1.gemspec index 28898d8cf89f..bc4829ac23f6 100644 --- a/google-cloud-deploy-v1/google-cloud-deploy-v1.gemspec +++ b/google-cloud-deploy-v1/google-cloud-deploy-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-cloud-location", ">= 0.4", "< 2.a" gem.add_dependency "google-iam-v1", ">= 0.4", "< 2.a" diff --git a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb index bae9367a0e67..ca3f5e178ea0 100644 --- a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +++ b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/deploy/v1/cloud_deploy.proto @@ -14,634 +15,35 @@ require 'google/protobuf/timestamp_pb' require 'google/type/date_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/deploy/v1/cloud_deploy.proto", :syntax => :proto3) do - add_message "google.cloud.deploy.v1.DeliveryPipeline" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :description, :string, 3 - map :annotations, :string, :string, 4 - map :labels, :string, :string, 5 - optional :create_time, :message, 6, "google.protobuf.Timestamp" - optional :update_time, :message, 7, "google.protobuf.Timestamp" - optional :condition, :message, 11, "google.cloud.deploy.v1.PipelineCondition" - optional :etag, :string, 10 - optional :suspended, :bool, 12 - oneof :pipeline do - optional :serial_pipeline, :message, 8, "google.cloud.deploy.v1.SerialPipeline" - end - end - add_message "google.cloud.deploy.v1.SerialPipeline" do - repeated :stages, :message, 1, "google.cloud.deploy.v1.Stage" - end - add_message "google.cloud.deploy.v1.Stage" do - optional :target_id, :string, 1 - repeated :profiles, :string, 2 - optional :strategy, :message, 5, "google.cloud.deploy.v1.Strategy" - end - add_message "google.cloud.deploy.v1.Strategy" do - oneof :deployment_strategy do - optional :standard, :message, 1, "google.cloud.deploy.v1.Standard" - optional :canary, :message, 2, "google.cloud.deploy.v1.Canary" - end - end - add_message "google.cloud.deploy.v1.Standard" do - optional :verify, :bool, 1 - end - add_message "google.cloud.deploy.v1.Canary" do - optional :runtime_config, :message, 1, "google.cloud.deploy.v1.RuntimeConfig" - oneof :mode do - optional :canary_deployment, :message, 2, "google.cloud.deploy.v1.CanaryDeployment" - optional :custom_canary_deployment, :message, 3, "google.cloud.deploy.v1.CustomCanaryDeployment" - end - end - add_message "google.cloud.deploy.v1.CanaryDeployment" do - repeated :percentages, :int32, 1 - optional :verify, :bool, 2 - end - add_message "google.cloud.deploy.v1.CustomCanaryDeployment" do - repeated :phase_configs, :message, 1, "google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig" - end - add_message "google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig" do - optional :phase_id, :string, 1 - optional :percentage, :int32, 2 - repeated :profiles, :string, 3 - optional :verify, :bool, 4 - end - add_message "google.cloud.deploy.v1.KubernetesConfig" do - oneof :service_definition do - optional :gateway_service_mesh, :message, 1, "google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh" - optional :service_networking, :message, 2, "google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking" - end - end - add_message "google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh" do - optional :http_route, :string, 1 - optional :service, :string, 2 - optional :deployment, :string, 3 - end - add_message "google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking" do - optional :service, :string, 1 - optional :deployment, :string, 2 - end - add_message "google.cloud.deploy.v1.CloudRunConfig" do - optional :automatic_traffic_control, :bool, 1 - end - add_message "google.cloud.deploy.v1.RuntimeConfig" do - oneof :runtime_config do - optional :kubernetes, :message, 1, "google.cloud.deploy.v1.KubernetesConfig" - optional :cloud_run, :message, 2, "google.cloud.deploy.v1.CloudRunConfig" - end - end - add_message "google.cloud.deploy.v1.PipelineReadyCondition" do - optional :status, :bool, 3 - optional :update_time, :message, 4, "google.protobuf.Timestamp" - end - add_message "google.cloud.deploy.v1.TargetsPresentCondition" do - optional :status, :bool, 1 - repeated :missing_targets, :string, 2 - optional :update_time, :message, 4, "google.protobuf.Timestamp" - end - add_message "google.cloud.deploy.v1.TargetsTypeCondition" do - optional :status, :bool, 1 - optional :error_details, :string, 2 - end - add_message "google.cloud.deploy.v1.PipelineCondition" do - optional :pipeline_ready_condition, :message, 1, "google.cloud.deploy.v1.PipelineReadyCondition" - optional :targets_present_condition, :message, 3, "google.cloud.deploy.v1.TargetsPresentCondition" - optional :targets_type_condition, :message, 4, "google.cloud.deploy.v1.TargetsTypeCondition" - end - add_message "google.cloud.deploy.v1.ListDeliveryPipelinesRequest" 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.deploy.v1.ListDeliveryPipelinesResponse" do - repeated :delivery_pipelines, :message, 1, "google.cloud.deploy.v1.DeliveryPipeline" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.deploy.v1.GetDeliveryPipelineRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.deploy.v1.CreateDeliveryPipelineRequest" do - optional :parent, :string, 1 - optional :delivery_pipeline_id, :string, 2 - optional :delivery_pipeline, :message, 3, "google.cloud.deploy.v1.DeliveryPipeline" - optional :request_id, :string, 4 - optional :validate_only, :bool, 5 - end - add_message "google.cloud.deploy.v1.UpdateDeliveryPipelineRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :delivery_pipeline, :message, 2, "google.cloud.deploy.v1.DeliveryPipeline" - optional :request_id, :string, 3 - optional :allow_missing, :bool, 4 - optional :validate_only, :bool, 5 - end - add_message "google.cloud.deploy.v1.DeleteDeliveryPipelineRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - optional :allow_missing, :bool, 3 - optional :validate_only, :bool, 4 - optional :force, :bool, 6 - optional :etag, :string, 5 - end - add_message "google.cloud.deploy.v1.Target" do - optional :name, :string, 1 - optional :target_id, :string, 2 - optional :uid, :string, 3 - optional :description, :string, 4 - map :annotations, :string, :string, 5 - map :labels, :string, :string, 6 - optional :require_approval, :bool, 13 - optional :create_time, :message, 8, "google.protobuf.Timestamp" - optional :update_time, :message, 9, "google.protobuf.Timestamp" - optional :etag, :string, 12 - repeated :execution_configs, :message, 16, "google.cloud.deploy.v1.ExecutionConfig" - oneof :deployment_target do - optional :gke, :message, 15, "google.cloud.deploy.v1.GkeCluster" - optional :anthos_cluster, :message, 17, "google.cloud.deploy.v1.AnthosCluster" - optional :run, :message, 18, "google.cloud.deploy.v1.CloudRunLocation" - optional :multi_target, :message, 19, "google.cloud.deploy.v1.MultiTarget" - end - end - add_message "google.cloud.deploy.v1.ExecutionConfig" do - repeated :usages, :enum, 1, "google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage" - optional :worker_pool, :string, 4 - optional :service_account, :string, 5 - optional :artifact_storage, :string, 6 - optional :execution_timeout, :message, 7, "google.protobuf.Duration" - oneof :execution_environment do - optional :default_pool, :message, 2, "google.cloud.deploy.v1.DefaultPool" - optional :private_pool, :message, 3, "google.cloud.deploy.v1.PrivatePool" - end - end - add_enum "google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage" do - value :EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED, 0 - value :RENDER, 1 - value :DEPLOY, 2 - value :VERIFY, 3 - end - add_message "google.cloud.deploy.v1.DefaultPool" do - optional :service_account, :string, 1 - optional :artifact_storage, :string, 2 - end - add_message "google.cloud.deploy.v1.PrivatePool" do - optional :worker_pool, :string, 1 - optional :service_account, :string, 2 - optional :artifact_storage, :string, 3 - end - add_message "google.cloud.deploy.v1.GkeCluster" do - optional :cluster, :string, 1 - optional :internal_ip, :bool, 2 - end - add_message "google.cloud.deploy.v1.AnthosCluster" do - optional :membership, :string, 1 - end - add_message "google.cloud.deploy.v1.CloudRunLocation" do - optional :location, :string, 1 - end - add_message "google.cloud.deploy.v1.MultiTarget" do - repeated :target_ids, :string, 1 - end - add_message "google.cloud.deploy.v1.ListTargetsRequest" 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.deploy.v1.ListTargetsResponse" do - repeated :targets, :message, 1, "google.cloud.deploy.v1.Target" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.deploy.v1.GetTargetRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.deploy.v1.CreateTargetRequest" do - optional :parent, :string, 1 - optional :target_id, :string, 2 - optional :target, :message, 3, "google.cloud.deploy.v1.Target" - optional :request_id, :string, 4 - optional :validate_only, :bool, 5 - end - add_message "google.cloud.deploy.v1.UpdateTargetRequest" do - optional :update_mask, :message, 1, "google.protobuf.FieldMask" - optional :target, :message, 2, "google.cloud.deploy.v1.Target" - optional :request_id, :string, 3 - optional :allow_missing, :bool, 4 - optional :validate_only, :bool, 5 - end - add_message "google.cloud.deploy.v1.DeleteTargetRequest" do - optional :name, :string, 1 - optional :request_id, :string, 2 - optional :allow_missing, :bool, 3 - optional :validate_only, :bool, 4 - optional :etag, :string, 5 - end - add_message "google.cloud.deploy.v1.Release" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :description, :string, 3 - map :annotations, :string, :string, 4 - map :labels, :string, :string, 5 - optional :abandoned, :bool, 23 - optional :create_time, :message, 6, "google.protobuf.Timestamp" - optional :render_start_time, :message, 7, "google.protobuf.Timestamp" - optional :render_end_time, :message, 8, "google.protobuf.Timestamp" - optional :skaffold_config_uri, :string, 17 - optional :skaffold_config_path, :string, 9 - repeated :build_artifacts, :message, 10, "google.cloud.deploy.v1.BuildArtifact" - optional :delivery_pipeline_snapshot, :message, 11, "google.cloud.deploy.v1.DeliveryPipeline" - repeated :target_snapshots, :message, 12, "google.cloud.deploy.v1.Target" - optional :render_state, :enum, 13, "google.cloud.deploy.v1.Release.RenderState" - optional :etag, :string, 16 - optional :skaffold_version, :string, 19 - map :target_artifacts, :string, :message, 20, "google.cloud.deploy.v1.TargetArtifact" - map :target_renders, :string, :message, 22, "google.cloud.deploy.v1.Release.TargetRender" - optional :condition, :message, 24, "google.cloud.deploy.v1.Release.ReleaseCondition" - end - add_message "google.cloud.deploy.v1.Release.TargetRender" do - optional :rendering_build, :string, 1 - optional :rendering_state, :enum, 2, "google.cloud.deploy.v1.Release.TargetRender.TargetRenderState" - optional :metadata, :message, 6, "google.cloud.deploy.v1.RenderMetadata" - optional :failure_cause, :enum, 4, "google.cloud.deploy.v1.Release.TargetRender.FailureCause" - optional :failure_message, :string, 5 - end - add_enum "google.cloud.deploy.v1.Release.TargetRender.TargetRenderState" do - value :TARGET_RENDER_STATE_UNSPECIFIED, 0 - value :SUCCEEDED, 1 - value :FAILED, 2 - value :IN_PROGRESS, 3 - end - add_enum "google.cloud.deploy.v1.Release.TargetRender.FailureCause" do - value :FAILURE_CAUSE_UNSPECIFIED, 0 - value :CLOUD_BUILD_UNAVAILABLE, 1 - value :EXECUTION_FAILED, 2 - value :CLOUD_BUILD_REQUEST_FAILED, 3 - end - add_message "google.cloud.deploy.v1.Release.ReleaseReadyCondition" do - optional :status, :bool, 1 - end - add_message "google.cloud.deploy.v1.Release.SkaffoldSupportedCondition" do - optional :status, :bool, 1 - optional :skaffold_support_state, :enum, 2, "google.cloud.deploy.v1.SkaffoldSupportState" - optional :maintenance_mode_time, :message, 3, "google.protobuf.Timestamp" - optional :support_expiration_time, :message, 4, "google.protobuf.Timestamp" - end - add_message "google.cloud.deploy.v1.Release.ReleaseCondition" do - optional :release_ready_condition, :message, 1, "google.cloud.deploy.v1.Release.ReleaseReadyCondition" - optional :skaffold_supported_condition, :message, 2, "google.cloud.deploy.v1.Release.SkaffoldSupportedCondition" - end - add_enum "google.cloud.deploy.v1.Release.RenderState" do - value :RENDER_STATE_UNSPECIFIED, 0 - value :SUCCEEDED, 1 - value :FAILED, 2 - value :IN_PROGRESS, 3 - end - add_message "google.cloud.deploy.v1.BuildArtifact" do - optional :image, :string, 3 - optional :tag, :string, 2 - end - add_message "google.cloud.deploy.v1.TargetArtifact" do - optional :skaffold_config_path, :string, 2 - optional :manifest_path, :string, 3 - map :phase_artifacts, :string, :message, 5, "google.cloud.deploy.v1.TargetArtifact.PhaseArtifact" - oneof :uri do - optional :artifact_uri, :string, 4 - end - end - add_message "google.cloud.deploy.v1.TargetArtifact.PhaseArtifact" do - optional :skaffold_config_path, :string, 1 - optional :manifest_path, :string, 3 - optional :job_manifests_path, :string, 4 - end - add_message "google.cloud.deploy.v1.DeployArtifact" do - optional :artifact_uri, :string, 1 - repeated :manifest_paths, :string, 2 - end - add_message "google.cloud.deploy.v1.CloudRunRenderMetadata" do - optional :service, :string, 1 - end - add_message "google.cloud.deploy.v1.RenderMetadata" do - optional :cloud_run, :message, 1, "google.cloud.deploy.v1.CloudRunRenderMetadata" - end - add_message "google.cloud.deploy.v1.ListReleasesRequest" 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.deploy.v1.ListReleasesResponse" do - repeated :releases, :message, 1, "google.cloud.deploy.v1.Release" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.deploy.v1.GetReleaseRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.deploy.v1.CreateReleaseRequest" do - optional :parent, :string, 1 - optional :release_id, :string, 2 - optional :release, :message, 3, "google.cloud.deploy.v1.Release" - optional :request_id, :string, 4 - optional :validate_only, :bool, 5 - end - add_message "google.cloud.deploy.v1.Rollout" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :description, :string, 3 - map :annotations, :string, :string, 4 - map :labels, :string, :string, 5 - optional :create_time, :message, 6, "google.protobuf.Timestamp" - optional :approve_time, :message, 7, "google.protobuf.Timestamp" - optional :enqueue_time, :message, 8, "google.protobuf.Timestamp" - optional :deploy_start_time, :message, 9, "google.protobuf.Timestamp" - optional :deploy_end_time, :message, 10, "google.protobuf.Timestamp" - optional :target_id, :string, 18 - optional :approval_state, :enum, 12, "google.cloud.deploy.v1.Rollout.ApprovalState" - optional :state, :enum, 13, "google.cloud.deploy.v1.Rollout.State" - optional :failure_reason, :string, 14 - optional :deploying_build, :string, 17 - optional :etag, :string, 16 - optional :deploy_failure_cause, :enum, 19, "google.cloud.deploy.v1.Rollout.FailureCause" - repeated :phases, :message, 23, "google.cloud.deploy.v1.Phase" - optional :metadata, :message, 24, "google.cloud.deploy.v1.Metadata" - optional :controller_rollout, :string, 25 - end - add_enum "google.cloud.deploy.v1.Rollout.ApprovalState" do - value :APPROVAL_STATE_UNSPECIFIED, 0 - value :NEEDS_APPROVAL, 1 - value :DOES_NOT_NEED_APPROVAL, 2 - value :APPROVED, 3 - value :REJECTED, 4 - end - add_enum "google.cloud.deploy.v1.Rollout.State" do - value :STATE_UNSPECIFIED, 0 - value :SUCCEEDED, 1 - value :FAILED, 2 - value :IN_PROGRESS, 3 - value :PENDING_APPROVAL, 4 - value :APPROVAL_REJECTED, 5 - value :PENDING, 6 - value :PENDING_RELEASE, 7 - value :CANCELLING, 8 - value :CANCELLED, 9 - value :HALTED, 10 - end - add_enum "google.cloud.deploy.v1.Rollout.FailureCause" do - value :FAILURE_CAUSE_UNSPECIFIED, 0 - value :CLOUD_BUILD_UNAVAILABLE, 1 - value :EXECUTION_FAILED, 2 - value :DEADLINE_EXCEEDED, 3 - value :RELEASE_FAILED, 4 - value :RELEASE_ABANDONED, 5 - value :VERIFICATION_CONFIG_NOT_FOUND, 6 - value :CLOUD_BUILD_REQUEST_FAILED, 7 - end - add_message "google.cloud.deploy.v1.Metadata" do - optional :cloud_run, :message, 1, "google.cloud.deploy.v1.CloudRunMetadata" - end - add_message "google.cloud.deploy.v1.DeployJobRunMetadata" do - optional :cloud_run, :message, 1, "google.cloud.deploy.v1.CloudRunMetadata" - end - add_message "google.cloud.deploy.v1.CloudRunMetadata" do - optional :service, :string, 1 - repeated :service_urls, :string, 2 - optional :revision, :string, 3 - end - add_message "google.cloud.deploy.v1.Phase" do - optional :id, :string, 1 - optional :state, :enum, 3, "google.cloud.deploy.v1.Phase.State" - optional :skip_message, :string, 6 - oneof :jobs do - optional :deployment_jobs, :message, 4, "google.cloud.deploy.v1.DeploymentJobs" - optional :child_rollout_jobs, :message, 5, "google.cloud.deploy.v1.ChildRolloutJobs" - end - end - add_enum "google.cloud.deploy.v1.Phase.State" do - value :STATE_UNSPECIFIED, 0 - value :PENDING, 1 - value :IN_PROGRESS, 2 - value :SUCCEEDED, 3 - value :FAILED, 4 - value :ABORTED, 5 - value :SKIPPED, 6 - end - add_message "google.cloud.deploy.v1.DeploymentJobs" do - optional :deploy_job, :message, 1, "google.cloud.deploy.v1.Job" - optional :verify_job, :message, 2, "google.cloud.deploy.v1.Job" - end - add_message "google.cloud.deploy.v1.ChildRolloutJobs" do - repeated :create_rollout_jobs, :message, 1, "google.cloud.deploy.v1.Job" - repeated :advance_rollout_jobs, :message, 2, "google.cloud.deploy.v1.Job" - end - add_message "google.cloud.deploy.v1.Job" do - optional :id, :string, 1 - optional :state, :enum, 2, "google.cloud.deploy.v1.Job.State" - optional :skip_message, :string, 8 - optional :job_run, :string, 3 - oneof :job_type do - optional :deploy_job, :message, 4, "google.cloud.deploy.v1.DeployJob" - optional :verify_job, :message, 5, "google.cloud.deploy.v1.VerifyJob" - optional :create_child_rollout_job, :message, 6, "google.cloud.deploy.v1.CreateChildRolloutJob" - optional :advance_child_rollout_job, :message, 7, "google.cloud.deploy.v1.AdvanceChildRolloutJob" - end - end - add_enum "google.cloud.deploy.v1.Job.State" do - value :STATE_UNSPECIFIED, 0 - value :PENDING, 1 - value :DISABLED, 2 - value :IN_PROGRESS, 3 - value :SUCCEEDED, 4 - value :FAILED, 5 - value :ABORTED, 6 - value :SKIPPED, 7 - value :IGNORED, 8 - end - add_message "google.cloud.deploy.v1.DeployJob" do - end - add_message "google.cloud.deploy.v1.VerifyJob" do - end - add_message "google.cloud.deploy.v1.CreateChildRolloutJob" do - end - add_message "google.cloud.deploy.v1.AdvanceChildRolloutJob" do - end - add_message "google.cloud.deploy.v1.ListRolloutsRequest" 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.deploy.v1.ListRolloutsResponse" do - repeated :rollouts, :message, 1, "google.cloud.deploy.v1.Rollout" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.deploy.v1.GetRolloutRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.deploy.v1.CreateRolloutRequest" do - optional :parent, :string, 1 - optional :rollout_id, :string, 2 - optional :rollout, :message, 3, "google.cloud.deploy.v1.Rollout" - optional :request_id, :string, 4 - optional :validate_only, :bool, 5 - optional :starting_phase_id, :string, 7 - end - add_message "google.cloud.deploy.v1.OperationMetadata" do - optional :create_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :target, :string, 3 - optional :verb, :string, 4 - optional :status_message, :string, 5 - optional :requested_cancellation, :bool, 6 - optional :api_version, :string, 7 - end - add_message "google.cloud.deploy.v1.ApproveRolloutRequest" do - optional :name, :string, 1 - optional :approved, :bool, 2 - end - add_message "google.cloud.deploy.v1.ApproveRolloutResponse" do - end - add_message "google.cloud.deploy.v1.AdvanceRolloutRequest" do - optional :name, :string, 1 - optional :phase_id, :string, 2 - end - add_message "google.cloud.deploy.v1.AdvanceRolloutResponse" do - end - add_message "google.cloud.deploy.v1.CancelRolloutRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.deploy.v1.CancelRolloutResponse" do - end - add_message "google.cloud.deploy.v1.IgnoreJobRequest" do - optional :rollout, :string, 1 - optional :phase_id, :string, 2 - optional :job_id, :string, 3 - end - add_message "google.cloud.deploy.v1.IgnoreJobResponse" do - end - add_message "google.cloud.deploy.v1.RetryJobRequest" do - optional :rollout, :string, 1 - optional :phase_id, :string, 2 - optional :job_id, :string, 3 - end - add_message "google.cloud.deploy.v1.RetryJobResponse" do - end - add_message "google.cloud.deploy.v1.AbandonReleaseRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.deploy.v1.AbandonReleaseResponse" do - end - add_message "google.cloud.deploy.v1.JobRun" do - optional :name, :string, 1 - optional :uid, :string, 2 - optional :phase_id, :string, 3 - optional :job_id, :string, 4 - optional :create_time, :message, 5, "google.protobuf.Timestamp" - optional :start_time, :message, 6, "google.protobuf.Timestamp" - optional :end_time, :message, 7, "google.protobuf.Timestamp" - optional :state, :enum, 8, "google.cloud.deploy.v1.JobRun.State" - optional :etag, :string, 11 - oneof :job_run do - optional :deploy_job_run, :message, 9, "google.cloud.deploy.v1.DeployJobRun" - optional :verify_job_run, :message, 10, "google.cloud.deploy.v1.VerifyJobRun" - optional :create_child_rollout_job_run, :message, 12, "google.cloud.deploy.v1.CreateChildRolloutJobRun" - optional :advance_child_rollout_job_run, :message, 13, "google.cloud.deploy.v1.AdvanceChildRolloutJobRun" - end - end - add_enum "google.cloud.deploy.v1.JobRun.State" do - value :STATE_UNSPECIFIED, 0 - value :IN_PROGRESS, 1 - value :SUCCEEDED, 2 - value :FAILED, 3 - value :TERMINATING, 4 - value :TERMINATED, 5 - end - add_message "google.cloud.deploy.v1.DeployJobRun" do - optional :build, :string, 1 - optional :failure_cause, :enum, 2, "google.cloud.deploy.v1.DeployJobRun.FailureCause" - optional :failure_message, :string, 3 - optional :metadata, :message, 4, "google.cloud.deploy.v1.DeployJobRunMetadata" - optional :artifact, :message, 5, "google.cloud.deploy.v1.DeployArtifact" - end - add_enum "google.cloud.deploy.v1.DeployJobRun.FailureCause" do - value :FAILURE_CAUSE_UNSPECIFIED, 0 - value :CLOUD_BUILD_UNAVAILABLE, 1 - value :EXECUTION_FAILED, 2 - value :DEADLINE_EXCEEDED, 3 - value :MISSING_RESOURCES_FOR_CANARY, 4 - value :CLOUD_BUILD_REQUEST_FAILED, 5 - end - add_message "google.cloud.deploy.v1.VerifyJobRun" do - optional :build, :string, 1 - optional :artifact_uri, :string, 2 - optional :event_log_path, :string, 3 - optional :failure_cause, :enum, 4, "google.cloud.deploy.v1.VerifyJobRun.FailureCause" - optional :failure_message, :string, 5 - end - add_enum "google.cloud.deploy.v1.VerifyJobRun.FailureCause" do - value :FAILURE_CAUSE_UNSPECIFIED, 0 - value :CLOUD_BUILD_UNAVAILABLE, 1 - value :EXECUTION_FAILED, 2 - value :DEADLINE_EXCEEDED, 3 - value :VERIFICATION_CONFIG_NOT_FOUND, 4 - value :CLOUD_BUILD_REQUEST_FAILED, 5 - end - add_message "google.cloud.deploy.v1.CreateChildRolloutJobRun" do - optional :rollout, :string, 1 - optional :rollout_phase_id, :string, 2 - end - add_message "google.cloud.deploy.v1.AdvanceChildRolloutJobRun" do - optional :rollout, :string, 1 - optional :rollout_phase_id, :string, 2 - end - add_message "google.cloud.deploy.v1.ListJobRunsRequest" 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.deploy.v1.ListJobRunsResponse" do - repeated :job_runs, :message, 1, "google.cloud.deploy.v1.JobRun" - optional :next_page_token, :string, 2 - repeated :unreachable, :string, 3 - end - add_message "google.cloud.deploy.v1.GetJobRunRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.deploy.v1.TerminateJobRunRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.deploy.v1.TerminateJobRunResponse" do - end - add_message "google.cloud.deploy.v1.Config" do - optional :name, :string, 1 - repeated :supported_versions, :message, 2, "google.cloud.deploy.v1.SkaffoldVersion" - optional :default_skaffold_version, :string, 3 - end - add_message "google.cloud.deploy.v1.SkaffoldVersion" do - optional :version, :string, 1 - optional :maintenance_mode_time, :message, 3, "google.protobuf.Timestamp" - optional :support_expiration_time, :message, 4, "google.protobuf.Timestamp" - optional :support_end_date, :message, 2, "google.type.Date" - end - add_message "google.cloud.deploy.v1.GetConfigRequest" do - optional :name, :string, 1 - end - add_enum "google.cloud.deploy.v1.SkaffoldSupportState" do - value :SKAFFOLD_SUPPORT_STATE_UNSPECIFIED, 0 - value :SKAFFOLD_SUPPORT_STATE_SUPPORTED, 1 - value :SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE, 2 - value :SKAFFOLD_SUPPORT_STATE_UNSUPPORTED, 3 + +descriptor_data = "\n)google/cloud/deploy/v1/cloud_deploy.proto\x12\x16google.cloud.deploy.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xe5\x05\n\x10\x44\x65liveryPipeline\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12N\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x39.google.cloud.deploy.v1.DeliveryPipeline.AnnotationsEntry\x12\x44\n\x06labels\x18\x05 \x03(\x0b\x32\x34.google.cloud.deploy.v1.DeliveryPipeline.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x41\n\x0fserial_pipeline\x18\x08 \x01(\x0b\x32&.google.cloud.deploy.v1.SerialPipelineH\x00\x12\x41\n\tcondition\x18\x0b \x01(\x0b\x32).google.cloud.deploy.v1.PipelineConditionB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\n \x01(\t\x12\x11\n\tsuspended\x18\x0c \x01(\x08\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n+clouddeploy.googleapis.com/DeliveryPipeline\x12Mprojects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}B\n\n\x08pipeline\"?\n\x0eSerialPipeline\x12-\n\x06stages\x18\x01 \x03(\x0b\x32\x1d.google.cloud.deploy.v1.Stage\"e\n\x05Stage\x12\x11\n\ttarget_id\x18\x01 \x01(\t\x12\x10\n\x08profiles\x18\x02 \x03(\t\x12\x37\n\x08strategy\x18\x05 \x01(\x0b\x32 .google.cloud.deploy.v1.StrategyB\x03\xe0\x41\x01\"\x89\x01\n\x08Strategy\x12\x34\n\x08standard\x18\x01 \x01(\x0b\x32 .google.cloud.deploy.v1.StandardH\x00\x12\x30\n\x06\x63\x61nary\x18\x02 \x01(\x0b\x32\x1e.google.cloud.deploy.v1.CanaryH\x00\x42\x15\n\x13\x64\x65ployment_strategy\"\x1a\n\x08Standard\x12\x0e\n\x06verify\x18\x01 \x01(\x08\"\xef\x01\n\x06\x43\x61nary\x12\x42\n\x0eruntime_config\x18\x01 \x01(\x0b\x32%.google.cloud.deploy.v1.RuntimeConfigB\x03\xe0\x41\x01\x12\x45\n\x11\x63\x61nary_deployment\x18\x02 \x01(\x0b\x32(.google.cloud.deploy.v1.CanaryDeploymentH\x00\x12R\n\x18\x63ustom_canary_deployment\x18\x03 \x01(\x0b\x32..google.cloud.deploy.v1.CustomCanaryDeploymentH\x00\x42\x06\n\x04mode\"<\n\x10\x43\x61naryDeployment\x12\x18\n\x0bpercentages\x18\x01 \x03(\x05\x42\x03\xe0\x41\x02\x12\x0e\n\x06verify\x18\x02 \x01(\x08\"\xd1\x01\n\x16\x43ustomCanaryDeployment\x12V\n\rphase_configs\x18\x01 \x03(\x0b\x32:.google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfigB\x03\xe0\x41\x02\x1a_\n\x0bPhaseConfig\x12\x15\n\x08phase_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\npercentage\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x10\n\x08profiles\x18\x03 \x03(\t\x12\x0e\n\x06verify\x18\x04 \x01(\x08\"\x81\x03\n\x10KubernetesConfig\x12[\n\x14gateway_service_mesh\x18\x01 \x01(\x0b\x32;.google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMeshH\x00\x12X\n\x12service_networking\x18\x02 \x01(\x0b\x32:.google.cloud.deploy.v1.KubernetesConfig.ServiceNetworkingH\x00\x1a\\\n\x12GatewayServiceMesh\x12\x17\n\nhttp_route\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07service\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ndeployment\x18\x03 \x01(\tB\x03\xe0\x41\x02\x1a\x42\n\x11ServiceNetworking\x12\x14\n\x07service\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ndeployment\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\x14\n\x12service_definition\"3\n\x0e\x43loudRunConfig\x12!\n\x19\x61utomatic_traffic_control\x18\x01 \x01(\x08\"\x9e\x01\n\rRuntimeConfig\x12>\n\nkubernetes\x18\x01 \x01(\x0b\x32(.google.cloud.deploy.v1.KubernetesConfigH\x00\x12;\n\tcloud_run\x18\x02 \x01(\x0b\x32&.google.cloud.deploy.v1.CloudRunConfigH\x00\x42\x10\n\x0eruntime_config\"Y\n\x16PipelineReadyCondition\x12\x0e\n\x06status\x18\x03 \x01(\x08\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9b\x01\n\x17TargetsPresentCondition\x12\x0e\n\x06status\x18\x01 \x01(\x08\x12?\n\x0fmissing_targets\x18\x02 \x03(\tB&\xfa\x41#\n!clouddeploy.googleapis.com/Target\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"=\n\x14TargetsTypeCondition\x12\x0e\n\x06status\x18\x01 \x01(\x08\x12\x15\n\rerror_details\x18\x02 \x01(\t\"\x87\x02\n\x11PipelineCondition\x12P\n\x18pipeline_ready_condition\x18\x01 \x01(\x0b\x32..google.cloud.deploy.v1.PipelineReadyCondition\x12R\n\x19targets_present_condition\x18\x03 \x01(\x0b\x32/.google.cloud.deploy.v1.TargetsPresentCondition\x12L\n\x16targets_type_condition\x18\x04 \x01(\x0b\x32,.google.cloud.deploy.v1.TargetsTypeCondition\"\xac\x01\n\x1cListDeliveryPipelinesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+clouddeploy.googleapis.com/DeliveryPipeline\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\"\x93\x01\n\x1dListDeliveryPipelinesResponse\x12\x44\n\x12\x64\x65livery_pipelines\x18\x01 \x03(\x0b\x32(.google.cloud.deploy.v1.DeliveryPipeline\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"_\n\x1aGetDeliveryPipelineRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+clouddeploy.googleapis.com/DeliveryPipeline\"\x86\x02\n\x1d\x43reateDeliveryPipelineRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+clouddeploy.googleapis.com/DeliveryPipeline\x12!\n\x14\x64\x65livery_pipeline_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x11\x64\x65livery_pipeline\x18\x03 \x01(\x0b\x32(.google.cloud.deploy.v1.DeliveryPipelineB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xf0\x01\n\x1dUpdateDeliveryPipelineRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12H\n\x11\x64\x65livery_pipeline\x18\x02 \x01(\x0b\x32(.google.cloud.deploy.v1.DeliveryPipelineB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xda\x01\n\x1d\x44\x65leteDeliveryPipelineRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+clouddeploy.googleapis.com/DeliveryPipeline\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x91\x07\n\x06Target\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttarget_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12I\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32/.google.cloud.deploy.v1.Target.AnnotationsEntryB\x03\xe0\x41\x01\x12?\n\x06labels\x18\x06 \x03(\x0b\x32*.google.cloud.deploy.v1.Target.LabelsEntryB\x03\xe0\x41\x01\x12\x1d\n\x10require_approval\x18\r \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x03gke\x18\x0f \x01(\x0b\x32\".google.cloud.deploy.v1.GkeClusterH\x00\x12?\n\x0e\x61nthos_cluster\x18\x11 \x01(\x0b\x32%.google.cloud.deploy.v1.AnthosClusterH\x00\x12\x37\n\x03run\x18\x12 \x01(\x0b\x32(.google.cloud.deploy.v1.CloudRunLocationH\x00\x12;\n\x0cmulti_target\x18\x13 \x01(\x0b\x32#.google.cloud.deploy.v1.MultiTargetH\x00\x12\x11\n\x04\x65tag\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x11\x65xecution_configs\x18\x10 \x03(\x0b\x32\'.google.cloud.deploy.v1.ExecutionConfig\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:`\xea\x41]\n!clouddeploy.googleapis.com/Target\x12\x38projects/{project}/locations/{location}/targets/{target}B\x13\n\x11\x64\x65ployment_target\"\xaf\x04\n\x0f\x45xecutionConfig\x12V\n\x06usages\x18\x01 \x03(\x0e\x32\x41.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsageB\x03\xe0\x41\x02\x12@\n\x0c\x64\x65\x66\x61ult_pool\x18\x02 \x01(\x0b\x32#.google.cloud.deploy.v1.DefaultPoolB\x03\xe0\x41\x01H\x00\x12@\n\x0cprivate_pool\x18\x03 \x01(\x0b\x32#.google.cloud.deploy.v1.PrivatePoolB\x03\xe0\x41\x01H\x00\x12\x41\n\x0bworker_pool\x18\x04 \x01(\tB,\xe0\x41\x01\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPool\x12\x1c\n\x0fservice_account\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61rtifact_storage\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x11\x65xecution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"l\n\x19\x45xecutionEnvironmentUsage\x12+\n\'EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED\x10\x00\x12\n\n\x06RENDER\x10\x01\x12\n\n\x06\x44\x45PLOY\x10\x02\x12\n\n\x06VERIFY\x10\x03\x42\x17\n\x15\x65xecution_environment\"J\n\x0b\x44\x65\x66\x61ultPool\x12\x1c\n\x0fservice_account\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61rtifact_storage\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x8d\x01\n\x0bPrivatePool\x12\x41\n\x0bworker_pool\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPool\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61rtifact_storage\x18\x03 \x01(\tB\x03\xe0\x41\x01\"^\n\nGkeCluster\x12\x36\n\x07\x63luster\x18\x01 \x01(\tB%\xfa\x41\"\n container.googleapis.com/Cluster\x12\x18\n\x0binternal_ip\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"J\n\rAnthosCluster\x12\x39\n\nmembership\x18\x01 \x01(\tB%\xfa\x41\"\n gkehub.googleapis.com/Membership\"O\n\x10\x43loudRunLocation\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"&\n\x0bMultiTarget\x12\x17\n\ntarget_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02\"\xac\x01\n\x12ListTargetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!clouddeploy.googleapis.com/Target\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x13ListTargetsResponse\x12/\n\x07targets\x18\x01 \x03(\x0b\x32\x1e.google.cloud.deploy.v1.Target\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"K\n\x10GetTargetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!clouddeploy.googleapis.com/Target\"\xd2\x01\n\x13\x43reateTargetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!clouddeploy.googleapis.com/Target\x12\x16\n\ttarget_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x06target\x18\x03 \x01(\x0b\x32\x1e.google.cloud.deploy.v1.TargetB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xd1\x01\n\x13UpdateTargetRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x33\n\x06target\x18\x02 \x01(\x0b\x32\x1e.google.cloud.deploy.v1.TargetB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xb2\x01\n\x13\x44\x65leteTargetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!clouddeploy.googleapis.com/Target\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xc0\x14\n\x07Release\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x45\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x30.google.cloud.deploy.v1.Release.AnnotationsEntry\x12;\n\x06labels\x18\x05 \x03(\x0b\x32+.google.cloud.deploy.v1.Release.LabelsEntry\x12\x16\n\tabandoned\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11render_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x0frender_end_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x13skaffold_config_uri\x18\x11 \x01(\t\x12\x1c\n\x14skaffold_config_path\x18\t \x01(\t\x12>\n\x0f\x62uild_artifacts\x18\n \x03(\x0b\x32%.google.cloud.deploy.v1.BuildArtifact\x12Q\n\x1a\x64\x65livery_pipeline_snapshot\x18\x0b \x01(\x0b\x32(.google.cloud.deploy.v1.DeliveryPipelineB\x03\xe0\x41\x03\x12=\n\x10target_snapshots\x18\x0c \x03(\x0b\x32\x1e.google.cloud.deploy.v1.TargetB\x03\xe0\x41\x03\x12\x46\n\x0crender_state\x18\r \x01(\x0e\x32+.google.cloud.deploy.v1.Release.RenderStateB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x10 \x01(\t\x12\x18\n\x10skaffold_version\x18\x13 \x01(\t\x12S\n\x10target_artifacts\x18\x14 \x03(\x0b\x32\x34.google.cloud.deploy.v1.Release.TargetArtifactsEntryB\x03\xe0\x41\x03\x12O\n\x0etarget_renders\x18\x16 \x03(\x0b\x32\x32.google.cloud.deploy.v1.Release.TargetRendersEntryB\x03\xe0\x41\x03\x12H\n\tcondition\x18\x18 \x01(\x0b\x32\x30.google.cloud.deploy.v1.Release.ReleaseConditionB\x03\xe0\x41\x03\x1a\xcb\x04\n\x0cTargetRender\x12@\n\x0frendering_build\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12\\\n\x0frendering_state\x18\x02 \x01(\x0e\x32>.google.cloud.deploy.v1.Release.TargetRender.TargetRenderStateB\x03\xe0\x41\x03\x12=\n\x08metadata\x18\x06 \x01(\x0b\x32&.google.cloud.deploy.v1.RenderMetadataB\x03\xe0\x41\x03\x12U\n\rfailure_cause\x18\x04 \x01(\x0e\x32\x39.google.cloud.deploy.v1.Release.TargetRender.FailureCauseB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66\x61ilure_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\"d\n\x11TargetRenderState\x12#\n\x1fTARGET_RENDER_STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\"\x80\x01\n\x0c\x46\x61ilureCause\x12\x1d\n\x19\x46\x41ILURE_CAUSE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43LOUD_BUILD_UNAVAILABLE\x10\x01\x12\x14\n\x10\x45XECUTION_FAILED\x10\x02\x12\x1e\n\x1a\x43LOUD_BUILD_REQUEST_FAILED\x10\x03\x1a\'\n\x15ReleaseReadyCondition\x12\x0e\n\x06status\x18\x01 \x01(\x08\x1a\xf2\x01\n\x1aSkaffoldSupportedCondition\x12\x0e\n\x06status\x18\x01 \x01(\x08\x12L\n\x16skaffold_support_state\x18\x02 \x01(\x0e\x32,.google.cloud.deploy.v1.SkaffoldSupportState\x12\x39\n\x15maintenance_mode_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17support_expiration_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\xcc\x01\n\x10ReleaseCondition\x12V\n\x17release_ready_condition\x18\x01 \x01(\x0b\x32\x35.google.cloud.deploy.v1.Release.ReleaseReadyCondition\x12`\n\x1cskaffold_supported_condition\x18\x02 \x01(\x0b\x32:.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a^\n\x14TargetArtifactsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.cloud.deploy.v1.TargetArtifact:\x02\x38\x01\x1a\x62\n\x12TargetRendersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.cloud.deploy.v1.Release.TargetRender:\x02\x38\x01\"W\n\x0bRenderState\x12\x1c\n\x18RENDER_STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03:\x8a\x01\xea\x41\x86\x01\n\"clouddeploy.googleapis.com/Release\x12`projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}\"+\n\rBuildArtifact\x12\r\n\x05image\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\"\xab\x03\n\x0eTargetArtifact\x12\x1b\n\x0c\x61rtifact_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x12!\n\x14skaffold_config_path\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rmanifest_path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12X\n\x0fphase_artifacts\x18\x05 \x03(\x0b\x32:.google.cloud.deploy.v1.TargetArtifact.PhaseArtifactsEntryB\x03\xe0\x41\x03\x1ao\n\rPhaseArtifact\x12!\n\x14skaffold_config_path\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rmanifest_path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12job_manifests_path\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1ak\n\x13PhaseArtifactsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x43\n\x05value\x18\x02 \x01(\x0b\x32\x34.google.cloud.deploy.v1.TargetArtifact.PhaseArtifact:\x02\x38\x01\x42\x05\n\x03uri\"H\n\x0e\x44\x65ployArtifact\x12\x19\n\x0c\x61rtifact_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0emanifest_paths\x18\x02 \x03(\tB\x03\xe0\x41\x03\"M\n\x16\x43loudRunRenderMetadata\x12\x33\n\x07service\x18\x01 \x01(\tB\"\xe0\x41\x03\xfa\x41\x1c\n\x1arun.googleapis.com/Service\"X\n\x0eRenderMetadata\x12\x46\n\tcloud_run\x18\x01 \x01(\x0b\x32..google.cloud.deploy.v1.CloudRunRenderMetadataB\x03\xe0\x41\x03\"\xb7\x01\n\x13ListReleasesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+clouddeploy.googleapis.com/DeliveryPipeline\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"w\n\x14ListReleasesResponse\x12\x31\n\x08releases\x18\x01 \x03(\x0b\x32\x1f.google.cloud.deploy.v1.Release\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"M\n\x11GetReleaseRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Release\"\xe0\x01\n\x14\x43reateReleaseRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+clouddeploy.googleapis.com/DeliveryPipeline\x12\x17\n\nrelease_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x07release\x18\x03 \x01(\x0b\x32\x1f.google.cloud.deploy.v1.ReleaseB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xfb\r\n\x07Rollout\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x45\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x30.google.cloud.deploy.v1.Rollout.AnnotationsEntry\x12;\n\x06labels\x18\x05 \x03(\x0b\x32+.google.cloud.deploy.v1.Rollout.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0c\x61pprove_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0c\x65nqueue_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11\x64\x65ploy_start_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x0f\x64\x65ploy_end_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\ttarget_id\x18\x12 \x01(\tB\x03\xe0\x41\x02\x12J\n\x0e\x61pproval_state\x18\x0c \x01(\x0e\x32-.google.cloud.deploy.v1.Rollout.ApprovalStateB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\r \x01(\x0e\x32%.google.cloud.deploy.v1.Rollout.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12@\n\x0f\x64\x65ploying_build\x18\x11 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12\x0c\n\x04\x65tag\x18\x10 \x01(\t\x12O\n\x14\x64\x65ploy_failure_cause\x18\x13 \x01(\x0e\x32,.google.cloud.deploy.v1.Rollout.FailureCauseB\x03\xe0\x41\x03\x12\x32\n\x06phases\x18\x17 \x03(\x0b\x32\x1d.google.cloud.deploy.v1.PhaseB\x03\xe0\x41\x03\x12\x37\n\x08metadata\x18\x18 \x01(\x0b\x32 .google.cloud.deploy.v1.MetadataB\x03\xe0\x41\x03\x12\x1f\n\x12\x63ontroller_rollout\x18\x19 \x01(\tB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"{\n\rApprovalState\x12\x1e\n\x1a\x41PPROVAL_STATE_UNSPECIFIED\x10\x00\x12\x12\n\x0eNEEDS_APPROVAL\x10\x01\x12\x1a\n\x16\x44OES_NOT_NEED_APPROVAL\x10\x02\x12\x0c\n\x08\x41PPROVED\x10\x03\x12\x0c\n\x08REJECTED\x10\x04\"\xc4\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\x14\n\x10PENDING_APPROVAL\x10\x04\x12\x15\n\x11\x41PPROVAL_REJECTED\x10\x05\x12\x0b\n\x07PENDING\x10\x06\x12\x13\n\x0fPENDING_RELEASE\x10\x07\x12\x0e\n\nCANCELLING\x10\x08\x12\r\n\tCANCELLED\x10\t\x12\n\n\x06HALTED\x10\n\"\xe5\x01\n\x0c\x46\x61ilureCause\x12\x1d\n\x19\x46\x41ILURE_CAUSE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43LOUD_BUILD_UNAVAILABLE\x10\x01\x12\x14\n\x10\x45XECUTION_FAILED\x10\x02\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x03\x12\x12\n\x0eRELEASE_FAILED\x10\x04\x12\x15\n\x11RELEASE_ABANDONED\x10\x05\x12!\n\x1dVERIFICATION_CONFIG_NOT_FOUND\x10\x06\x12\x1e\n\x1a\x43LOUD_BUILD_REQUEST_FAILED\x10\x07:\x9d\x01\xea\x41\x99\x01\n\"clouddeploy.googleapis.com/Rollout\x12sprojects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}\"L\n\x08Metadata\x12@\n\tcloud_run\x18\x01 \x01(\x0b\x32(.google.cloud.deploy.v1.CloudRunMetadataB\x03\xe0\x41\x03\"X\n\x14\x44\x65ployJobRunMetadata\x12@\n\tcloud_run\x18\x01 \x01(\x0b\x32(.google.cloud.deploy.v1.CloudRunMetadataB\x03\xe0\x41\x03\"y\n\x10\x43loudRunMetadata\x12\x33\n\x07service\x18\x01 \x01(\tB\"\xe0\x41\x03\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x19\n\x0cservice_urls\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xfc\x02\n\x05Phase\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x37\n\x05state\x18\x03 \x01(\x0e\x32#.google.cloud.deploy.v1.Phase.StateB\x03\xe0\x41\x03\x12\x19\n\x0cskip_message\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x0f\x64\x65ployment_jobs\x18\x04 \x01(\x0b\x32&.google.cloud.deploy.v1.DeploymentJobsB\x03\xe0\x41\x03H\x00\x12K\n\x12\x63hild_rollout_jobs\x18\x05 \x01(\x0b\x32(.google.cloud.deploy.v1.ChildRolloutJobsB\x03\xe0\x41\x03H\x00\"q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07\x41\x42ORTED\x10\x05\x12\x0b\n\x07SKIPPED\x10\x06\x42\x06\n\x04jobs\"|\n\x0e\x44\x65ploymentJobs\x12\x34\n\ndeploy_job\x18\x01 \x01(\x0b\x32\x1b.google.cloud.deploy.v1.JobB\x03\xe0\x41\x03\x12\x34\n\nverify_job\x18\x02 \x01(\x0b\x32\x1b.google.cloud.deploy.v1.JobB\x03\xe0\x41\x03\"\x91\x01\n\x10\x43hildRolloutJobs\x12=\n\x13\x63reate_rollout_jobs\x18\x01 \x03(\x0b\x32\x1b.google.cloud.deploy.v1.JobB\x03\xe0\x41\x03\x12>\n\x14\x61\x64vance_rollout_jobs\x18\x02 \x03(\x0b\x32\x1b.google.cloud.deploy.v1.JobB\x03\xe0\x41\x03\"\xed\x04\n\x03Job\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x05state\x18\x02 \x01(\x0e\x32!.google.cloud.deploy.v1.Job.StateB\x03\xe0\x41\x03\x12\x19\n\x0cskip_message\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12:\n\x07job_run\x18\x03 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!clouddeploy.googleapis.com/JobRun\x12<\n\ndeploy_job\x18\x04 \x01(\x0b\x32!.google.cloud.deploy.v1.DeployJobB\x03\xe0\x41\x03H\x00\x12<\n\nverify_job\x18\x05 \x01(\x0b\x32!.google.cloud.deploy.v1.VerifyJobB\x03\xe0\x41\x03H\x00\x12V\n\x18\x63reate_child_rollout_job\x18\x06 \x01(\x0b\x32-.google.cloud.deploy.v1.CreateChildRolloutJobB\x03\xe0\x41\x03H\x00\x12X\n\x19\x61\x64vance_child_rollout_job\x18\x07 \x01(\x0b\x32..google.cloud.deploy.v1.AdvanceChildRolloutJobB\x03\xe0\x41\x03H\x00\"\x8c\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0b\n\x07\x41\x42ORTED\x10\x06\x12\x0b\n\x07SKIPPED\x10\x07\x12\x0b\n\x07IGNORED\x10\x08\x42\n\n\x08job_type\"\x0b\n\tDeployJob\"\x0b\n\tVerifyJob\"\x17\n\x15\x43reateChildRolloutJob\"\x18\n\x16\x41\x64vanceChildRolloutJob\"\xae\x01\n\x13ListRolloutsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Release\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"w\n\x14ListRolloutsResponse\x12\x31\n\x08rollouts\x18\x01 \x03(\x0b\x32\x1f.google.cloud.deploy.v1.Rollout\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"M\n\x11GetRolloutRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Rollout\"\xf7\x01\n\x14\x43reateRolloutRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Release\x12\x17\n\nrollout_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x07rollout\x18\x03 \x01(\x0b\x32\x1f.google.cloud.deploy.v1.RolloutB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11starting_phase_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"h\n\x15\x41pproveRolloutRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Rollout\x12\x15\n\x08\x61pproved\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x18\n\x16\x41pproveRolloutResponse\"h\n\x15\x41\x64vanceRolloutRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Rollout\x12\x15\n\x08phase_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x18\n\x16\x41\x64vanceRolloutResponse\"P\n\x14\x43\x61ncelRolloutRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Rollout\"\x17\n\x15\x43\x61ncelRolloutResponse\"{\n\x10IgnoreJobRequest\x12;\n\x07rollout\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Rollout\x12\x15\n\x08phase_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x13\n\x11IgnoreJobResponse\"z\n\x0fRetryJobRequest\x12;\n\x07rollout\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Rollout\x12\x15\n\x08phase_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10RetryJobResponse\"Q\n\x15\x41\x62\x61ndonReleaseRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Release\"\x18\n\x16\x41\x62\x61ndonReleaseResponse\"\xb8\x07\n\x06JobRun\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08phase_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x05state\x18\x08 \x01(\x0e\x32$.google.cloud.deploy.v1.JobRun.StateB\x03\xe0\x41\x03\x12\x43\n\x0e\x64\x65ploy_job_run\x18\t \x01(\x0b\x32$.google.cloud.deploy.v1.DeployJobRunB\x03\xe0\x41\x03H\x00\x12\x43\n\x0everify_job_run\x18\n \x01(\x0b\x32$.google.cloud.deploy.v1.VerifyJobRunB\x03\xe0\x41\x03H\x00\x12]\n\x1c\x63reate_child_rollout_job_run\x18\x0c \x01(\x0b\x32\x30.google.cloud.deploy.v1.CreateChildRolloutJobRunB\x03\xe0\x41\x03H\x00\x12_\n\x1d\x61\x64vance_child_rollout_job_run\x18\r \x01(\x0b\x32\x31.google.cloud.deploy.v1.AdvanceChildRolloutJobRunB\x03\xe0\x41\x03H\x00\x12\x11\n\x04\x65tag\x18\x0b \x01(\tB\x03\xe0\x41\x03\"k\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05:\xaf\x01\xea\x41\xab\x01\n!clouddeploy.googleapis.com/JobRun\x12\x85\x01projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}B\t\n\x07job_run\"\xf3\x03\n\x0c\x44\x65ployJobRun\x12\x36\n\x05\x62uild\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12M\n\rfailure_cause\x18\x02 \x01(\x0e\x32\x31.google.cloud.deploy.v1.DeployJobRun.FailureCauseB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66\x61ilure_message\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\x08metadata\x18\x04 \x01(\x0b\x32,.google.cloud.deploy.v1.DeployJobRunMetadataB\x03\xe0\x41\x03\x12=\n\x08\x61rtifact\x18\x05 \x01(\x0b\x32&.google.cloud.deploy.v1.DeployArtifactB\x03\xe0\x41\x03\"\xb9\x01\n\x0c\x46\x61ilureCause\x12\x1d\n\x19\x46\x41ILURE_CAUSE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43LOUD_BUILD_UNAVAILABLE\x10\x01\x12\x14\n\x10\x45XECUTION_FAILED\x10\x02\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x03\x12 \n\x1cMISSING_RESOURCES_FOR_CANARY\x10\x04\x12\x1e\n\x1a\x43LOUD_BUILD_REQUEST_FAILED\x10\x05\"\xa8\x03\n\x0cVerifyJobRun\x12\x36\n\x05\x62uild\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12\x19\n\x0c\x61rtifact_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65vent_log_path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12M\n\rfailure_cause\x18\x04 \x01(\x0e\x32\x31.google.cloud.deploy.v1.VerifyJobRun.FailureCauseB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66\x61ilure_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\"\xba\x01\n\x0c\x46\x61ilureCause\x12\x1d\n\x19\x46\x41ILURE_CAUSE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43LOUD_BUILD_UNAVAILABLE\x10\x01\x12\x14\n\x10\x45XECUTION_FAILED\x10\x02\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x03\x12!\n\x1dVERIFICATION_CONFIG_NOT_FOUND\x10\x04\x12\x1e\n\x1a\x43LOUD_BUILD_REQUEST_FAILED\x10\x05\"O\n\x18\x43reateChildRolloutJobRun\x12\x14\n\x07rollout\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10rollout_phase_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\"P\n\x19\x41\x64vanceChildRolloutJobRun\x12\x14\n\x07rollout\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10rollout_phase_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xad\x01\n\x12ListJobRunsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"clouddeploy.googleapis.com/Rollout\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"u\n\x13ListJobRunsResponse\x12\x30\n\x08job_runs\x18\x01 \x03(\x0b\x32\x1e.google.cloud.deploy.v1.JobRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"K\n\x10GetJobRunRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!clouddeploy.googleapis.com/JobRun\"Q\n\x16TerminateJobRunRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!clouddeploy.googleapis.com/JobRun\"\x19\n\x17TerminateJobRunResponse\"\xd5\x01\n\x06\x43onfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x12supported_versions\x18\x02 \x03(\x0b\x32\'.google.cloud.deploy.v1.SkaffoldVersion\x12 \n\x18\x64\x65\x66\x61ult_skaffold_version\x18\x03 \x01(\t:V\xea\x41S\n!clouddeploy.googleapis.com/Config\x12.projects/{project}/locations/{location}/config\"\xc7\x01\n\x0fSkaffoldVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x39\n\x15maintenance_mode_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17support_expiration_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x10support_end_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\"K\n\x10GetConfigRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!clouddeploy.googleapis.com/Config*\xb9\x01\n\x14SkaffoldSupportState\x12&\n\"SKAFFOLD_SUPPORT_STATE_UNSPECIFIED\x10\x00\x12$\n SKAFFOLD_SUPPORT_STATE_SUPPORTED\x10\x01\x12+\n\'SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE\x10\x02\x12&\n\"SKAFFOLD_SUPPORT_STATE_UNSUPPORTED\x10\x03\x32\xa6+\n\x0b\x43loudDeploy\x12\xcc\x01\n\x15ListDeliveryPipelines\x12\x34.google.cloud.deploy.v1.ListDeliveryPipelinesRequest\x1a\x35.google.cloud.deploy.v1.ListDeliveryPipelinesResponse\"F\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{parent=projects/*/locations/*}/deliveryPipelines\xda\x41\x06parent\x12\xb9\x01\n\x13GetDeliveryPipeline\x12\x32.google.cloud.deploy.v1.GetDeliveryPipelineRequest\x1a(.google.cloud.deploy.v1.DeliveryPipeline\"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/deliveryPipelines/*}\xda\x41\x04name\x12\x99\x02\n\x16\x43reateDeliveryPipeline\x12\x35.google.cloud.deploy.v1.CreateDeliveryPipelineRequest\x1a\x1d.google.longrunning.Operation\"\xa8\x01\x82\xd3\xe4\x93\x02J\"5/v1/{parent=projects/*/locations/*}/deliveryPipelines:\x11\x64\x65livery_pipeline\xda\x41-parent,delivery_pipeline,delivery_pipeline_id\xca\x41%\n\x10\x44\x65liveryPipeline\x12\x11OperationMetadata\x12\x9b\x02\n\x16UpdateDeliveryPipeline\x12\x35.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest\x1a\x1d.google.longrunning.Operation\"\xaa\x01\x82\xd3\xe4\x93\x02\\2G/v1/{delivery_pipeline.name=projects/*/locations/*/deliveryPipelines/*}:\x11\x64\x65livery_pipeline\xda\x41\x1d\x64\x65livery_pipeline,update_mask\xca\x41%\n\x10\x44\x65liveryPipeline\x12\x11OperationMetadata\x12\xe1\x01\n\x16\x44\x65leteDeliveryPipeline\x12\x35.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest\x1a\x1d.google.longrunning.Operation\"q\x82\xd3\xe4\x93\x02\x37*5/v1/{name=projects/*/locations/*/deliveryPipelines/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xa4\x01\n\x0bListTargets\x12*.google.cloud.deploy.v1.ListTargetsRequest\x1a+.google.cloud.deploy.v1.ListTargetsResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/targets\xda\x41\x06parent\x12\x91\x01\n\tGetTarget\x12(.google.cloud.deploy.v1.GetTargetRequest\x1a\x1e.google.cloud.deploy.v1.Target\":\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/targets/*}\xda\x41\x04name\x12\xcf\x01\n\x0c\x43reateTarget\x12+.google.cloud.deploy.v1.CreateTargetRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/targets:\x06target\xda\x41\x17parent,target,target_id\xca\x41\x1b\n\x06Target\x12\x11OperationMetadata\x12\xd1\x01\n\x0cUpdateTarget\x12+.google.cloud.deploy.v1.UpdateTargetRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02<22/v1/{target.name=projects/*/locations/*/targets/*}:\x06target\xda\x41\x12target,update_mask\xca\x41\x1b\n\x06Target\x12\x11OperationMetadata\x12\xc3\x01\n\x0c\x44\x65leteTarget\x12+.google.cloud.deploy.v1.DeleteTargetRequest\x1a\x1d.google.longrunning.Operation\"g\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/targets/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xbc\x01\n\x0cListReleases\x12+.google.cloud.deploy.v1.ListReleasesRequest\x1a,.google.cloud.deploy.v1.ListReleasesResponse\"Q\x82\xd3\xe4\x93\x02\x42\x12@/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases\xda\x41\x06parent\x12\xa9\x01\n\nGetRelease\x12).google.cloud.deploy.v1.GetReleaseRequest\x1a\x1f.google.cloud.deploy.v1.Release\"O\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}\xda\x41\x04name\x12\xeb\x01\n\rCreateRelease\x12,.google.cloud.deploy.v1.CreateReleaseRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\x82\xd3\xe4\x93\x02K\"@/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases:\x07release\xda\x41\x19parent,release,release_id\xca\x41\x1c\n\x07Release\x12\x11OperationMetadata\x12\xcb\x01\n\x0e\x41\x62\x61ndonRelease\x12-.google.cloud.deploy.v1.AbandonReleaseRequest\x1a..google.cloud.deploy.v1.AbandonReleaseResponse\"Z\x82\xd3\xe4\x93\x02M\"H/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}:abandon:\x01*\xda\x41\x04name\x12\xd6\x01\n\x0e\x41pproveRollout\x12-.google.cloud.deploy.v1.ApproveRolloutRequest\x1a..google.cloud.deploy.v1.ApproveRolloutResponse\"e\x82\xd3\xe4\x93\x02X\"S/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:approve:\x01*\xda\x41\x04name\x12\xdf\x01\n\x0e\x41\x64vanceRollout\x12-.google.cloud.deploy.v1.AdvanceRolloutRequest\x1a..google.cloud.deploy.v1.AdvanceRolloutResponse\"n\x82\xd3\xe4\x93\x02X\"S/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:advance:\x01*\xda\x41\rname,phase_id\x12\xd2\x01\n\rCancelRollout\x12,.google.cloud.deploy.v1.CancelRolloutRequest\x1a-.google.cloud.deploy.v1.CancelRolloutResponse\"d\x82\xd3\xe4\x93\x02W\"R/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:cancel:\x01*\xda\x41\x04name\x12\xc7\x01\n\x0cListRollouts\x12+.google.cloud.deploy.v1.ListRolloutsRequest\x1a,.google.cloud.deploy.v1.ListRolloutsResponse\"\\\x82\xd3\xe4\x93\x02M\x12K/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts\xda\x41\x06parent\x12\xb4\x01\n\nGetRollout\x12).google.cloud.deploy.v1.GetRolloutRequest\x1a\x1f.google.cloud.deploy.v1.Rollout\"Z\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}\xda\x41\x04name\x12\xf6\x01\n\rCreateRollout\x12,.google.cloud.deploy.v1.CreateRolloutRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\x82\xd3\xe4\x93\x02V\"K/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts:\x07rollout\xda\x41\x19parent,rollout,rollout_id\xca\x41\x1c\n\x07Rollout\x12\x11OperationMetadata\x12\xdf\x01\n\tIgnoreJob\x12(.google.cloud.deploy.v1.IgnoreJobRequest\x1a).google.cloud.deploy.v1.IgnoreJobResponse\"}\x82\xd3\xe4\x93\x02]\"X/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:ignoreJob:\x01*\xda\x41\x17rollout,phase_id,job_id\x12\xdb\x01\n\x08RetryJob\x12\'.google.cloud.deploy.v1.RetryJobRequest\x1a(.google.cloud.deploy.v1.RetryJobResponse\"|\x82\xd3\xe4\x93\x02\\\"W/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:retryJob:\x01*\xda\x41\x17rollout,phase_id,job_id\x12\xce\x01\n\x0bListJobRuns\x12*.google.cloud.deploy.v1.ListJobRunsRequest\x1a+.google.cloud.deploy.v1.ListJobRunsResponse\"f\x82\xd3\xe4\x93\x02W\x12U/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}/jobRuns\xda\x41\x06parent\x12\xbb\x01\n\tGetJobRun\x12(.google.cloud.deploy.v1.GetJobRunRequest\x1a\x1e.google.cloud.deploy.v1.JobRun\"d\x82\xd3\xe4\x93\x02W\x12U/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}\xda\x41\x04name\x12\xe5\x01\n\x0fTerminateJobRun\x12..google.cloud.deploy.v1.TerminateJobRunRequest\x1a/.google.cloud.deploy.v1.TerminateJobRunResponse\"q\x82\xd3\xe4\x93\x02\x64\"_/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}:terminate:\x01*\xda\x41\x04name\x12\x8e\x01\n\tGetConfig\x12(.google.cloud.deploy.v1.GetConfigRequest\x1a\x1e.google.cloud.deploy.v1.Config\"7\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\xda\x41\x04name\x1aN\xca\x41\x1a\x63louddeploy.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb8\x05\n\x1a\x63om.google.cloud.deploy.v1B\x10\x43loudDeployProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypb\xea\x41Y\n\x1f\x63loudbuild.googleapis.com/Build\x12\x36projects/{project}/locations/{location}/builds/{build}\xea\x41^\n container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xea\x41\x66\n$clouddeploy.googleapis.com/Operation\x12>projects/{project}/locations/{location}/operations/{operation}\xea\x41i\n$cloudbuild.googleapis.com/WorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}\xea\x41\x64\n gkehub.googleapis.com/Membership\x12@projects/{project}/locations/{location}/memberships/{membership}\xea\x41X\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.type.Date", "google/type/date.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 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 diff --git a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/deliverypipeline_notification_payload_pb.rb b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/deliverypipeline_notification_payload_pb.rb index 9f513db0f525..cc1f5467ffb8 100644 --- a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/deliverypipeline_notification_payload_pb.rb +++ b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/deliverypipeline_notification_payload_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto @@ -5,14 +6,31 @@ require 'google/cloud/deploy/v1/log_enums_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/deploy/v1/deliverypipeline_notification_payload.proto", :syntax => :proto3) do - add_message "google.cloud.deploy.v1.DeliveryPipelineNotificationEvent" do - optional :message, :string, 1 - optional :delivery_pipeline, :string, 2 - optional :type, :enum, 3, "google.cloud.deploy.v1.Type" + +descriptor_data = "\nBgoogle/cloud/deploy/v1/deliverypipeline_notification_payload.proto\x12\x16google.cloud.deploy.v1\x1a&google/cloud/deploy/v1/log_enums.proto\"{\n!DeliveryPipelineNotificationEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x19\n\x11\x64\x65livery_pipeline\x18\x02 \x01(\t\x12*\n\x04type\x18\x03 \x01(\x0e\x32\x1c.google.cloud.deploy.v1.TypeB|\n\x1a\x63om.google.cloud.deploy.v1B(DeliveryPipelineNotificationPayloadProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypbb\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 = [ + ] + 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 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 diff --git a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/jobrun_notification_payload_pb.rb b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/jobrun_notification_payload_pb.rb index e4cf22e51651..15d6e930cc6d 100644 --- a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/jobrun_notification_payload_pb.rb +++ b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/jobrun_notification_payload_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/deploy/v1/jobrun_notification_payload.proto @@ -5,18 +6,31 @@ require 'google/cloud/deploy/v1/log_enums_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/deploy/v1/jobrun_notification_payload.proto", :syntax => :proto3) do - add_message "google.cloud.deploy.v1.JobRunNotificationEvent" do - optional :message, :string, 1 - optional :job_run, :string, 2 - optional :pipeline_uid, :string, 3 - optional :release_uid, :string, 4 - optional :rollout_uid, :string, 5 - optional :target_id, :string, 6 - optional :type, :enum, 7, "google.cloud.deploy.v1.Type" + +descriptor_data = "\n8google/cloud/deploy/v1/jobrun_notification_payload.proto\x12\x16google.cloud.deploy.v1\x1a&google/cloud/deploy/v1/log_enums.proto\"\xba\x01\n\x17JobRunNotificationEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0f\n\x07job_run\x18\x02 \x01(\t\x12\x14\n\x0cpipeline_uid\x18\x03 \x01(\t\x12\x13\n\x0brelease_uid\x18\x04 \x01(\t\x12\x13\n\x0brollout_uid\x18\x05 \x01(\t\x12\x11\n\ttarget_id\x18\x06 \x01(\t\x12*\n\x04type\x18\x07 \x01(\x0e\x32\x1c.google.cloud.deploy.v1.TypeBr\n\x1a\x63om.google.cloud.deploy.v1B\x1eJobRunNotificationPayloadProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypbb\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 = [ + ] + 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 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 diff --git a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/log_enums_pb.rb b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/log_enums_pb.rb index 467cf904340b..991ec46aefbc 100644 --- a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/log_enums_pb.rb +++ b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/log_enums_pb.rb @@ -1,16 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/deploy/v1/log_enums.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/deploy/v1/log_enums.proto", :syntax => :proto3) do - add_enum "google.cloud.deploy.v1.Type" do - value :TYPE_UNSPECIFIED, 0 - value :TYPE_PUBSUB_NOTIFICATION_FAILURE, 1 - value :TYPE_RENDER_STATUES_CHANGE, 2 + +descriptor_data = "\n&google/cloud/deploy/v1/log_enums.proto\x12\x16google.cloud.deploy.v1*f\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12$\n TYPE_PUBSUB_NOTIFICATION_FAILURE\x10\x01\x12\"\n\x1aTYPE_RENDER_STATUES_CHANGE\x10\x02\x1a\x02\x08\x01\x42\x61\n\x1a\x63om.google.cloud.deploy.v1B\rLogEnumsProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypbb\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 = [ + ] + 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 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 diff --git a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/release_notification_payload_pb.rb b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/release_notification_payload_pb.rb index 62443474c23c..19a2c1c149b2 100644 --- a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/release_notification_payload_pb.rb +++ b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/release_notification_payload_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/deploy/v1/release_notification_payload.proto @@ -5,14 +6,31 @@ require 'google/cloud/deploy/v1/log_enums_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/deploy/v1/release_notification_payload.proto", :syntax => :proto3) do - add_message "google.cloud.deploy.v1.ReleaseNotificationEvent" do - optional :message, :string, 1 - optional :release, :string, 2 - optional :type, :enum, 3, "google.cloud.deploy.v1.Type" + +descriptor_data = "\n9google/cloud/deploy/v1/release_notification_payload.proto\x12\x16google.cloud.deploy.v1\x1a&google/cloud/deploy/v1/log_enums.proto\"h\n\x18ReleaseNotificationEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0f\n\x07release\x18\x02 \x01(\t\x12*\n\x04type\x18\x03 \x01(\x0e\x32\x1c.google.cloud.deploy.v1.TypeBs\n\x1a\x63om.google.cloud.deploy.v1B\x1fReleaseNotificationPayloadProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypbb\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 = [ + ] + 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 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 diff --git a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/release_render_payload_pb.rb b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/release_render_payload_pb.rb index 4d4e8a2819d8..2b2347bde9da 100644 --- a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/release_render_payload_pb.rb +++ b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/release_render_payload_pb.rb @@ -1,15 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/deploy/v1/release_render_payload.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/deploy/v1/release_render_payload.proto", :syntax => :proto3) do - add_message "google.cloud.deploy.v1.ReleaseRenderEvent" do - optional :message, :string, 1 - optional :release, :string, 2 + +descriptor_data = "\n3google/cloud/deploy/v1/release_render_payload.proto\x12\x16google.cloud.deploy.v1\"6\n\x12ReleaseRenderEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0f\n\x07release\x18\x02 \x01(\tBm\n\x1a\x63om.google.cloud.deploy.v1B\x19ReleaseRenderPayloadProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypbb\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 = [ + ] + 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 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 diff --git a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/rollout_notification_payload_pb.rb b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/rollout_notification_payload_pb.rb index 4296b94883c5..e819c3f05fe3 100644 --- a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/rollout_notification_payload_pb.rb +++ b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/rollout_notification_payload_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/deploy/v1/rollout_notification_payload.proto @@ -5,17 +6,31 @@ require 'google/cloud/deploy/v1/log_enums_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/deploy/v1/rollout_notification_payload.proto", :syntax => :proto3) do - add_message "google.cloud.deploy.v1.RolloutNotificationEvent" do - optional :message, :string, 1 - optional :pipeline_uid, :string, 2 - optional :release_uid, :string, 3 - optional :rollout, :string, 4 - optional :type, :enum, 5, "google.cloud.deploy.v1.Type" - optional :target_id, :string, 6 + +descriptor_data = "\n9google/cloud/deploy/v1/rollout_notification_payload.proto\x12\x16google.cloud.deploy.v1\x1a&google/cloud/deploy/v1/log_enums.proto\"\xa6\x01\n\x18RolloutNotificationEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x14\n\x0cpipeline_uid\x18\x02 \x01(\t\x12\x13\n\x0brelease_uid\x18\x03 \x01(\t\x12\x0f\n\x07rollout\x18\x04 \x01(\t\x12*\n\x04type\x18\x05 \x01(\x0e\x32\x1c.google.cloud.deploy.v1.Type\x12\x11\n\ttarget_id\x18\x06 \x01(\tBs\n\x1a\x63om.google.cloud.deploy.v1B\x1fRolloutNotificationPayloadProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypbb\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 = [ + ] + 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 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 diff --git a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/target_notification_payload_pb.rb b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/target_notification_payload_pb.rb index 9dcd097887e4..90a9b3fb7bec 100644 --- a/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/target_notification_payload_pb.rb +++ b/google-cloud-deploy-v1/lib/google/cloud/deploy/v1/target_notification_payload_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/deploy/v1/target_notification_payload.proto @@ -5,14 +6,31 @@ require 'google/cloud/deploy/v1/log_enums_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/deploy/v1/target_notification_payload.proto", :syntax => :proto3) do - add_message "google.cloud.deploy.v1.TargetNotificationEvent" do - optional :message, :string, 1 - optional :target, :string, 2 - optional :type, :enum, 3, "google.cloud.deploy.v1.Type" + +descriptor_data = "\n8google/cloud/deploy/v1/target_notification_payload.proto\x12\x16google.cloud.deploy.v1\x1a&google/cloud/deploy/v1/log_enums.proto\"f\n\x17TargetNotificationEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\t\x12*\n\x04type\x18\x03 \x01(\x0e\x32\x1c.google.cloud.deploy.v1.TypeBr\n\x1a\x63om.google.cloud.deploy.v1B\x1eTargetNotificationPayloadProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypbb\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 = [ + ] + 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 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 diff --git a/google-cloud-deploy-v1/proto_docs/google/protobuf/any.rb b/google-cloud-deploy-v1/proto_docs/google/protobuf/any.rb index 39618af2c75c..9f9367c74a8d 100644 --- a/google-cloud-deploy-v1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-deploy-v1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-deploy-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-deploy-v1/proto_docs/google/protobuf/timestamp.rb index fb9d03c73c8d..626cd5e0bf3a 100644 --- a/google-cloud-deploy-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-deploy-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-dialogflow-cx-v3/google-cloud-dialogflow-cx-v3.gemspec b/google-cloud-dialogflow-cx-v3/google-cloud-dialogflow-cx-v3.gemspec index f826ed88395e..8ffa167a1747 100644 --- a/google-cloud-dialogflow-cx-v3/google-cloud-dialogflow-cx-v3.gemspec +++ b/google-cloud-dialogflow-cx-v3/google-cloud-dialogflow-cx-v3.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-cloud-location", ">= 0.4", "< 2.a" diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb index 42fd76155190..b2d864707399 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/advanced_settings.proto @@ -6,17 +7,32 @@ require 'google/api/field_behavior_pb' require 'google/cloud/dialogflow/cx/v3/gcs_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/advanced_settings.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.AdvancedSettings" do - optional :audio_export_gcs_destination, :message, 2, "google.cloud.dialogflow.cx.v3.GcsDestination" - optional :logging_settings, :message, 6, "google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings" - end - add_message "google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings" do - optional :enable_stackdriver_logging, :bool, 2 - optional :enable_interaction_logging, :bool, 3 + +descriptor_data = "\n5google/cloud/dialogflow/cx/v3/advanced_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\'google/cloud/dialogflow/cx/v3/gcs.proto\"\x9d\x02\n\x10\x41\x64vancedSettings\x12S\n\x1c\x61udio_export_gcs_destination\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.GcsDestination\x12Y\n\x10logging_settings\x18\x06 \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings\x1aY\n\x0fLoggingSettings\x12\"\n\x1a\x65nable_stackdriver_logging\x18\x02 \x01(\x08\x12\"\n\x1a\x65nable_interaction_logging\x18\x03 \x01(\x08\x42\xbb\x01\n!com.google.cloud.dialogflow.cx.v3B\x15\x41\x64vancedSettingsProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.dialogflow.cx.v3.GcsDestination", "google/cloud/dialogflow/cx/v3/gcs.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb index 9340ce7ef0b5..8911682b8e7b 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/agent.proto @@ -15,94 +16,35 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/agent.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.SpeechToTextSettings" do - optional :enable_speech_adaptation, :bool, 1 - end - add_message "google.cloud.dialogflow.cx.v3.Agent" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :default_language_code, :string, 3 - repeated :supported_language_codes, :string, 4 - optional :time_zone, :string, 5 - optional :description, :string, 6 - optional :avatar_uri, :string, 7 - optional :speech_to_text_settings, :message, 13, "google.cloud.dialogflow.cx.v3.SpeechToTextSettings" - optional :start_flow, :string, 16 - optional :security_settings, :string, 17 - optional :enable_stackdriver_logging, :bool, 18 - optional :enable_spell_correction, :bool, 20 - optional :locked, :bool, 27 - optional :advanced_settings, :message, 22, "google.cloud.dialogflow.cx.v3.AdvancedSettings" - optional :text_to_speech_settings, :message, 31, "google.cloud.dialogflow.cx.v3.TextToSpeechSettings" - end - add_message "google.cloud.dialogflow.cx.v3.ListAgentsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListAgentsResponse" do - repeated :agents, :message, 1, "google.cloud.dialogflow.cx.v3.Agent" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetAgentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.CreateAgentRequest" do - optional :parent, :string, 1 - optional :agent, :message, 2, "google.cloud.dialogflow.cx.v3.Agent" - end - add_message "google.cloud.dialogflow.cx.v3.UpdateAgentRequest" do - optional :agent, :message, 1, "google.cloud.dialogflow.cx.v3.Agent" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteAgentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.ExportAgentRequest" do - optional :name, :string, 1 - optional :agent_uri, :string, 2 - optional :data_format, :enum, 3, "google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat" - optional :environment, :string, 5 - end - add_enum "google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat" do - value :DATA_FORMAT_UNSPECIFIED, 0 - value :BLOB, 1 - value :JSON_PACKAGE, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ExportAgentResponse" do - oneof :agent do - optional :agent_uri, :string, 1 - optional :agent_content, :bytes, 2 - end - end - add_message "google.cloud.dialogflow.cx.v3.RestoreAgentRequest" do - optional :name, :string, 1 - optional :restore_option, :enum, 5, "google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption" - oneof :agent do - optional :agent_uri, :string, 2 - optional :agent_content, :bytes, 3 - end - end - add_enum "google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption" do - value :RESTORE_OPTION_UNSPECIFIED, 0 - value :KEEP, 1 - value :FALLBACK, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ValidateAgentRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.AgentValidationResult" do - optional :name, :string, 1 - repeated :flow_validation_results, :message, 2, "google.cloud.dialogflow.cx.v3.FlowValidationResult" + +descriptor_data = "\n)google/cloud/dialogflow/cx/v3/agent.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/cx/v3/advanced_settings.proto\x1a\x30google/cloud/dialogflow/cx/v3/audio_config.proto\x1a(google/cloud/dialogflow/cx/v3/flow.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"8\n\x14SpeechToTextSettings\x12 \n\x18\x65nable_speech_adaptation\x18\x01 \x01(\x08\"\xf1\x05\n\x05\x41gent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12%\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x18supported_language_codes\x18\x04 \x03(\t\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x12\n\navatar_uri\x18\x07 \x01(\t\x12T\n\x17speech_to_text_settings\x18\r \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.SpeechToTextSettings\x12:\n\nstart_flow\x18\x10 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12J\n\x11security_settings\x18\x11 \x01(\tB/\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\x12&\n\x1a\x65nable_stackdriver_logging\x18\x12 \x01(\x08\x42\x02\x18\x01\x12\x1f\n\x17\x65nable_spell_correction\x18\x14 \x01(\x08\x12\x0e\n\x06locked\x18\x1b \x01(\x08\x12J\n\x11\x61\x64vanced_settings\x18\x16 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.AdvancedSettings\x12T\n\x17text_to_speech_settings\x18\x1f \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TextToSpeechSettings:\\\xea\x41Y\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x36projects/{project}/locations/{location}/agents/{agent}\"s\n\x11ListAgentsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"c\n\x12ListAgentsResponse\x12\x34\n\x06\x61gents\x18\x01 \x03(\x0b\x32$.google.cloud.dialogflow.cx.v3.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"H\n\x0fGetAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\x87\x01\n\x12\x43reateAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x38\n\x05\x61gent\x18\x02 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.AgentB\x03\xe0\x41\x02\"\x7f\n\x12UpdateAgentRequest\x12\x38\n\x05\x61gent\x18\x01 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.AgentB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x12\x44\x65leteAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\xc6\x02\n\x12\x45xportAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x16\n\tagent_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12V\n\x0b\x64\x61ta_format\x18\x03 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormatB\x03\xe0\x41\x01\x12\x42\n\x0b\x65nvironment\x18\x05 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"E\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42LOB\x10\x01\x12\x10\n\x0cJSON_PACKAGE\x10\x04\"L\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x42\x07\n\x05\x61gent\"\xa6\x02\n\x13RestoreAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x12X\n\x0erestore_option\x18\x05 \x01(\x0e\x32@.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption\"G\n\rRestoreOption\x12\x1e\n\x1aRESTORE_OPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04KEEP\x10\x01\x12\x0c\n\x08\x46\x41LLBACK\x10\x02\x42\x07\n\x05\x61gent\"d\n\x14ValidateAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x7f\n\x1fGetAgentValidationResultRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/dialogflow.googleapis.com/AgentValidationResult\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xfa\x01\n\x15\x41gentValidationResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12T\n\x17\x66low_validation_results\x18\x02 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult:}\xea\x41z\n/dialogflow.googleapis.com/AgentValidationResult\x12Gprojects/{project}/locations/{location}/agents/{agent}/validationResult2\x99\x0e\n\x06\x41gents\x12\xae\x01\n\nListAgents\x12\x30.google.cloud.dialogflow.cx.v3.ListAgentsRequest\x1a\x31.google.cloud.dialogflow.cx.v3.ListAgentsResponse\";\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*/locations/*}/agents\xda\x41\x06parent\x12\x9b\x01\n\x08GetAgent\x12..google.cloud.dialogflow.cx.v3.GetAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/locations/*/agents/*}\xda\x41\x04name\x12\xb0\x01\n\x0b\x43reateAgent\x12\x31.google.cloud.dialogflow.cx.v3.CreateAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"H\x82\xd3\xe4\x93\x02\x33\"*/v3/{parent=projects/*/locations/*}/agents:\x05\x61gent\xda\x41\x0cparent,agent\x12\xbb\x01\n\x0bUpdateAgent\x12\x31.google.cloud.dialogflow.cx.v3.UpdateAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"S\x82\xd3\xe4\x93\x02\x39\x32\x30/v3/{agent.name=projects/*/locations/*/agents/*}:\x05\x61gent\xda\x41\x11\x61gent,update_mask\x12\x93\x01\n\x0b\x44\x65leteAgent\x12\x31.google.cloud.dialogflow.cx.v3.DeleteAgentRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/locations/*/agents/*}\xda\x41\x04name\x12\xcd\x01\n\x0b\x45xportAgent\x12\x31.google.cloud.dialogflow.cx.v3.ExportAgentRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02\x36\"1/v3/{name=projects/*/locations/*/agents/*}:export:\x01*\xca\x41-\n\x13\x45xportAgentResponse\x12\x16google.protobuf.Struct\x12\xd2\x01\n\x0cRestoreAgent\x12\x32.google.cloud.dialogflow.cx.v3.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation\"o\x82\xd3\xe4\x93\x02\x37\"2/v3/{name=projects/*/locations/*/agents/*}:restore:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xba\x01\n\rValidateAgent\x12\x33.google.cloud.dialogflow.cx.v3.ValidateAgentRequest\x1a\x34.google.cloud.dialogflow.cx.v3.AgentValidationResult\">\x82\xd3\xe4\x93\x02\x38\"3/v3/{name=projects/*/locations/*/agents/*}:validate:\x01*\x12\xdc\x01\n\x18GetAgentValidationResult\x12>.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest\x1a\x34.google.cloud.dialogflow.cx.v3.AgentValidationResult\"J\x82\xd3\xe4\x93\x02=\x12;/v3/{name=projects/*/locations/*/agents/*/validationResult}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb0\x01\n!com.google.cloud.dialogflow.cx.v3B\nAgentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.dialogflow.cx.v3.AdvancedSettings", "google/cloud/dialogflow/cx/v3/advanced_settings.proto"], + ["google.cloud.dialogflow.cx.v3.TextToSpeechSettings", "google/cloud/dialogflow/cx/v3/audio_config.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.cloud.dialogflow.cx.v3.FlowValidationResult", "google/cloud/dialogflow/cx/v3/flow.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb index 199c595ce701..523ad964d09a 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/audio_config.proto @@ -7,73 +8,32 @@ require 'google/api/resource_pb' require 'google/protobuf/duration_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/audio_config.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.SpeechWordInfo" do - optional :word, :string, 3 - optional :start_offset, :message, 1, "google.protobuf.Duration" - optional :end_offset, :message, 2, "google.protobuf.Duration" - optional :confidence, :float, 4 - end - add_message "google.cloud.dialogflow.cx.v3.InputAudioConfig" do - optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.cx.v3.AudioEncoding" - optional :sample_rate_hertz, :int32, 2 - optional :enable_word_info, :bool, 13 - repeated :phrase_hints, :string, 4 - optional :model, :string, 7 - optional :model_variant, :enum, 10, "google.cloud.dialogflow.cx.v3.SpeechModelVariant" - optional :single_utterance, :bool, 8 - end - add_message "google.cloud.dialogflow.cx.v3.VoiceSelectionParams" do - optional :name, :string, 1 - optional :ssml_gender, :enum, 2, "google.cloud.dialogflow.cx.v3.SsmlVoiceGender" - end - add_message "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig" do - optional :speaking_rate, :double, 1 - optional :pitch, :double, 2 - optional :volume_gain_db, :double, 3 - repeated :effects_profile_id, :string, 5 - optional :voice, :message, 4, "google.cloud.dialogflow.cx.v3.VoiceSelectionParams" - end - add_message "google.cloud.dialogflow.cx.v3.OutputAudioConfig" do - optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.cx.v3.OutputAudioEncoding" - optional :sample_rate_hertz, :int32, 2 - optional :synthesize_speech_config, :message, 3, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig" - end - add_message "google.cloud.dialogflow.cx.v3.TextToSpeechSettings" do - map :synthesize_speech_configs, :string, :message, 1, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig" - end - add_enum "google.cloud.dialogflow.cx.v3.AudioEncoding" do - value :AUDIO_ENCODING_UNSPECIFIED, 0 - value :AUDIO_ENCODING_LINEAR_16, 1 - value :AUDIO_ENCODING_FLAC, 2 - value :AUDIO_ENCODING_MULAW, 3 - value :AUDIO_ENCODING_AMR, 4 - value :AUDIO_ENCODING_AMR_WB, 5 - value :AUDIO_ENCODING_OGG_OPUS, 6 - value :AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE, 7 - end - add_enum "google.cloud.dialogflow.cx.v3.SpeechModelVariant" do - value :SPEECH_MODEL_VARIANT_UNSPECIFIED, 0 - value :USE_BEST_AVAILABLE, 1 - value :USE_STANDARD, 2 - value :USE_ENHANCED, 3 - end - add_enum "google.cloud.dialogflow.cx.v3.SsmlVoiceGender" do - value :SSML_VOICE_GENDER_UNSPECIFIED, 0 - value :SSML_VOICE_GENDER_MALE, 1 - value :SSML_VOICE_GENDER_FEMALE, 2 - value :SSML_VOICE_GENDER_NEUTRAL, 3 - end - add_enum "google.cloud.dialogflow.cx.v3.OutputAudioEncoding" do - value :OUTPUT_AUDIO_ENCODING_UNSPECIFIED, 0 - value :OUTPUT_AUDIO_ENCODING_LINEAR_16, 1 - value :OUTPUT_AUDIO_ENCODING_MP3, 2 - value :OUTPUT_AUDIO_ENCODING_MP3_64_KBPS, 4 - value :OUTPUT_AUDIO_ENCODING_OGG_OPUS, 3 - value :OUTPUT_AUDIO_ENCODING_MULAW, 5 + +descriptor_data = "\n0google/cloud/dialogflow/cx/v3/audio_config.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\x9b\x02\n\x10InputAudioConfig\x12I\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.AudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x14\n\x0cphrase_hints\x18\x04 \x03(\t\x12\r\n\x05model\x18\x07 \x01(\t\x12H\n\rmodel_variant\x18\n \x01(\x0e\x32\x31.google.cloud.dialogflow.cx.v3.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\"i\n\x14VoiceSelectionParams\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x0bssml_gender\x18\x02 \x01(\x0e\x32..google.cloud.dialogflow.cx.v3.SsmlVoiceGender\"\xb6\x01\n\x16SynthesizeSpeechConfig\x12\x15\n\rspeaking_rate\x18\x01 \x01(\x01\x12\r\n\x05pitch\x18\x02 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x03 \x01(\x01\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\t\x12\x42\n\x05voice\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.VoiceSelectionParams\"\xd8\x01\n\x11OutputAudioConfig\x12O\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x32.google.cloud.dialogflow.cx.v3.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12W\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x35.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig\"\x82\x02\n\x14TextToSpeechSettings\x12s\n\x19synthesize_speech_configs\x18\x01 \x03(\x0b\x32P.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.SynthesizeSpeechConfigsEntry\x1au\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x44\n\x05value\x18\x02 \x01(\x0b\x32\x35.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig:\x02\x38\x01*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xec\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12%\n!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\x10\x04\x12\"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x12\x1f\n\x1bOUTPUT_AUDIO_ENCODING_MULAW\x10\x05\x42\x8e\x02\n!com.google.cloud.dialogflow.cx.v3B\x10\x41udioConfigProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\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.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb index 573e91f4625a..0ce395b5e4c4 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/changelog.proto @@ -9,31 +10,32 @@ require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/changelog.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.ListChangelogsRequest" do - optional :parent, :string, 1 - optional :filter, :string, 2 - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ListChangelogsResponse" do - repeated :changelogs, :message, 1, "google.cloud.dialogflow.cx.v3.Changelog" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetChangelogRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.Changelog" do - optional :name, :string, 1 - optional :user_email, :string, 2 - optional :display_name, :string, 7 - optional :action, :string, 11 - optional :type, :string, 8 - optional :resource, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" + +descriptor_data = "\n-google/cloud/dialogflow/cx/v3/changelog.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x01\n\x15ListChangelogsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#dialogflow.googleapis.com/Changelog\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"o\n\x16ListChangelogsResponse\x12<\n\nchangelogs\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.cx.v3.Changelog\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"P\n\x13GetChangelogRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dialogflow.googleapis.com/Changelog\"\x9d\x02\n\tChangelog\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nuser_email\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x07 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x0b \x01(\t\x12\x0c\n\x04type\x18\x08 \x01(\t\x12\x10\n\x08resource\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:w\xea\x41t\n#dialogflow.googleapis.com/Changelog\x12Mprojects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}2\x87\x04\n\nChangelogs\x12\xc7\x01\n\x0eListChangelogs\x12\x34.google.cloud.dialogflow.cx.v3.ListChangelogsRequest\x1a\x35.google.cloud.dialogflow.cx.v3.ListChangelogsResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v3/{parent=projects/*/locations/*/agents/*}/changelogs\xda\x41\x06parent\x12\xb4\x01\n\x0cGetChangelog\x12\x32.google.cloud.dialogflow.cx.v3.GetChangelogRequest\x1a(.google.cloud.dialogflow.cx.v3.Changelog\"F\x82\xd3\xe4\x93\x02\x39\x12\x37/v3/{name=projects/*/locations/*/agents/*/changelogs/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb4\x01\n!com.google.cloud.dialogflow.cx.v3B\x0e\x43hangelogProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb index 2e59ad5ccb88..7216367144aa 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/deployment.proto @@ -9,39 +10,32 @@ require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/deployment.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.Deployment" do - optional :name, :string, 1 - optional :flow_version, :string, 2 - optional :state, :enum, 3, "google.cloud.dialogflow.cx.v3.Deployment.State" - optional :result, :message, 4, "google.cloud.dialogflow.cx.v3.Deployment.Result" - optional :start_time, :message, 5, "google.protobuf.Timestamp" - optional :end_time, :message, 6, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.cx.v3.Deployment.Result" do - repeated :deployment_test_results, :string, 1 - optional :experiment, :string, 2 - end - add_enum "google.cloud.dialogflow.cx.v3.Deployment.State" do - value :STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :SUCCEEDED, 2 - value :FAILED, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListDeploymentsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListDeploymentsResponse" do - repeated :deployments, :message, 1, "google.cloud.dialogflow.cx.v3.Deployment" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetDeploymentRequest" do - optional :name, :string, 1 + +descriptor_data = "\n.google/cloud/dialogflow/cx/v3/deployment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb3\x05\n\nDeployment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\x0c\x66low_version\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Version\x12>\n\x05state\x18\x03 \x01(\x0e\x32/.google.cloud.dialogflow.cx.v3.Deployment.State\x12@\n\x06result\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.Deployment.Result\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x97\x01\n\x06Result\x12N\n\x17\x64\x65ployment_test_results\x18\x01 \x03(\tB-\xfa\x41*\n(dialogflow.googleapis.com/TestCaseResult\x12=\n\nexperiment\x18\x02 \x01(\tB)\xfa\x41&\n$dialogflow.googleapis.com/Experiment\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:\x96\x01\xea\x41\x92\x01\n$dialogflow.googleapis.com/Deployment\x12jprojects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}\"}\n\x16ListDeploymentsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/Deployment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x17ListDeploymentsResponse\x12>\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.cx.v3.Deployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"R\n\x14GetDeploymentRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/Deployment2\xae\x04\n\x0b\x44\x65ployments\x12\xda\x01\n\x0fListDeployments\x12\x35.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest\x1a\x36.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse\"X\x82\xd3\xe4\x93\x02I\x12G/v3/{parent=projects/*/locations/*/agents/*/environments/*}/deployments\xda\x41\x06parent\x12\xc7\x01\n\rGetDeployment\x12\x33.google.cloud.dialogflow.cx.v3.GetDeploymentRequest\x1a).google.cloud.dialogflow.cx.v3.Deployment\"V\x82\xd3\xe4\x93\x02I\x12G/v3/{name=projects/*/locations/*/agents/*/environments/*/deployments/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb5\x01\n!com.google.cloud.dialogflow.cx.v3B\x0f\x44\x65ploymentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb index 8323bd7886c1..41c50dd5f0c6 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/entity_type.proto @@ -10,64 +11,32 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/entity_type.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.EntityType" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :kind, :enum, 3, "google.cloud.dialogflow.cx.v3.EntityType.Kind" - optional :auto_expansion_mode, :enum, 4, "google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode" - repeated :entities, :message, 5, "google.cloud.dialogflow.cx.v3.EntityType.Entity" - repeated :excluded_phrases, :message, 6, "google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase" - optional :enable_fuzzy_extraction, :bool, 7 - optional :redact, :bool, 9 - end - add_message "google.cloud.dialogflow.cx.v3.EntityType.Entity" do - optional :value, :string, 1 - repeated :synonyms, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase" do - optional :value, :string, 1 - end - add_enum "google.cloud.dialogflow.cx.v3.EntityType.Kind" do - value :KIND_UNSPECIFIED, 0 - value :KIND_MAP, 1 - value :KIND_LIST, 2 - value :KIND_REGEXP, 3 - end - add_enum "google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode" do - value :AUTO_EXPANSION_MODE_UNSPECIFIED, 0 - value :AUTO_EXPANSION_MODE_DEFAULT, 1 - end - add_message "google.cloud.dialogflow.cx.v3.ListEntityTypesRequest" do - optional :parent, :string, 1 - optional :language_code, :string, 2 - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ListEntityTypesResponse" do - repeated :entity_types, :message, 1, "google.cloud.dialogflow.cx.v3.EntityType" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetEntityTypeRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest" do - optional :parent, :string, 1 - optional :entity_type, :message, 2, "google.cloud.dialogflow.cx.v3.EntityType" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest" do - optional :entity_type, :message, 1, "google.cloud.dialogflow.cx.v3.EntityType" - optional :language_code, :string, 2 - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest" do - optional :name, :string, 1 - optional :force, :bool, 2 + +descriptor_data = "\n/google/cloud/dialogflow/cx/v3/entity_type.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9a\x06\n\nEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x04kind\x18\x03 \x01(\x0e\x32..google.cloud.dialogflow.cx.v3.EntityType.KindB\x03\xe0\x41\x02\x12X\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32;.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode\x12\x42\n\x08\x65ntities\x18\x05 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.EntityType.Entity\x12R\n\x10\x65xcluded_phrases\x18\x06 \x03(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase\x12\x1f\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x12\x0e\n\x06redact\x18\t \x01(\x08\x1a\x33\n\x06\x45ntity\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x02\x1a$\n\x0e\x45xcludedPhrase\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\"J\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0c\n\x08KIND_MAP\x10\x01\x12\r\n\tKIND_LIST\x10\x02\x12\x0f\n\x0bKIND_REGEXP\x10\x03\"Y\n\x11\x41utoExpansionMode\x12#\n\x1f\x41UTO_EXPANSION_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTO_EXPANSION_MODE_DEFAULT\x10\x01:{\xea\x41x\n$dialogflow.googleapis.com/EntityType\x12Pprojects/{project}/locations/{location}/agents/{agent}/entityTypes/{entity_type}\"\x94\x01\n\x16ListEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"s\n\x17ListEntityTypesResponse\x12?\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x14GetEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xb3\x01\n\x17\x43reateEntityTypeRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x43\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityTypeB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xa6\x01\n\x17UpdateEntityTypeRequest\x12\x43\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityTypeB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"d\n\x17\x44\x65leteEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\x87\t\n\x0b\x45ntityTypes\x12\xcb\x01\n\x0fListEntityTypes\x12\x35.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest\x1a\x36.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v3/{parent=projects/*/locations/*/agents/*}/entityTypes\xda\x41\x06parent\x12\xb8\x01\n\rGetEntityType\x12\x33.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"G\x82\xd3\xe4\x93\x02:\x12\x38/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}\xda\x41\x04name\x12\xd9\x01\n\x10\x43reateEntityType\x12\x36.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"b\x82\xd3\xe4\x93\x02G\"8/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:\x0b\x65ntity_type\xda\x41\x12parent,entity_type\x12\xea\x01\n\x10UpdateEntityType\x12\x36.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"s\x82\xd3\xe4\x93\x02S2D/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}:\x0b\x65ntity_type\xda\x41\x17\x65ntity_type,update_mask\x12\xab\x01\n\x10\x44\x65leteEntityType\x12\x36.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty\"G\x82\xd3\xe4\x93\x02:*8/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb5\x01\n!com.google.cloud.dialogflow.cx.v3B\x0f\x45ntityTypeProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb index 6c34dfff38c8..d06bff6a3470 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/environment.proto @@ -15,101 +16,35 @@ require 'google/protobuf/struct_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/environment.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.Environment" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - repeated :version_configs, :message, 6, "google.cloud.dialogflow.cx.v3.Environment.VersionConfig" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - optional :test_cases_config, :message, 7, "google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig" - optional :webhook_config, :message, 10, "google.cloud.dialogflow.cx.v3.Environment.WebhookConfig" - end - add_message "google.cloud.dialogflow.cx.v3.Environment.VersionConfig" do - optional :version, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig" do - repeated :test_cases, :string, 1 - optional :enable_continuous_run, :bool, 2 - optional :enable_predeployment_run, :bool, 3 - end - add_message "google.cloud.dialogflow.cx.v3.Environment.WebhookConfig" do - repeated :webhook_overrides, :message, 1, "google.cloud.dialogflow.cx.v3.Webhook" - end - add_message "google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse" do - repeated :environments, :message, 1, "google.cloud.dialogflow.cx.v3.Environment" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetEnvironmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest" do - optional :parent, :string, 1 - optional :environment, :message, 2, "google.cloud.dialogflow.cx.v3.Environment" - end - add_message "google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest" do - optional :environment, :message, 1, "google.cloud.dialogflow.cx.v3.Environment" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest" do - optional :name, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse" do - repeated :environments, :message, 1, "google.cloud.dialogflow.cx.v3.Environment" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ContinuousTestResult" do - optional :name, :string, 1 - optional :result, :enum, 2, "google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult" - repeated :test_case_results, :string, 3 - optional :run_time, :message, 4, "google.protobuf.Timestamp" - end - add_enum "google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult" do - value :AGGREGATED_TEST_RESULT_UNSPECIFIED, 0 - value :PASSED, 1 - value :FAILED, 2 - end - add_message "google.cloud.dialogflow.cx.v3.RunContinuousTestRequest" do - optional :environment, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.RunContinuousTestResponse" do - optional :continuous_test_result, :message, 1, "google.cloud.dialogflow.cx.v3.ContinuousTestResult" - end - add_message "google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata" do - repeated :errors, :message, 1, "google.cloud.dialogflow.cx.v3.TestError" - end - add_message "google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse" do - repeated :continuous_test_results, :message, 1, "google.cloud.dialogflow.cx.v3.ContinuousTestResult" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.DeployFlowRequest" do - optional :environment, :string, 1 - optional :flow_version, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.DeployFlowResponse" do - optional :environment, :message, 1, "google.cloud.dialogflow.cx.v3.Environment" - optional :deployment, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.DeployFlowMetadata" do - repeated :test_errors, :message, 1, "google.cloud.dialogflow.cx.v3.TestError" + +descriptor_data = "\n/google/cloud/dialogflow/cx/v3/environment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/dialogflow/cx/v3/test_case.proto\x1a+google/cloud/dialogflow/cx/v3/webhook.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xaf\x06\n\x0b\x45nvironment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12Q\n\x0fversion_configs\x18\x06 \x03(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.Environment.VersionConfig\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12U\n\x11test_cases_config\x18\x07 \x01(\x0b\x32:.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig\x12P\n\x0ewebhook_config\x18\n \x01(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig\x1aK\n\rVersionConfig\x12:\n\x07version\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x1a\x8f\x01\n\x0fTestCasesConfig\x12;\n\ntest_cases\x18\x01 \x03(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/TestCase\x12\x1d\n\x15\x65nable_continuous_run\x18\x02 \x01(\x08\x12 \n\x18\x65nable_predeployment_run\x18\x03 \x01(\x08\x1aR\n\rWebhookConfig\x12\x41\n\x11webhook_overrides\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.cx.v3.Webhook:}\xea\x41z\n%dialogflow.googleapis.com/Environment\x12Qprojects/{project}/locations/{location}/agents/{agent}/environments/{environment}\"\x7f\n\x17ListEnvironmentsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Environment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"u\n\x18ListEnvironmentsResponse\x12@\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32*.google.cloud.dialogflow.cx.v3.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15GetEnvironmentRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"\x9f\x01\n\x18\x43reateEnvironmentRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Environment\x12\x44\n\x0b\x65nvironment\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.EnvironmentB\x03\xe0\x41\x02\"\x96\x01\n\x18UpdateEnvironmentRequest\x12\x44\n\x0b\x65nvironment\x18\x01 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.EnvironmentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"W\n\x18\x44\x65leteEnvironmentRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"\x85\x01\n\x1fLookupEnvironmentHistoryRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"}\n LookupEnvironmentHistoryResponse\x12@\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32*.google.cloud.dialogflow.cx.v3.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x88\x04\n\x14\x43ontinuousTestResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12X\n\x06result\x18\x02 \x01(\x0e\x32H.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult\x12H\n\x11test_case_results\x18\x03 \x03(\tB-\xfa\x41*\n(dialogflow.googleapis.com/TestCaseResult\x12,\n\x08run_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"V\n\x14\x41ggregatedTestResult\x12&\n\"AGGREGATED_TEST_RESULT_UNSPECIFIED\x10\x00\x12\n\n\x06PASSED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02:\xb7\x01\xea\x41\xb3\x01\n.dialogflow.googleapis.com/ContinuousTestResult\x12\x80\x01projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/continuousTestResults/{continuous_test_result}\"^\n\x18RunContinuousTestRequest\x12\x42\n\x0b\x65nvironment\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"p\n\x19RunContinuousTestResponse\x12S\n\x16\x63ontinuous_test_result\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.ContinuousTestResult\"U\n\x19RunContinuousTestMetadata\x12\x38\n\x06\x65rrors\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.cx.v3.TestError\"\x91\x01\n ListContinuousTestResultsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/ContinuousTestResult\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x92\x01\n!ListContinuousTestResultsResponse\x12T\n\x17\x63ontinuous_test_results\x18\x01 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.ContinuousTestResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x98\x01\n\x11\x44\x65ployFlowRequest\x12\x42\n\x0b\x65nvironment\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12?\n\x0c\x66low_version\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"i\n\x12\x44\x65ployFlowResponse\x12?\n\x0b\x65nvironment\x18\x01 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Environment\x12\x12\n\ndeployment\x18\x02 \x01(\t\"S\n\x12\x44\x65ployFlowMetadata\x12=\n\x0btest_errors\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.cx.v3.TestError2\xc4\x11\n\x0c\x45nvironments\x12\xcf\x01\n\x10ListEnvironments\x12\x36.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest\x1a\x37.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse\"J\x82\xd3\xe4\x93\x02;\x12\x39/v3/{parent=projects/*/locations/*/agents/*}/environments\xda\x41\x06parent\x12\xbc\x01\n\x0eGetEnvironment\x12\x34.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest\x1a*.google.cloud.dialogflow.cx.v3.Environment\"H\x82\xd3\xe4\x93\x02;\x12\x39/v3/{name=projects/*/locations/*/agents/*/environments/*}\xda\x41\x04name\x12\xf9\x01\n\x11\x43reateEnvironment\x12\x37.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02H\"9/v3/{parent=projects/*/locations/*/agents/*}/environments:\x0b\x65nvironment\xda\x41\x12parent,environment\xca\x41%\n\x0b\x45nvironment\x12\x16google.protobuf.Struct\x12\x8a\x02\n\x11UpdateEnvironment\x12\x37.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\x9c\x01\x82\xd3\xe4\x93\x02T2E/v3/{environment.name=projects/*/locations/*/agents/*/environments/*}:\x0b\x65nvironment\xda\x41\x17\x65nvironment,update_mask\xca\x41%\n\x0b\x45nvironment\x12\x16google.protobuf.Struct\x12\xae\x01\n\x11\x44\x65leteEnvironment\x12\x37.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest\x1a\x16.google.protobuf.Empty\"H\x82\xd3\xe4\x93\x02;*9/v3/{name=projects/*/locations/*/agents/*/environments/*}\xda\x41\x04name\x12\xfe\x01\n\x18LookupEnvironmentHistory\x12>.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest\x1a?.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse\"a\x82\xd3\xe4\x93\x02T\x12R/v3/{name=projects/*/locations/*/agents/*/environments/*}:lookupEnvironmentHistory\xda\x41\x04name\x12\x84\x02\n\x11RunContinuousTest\x12\x37.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest\x1a\x1d.google.longrunning.Operation\"\x96\x01\x82\xd3\xe4\x93\x02W\"R/v3/{environment=projects/*/locations/*/agents/*/environments/*}:runContinuousTest:\x01*\xca\x41\x36\n\x19RunContinuousTestResponse\x12\x19RunContinuousTestMetadata\x12\x82\x02\n\x19ListContinuousTestResults\x12?.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest\x1a@.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse\"b\x82\xd3\xe4\x93\x02S\x12Q/v3/{parent=projects/*/locations/*/agents/*/environments/*}/continuousTestResults\xda\x41\x06parent\x12\xe1\x01\n\nDeployFlow\x12\x30.google.cloud.dialogflow.cx.v3.DeployFlowRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\x82\xd3\xe4\x93\x02P\"K/v3/{environment=projects/*/locations/*/agents/*/environments/*}:deployFlow:\x01*\xca\x41(\n\x12\x44\x65ployFlowResponse\x12\x12\x44\x65ployFlowMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb6\x01\n!com.google.cloud.dialogflow.cx.v3B\x10\x45nvironmentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dialogflow.cx.v3.Webhook", "google/cloud/dialogflow/cx/v3/webhook.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.cloud.dialogflow.cx.v3.TestError", "google/cloud/dialogflow/cx/v3/test_case.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb index 51d3e60aa582..3d3f362b8522 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/experiment.proto @@ -12,135 +13,34 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/experiment.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.Experiment" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - optional :state, :enum, 4, "google.cloud.dialogflow.cx.v3.Experiment.State" - optional :definition, :message, 5, "google.cloud.dialogflow.cx.v3.Experiment.Definition" - optional :rollout_config, :message, 14, "google.cloud.dialogflow.cx.v3.RolloutConfig" - optional :rollout_state, :message, 15, "google.cloud.dialogflow.cx.v3.RolloutState" - optional :rollout_failure_reason, :string, 16 - optional :result, :message, 6, "google.cloud.dialogflow.cx.v3.Experiment.Result" - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :start_time, :message, 8, "google.protobuf.Timestamp" - optional :end_time, :message, 9, "google.protobuf.Timestamp" - optional :last_update_time, :message, 10, "google.protobuf.Timestamp" - optional :experiment_length, :message, 11, "google.protobuf.Duration" - repeated :variants_history, :message, 12, "google.cloud.dialogflow.cx.v3.VariantsHistory" - end - add_message "google.cloud.dialogflow.cx.v3.Experiment.Definition" do - optional :condition, :string, 1 - oneof :variants do - optional :version_variants, :message, 2, "google.cloud.dialogflow.cx.v3.VersionVariants" - end - end - add_message "google.cloud.dialogflow.cx.v3.Experiment.Result" do - repeated :version_metrics, :message, 1, "google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics" - optional :last_update_time, :message, 2, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval" do - optional :confidence_level, :double, 1 - optional :ratio, :double, 2 - optional :lower_bound, :double, 3 - optional :upper_bound, :double, 4 - end - add_message "google.cloud.dialogflow.cx.v3.Experiment.Result.Metric" do - optional :type, :enum, 1, "google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType" - optional :count_type, :enum, 5, "google.cloud.dialogflow.cx.v3.Experiment.Result.CountType" - optional :confidence_interval, :message, 3, "google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval" - oneof :value do - optional :ratio, :double, 2 - optional :count, :double, 4 - end - end - add_message "google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics" do - optional :version, :string, 1 - repeated :metrics, :message, 2, "google.cloud.dialogflow.cx.v3.Experiment.Result.Metric" - optional :session_count, :int32, 3 - end - add_enum "google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType" do - value :METRIC_UNSPECIFIED, 0 - value :CONTAINED_SESSION_NO_CALLBACK_RATE, 1 - value :LIVE_AGENT_HANDOFF_RATE, 2 - value :CALLBACK_SESSION_RATE, 3 - value :ABANDONED_SESSION_RATE, 4 - value :SESSION_END_RATE, 5 - end - add_enum "google.cloud.dialogflow.cx.v3.Experiment.Result.CountType" do - value :COUNT_TYPE_UNSPECIFIED, 0 - value :TOTAL_NO_MATCH_COUNT, 1 - value :TOTAL_TURN_COUNT, 2 - value :AVERAGE_TURN_COUNT, 3 - end - add_enum "google.cloud.dialogflow.cx.v3.Experiment.State" do - value :STATE_UNSPECIFIED, 0 - value :DRAFT, 1 - value :RUNNING, 2 - value :DONE, 3 - value :ROLLOUT_FAILED, 4 - end - add_message "google.cloud.dialogflow.cx.v3.VersionVariants" do - repeated :variants, :message, 1, "google.cloud.dialogflow.cx.v3.VersionVariants.Variant" - end - add_message "google.cloud.dialogflow.cx.v3.VersionVariants.Variant" do - optional :version, :string, 1 - optional :traffic_allocation, :float, 2 - optional :is_control_group, :bool, 3 - end - add_message "google.cloud.dialogflow.cx.v3.VariantsHistory" do - optional :update_time, :message, 2, "google.protobuf.Timestamp" - oneof :variants do - optional :version_variants, :message, 1, "google.cloud.dialogflow.cx.v3.VersionVariants" - end - end - add_message "google.cloud.dialogflow.cx.v3.RolloutConfig" do - repeated :rollout_steps, :message, 1, "google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep" - optional :rollout_condition, :string, 2 - optional :failure_condition, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep" do - optional :display_name, :string, 1 - optional :traffic_percent, :int32, 2 - optional :min_duration, :message, 3, "google.protobuf.Duration" - end - add_message "google.cloud.dialogflow.cx.v3.RolloutState" do - optional :step, :string, 1 - optional :step_index, :int32, 3 - optional :start_time, :message, 2, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.cx.v3.ListExperimentsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListExperimentsResponse" do - repeated :experiments, :message, 1, "google.cloud.dialogflow.cx.v3.Experiment" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetExperimentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.CreateExperimentRequest" do - optional :parent, :string, 1 - optional :experiment, :message, 2, "google.cloud.dialogflow.cx.v3.Experiment" - end - add_message "google.cloud.dialogflow.cx.v3.UpdateExperimentRequest" do - optional :experiment, :message, 1, "google.cloud.dialogflow.cx.v3.Experiment" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteExperimentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.StartExperimentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.StopExperimentRequest" do - optional :name, :string, 1 + +descriptor_data = "\n.google/cloud/dialogflow/cx/v3/experiment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfb\x10\n\nExperiment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12>\n\x05state\x18\x04 \x01(\x0e\x32/.google.cloud.dialogflow.cx.v3.Experiment.State\x12H\n\ndefinition\x18\x05 \x01(\x0b\x32\x34.google.cloud.dialogflow.cx.v3.Experiment.Definition\x12\x44\n\x0erollout_config\x18\x0e \x01(\x0b\x32,.google.cloud.dialogflow.cx.v3.RolloutConfig\x12\x42\n\rrollout_state\x18\x0f \x01(\x0b\x32+.google.cloud.dialogflow.cx.v3.RolloutState\x12\x1e\n\x16rollout_failure_reason\x18\x10 \x01(\t\x12@\n\x06result\x18\x06 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.Experiment.Result\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x11\x65xperiment_length\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12H\n\x10variants_history\x18\x0c \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.VariantsHistory\x1aw\n\nDefinition\x12\x11\n\tcondition\x18\x01 \x01(\t\x12J\n\x10version_variants\x18\x02 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.VersionVariantsH\x00\x42\n\n\x08variants\x1a\x8b\x08\n\x06Result\x12X\n\x0fversion_metrics\x18\x01 \x03(\x0b\x32?.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics\x12\x34\n\x10last_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1ag\n\x12\x43onfidenceInterval\x12\x18\n\x10\x63onfidence_level\x18\x01 \x01(\x01\x12\r\n\x05ratio\x18\x02 \x01(\x01\x12\x13\n\x0blower_bound\x18\x03 \x01(\x01\x12\x13\n\x0bupper_bound\x18\x04 \x01(\x01\x1a\xb0\x02\n\x06Metric\x12I\n\x04type\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType\x12N\n\ncount_type\x18\x05 \x01(\x0e\x32:.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType\x12\x0f\n\x05ratio\x18\x02 \x01(\x01H\x00\x12\x0f\n\x05\x63ount\x18\x04 \x01(\x01H\x00\x12`\n\x13\x63onfidence_interval\x18\x03 \x01(\x0b\x32\x43.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceIntervalB\x07\n\x05value\x1a\xaa\x01\n\x0eVersionMetrics\x12\x37\n\x07version\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Version\x12H\n\x07metrics\x18\x02 \x03(\x0b\x32\x37.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric\x12\x15\n\rsession_count\x18\x03 \x01(\x05\"\xb6\x01\n\nMetricType\x12\x16\n\x12METRIC_UNSPECIFIED\x10\x00\x12&\n\"CONTAINED_SESSION_NO_CALLBACK_RATE\x10\x01\x12\x1b\n\x17LIVE_AGENT_HANDOFF_RATE\x10\x02\x12\x19\n\x15\x43\x41LLBACK_SESSION_RATE\x10\x03\x12\x1a\n\x16\x41\x42\x41NDONED_SESSION_RATE\x10\x04\x12\x14\n\x10SESSION_END_RATE\x10\x05\"o\n\tCountType\x12\x1a\n\x16\x43OUNT_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14TOTAL_NO_MATCH_COUNT\x10\x01\x12\x14\n\x10TOTAL_TURN_COUNT\x10\x02\x12\x16\n\x12\x41VERAGE_TURN_COUNT\x10\x03\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x44RAFT\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\x12\n\x0eROLLOUT_FAILED\x10\x04:\x96\x01\xea\x41\x92\x01\n$dialogflow.googleapis.com/Experiment\x12jprojects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}\"\xad\x01\n\x0fVersionVariants\x12H\n\x08variants\x18\x01 \x03(\x0b\x32\x36.google.cloud.dialogflow.cx.v3.VersionVariants.Variant\x1aP\n\x07Variant\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1a\n\x12traffic_allocation\x18\x02 \x01(\x02\x12\x18\n\x10is_control_group\x18\x03 \x01(\x08\"\x9a\x01\n\x0fVariantsHistory\x12J\n\x10version_variants\x18\x01 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.VersionVariantsH\x00\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\n\x08variants\"\x85\x02\n\rRolloutConfig\x12O\n\rrollout_steps\x18\x01 \x03(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep\x12\x19\n\x11rollout_condition\x18\x02 \x01(\t\x12\x19\n\x11\x66\x61ilure_condition\x18\x03 \x01(\t\x1am\n\x0bRolloutStep\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\x0ftraffic_percent\x18\x02 \x01(\x05\x12/\n\x0cmin_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\"`\n\x0cRolloutState\x12\x0c\n\x04step\x18\x01 \x01(\t\x12\x12\n\nstep_index\x18\x03 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"}\n\x16ListExperimentsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/Experiment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x17ListExperimentsResponse\x12>\n\x0b\x65xperiments\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.cx.v3.Experiment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"R\n\x14GetExperimentRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/Experiment\"\x9b\x01\n\x17\x43reateExperimentRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/Experiment\x12\x42\n\nexperiment\x18\x02 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.ExperimentB\x03\xe0\x41\x02\"\x93\x01\n\x17UpdateExperimentRequest\x12\x42\n\nexperiment\x18\x01 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.ExperimentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"U\n\x17\x44\x65leteExperimentRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/Experiment\"T\n\x16StartExperimentRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/Experiment\"S\n\x15StopExperimentRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/Experiment2\xf8\x0c\n\x0b\x45xperiments\x12\xda\x01\n\x0fListExperiments\x12\x35.google.cloud.dialogflow.cx.v3.ListExperimentsRequest\x1a\x36.google.cloud.dialogflow.cx.v3.ListExperimentsResponse\"X\x82\xd3\xe4\x93\x02I\x12G/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments\xda\x41\x06parent\x12\xc7\x01\n\rGetExperiment\x12\x33.google.cloud.dialogflow.cx.v3.GetExperimentRequest\x1a).google.cloud.dialogflow.cx.v3.Experiment\"V\x82\xd3\xe4\x93\x02I\x12G/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}\xda\x41\x04name\x12\xe6\x01\n\x10\x43reateExperiment\x12\x36.google.cloud.dialogflow.cx.v3.CreateExperimentRequest\x1a).google.cloud.dialogflow.cx.v3.Experiment\"o\x82\xd3\xe4\x93\x02U\"G/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments:\nexperiment\xda\x41\x11parent,experiment\x12\xf6\x01\n\x10UpdateExperiment\x12\x36.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest\x1a).google.cloud.dialogflow.cx.v3.Experiment\"\x7f\x82\xd3\xe4\x93\x02`2R/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}:\nexperiment\xda\x41\x16\x65xperiment,update_mask\x12\xba\x01\n\x10\x44\x65leteExperiment\x12\x36.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest\x1a\x16.google.protobuf.Empty\"V\x82\xd3\xe4\x93\x02I*G/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}\xda\x41\x04name\x12\xd4\x01\n\x0fStartExperiment\x12\x35.google.cloud.dialogflow.cx.v3.StartExperimentRequest\x1a).google.cloud.dialogflow.cx.v3.Experiment\"_\x82\xd3\xe4\x93\x02R\"M/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start:\x01*\xda\x41\x04name\x12\xd1\x01\n\x0eStopExperiment\x12\x34.google.cloud.dialogflow.cx.v3.StopExperimentRequest\x1a).google.cloud.dialogflow.cx.v3.Experiment\"^\x82\xd3\xe4\x93\x02Q\"L/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop:\x01*\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb5\x01\n!com.google.cloud.dialogflow.cx.v3B\x0f\x45xperimentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb index c2251d3b4dce..8ff1174c9673 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/flow.proto @@ -15,104 +16,35 @@ require 'google/protobuf/struct_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/flow.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.NluSettings" do - optional :model_type, :enum, 1, "google.cloud.dialogflow.cx.v3.NluSettings.ModelType" - optional :classification_threshold, :float, 3 - optional :model_training_mode, :enum, 4, "google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode" - end - add_enum "google.cloud.dialogflow.cx.v3.NluSettings.ModelType" do - value :MODEL_TYPE_UNSPECIFIED, 0 - value :MODEL_TYPE_STANDARD, 1 - value :MODEL_TYPE_ADVANCED, 3 - end - add_enum "google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode" do - value :MODEL_TRAINING_MODE_UNSPECIFIED, 0 - value :MODEL_TRAINING_MODE_AUTOMATIC, 1 - value :MODEL_TRAINING_MODE_MANUAL, 2 - end - add_message "google.cloud.dialogflow.cx.v3.Flow" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - repeated :transition_routes, :message, 4, "google.cloud.dialogflow.cx.v3.TransitionRoute" - repeated :event_handlers, :message, 10, "google.cloud.dialogflow.cx.v3.EventHandler" - repeated :transition_route_groups, :string, 15 - optional :nlu_settings, :message, 11, "google.cloud.dialogflow.cx.v3.NluSettings" - end - add_message "google.cloud.dialogflow.cx.v3.CreateFlowRequest" do - optional :parent, :string, 1 - optional :flow, :message, 2, "google.cloud.dialogflow.cx.v3.Flow" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.DeleteFlowRequest" do - optional :name, :string, 1 - optional :force, :bool, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ListFlowsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :language_code, :string, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ListFlowsResponse" do - repeated :flows, :message, 1, "google.cloud.dialogflow.cx.v3.Flow" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetFlowRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.UpdateFlowRequest" do - optional :flow, :message, 1, "google.cloud.dialogflow.cx.v3.Flow" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.TrainFlowRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.ValidateFlowRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.FlowValidationResult" do - optional :name, :string, 1 - repeated :validation_messages, :message, 2, "google.cloud.dialogflow.cx.v3.ValidationMessage" - optional :update_time, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.cx.v3.ImportFlowRequest" do - optional :parent, :string, 1 - optional :import_option, :enum, 4, "google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption" - oneof :flow do - optional :flow_uri, :string, 2 - optional :flow_content, :bytes, 3 - end - end - add_enum "google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption" do - value :IMPORT_OPTION_UNSPECIFIED, 0 - value :KEEP, 1 - value :FALLBACK, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ImportFlowResponse" do - optional :flow, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.ExportFlowRequest" do - optional :name, :string, 1 - optional :flow_uri, :string, 2 - optional :include_referenced_flows, :bool, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ExportFlowResponse" do - oneof :flow do - optional :flow_uri, :string, 1 - optional :flow_content, :bytes, 2 - end + +descriptor_data = "\n(google/cloud/dialogflow/cx/v3/flow.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x36google/cloud/dialogflow/cx/v3/validation_message.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\x03\n\x0bNluSettings\x12H\n\nmodel_type\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.cx.v3.NluSettings.ModelType\x12 \n\x18\x63lassification_threshold\x18\x03 \x01(\x02\x12Y\n\x13model_training_mode\x18\x04 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode\"Y\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13MODEL_TYPE_STANDARD\x10\x01\x12\x17\n\x13MODEL_TYPE_ADVANCED\x10\x03\"{\n\x11ModelTrainingMode\x12#\n\x1fMODEL_TRAINING_MODE_UNSPECIFIED\x10\x00\x12!\n\x1dMODEL_TRAINING_MODE_AUTOMATIC\x10\x01\x12\x1e\n\x1aMODEL_TRAINING_MODE_MANUAL\x10\x02\"\xd6\x03\n\x04\x46low\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12I\n\x11transition_routes\x18\x04 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute\x12\x43\n\x0e\x65vent_handlers\x18\n \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler\x12T\n\x17transition_route_groups\x18\x0f \x03(\tB3\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12@\n\x0cnlu_settings\x18\x0b \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.NluSettings:h\xea\x41\x65\n\x1e\x64ialogflow.googleapis.com/Flow\x12\x43projects/{project}/locations/{location}/agents/{agent}/flows/{flow}\"\x9a\x01\n\x11\x43reateFlowRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x36\n\x04\x66low\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"X\n\x11\x44\x65leteFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x88\x01\n\x10ListFlowsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"`\n\x11ListFlowsResponse\x12\x32\n\x05\x66lows\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.cx.v3.Flow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x0eGetFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x93\x01\n\x11UpdateFlowRequest\x12\x36\n\x04\x66low\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"H\n\x10TrainFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\"b\n\x13ValidateFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"}\n\x1eGetFlowValidationResultRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/FlowValidationResult\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xb1\x02\n\x14\x46lowValidationResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12M\n\x13validation_messages\x18\x02 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.ValidationMessage\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\x8a\x01\xea\x41\x86\x01\n.dialogflow.googleapis.com/FlowValidationResult\x12Tprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult\"\x9c\x02\n\x11ImportFlowRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x12\n\x08\x66low_uri\x18\x02 \x01(\tH\x00\x12\x16\n\x0c\x66low_content\x18\x03 \x01(\x0cH\x00\x12T\n\rimport_option\x18\x04 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption\"E\n\x0cImportOption\x12\x1d\n\x19IMPORT_OPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04KEEP\x10\x01\x12\x0c\n\x08\x46\x41LLBACK\x10\x02\x42\x06\n\x04\x66low\"G\n\x12ImportFlowResponse\x12\x31\n\x04\x66low\x18\x01 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\"\x87\x01\n\x11\x45xportFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\x08\x66low_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18include_referenced_flows\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"H\n\x12\x45xportFlowResponse\x12\x12\n\x08\x66low_uri\x18\x01 \x01(\tH\x00\x12\x16\n\x0c\x66low_content\x18\x02 \x01(\x0cH\x00\x42\x06\n\x04\x66low2\x98\x10\n\x05\x46lows\x12\xb3\x01\n\nCreateFlow\x12\x30.google.cloud.dialogflow.cx.v3.CreateFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"N\x82\xd3\xe4\x93\x02:\"2/v3/{parent=projects/*/locations/*/agents/*}/flows:\x04\x66low\xda\x41\x0bparent,flow\x12\x99\x01\n\nDeleteFlow\x12\x30.google.cloud.dialogflow.cx.v3.DeleteFlowRequest\x1a\x16.google.protobuf.Empty\"A\x82\xd3\xe4\x93\x02\x34*2/v3/{name=projects/*/locations/*/agents/*/flows/*}\xda\x41\x04name\x12\xb3\x01\n\tListFlows\x12/.google.cloud.dialogflow.cx.v3.ListFlowsRequest\x1a\x30.google.cloud.dialogflow.cx.v3.ListFlowsResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{parent=projects/*/locations/*/agents/*}/flows\xda\x41\x06parent\x12\xa0\x01\n\x07GetFlow\x12-.google.cloud.dialogflow.cx.v3.GetFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*/locations/*/agents/*/flows/*}\xda\x41\x04name\x12\xbd\x01\n\nUpdateFlow\x12\x30.google.cloud.dialogflow.cx.v3.UpdateFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"X\x82\xd3\xe4\x93\x02?27/v3/{flow.name=projects/*/locations/*/agents/*/flows/*}:\x04\x66low\xda\x41\x10\x66low,update_mask\x12\xd9\x01\n\tTrainFlow\x12/.google.cloud.dialogflow.cx.v3.TrainFlowRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02=\"8/v3/{name=projects/*/locations/*/agents/*/flows/*}:train:\x01*\xda\x41\x04name\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xbf\x01\n\x0cValidateFlow\x12\x32.google.cloud.dialogflow.cx.v3.ValidateFlowRequest\x1a\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult\"F\x82\xd3\xe4\x93\x02@\";/v3/{name=projects/*/locations/*/agents/*/flows/*}:validate:\x01*\x12\xe1\x01\n\x17GetFlowValidationResult\x12=.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest\x1a\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult\"R\x82\xd3\xe4\x93\x02\x45\x12\x43/v3/{name=projects/*/locations/*/agents/*/flows/*/validationResult}\xda\x41\x04name\x12\xd2\x01\n\nImportFlow\x12\x30.google.cloud.dialogflow.cx.v3.ImportFlowRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02>\"9/v3/{parent=projects/*/locations/*/agents/*}/flows:import:\x01*\xca\x41,\n\x12ImportFlowResponse\x12\x16google.protobuf.Struct\x12\xd2\x01\n\nExportFlow\x12\x30.google.cloud.dialogflow.cx.v3.ExportFlowRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02>\"9/v3/{name=projects/*/locations/*/agents/*/flows/*}:export:\x01*\xca\x41,\n\x12\x45xportFlowResponse\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xaf\x01\n!com.google.cloud.dialogflow.cx.v3B\tFlowProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.dialogflow.cx.v3.TransitionRoute", "google/cloud/dialogflow/cx/v3/page.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.cloud.dialogflow.cx.v3.ValidationMessage", "google/cloud/dialogflow/cx/v3/validation_message.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb index 14c2cf6c5a8d..b693b3cc6264 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/fulfillment.proto @@ -7,34 +8,33 @@ require 'google/cloud/dialogflow/cx/v3/response_message_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/fulfillment.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.Fulfillment" do - repeated :messages, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage" - optional :webhook, :string, 2 - optional :return_partial_responses, :bool, 8 - optional :tag, :string, 3 - repeated :set_parameter_actions, :message, 4, "google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction" - repeated :conditional_cases, :message, 5, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases" - end - add_message "google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction" do - optional :parameter, :string, 1 - optional :value, :message, 2, "google.protobuf.Value" - end - add_message "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases" do - repeated :cases, :message, 1, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case" - end - add_message "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case" do - optional :condition, :string, 1 - repeated :case_content, :message, 2, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent" - end - add_message "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent" do - oneof :cases_or_message do - optional :message, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage" - optional :additional_cases, :message, 2, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases" - end + +descriptor_data = "\n/google/cloud/dialogflow/cx/v3/fulfillment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x19google/api/resource.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xe3\x06\n\x0b\x46ulfillment\x12@\n\x08messages\x18\x01 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessage\x12\x37\n\x07webhook\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Webhook\x12 \n\x18return_partial_responses\x18\x08 \x01(\x08\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\\\n\x15set_parameter_actions\x18\x04 \x03(\x0b\x32=.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction\x12V\n\x11\x63onditional_cases\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases\x1aN\n\x12SetParameterAction\x12\x11\n\tparameter\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\x1a\xa3\x03\n\x10\x43onditionalCases\x12O\n\x05\x63\x61ses\x18\x01 \x03(\x0b\x32@.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case\x1a\xbd\x02\n\x04\x43\x61se\x12\x11\n\tcondition\x18\x01 \x01(\t\x12\x62\n\x0c\x63\x61se_content\x18\x02 \x03(\x0b\x32L.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent\x1a\xbd\x01\n\x0b\x43\x61seContent\x12\x41\n\x07message\x18\x01 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessageH\x00\x12W\n\x10\x61\x64\x64itional_cases\x18\x02 \x01(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCasesH\x00\x42\x12\n\x10\x63\x61ses_or_messageB\xb6\x01\n!com.google.cloud.dialogflow.cx.v3B\x10\x46ulfillmentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.dialogflow.cx.v3.ResponseMessage", "google/cloud/dialogflow/cx/v3/response_message.proto"], + ["google.protobuf.Value", "google/protobuf/struct.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb index cbd985b2052d..69611f7bb887 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/gcs.proto @@ -5,12 +6,31 @@ require 'google/api/field_behavior_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/gcs.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.GcsDestination" do - optional :uri, :string, 1 + +descriptor_data = "\n\'google/cloud/dialogflow/cx/v3/gcs.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\"\"\n\x0eGcsDestination\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\xae\x01\n!com.google.cloud.dialogflow.cx.v3B\x08GcsProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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 = [ + ] + 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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb index d14c08b66ec3..a308501afc4a 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/intent.proto @@ -10,67 +11,32 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/intent.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.Intent" do - optional :name, :string, 1 - optional :display_name, :string, 2 - repeated :training_phrases, :message, 3, "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase" - repeated :parameters, :message, 4, "google.cloud.dialogflow.cx.v3.Intent.Parameter" - optional :priority, :int32, 5 - optional :is_fallback, :bool, 6 - map :labels, :string, :string, 7 - optional :description, :string, 8 - end - add_message "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase" do - optional :id, :string, 1 - repeated :parts, :message, 2, "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part" - optional :repeat_count, :int32, 3 - end - add_message "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part" do - optional :text, :string, 1 - optional :parameter_id, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.Intent.Parameter" do - optional :id, :string, 1 - optional :entity_type, :string, 2 - optional :is_list, :bool, 3 - optional :redact, :bool, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ListIntentsRequest" do - optional :parent, :string, 1 - optional :language_code, :string, 2 - optional :intent_view, :enum, 5, "google.cloud.dialogflow.cx.v3.IntentView" - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ListIntentsResponse" do - repeated :intents, :message, 1, "google.cloud.dialogflow.cx.v3.Intent" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetIntentRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.CreateIntentRequest" do - optional :parent, :string, 1 - optional :intent, :message, 2, "google.cloud.dialogflow.cx.v3.Intent" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.UpdateIntentRequest" do - optional :intent, :message, 1, "google.cloud.dialogflow.cx.v3.Intent" - optional :language_code, :string, 2 - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteIntentRequest" do - optional :name, :string, 1 - end - add_enum "google.cloud.dialogflow.cx.v3.IntentView" do - value :INTENT_VIEW_UNSPECIFIED, 0 - value :INTENT_VIEW_PARTIAL, 1 - value :INTENT_VIEW_FULL, 2 + +descriptor_data = "\n*google/cloud/dialogflow/cx/v3/intent.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9c\x06\n\x06Intent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x10training_phrases\x18\x03 \x03(\x0b\x32\x34.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase\x12\x43\n\nparameters\x18\x04 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.Intent.Parameter\x12\x10\n\x08priority\x18\x05 \x01(\x05\x12\x13\n\x0bis_fallback\x18\x06 \x01(\x08\x12\x41\n\x06labels\x18\x07 \x03(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.Intent.LabelsEntry\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x1a\xb2\x01\n\x0eTrainingPhrase\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\x05parts\x18\x02 \x03(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartB\x03\xe0\x41\x02\x12\x14\n\x0crepeat_count\x18\x03 \x01(\x05\x1a/\n\x04Part\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0cparameter_id\x18\x02 \x01(\t\x1a\x80\x01\n\tParameter\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0b\x65ntity_type\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x0f\n\x07is_list\x18\x03 \x01(\x08\x12\x0e\n\x06redact\x18\x04 \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:n\xea\x41k\n dialogflow.googleapis.com/Intent\x12Gprojects/{project}/locations/{location}/agents/{agent}/intents/{intent}\"\xcc\x01\n\x12ListIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12>\n\x0bintent_view\x18\x05 \x01(\x0e\x32).google.cloud.dialogflow.cx.v3.IntentView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"f\n\x13ListIntentsResponse\x12\x36\n\x07intents\x18\x01 \x03(\x0b\x32%.google.cloud.dialogflow.cx.v3.Intent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x10GetIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xa2\x01\n\x13\x43reateIntentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12:\n\x06intent\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x99\x01\n\x13UpdateIntentRequest\x12:\n\x06intent\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"M\n\x13\x44\x65leteIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent*X\n\nIntentView\x12\x1b\n\x17INTENT_VIEW_UNSPECIFIED\x10\x00\x12\x17\n\x13INTENT_VIEW_PARTIAL\x10\x01\x12\x14\n\x10INTENT_VIEW_FULL\x10\x02\x32\x9e\x08\n\x07Intents\x12\xbb\x01\n\x0bListIntents\x12\x31.google.cloud.dialogflow.cx.v3.ListIntentsRequest\x1a\x32.google.cloud.dialogflow.cx.v3.ListIntentsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{parent=projects/*/locations/*/agents/*}/intents\xda\x41\x06parent\x12\xa8\x01\n\tGetIntent\x12/.google.cloud.dialogflow.cx.v3.GetIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/locations/*/agents/*/intents/*}\xda\x41\x04name\x12\xbf\x01\n\x0c\x43reateIntent\x12\x32.google.cloud.dialogflow.cx.v3.CreateIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"T\x82\xd3\xe4\x93\x02>\"4/v3/{parent=projects/*/locations/*/agents/*}/intents:\x06intent\xda\x41\rparent,intent\x12\xcb\x01\n\x0cUpdateIntent\x12\x32.google.cloud.dialogflow.cx.v3.UpdateIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"`\x82\xd3\xe4\x93\x02\x45\x32;/v3/{intent.name=projects/*/locations/*/agents/*/intents/*}:\x06intent\xda\x41\x12intent,update_mask\x12\x9f\x01\n\x0c\x44\x65leteIntent\x12\x32.google.cloud.dialogflow.cx.v3.DeleteIntentRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02\x36*4/v3/{name=projects/*/locations/*/agents/*/intents/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb1\x01\n!com.google.cloud.dialogflow.cx.v3B\x0bIntentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/page_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/page_pb.rb index 82d94b3a7ac4..26ebd69f0ed8 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/page_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/page.proto @@ -12,81 +13,34 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/page.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.Page" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :entry_fulfillment, :message, 7, "google.cloud.dialogflow.cx.v3.Fulfillment" - optional :form, :message, 4, "google.cloud.dialogflow.cx.v3.Form" - repeated :transition_route_groups, :string, 11 - repeated :transition_routes, :message, 9, "google.cloud.dialogflow.cx.v3.TransitionRoute" - repeated :event_handlers, :message, 10, "google.cloud.dialogflow.cx.v3.EventHandler" - end - add_message "google.cloud.dialogflow.cx.v3.Form" do - repeated :parameters, :message, 1, "google.cloud.dialogflow.cx.v3.Form.Parameter" - end - add_message "google.cloud.dialogflow.cx.v3.Form.Parameter" do - optional :display_name, :string, 1 - optional :required, :bool, 2 - optional :entity_type, :string, 3 - optional :is_list, :bool, 4 - optional :fill_behavior, :message, 7, "google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior" - optional :default_value, :message, 9, "google.protobuf.Value" - optional :redact, :bool, 11 - end - add_message "google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior" do - optional :initial_prompt_fulfillment, :message, 3, "google.cloud.dialogflow.cx.v3.Fulfillment" - repeated :reprompt_event_handlers, :message, 5, "google.cloud.dialogflow.cx.v3.EventHandler" - end - add_message "google.cloud.dialogflow.cx.v3.EventHandler" do - optional :name, :string, 6 - optional :event, :string, 4 - optional :trigger_fulfillment, :message, 5, "google.cloud.dialogflow.cx.v3.Fulfillment" - oneof :target do - optional :target_page, :string, 2 - optional :target_flow, :string, 3 - end - end - add_message "google.cloud.dialogflow.cx.v3.TransitionRoute" do - optional :name, :string, 6 - optional :intent, :string, 1 - optional :condition, :string, 2 - optional :trigger_fulfillment, :message, 3, "google.cloud.dialogflow.cx.v3.Fulfillment" - oneof :target do - optional :target_page, :string, 4 - optional :target_flow, :string, 5 - end - end - add_message "google.cloud.dialogflow.cx.v3.ListPagesRequest" do - optional :parent, :string, 1 - optional :language_code, :string, 2 - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ListPagesResponse" do - repeated :pages, :message, 1, "google.cloud.dialogflow.cx.v3.Page" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetPageRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.CreatePageRequest" do - optional :parent, :string, 1 - optional :page, :message, 2, "google.cloud.dialogflow.cx.v3.Page" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.UpdatePageRequest" do - optional :page, :message, 1, "google.cloud.dialogflow.cx.v3.Page" - optional :language_code, :string, 2 - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeletePageRequest" do - optional :name, :string, 1 - optional :force, :bool, 2 + +descriptor_data = "\n(google/cloud/dialogflow/cx/v3/page.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/cloud/dialogflow/cx/v3/fulfillment.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x86\x04\n\x04Page\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\x11\x65ntry_fulfillment\x18\x07 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12\x31\n\x04\x66orm\x18\x04 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.Form\x12T\n\x17transition_route_groups\x18\x0b \x03(\tB3\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12I\n\x11transition_routes\x18\t \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute\x12\x43\n\x0e\x65vent_handlers\x18\n \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler:u\xea\x41r\n\x1e\x64ialogflow.googleapis.com/Page\x12Pprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}\"\xa3\x04\n\x04\x46orm\x12\x41\n\nparameters\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.cx.v3.Form.Parameter\x1a\xd7\x03\n\tParameter\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08required\x18\x02 \x01(\x08\x12\x41\n\x0b\x65ntity_type\x18\x03 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x0f\n\x07is_list\x18\x04 \x01(\x08\x12V\n\rfill_behavior\x18\x07 \x01(\x0b\x32:.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehaviorB\x03\xe0\x41\x02\x12-\n\rdefault_value\x18\t \x01(\x0b\x32\x16.google.protobuf.Value\x12\x0e\n\x06redact\x18\x0b \x01(\x08\x1a\xb1\x01\n\x0c\x46illBehavior\x12S\n\x1ainitial_prompt_fulfillment\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.FulfillmentB\x03\xe0\x41\x02\x12L\n\x17reprompt_event_handlers\x18\x05 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler\"\x80\x02\n\x0c\x45ventHandler\x12\x11\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x65vent\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12G\n\x13trigger_fulfillment\x18\x05 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12:\n\x0btarget_page\x18\x02 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/PageH\x00\x12:\n\x0btarget_flow\x18\x03 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/FlowH\x00\x42\x08\n\x06target\"\xb9\x02\n\x0fTransitionRoute\x12\x11\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x06intent\x18\x01 \x01(\tB%\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x11\n\tcondition\x18\x02 \x01(\t\x12G\n\x13trigger_fulfillment\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12:\n\x0btarget_page\x18\x04 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/PageH\x00\x12:\n\x0btarget_flow\x18\x05 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/FlowH\x00\x42\x08\n\x06target\"\x88\x01\n\x10ListPagesRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Page\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"`\n\x11ListPagesResponse\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.cx.v3.Page\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x0eGetPageRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x9a\x01\n\x11\x43reatePageRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Page\x12\x36\n\x04page\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.PageB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x93\x01\n\x11UpdatePageRequest\x12\x36\n\x04page\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.PageB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"X\n\x11\x44\x65letePageRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\x94\x08\n\x05Pages\x12\xbb\x01\n\tListPages\x12/.google.cloud.dialogflow.cx.v3.ListPagesRequest\x1a\x30.google.cloud.dialogflow.cx.v3.ListPagesResponse\"K\x82\xd3\xe4\x93\x02<\x12:/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages\xda\x41\x06parent\x12\xa8\x01\n\x07GetPage\x12-.google.cloud.dialogflow.cx.v3.GetPageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"I\x82\xd3\xe4\x93\x02<\x12:/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}\xda\x41\x04name\x12\xbb\x01\n\nCreatePage\x12\x30.google.cloud.dialogflow.cx.v3.CreatePageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"V\x82\xd3\xe4\x93\x02\x42\":/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages:\x04page\xda\x41\x0bparent,page\x12\xc5\x01\n\nUpdatePage\x12\x30.google.cloud.dialogflow.cx.v3.UpdatePageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"`\x82\xd3\xe4\x93\x02G2?/v3/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}:\x04page\xda\x41\x10page,update_mask\x12\xa1\x01\n\nDeletePage\x12\x30.google.cloud.dialogflow.cx.v3.DeletePageRequest\x1a\x16.google.protobuf.Empty\"I\x82\xd3\xe4\x93\x02<*:/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xaf\x01\n!com.google.cloud.dialogflow.cx.v3B\tPageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.dialogflow.cx.v3.Fulfillment", "google/cloud/dialogflow/cx/v3/fulfillment.proto"], + ["google.protobuf.Value", "google/protobuf/struct.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb index 793dfd34ec45..a753de52d193 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/response_message.proto @@ -6,61 +7,32 @@ require 'google/api/field_behavior_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/response_message.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage" do - optional :channel, :string, 19 - oneof :message do - optional :text, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage.Text" - optional :payload, :message, 2, "google.protobuf.Struct" - optional :conversation_success, :message, 9, "google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess" - optional :output_audio_text, :message, 8, "google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText" - optional :live_agent_handoff, :message, 10, "google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff" - optional :end_interaction, :message, 11, "google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction" - optional :play_audio, :message, 12, "google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio" - optional :mixed_audio, :message, 13, "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio" - optional :telephony_transfer_call, :message, 18, "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall" - end - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.Text" do - repeated :text, :string, 1 - optional :allow_playback_interruption, :bool, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff" do - optional :metadata, :message, 1, "google.protobuf.Struct" - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess" do - optional :metadata, :message, 1, "google.protobuf.Struct" - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText" do - optional :allow_playback_interruption, :bool, 3 - oneof :source do - optional :text, :string, 1 - optional :ssml, :string, 2 - end - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction" do - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio" do - optional :audio_uri, :string, 1 - optional :allow_playback_interruption, :bool, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio" do - repeated :segments, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment" - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment" do - optional :allow_playback_interruption, :bool, 3 - oneof :content do - optional :audio, :bytes, 1 - optional :uri, :string, 2 - end - end - add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall" do - oneof :endpoint do - optional :phone_number, :string, 1 - end + +descriptor_data = "\n4google/cloud/dialogflow/cx/v3/response_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xbc\x0b\n\x0fResponseMessage\x12\x43\n\x04text\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.ResponseMessage.TextH\x00\x12*\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x62\n\x14\x63onversation_success\x18\t \x01(\x0b\x32\x42.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccessH\x00\x12[\n\x11output_audio_text\x18\x08 \x01(\x0b\x32>.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioTextH\x00\x12]\n\x12live_agent_handoff\x18\n \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoffH\x00\x12]\n\x0f\x65nd_interaction\x18\x0b \x01(\x0b\x32=.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteractionB\x03\xe0\x41\x03H\x00\x12N\n\nplay_audio\x18\x0c \x01(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudioH\x00\x12U\n\x0bmixed_audio\x18\r \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudioB\x03\xe0\x41\x03H\x00\x12g\n\x17telephony_transfer_call\x18\x12 \x01(\x0b\x32\x44.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallH\x00\x12\x0f\n\x07\x63hannel\x18\x13 \x01(\t\x1a\x43\n\x04Text\x12\x11\n\x04text\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12(\n\x1b\x61llow_playback_interruption\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x1a=\n\x10LiveAgentHandoff\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a@\n\x13\x43onversationSuccess\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x65\n\x0fOutputAudioText\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12(\n\x1b\x61llow_playback_interruption\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x42\x08\n\x06source\x1a\x10\n\x0e\x45ndInteraction\x1aM\n\tPlayAudio\x12\x16\n\taudio_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12(\n\x1b\x61llow_playback_interruption\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x1a\xc1\x01\n\nMixedAudio\x12S\n\x08segments\x18\x01 \x03(\x0b\x32\x41.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment\x1a^\n\x07Segment\x12\x0f\n\x05\x61udio\x18\x01 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x12(\n\x1b\x61llow_playback_interruption\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x42\t\n\x07\x63ontent\x1a;\n\x15TelephonyTransferCall\x12\x16\n\x0cphone_number\x18\x01 \x01(\tH\x00\x42\n\n\x08\x65ndpointB\t\n\x07messageB\xba\x01\n!com.google.cloud.dialogflow.cx.v3B\x14ResponseMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.protobuf.Struct", "google/protobuf/struct.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb index 29d1d5c7adc1..b34d1aec60c4 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/security_settings.proto @@ -10,73 +11,32 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/security_settings.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest" do - optional :security_settings, :message, 1, "google.cloud.dialogflow.cx.v3.SecuritySettings" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse" do - repeated :security_settings, :message, 1, "google.cloud.dialogflow.cx.v3.SecuritySettings" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest" do - optional :parent, :string, 1 - optional :security_settings, :message, 2, "google.cloud.dialogflow.cx.v3.SecuritySettings" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.SecuritySettings" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :redaction_strategy, :enum, 3, "google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy" - optional :redaction_scope, :enum, 4, "google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope" - optional :inspect_template, :string, 9 - optional :deidentify_template, :string, 17 - repeated :purge_data_types, :enum, 8, "google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType" - optional :audio_export_settings, :message, 12, "google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings" - optional :insights_export_settings, :message, 13, "google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings" - oneof :data_retention do - optional :retention_window_days, :int32, 6 - end - end - add_message "google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings" do - optional :gcs_bucket, :string, 1 - optional :audio_export_pattern, :string, 2 - optional :enable_audio_redaction, :bool, 3 - optional :audio_format, :enum, 4, "google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat" - end - add_enum "google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat" do - value :AUDIO_FORMAT_UNSPECIFIED, 0 - value :MULAW, 1 - value :MP3, 2 - value :OGG, 3 - end - add_message "google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings" do - optional :enable_insights_export, :bool, 1 - end - add_enum "google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy" do - value :REDACTION_STRATEGY_UNSPECIFIED, 0 - value :REDACT_WITH_SERVICE, 1 - end - add_enum "google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope" do - value :REDACTION_SCOPE_UNSPECIFIED, 0 - value :REDACT_DISK_STORAGE, 2 - end - add_enum "google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType" do - value :PURGE_DATA_TYPE_UNSPECIFIED, 0 - value :DIALOGFLOW_HISTORY, 1 + +descriptor_data = "\n5google/cloud/dialogflow/cx/v3/security_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"^\n\x1aGetSecuritySettingsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\"\xa6\x01\n\x1dUpdateSecuritySettingsRequest\x12O\n\x11security_settings\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x88\x01\n\x1bListSecuritySettingsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*dialogflow.googleapis.com/SecuritySettings\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x83\x01\n\x1cListSecuritySettingsResponse\x12J\n\x11security_settings\x18\x01 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettings\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb4\x01\n\x1d\x43reateSecuritySettingsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*dialogflow.googleapis.com/SecuritySettings\x12O\n\x11security_settings\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettingsB\x03\xe0\x41\x02\"a\n\x1d\x44\x65leteSecuritySettingsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\"\x95\x0b\n\x10SecuritySettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12]\n\x12redaction_strategy\x18\x03 \x01(\x0e\x32\x41.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy\x12W\n\x0fredaction_scope\x18\x04 \x01(\x0e\x32>.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope\x12\x41\n\x10inspect_template\x18\t \x01(\tB\'\xfa\x41$\n\"dlp.googleapis.com/InspectTemplate\x12G\n\x13\x64\x65identify_template\x18\x11 \x01(\tB*\xfa\x41\'\n%dlp.googleapis.com/DeidentifyTemplate\x12\x1f\n\x15retention_window_days\x18\x06 \x01(\x05H\x00\x12W\n\x10purge_data_types\x18\x08 \x03(\x0e\x32=.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType\x12\x62\n\x15\x61udio_export_settings\x18\x0c \x01(\x0b\x32\x43.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings\x12h\n\x18insights_export_settings\x18\r \x01(\x0b\x32\x46.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings\x1a\x98\x02\n\x13\x41udioExportSettings\x12\x12\n\ngcs_bucket\x18\x01 \x01(\t\x12\x1c\n\x14\x61udio_export_pattern\x18\x02 \x01(\t\x12\x1e\n\x16\x65nable_audio_redaction\x18\x03 \x01(\x08\x12\x65\n\x0c\x61udio_format\x18\x04 \x01(\x0e\x32O.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat\"H\n\x0b\x41udioFormat\x12\x1c\n\x18\x41UDIO_FORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05MULAW\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x07\n\x03OGG\x10\x03\x1a\x38\n\x16InsightsExportSettings\x12\x1e\n\x16\x65nable_insights_export\x18\x01 \x01(\x08\"P\n\x11RedactionStrategy\x12\"\n\x1eREDACTION_STRATEGY_UNSPECIFIED\x10\x00\x12\x17\n\x13REDACT_WITH_SERVICE\x10\x01\"J\n\x0eRedactionScope\x12\x1f\n\x1bREDACTION_SCOPE_UNSPECIFIED\x10\x00\x12\x17\n\x13REDACT_DISK_STORAGE\x10\x02\"H\n\rPurgeDataType\x12\x1f\n\x1bPURGE_DATA_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x44IALOGFLOW_HISTORY\x10\x01:}\xea\x41z\n*dialogflow.googleapis.com/SecuritySettings\x12Lprojects/{project}/locations/{location}/securitySettings/{security_settings}B\x10\n\x0e\x64\x61ta_retention2\xef\t\n\x17SecuritySettingsService\x12\xf3\x01\n\x16\x43reateSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"j\x82\xd3\xe4\x93\x02I\"4/v3/{parent=projects/*/locations/*}/securitySettings:\x11security_settings\xda\x41\x18parent,security_settings\x12\xc6\x01\n\x13GetSecuritySettings\x12\x39.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/locations/*/securitySettings/*}\xda\x41\x04name\x12\x8b\x02\n\x16UpdateSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"\x81\x01\x82\xd3\xe4\x93\x02[2F/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}:\x11security_settings\xda\x41\x1dsecurity_settings,update_mask\x12\xd6\x01\n\x14ListSecuritySettings\x12:.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest\x1a;.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{parent=projects/*/locations/*}/securitySettings\xda\x41\x06parent\x12\xb3\x01\n\x16\x44\x65leteSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02\x36*4/v3/{name=projects/*/locations/*/securitySettings/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xe2\x04\n!com.google.cloud.dialogflow.cx.v3B\x15SecuritySettingsProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3\xea\x41\xc8\x01\n\"dlp.googleapis.com/InspectTemplate\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\xea\x41\xd7\x01\n%dlp.googleapis.com/DeidentifyTemplate\x12[organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}\x12Qprojects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}b\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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb index a6f7fba27ec7..7c7b53840eb0 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/session_entity_type.proto @@ -11,42 +12,33 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/session_entity_type.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.SessionEntityType" do - optional :name, :string, 1 - optional :entity_override_mode, :enum, 3, "google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode" - repeated :entities, :message, 4, "google.cloud.dialogflow.cx.v3.EntityType.Entity" - end - add_enum "google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode" do - value :ENTITY_OVERRIDE_MODE_UNSPECIFIED, 0 - value :ENTITY_OVERRIDE_MODE_OVERRIDE, 1 - value :ENTITY_OVERRIDE_MODE_SUPPLEMENT, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse" do - repeated :session_entity_types, :message, 1, "google.cloud.dialogflow.cx.v3.SessionEntityType" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest" do - optional :parent, :string, 1 - optional :session_entity_type, :message, 2, "google.cloud.dialogflow.cx.v3.SessionEntityType" - end - add_message "google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest" do - optional :session_entity_type, :message, 1, "google.cloud.dialogflow.cx.v3.SessionEntityType" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest" do - optional :name, :string, 1 + +descriptor_data = "\n7google/cloud/dialogflow/cx/v3/session_entity_type.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/cloud/dialogflow/cx/v3/entity_type.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xf5\x04\n\x11SessionEntityType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x66\n\x14\x65ntity_override_mode\x18\x03 \x01(\x0e\x32\x43.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideModeB\x03\xe0\x41\x02\x12G\n\x08\x65ntities\x18\x04 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.EntityType.EntityB\x03\xe0\x41\x02\"\x82\x01\n\x12\x45ntityOverrideMode\x12$\n ENTITY_OVERRIDE_MODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x45NTITY_OVERRIDE_MODE_OVERRIDE\x10\x01\x12#\n\x1f\x45NTITY_OVERRIDE_MODE_SUPPLEMENT\x10\x02:\x96\x02\xea\x41\x92\x02\n+dialogflow.googleapis.com/SessionEntityType\x12\x63projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}\x12~projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}/entityTypes/{entity_type}\"\x8b\x01\n\x1dListSessionEntityTypesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+dialogflow.googleapis.com/SessionEntityType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x89\x01\n\x1eListSessionEntityTypesResponse\x12N\n\x14session_entity_types\x18\x01 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"`\n\x1bGetSessionEntityTypeRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+dialogflow.googleapis.com/SessionEntityType\"\xb9\x01\n\x1e\x43reateSessionEntityTypeRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+dialogflow.googleapis.com/SessionEntityType\x12R\n\x13session_entity_type\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.SessionEntityTypeB\x03\xe0\x41\x02\"\xa5\x01\n\x1eUpdateSessionEntityTypeRequest\x12R\n\x13session_entity_type\x18\x01 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.SessionEntityTypeB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"c\n\x1e\x44\x65leteSessionEntityTypeRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+dialogflow.googleapis.com/SessionEntityType2\xc5\x0e\n\x12SessionEntityTypes\x12\xc3\x02\n\x16ListSessionEntityTypes\x12<.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest\x1a=.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse\"\xab\x01\x82\xd3\xe4\x93\x02\x9b\x01\x12\x43/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypesZT\x12R/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes\xda\x41\x06parent\x12\xb0\x02\n\x14GetSessionEntityType\x12:.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest\x1a\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\"\xa9\x01\x82\xd3\xe4\x93\x02\x9b\x01\x12\x43/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}ZT\x12R/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}\xda\x41\x04name\x12\xf6\x02\n\x17\x43reateSessionEntityType\x12=.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest\x1a\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\"\xe9\x01\x82\xd3\xe4\x93\x02\xc5\x01\"C/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes:\x13session_entity_typeZi\"R/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes:\x13session_entity_type\xda\x41\x1aparent,session_entity_type\x12\xa3\x03\n\x17UpdateSessionEntityType\x12=.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest\x1a\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\"\x96\x02\x82\xd3\xe4\x93\x02\xed\x01\x32W/v3/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}:\x13session_entity_typeZ}2f/v3/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}:\x13session_entity_type\xda\x41\x1fsession_entity_type,update_mask\x12\x9c\x02\n\x17\x44\x65leteSessionEntityType\x12=.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest\x1a\x16.google.protobuf.Empty\"\xa9\x01\x82\xd3\xe4\x93\x02\x9b\x01*C/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}ZT*R/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x16SessionEntityTypeProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.dialogflow.cx.v3.EntityType.Entity", "google/cloud/dialogflow/cx/v3/entity_type.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/session_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/session_pb.rb index a625e9d602ea..071ac94135d5 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/session_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/session.proto @@ -17,185 +18,40 @@ require 'google/rpc/status_pb' require 'google/type/latlng_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/session.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.DetectIntentRequest" do - optional :session, :string, 1 - optional :query_params, :message, 2, "google.cloud.dialogflow.cx.v3.QueryParameters" - optional :query_input, :message, 3, "google.cloud.dialogflow.cx.v3.QueryInput" - optional :output_audio_config, :message, 4, "google.cloud.dialogflow.cx.v3.OutputAudioConfig" - end - add_message "google.cloud.dialogflow.cx.v3.DetectIntentResponse" do - optional :response_id, :string, 1 - optional :query_result, :message, 2, "google.cloud.dialogflow.cx.v3.QueryResult" - optional :output_audio, :bytes, 4 - optional :output_audio_config, :message, 5, "google.cloud.dialogflow.cx.v3.OutputAudioConfig" - optional :response_type, :enum, 6, "google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType" - optional :allow_cancellation, :bool, 7 - end - add_enum "google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType" do - value :RESPONSE_TYPE_UNSPECIFIED, 0 - value :PARTIAL, 1 - value :FINAL, 2 - end - add_message "google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest" do - optional :session, :string, 1 - optional :query_params, :message, 2, "google.cloud.dialogflow.cx.v3.QueryParameters" - optional :query_input, :message, 3, "google.cloud.dialogflow.cx.v3.QueryInput" - optional :output_audio_config, :message, 4, "google.cloud.dialogflow.cx.v3.OutputAudioConfig" - optional :enable_partial_response, :bool, 5 - optional :enable_debugging_info, :bool, 8 - end - add_message "google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo" do - optional :audio_data_chunks, :int32, 1 - optional :result_end_time_offset, :message, 2, "google.protobuf.Duration" - optional :first_audio_duration, :message, 3, "google.protobuf.Duration" - optional :single_utterance, :bool, 5 - repeated :speech_partial_results_end_times, :message, 6, "google.protobuf.Duration" - repeated :speech_final_results_end_times, :message, 7, "google.protobuf.Duration" - optional :partial_responses, :int32, 8 - optional :speaker_id_passive_latency_ms_offset, :int32, 9 - optional :bargein_event_triggered, :bool, 10 - optional :speech_single_utterance, :bool, 11 - repeated :dtmf_partial_results_times, :message, 12, "google.protobuf.Duration" - repeated :dtmf_final_results_times, :message, 13, "google.protobuf.Duration" - optional :single_utterance_end_time_offset, :message, 14, "google.protobuf.Duration" - optional :no_speech_timeout, :message, 15, "google.protobuf.Duration" - optional :is_input_text, :bool, 16 - optional :client_half_close_time_offset, :message, 17, "google.protobuf.Duration" - optional :client_half_close_streaming_time_offset, :message, 18, "google.protobuf.Duration" - end - add_message "google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse" do - optional :debugging_info, :message, 4, "google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo" - oneof :response do - optional :recognition_result, :message, 1, "google.cloud.dialogflow.cx.v3.StreamingRecognitionResult" - optional :detect_intent_response, :message, 2, "google.cloud.dialogflow.cx.v3.DetectIntentResponse" - end - end - add_message "google.cloud.dialogflow.cx.v3.StreamingRecognitionResult" do - optional :message_type, :enum, 1, "google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType" - optional :transcript, :string, 2 - optional :is_final, :bool, 3 - optional :confidence, :float, 4 - optional :stability, :float, 6 - repeated :speech_word_info, :message, 7, "google.cloud.dialogflow.cx.v3.SpeechWordInfo" - optional :speech_end_offset, :message, 8, "google.protobuf.Duration" - optional :language_code, :string, 10 - end - add_enum "google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType" do - value :MESSAGE_TYPE_UNSPECIFIED, 0 - value :TRANSCRIPT, 1 - value :END_OF_SINGLE_UTTERANCE, 2 - end - add_message "google.cloud.dialogflow.cx.v3.QueryParameters" do - optional :time_zone, :string, 1 - optional :geo_location, :message, 2, "google.type.LatLng" - repeated :session_entity_types, :message, 3, "google.cloud.dialogflow.cx.v3.SessionEntityType" - optional :payload, :message, 4, "google.protobuf.Struct" - optional :parameters, :message, 5, "google.protobuf.Struct" - optional :current_page, :string, 6 - optional :disable_webhook, :bool, 7 - optional :analyze_query_text_sentiment, :bool, 8 - map :webhook_headers, :string, :string, 10 - repeated :flow_versions, :string, 14 - optional :channel, :string, 15 - end - add_message "google.cloud.dialogflow.cx.v3.QueryInput" do - optional :language_code, :string, 4 - oneof :input do - optional :text, :message, 2, "google.cloud.dialogflow.cx.v3.TextInput" - optional :intent, :message, 3, "google.cloud.dialogflow.cx.v3.IntentInput" - optional :audio, :message, 5, "google.cloud.dialogflow.cx.v3.AudioInput" - optional :event, :message, 6, "google.cloud.dialogflow.cx.v3.EventInput" - optional :dtmf, :message, 7, "google.cloud.dialogflow.cx.v3.DtmfInput" - end - end - add_message "google.cloud.dialogflow.cx.v3.QueryResult" do - optional :language_code, :string, 2 - optional :parameters, :message, 3, "google.protobuf.Struct" - repeated :response_messages, :message, 4, "google.cloud.dialogflow.cx.v3.ResponseMessage" - repeated :webhook_statuses, :message, 13, "google.rpc.Status" - repeated :webhook_payloads, :message, 6, "google.protobuf.Struct" - optional :current_page, :message, 7, "google.cloud.dialogflow.cx.v3.Page" - optional :intent, :message, 8, "google.cloud.dialogflow.cx.v3.Intent" - optional :intent_detection_confidence, :float, 9 - optional :match, :message, 15, "google.cloud.dialogflow.cx.v3.Match" - optional :diagnostic_info, :message, 10, "google.protobuf.Struct" - optional :sentiment_analysis_result, :message, 17, "google.cloud.dialogflow.cx.v3.SentimentAnalysisResult" - oneof :query do - optional :text, :string, 1 - optional :trigger_intent, :string, 11 - optional :transcript, :string, 12 - optional :trigger_event, :string, 14 - optional :dtmf, :message, 23, "google.cloud.dialogflow.cx.v3.DtmfInput" - end - end - add_message "google.cloud.dialogflow.cx.v3.TextInput" do - optional :text, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.IntentInput" do - optional :intent, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.AudioInput" do - optional :config, :message, 1, "google.cloud.dialogflow.cx.v3.InputAudioConfig" - optional :audio, :bytes, 2 - end - add_message "google.cloud.dialogflow.cx.v3.EventInput" do - optional :event, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.DtmfInput" do - optional :digits, :string, 1 - optional :finish_digit, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.Match" do - optional :intent, :message, 1, "google.cloud.dialogflow.cx.v3.Intent" - optional :event, :string, 6 - optional :parameters, :message, 2, "google.protobuf.Struct" - optional :resolved_input, :string, 3 - optional :match_type, :enum, 4, "google.cloud.dialogflow.cx.v3.Match.MatchType" - optional :confidence, :float, 5 - end - add_enum "google.cloud.dialogflow.cx.v3.Match.MatchType" do - value :MATCH_TYPE_UNSPECIFIED, 0 - value :INTENT, 1 - value :DIRECT_INTENT, 2 - value :PARAMETER_FILLING, 3 - value :NO_MATCH, 4 - value :NO_INPUT, 5 - value :EVENT, 6 - end - add_message "google.cloud.dialogflow.cx.v3.MatchIntentRequest" do - optional :session, :string, 1 - optional :query_params, :message, 2, "google.cloud.dialogflow.cx.v3.QueryParameters" - optional :query_input, :message, 3, "google.cloud.dialogflow.cx.v3.QueryInput" - optional :persist_parameter_changes, :bool, 5 - end - add_message "google.cloud.dialogflow.cx.v3.MatchIntentResponse" do - repeated :matches, :message, 4, "google.cloud.dialogflow.cx.v3.Match" - optional :current_page, :message, 5, "google.cloud.dialogflow.cx.v3.Page" - oneof :query do - optional :text, :string, 1 - optional :trigger_intent, :string, 2 - optional :transcript, :string, 3 - optional :trigger_event, :string, 6 - end - end - add_message "google.cloud.dialogflow.cx.v3.FulfillIntentRequest" do - optional :match_intent_request, :message, 1, "google.cloud.dialogflow.cx.v3.MatchIntentRequest" - optional :match, :message, 2, "google.cloud.dialogflow.cx.v3.Match" - optional :output_audio_config, :message, 3, "google.cloud.dialogflow.cx.v3.OutputAudioConfig" - end - add_message "google.cloud.dialogflow.cx.v3.FulfillIntentResponse" do - optional :response_id, :string, 1 - optional :query_result, :message, 2, "google.cloud.dialogflow.cx.v3.QueryResult" - optional :output_audio, :bytes, 3 - optional :output_audio_config, :message, 4, "google.cloud.dialogflow.cx.v3.OutputAudioConfig" - end - add_message "google.cloud.dialogflow.cx.v3.SentimentAnalysisResult" do - optional :score, :float, 1 - optional :magnitude, :float, 2 + +descriptor_data = "\n+google/cloud/dialogflow/cx/v3/session.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/dialogflow/cx/v3/audio_config.proto\x1a*google/cloud/dialogflow/cx/v3/intent.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a\x37google/cloud/dialogflow/cx/v3/session_entity_type.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\x18google/type/latlng.proto\"\xab\x02\n\x13\x44\x65tectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x44\n\x0cquery_params\x18\x02 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.QueryParameters\x12\x43\n\x0bquery_input\x18\x03 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.QueryInputB\x03\xe0\x41\x02\x12M\n\x13output_audio_config\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.OutputAudioConfig\"\x8e\x03\n\x14\x44\x65tectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12@\n\x0cquery_result\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.QueryResult\x12\x14\n\x0coutput_audio\x18\x04 \x01(\x0c\x12M\n\x13output_audio_config\x18\x05 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.OutputAudioConfig\x12W\n\rresponse_type\x18\x06 \x01(\x0e\x32@.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType\x12\x1a\n\x12\x61llow_cancellation\x18\x07 \x01(\x08\"E\n\x0cResponseType\x12\x1d\n\x19RESPONSE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARTIAL\x10\x01\x12\t\n\x05\x46INAL\x10\x02\"\xf1\x02\n\x1cStreamingDetectIntentRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x44\n\x0cquery_params\x18\x02 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.QueryParameters\x12\x43\n\x0bquery_input\x18\x03 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.QueryInputB\x03\xe0\x41\x02\x12M\n\x13output_audio_config\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.OutputAudioConfig\x12\x1f\n\x17\x65nable_partial_response\x18\x05 \x01(\x08\x12\x1d\n\x15\x65nable_debugging_info\x18\x08 \x01(\x08\"\xf8\x06\n\x1e\x43loudConversationDebuggingInfo\x12\x19\n\x11\x61udio_data_chunks\x18\x01 \x01(\x05\x12\x39\n\x16result_end_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14\x66irst_audio_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10single_utterance\x18\x05 \x01(\x08\x12\x43\n speech_partial_results_end_times\x18\x06 \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1espeech_final_results_end_times\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x19\n\x11partial_responses\x18\x08 \x01(\x05\x12,\n$speaker_id_passive_latency_ms_offset\x18\t \x01(\x05\x12\x1f\n\x17\x62\x61rgein_event_triggered\x18\n \x01(\x08\x12\x1f\n\x17speech_single_utterance\x18\x0b \x01(\x08\x12=\n\x1a\x64tmf_partial_results_times\x18\x0c \x03(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18\x64tmf_final_results_times\x18\r \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x43\n single_utterance_end_time_offset\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11no_speech_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\ris_input_text\x18\x10 \x01(\x08\x12@\n\x1d\x63lient_half_close_time_offset\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12J\n\'client_half_close_streaming_time_offset\x18\x12 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xb2\x02\n\x1dStreamingDetectIntentResponse\x12W\n\x12recognition_result\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.StreamingRecognitionResultH\x00\x12U\n\x16\x64\x65tect_intent_response\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.DetectIntentResponseH\x00\x12U\n\x0e\x64\x65\x62ugging_info\x18\x04 \x01(\x0b\x32=.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfoB\n\n\x08response\"\xb6\x03\n\x1aStreamingRecognitionResult\x12[\n\x0cmessage_type\x18\x01 \x01(\x0e\x32\x45.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12\x10\n\x08is_final\x18\x03 \x01(\x08\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x11\n\tstability\x18\x06 \x01(\x02\x12G\n\x10speech_word_info\x18\x07 \x03(\x0b\x32-.google.cloud.dialogflow.cx.v3.SpeechWordInfo\x12\x34\n\x11speech_end_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rlanguage_code\x18\n \x01(\t\"X\n\x0bMessageType\x12\x1c\n\x18MESSAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTRANSCRIPT\x10\x01\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x02\"\xd4\x04\n\x0fQueryParameters\x12\x11\n\ttime_zone\x18\x01 \x01(\t\x12)\n\x0cgeo_location\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\x12N\n\x14session_entity_types\x18\x03 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\x12(\n\x07payload\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12+\n\nparameters\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x39\n\x0c\x63urrent_page\x18\x06 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\x12\x17\n\x0f\x64isable_webhook\x18\x07 \x01(\x08\x12$\n\x1c\x61nalyze_query_text_sentiment\x18\x08 \x01(\x08\x12[\n\x0fwebhook_headers\x18\n \x03(\x0b\x32\x42.google.cloud.dialogflow.cx.v3.QueryParameters.WebhookHeadersEntry\x12=\n\rflow_versions\x18\x0e \x03(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x0f\n\x07\x63hannel\x18\x0f \x01(\t\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdb\x02\n\nQueryInput\x12\x38\n\x04text\x18\x02 \x01(\x0b\x32(.google.cloud.dialogflow.cx.v3.TextInputH\x00\x12<\n\x06intent\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.IntentInputH\x00\x12:\n\x05\x61udio\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.AudioInputH\x00\x12:\n\x05\x65vent\x18\x06 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.EventInputH\x00\x12\x38\n\x04\x64tmf\x18\x07 \x01(\x0b\x32(.google.cloud.dialogflow.cx.v3.DtmfInputH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x02\x42\x07\n\x05input\"\xa1\x06\n\x0bQueryResult\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12?\n\x0etrigger_intent\x18\x0b \x01(\tB%\xfa\x41\"\n dialogflow.googleapis.com/IntentH\x00\x12\x14\n\ntranscript\x18\x0c \x01(\tH\x00\x12\x17\n\rtrigger_event\x18\x0e \x01(\tH\x00\x12\x38\n\x04\x64tmf\x18\x17 \x01(\x0b\x32(.google.cloud.dialogflow.cx.v3.DtmfInputH\x00\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12I\n\x11response_messages\x18\x04 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessage\x12,\n\x10webhook_statuses\x18\r \x03(\x0b\x32\x12.google.rpc.Status\x12\x31\n\x10webhook_payloads\x18\x06 \x03(\x0b\x32\x17.google.protobuf.Struct\x12\x39\n\x0c\x63urrent_page\x18\x07 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.Page\x12\x39\n\x06intent\x18\x08 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x02\x18\x01\x12\'\n\x1bintent_detection_confidence\x18\t \x01(\x02\x42\x02\x18\x01\x12\x33\n\x05match\x18\x0f \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.Match\x12\x30\n\x0f\x64iagnostic_info\x18\n \x01(\x0b\x32\x17.google.protobuf.Struct\x12Y\n\x19sentiment_analysis_result\x18\x11 \x01(\x0b\x32\x36.google.cloud.dialogflow.cx.v3.SentimentAnalysisResultB\x07\n\x05query\"\x1e\n\tTextInput\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\"G\n\x0bIntentInput\x12\x38\n\x06intent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\"a\n\nAudioInput\x12\x44\n\x06\x63onfig\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.InputAudioConfigB\x03\xe0\x41\x02\x12\r\n\x05\x61udio\x18\x02 \x01(\x0c\"\x1b\n\nEventInput\x12\r\n\x05\x65vent\x18\x01 \x01(\t\"1\n\tDtmfInput\x12\x0e\n\x06\x64igits\x18\x01 \x01(\t\x12\x14\n\x0c\x66inish_digit\x18\x02 \x01(\t\"\xf1\x02\n\x05Match\x12\x35\n\x06intent\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.Intent\x12\r\n\x05\x65vent\x18\x06 \x01(\t\x12+\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x16\n\x0eresolved_input\x18\x03 \x01(\t\x12\x42\n\nmatch_type\x18\x04 \x01(\x0e\x32..google.cloud.dialogflow.cx.v3.Match.MatchType\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"\x84\x01\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06INTENT\x10\x01\x12\x11\n\rDIRECT_INTENT\x10\x02\x12\x15\n\x11PARAMETER_FILLING\x10\x03\x12\x0c\n\x08NO_MATCH\x10\x04\x12\x0c\n\x08NO_INPUT\x10\x05\x12\t\n\x05\x45VENT\x10\x06\"\xfe\x01\n\x12MatchIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x44\n\x0cquery_params\x18\x02 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.QueryParameters\x12\x43\n\x0bquery_input\x18\x03 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.QueryInputB\x03\xe0\x41\x02\x12!\n\x19persist_parameter_changes\x18\x05 \x01(\x08\"\x90\x02\n\x13MatchIntentResponse\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12?\n\x0etrigger_intent\x18\x02 \x01(\tB%\xfa\x41\"\n dialogflow.googleapis.com/IntentH\x00\x12\x14\n\ntranscript\x18\x03 \x01(\tH\x00\x12\x17\n\rtrigger_event\x18\x06 \x01(\tH\x00\x12\x35\n\x07matches\x18\x04 \x03(\x0b\x32$.google.cloud.dialogflow.cx.v3.Match\x12\x39\n\x0c\x63urrent_page\x18\x05 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.PageB\x07\n\x05query\"\xeb\x01\n\x14\x46ulfillIntentRequest\x12O\n\x14match_intent_request\x18\x01 \x01(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.MatchIntentRequest\x12\x33\n\x05match\x18\x02 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.Match\x12M\n\x13output_audio_config\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.OutputAudioConfig\"\xd3\x01\n\x15\x46ulfillIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12@\n\x0cquery_result\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.QueryResult\x12\x14\n\x0coutput_audio\x18\x03 \x01(\x0c\x12M\n\x13output_audio_config\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.OutputAudioConfig\";\n\x17SentimentAnalysisResult\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x32\xc4\t\n\x08Sessions\x12\xa6\x02\n\x0c\x44\x65tectIntent\x12\x32.google.cloud.dialogflow.cx.v3.DetectIntentRequest\x1a\x33.google.cloud.dialogflow.cx.v3.DetectIntentResponse\"\xac\x01\x82\xd3\xe4\x93\x02\xa5\x01\"E/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent:\x01*ZY\"T/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent:\x01*\x12\x98\x01\n\x15StreamingDetectIntent\x12;.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest\x1a<.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse\"\x00(\x01\x30\x01\x12\xa1\x02\n\x0bMatchIntent\x12\x31.google.cloud.dialogflow.cx.v3.MatchIntentRequest\x1a\x32.google.cloud.dialogflow.cx.v3.MatchIntentResponse\"\xaa\x01\x82\xd3\xe4\x93\x02\xa3\x01\"D/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent:\x01*ZX\"S/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent:\x01*\x12\xd5\x02\n\rFulfillIntent\x12\x33.google.cloud.dialogflow.cx.v3.FulfillIntentRequest\x1a\x34.google.cloud.dialogflow.cx.v3.FulfillIntentResponse\"\xd8\x01\x82\xd3\xe4\x93\x02\xd1\x01\"[/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent:\x01*Zo\"j/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x8a\x03\n!com.google.cloud.dialogflow.cx.v3B\x0cSessionProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3\xea\x41\xd4\x01\n!dialogflow.googleapis.com/Session\x12Iprojects/{project}/locations/{location}/agents/{agent}/sessions/{session}\x12\x64projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}b\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.dialogflow.cx.v3.OutputAudioConfig", "google/cloud/dialogflow/cx/v3/audio_config.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.type.LatLng", "google/type/latlng.proto"], + ["google.cloud.dialogflow.cx.v3.SessionEntityType", "google/cloud/dialogflow/cx/v3/session_entity_type.proto"], + ["google.protobuf.Struct", "google/protobuf/struct.proto"], + ["google.cloud.dialogflow.cx.v3.ResponseMessage", "google/cloud/dialogflow/cx/v3/response_message.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.cloud.dialogflow.cx.v3.Page", "google/cloud/dialogflow/cx/v3/page.proto"], + ["google.cloud.dialogflow.cx.v3.Intent", "google/cloud/dialogflow/cx/v3/intent.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb index 64c1bcc71e3c..6a029069d5c4 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/test_case.proto @@ -20,232 +21,41 @@ require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/test_case.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.TestCase" do - optional :name, :string, 1 - repeated :tags, :string, 2 - optional :display_name, :string, 3 - optional :notes, :string, 4 - optional :test_config, :message, 13, "google.cloud.dialogflow.cx.v3.TestConfig" - repeated :test_case_conversation_turns, :message, 5, "google.cloud.dialogflow.cx.v3.ConversationTurn" - optional :creation_time, :message, 10, "google.protobuf.Timestamp" - optional :last_test_result, :message, 12, "google.cloud.dialogflow.cx.v3.TestCaseResult" - end - add_message "google.cloud.dialogflow.cx.v3.TestCaseResult" do - optional :name, :string, 1 - optional :environment, :string, 2 - repeated :conversation_turns, :message, 3, "google.cloud.dialogflow.cx.v3.ConversationTurn" - optional :test_result, :enum, 4, "google.cloud.dialogflow.cx.v3.TestResult" - optional :test_time, :message, 5, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.cx.v3.TestConfig" do - repeated :tracking_parameters, :string, 1 - optional :flow, :string, 2 - optional :page, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ConversationTurn" do - optional :user_input, :message, 1, "google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput" - optional :virtual_agent_output, :message, 2, "google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput" - end - add_message "google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput" do - optional :input, :message, 5, "google.cloud.dialogflow.cx.v3.QueryInput" - optional :injected_parameters, :message, 2, "google.protobuf.Struct" - optional :is_webhook_enabled, :bool, 3 - optional :enable_sentiment_analysis, :bool, 7 - end - add_message "google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput" do - optional :session_parameters, :message, 4, "google.protobuf.Struct" - repeated :differences, :message, 5, "google.cloud.dialogflow.cx.v3.TestRunDifference" - optional :diagnostic_info, :message, 6, "google.protobuf.Struct" - optional :triggered_intent, :message, 7, "google.cloud.dialogflow.cx.v3.Intent" - optional :current_page, :message, 8, "google.cloud.dialogflow.cx.v3.Page" - repeated :text_responses, :message, 9, "google.cloud.dialogflow.cx.v3.ResponseMessage.Text" - optional :status, :message, 10, "google.rpc.Status" - end - add_message "google.cloud.dialogflow.cx.v3.TestRunDifference" do - optional :type, :enum, 1, "google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType" - optional :description, :string, 2 - end - add_enum "google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType" do - value :DIFF_TYPE_UNSPECIFIED, 0 - value :INTENT, 1 - value :PAGE, 2 - value :PARAMETERS, 3 - value :UTTERANCE, 4 - value :FLOW, 5 - end - add_message "google.cloud.dialogflow.cx.v3.TransitionCoverage" do - repeated :transitions, :message, 1, "google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition" - optional :coverage_score, :float, 2 - end - add_message "google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode" do - oneof :kind do - optional :page, :message, 1, "google.cloud.dialogflow.cx.v3.Page" - optional :flow, :message, 2, "google.cloud.dialogflow.cx.v3.Flow" - end - end - add_message "google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition" do - optional :source, :message, 1, "google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode" - optional :index, :int32, 4 - optional :target, :message, 2, "google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode" - optional :covered, :bool, 3 - oneof :detail do - optional :transition_route, :message, 5, "google.cloud.dialogflow.cx.v3.TransitionRoute" - optional :event_handler, :message, 6, "google.cloud.dialogflow.cx.v3.EventHandler" - end - end - add_message "google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage" do - repeated :coverages, :message, 1, "google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage" - optional :coverage_score, :float, 2 - end - add_message "google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage" do - optional :route_group, :message, 1, "google.cloud.dialogflow.cx.v3.TransitionRouteGroup" - repeated :transitions, :message, 2, "google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition" - optional :coverage_score, :float, 3 - end - add_message "google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition" do - optional :transition_route, :message, 1, "google.cloud.dialogflow.cx.v3.TransitionRoute" - optional :covered, :bool, 2 - end - add_message "google.cloud.dialogflow.cx.v3.IntentCoverage" do - repeated :intents, :message, 1, "google.cloud.dialogflow.cx.v3.IntentCoverage.Intent" - optional :coverage_score, :float, 2 - end - add_message "google.cloud.dialogflow.cx.v3.IntentCoverage.Intent" do - optional :intent, :string, 1 - optional :covered, :bool, 2 - end - add_message "google.cloud.dialogflow.cx.v3.CalculateCoverageRequest" do - optional :agent, :string, 3 - optional :type, :enum, 2, "google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType" - end - add_enum "google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType" do - value :COVERAGE_TYPE_UNSPECIFIED, 0 - value :INTENT, 1 - value :PAGE_TRANSITION, 2 - value :TRANSITION_ROUTE_GROUP, 3 - end - add_message "google.cloud.dialogflow.cx.v3.CalculateCoverageResponse" do - optional :agent, :string, 5 - oneof :coverage_type do - optional :intent_coverage, :message, 2, "google.cloud.dialogflow.cx.v3.IntentCoverage" - optional :transition_coverage, :message, 4, "google.cloud.dialogflow.cx.v3.TransitionCoverage" - optional :route_group_coverage, :message, 6, "google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage" - end - end - add_message "google.cloud.dialogflow.cx.v3.ListTestCasesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :view, :enum, 4, "google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView" - end - add_enum "google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView" do - value :TEST_CASE_VIEW_UNSPECIFIED, 0 - value :BASIC, 1 - value :FULL, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ListTestCasesResponse" do - repeated :test_cases, :message, 1, "google.cloud.dialogflow.cx.v3.TestCase" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest" do - optional :parent, :string, 1 - repeated :names, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.CreateTestCaseRequest" do - optional :parent, :string, 1 - optional :test_case, :message, 2, "google.cloud.dialogflow.cx.v3.TestCase" - end - add_message "google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest" do - optional :test_case, :message, 1, "google.cloud.dialogflow.cx.v3.TestCase" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.GetTestCaseRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.RunTestCaseRequest" do - optional :name, :string, 1 - optional :environment, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.RunTestCaseResponse" do - optional :result, :message, 2, "google.cloud.dialogflow.cx.v3.TestCaseResult" - end - add_message "google.cloud.dialogflow.cx.v3.RunTestCaseMetadata" do - end - add_message "google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest" do - optional :parent, :string, 1 - optional :environment, :string, 2 - repeated :test_cases, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse" do - repeated :results, :message, 1, "google.cloud.dialogflow.cx.v3.TestCaseResult" - end - add_message "google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata" do - repeated :errors, :message, 1, "google.cloud.dialogflow.cx.v3.TestError" - end - add_message "google.cloud.dialogflow.cx.v3.TestError" do - optional :test_case, :string, 1 - optional :status, :message, 2, "google.rpc.Status" - optional :test_time, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.cx.v3.ImportTestCasesRequest" do - optional :parent, :string, 1 - oneof :source do - optional :gcs_uri, :string, 2 - optional :content, :bytes, 3 - end - end - add_message "google.cloud.dialogflow.cx.v3.ImportTestCasesResponse" do - repeated :names, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata" do - repeated :errors, :message, 1, "google.cloud.dialogflow.cx.v3.TestCaseError" - end - add_message "google.cloud.dialogflow.cx.v3.TestCaseError" do - optional :test_case, :message, 1, "google.cloud.dialogflow.cx.v3.TestCase" - optional :status, :message, 2, "google.rpc.Status" - end - add_message "google.cloud.dialogflow.cx.v3.ExportTestCasesRequest" do - optional :parent, :string, 1 - optional :data_format, :enum, 3, "google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat" - optional :filter, :string, 4 - oneof :destination do - optional :gcs_uri, :string, 2 - end - end - add_enum "google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat" do - value :DATA_FORMAT_UNSPECIFIED, 0 - value :BLOB, 1 - value :JSON, 2 - end - add_message "google.cloud.dialogflow.cx.v3.ExportTestCasesResponse" do - oneof :destination do - optional :gcs_uri, :string, 1 - optional :content, :bytes, 2 - end - end - add_message "google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata" do - end - add_message "google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse" do - repeated :test_case_results, :message, 1, "google.cloud.dialogflow.cx.v3.TestCaseResult" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest" do - optional :name, :string, 1 - end - add_enum "google.cloud.dialogflow.cx.v3.TestResult" do - value :TEST_RESULT_UNSPECIFIED, 0 - value :PASSED, 1 - value :FAILED, 2 + +descriptor_data = "\n-google/cloud/dialogflow/cx/v3/test_case.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/flow.proto\x1a*google/cloud/dialogflow/cx/v3/intent.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a+google/cloud/dialogflow/cx/v3/session.proto\x1a:google/cloud/dialogflow/cx/v3/transition_route_group.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xdf\x03\n\x08TestCase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04tags\x18\x02 \x03(\t\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05notes\x18\x04 \x01(\t\x12>\n\x0btest_config\x18\r \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.TestConfig\x12U\n\x1ctest_case_conversation_turns\x18\x05 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.ConversationTurn\x12\x36\n\rcreation_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x10last_test_result\x18\x0c \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.TestCaseResult:u\xea\x41r\n\"dialogflow.googleapis.com/TestCase\x12Lprojects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}\"\xab\x03\n\x0eTestCaseResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x0b\x65nvironment\x18\x02 \x01(\tB*\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12K\n\x12\x63onversation_turns\x18\x03 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.ConversationTurn\x12>\n\x0btest_result\x18\x04 \x01(\x0e\x32).google.cloud.dialogflow.cx.v3.TestResult\x12-\n\ttest_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\x8d\x01\xea\x41\x89\x01\n(dialogflow.googleapis.com/TestCaseResult\x12]projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}/results/{result}\"\x8f\x01\n\nTestConfig\x12\x1b\n\x13tracking_parameters\x18\x01 \x03(\t\x12\x31\n\x04\x66low\x18\x02 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x31\n\x04page\x18\x03 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\"\xbf\x06\n\x10\x43onversationTurn\x12M\n\nuser_input\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput\x12`\n\x14virtual_agent_output\x18\x02 \x01(\x0b\x32\x42.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput\x1a\xba\x01\n\tUserInput\x12\x38\n\x05input\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.QueryInput\x12\x34\n\x13injected_parameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1a\n\x12is_webhook_enabled\x18\x03 \x01(\x08\x12!\n\x19\x65nable_sentiment_analysis\x18\x07 \x01(\x08\x1a\xbc\x03\n\x12VirtualAgentOutput\x12\x33\n\x12session_parameters\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12J\n\x0b\x64ifferences\x18\x05 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.TestRunDifferenceB\x03\xe0\x41\x03\x12\x38\n\x0f\x64iagnostic_info\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x06\xe0\x41\x02\xe0\x41\x04\x12?\n\x10triggered_intent\x18\x07 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.Intent\x12\x39\n\x0c\x63urrent_page\x18\x08 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.Page\x12K\n\x0etext_responses\x18\t \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.ResponseMessage.Text\x12\"\n\x06status\x18\n \x01(\x0b\x32\x12.google.rpc.Status\"\xd7\x01\n\x11TestRunDifference\x12G\n\x04type\x18\x01 \x01(\x0e\x32\x39.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"d\n\x08\x44iffType\x12\x19\n\x15\x44IFF_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06INTENT\x10\x01\x12\x08\n\x04PAGE\x10\x02\x12\x0e\n\nPARAMETERS\x10\x03\x12\r\n\tUTTERANCE\x10\x04\x12\x08\n\x04\x46LOW\x10\x05\"\xf3\x04\n\x12TransitionCoverage\x12Q\n\x0btransitions\x18\x01 \x03(\x0b\x32<.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition\x12\x16\n\x0e\x63overage_score\x18\x02 \x01(\x02\x1a\x82\x01\n\x0eTransitionNode\x12\x33\n\x04page\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.PageH\x00\x12\x33\n\x04\x66low\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowH\x00\x42\x06\n\x04kind\x1a\xec\x02\n\nTransition\x12P\n\x06source\x18\x01 \x01(\x0b\x32@.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode\x12\r\n\x05index\x18\x04 \x01(\x05\x12P\n\x06target\x18\x02 \x01(\x0b\x32@.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode\x12\x0f\n\x07\x63overed\x18\x03 \x01(\x08\x12J\n\x10transition_route\x18\x05 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRouteH\x00\x12\x44\n\revent_handler\x18\x06 \x01(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandlerH\x00\x42\x08\n\x06\x64\x65tail\"\xcd\x03\n\x1cTransitionRouteGroupCoverage\x12W\n\tcoverages\x18\x01 \x03(\x0b\x32\x44.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage\x12\x16\n\x0e\x63overage_score\x18\x02 \x01(\x02\x1a\xbb\x02\n\x08\x43overage\x12H\n\x0broute_group\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\x12\x64\n\x0btransitions\x18\x02 \x03(\x0b\x32O.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition\x12\x16\n\x0e\x63overage_score\x18\x03 \x01(\x02\x1ag\n\nTransition\x12H\n\x10transition_route\x18\x01 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute\x12\x0f\n\x07\x63overed\x18\x02 \x01(\x08\"\xc1\x01\n\x0eIntentCoverage\x12\x45\n\x07intents\x18\x01 \x03(\x0b\x32\x34.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent\x12\x16\n\x0e\x63overage_score\x18\x02 \x01(\x02\x1aP\n\x06Intent\x12\x35\n\x06intent\x18\x01 \x01(\tB%\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x0f\n\x07\x63overed\x18\x02 \x01(\x08\"\x97\x02\n\x18\x43\x61lculateCoverageRequest\x12\x36\n\x05\x61gent\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12W\n\x04type\x18\x02 \x01(\x0e\x32\x44.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageTypeB\x03\xe0\x41\x02\"j\n\x0c\x43overageType\x12\x1d\n\x19\x43OVERAGE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06INTENT\x10\x01\x12\x13\n\x0fPAGE_TRANSITION\x10\x02\x12\x1a\n\x16TRANSITION_ROUTE_GROUP\x10\x03\"\xda\x02\n\x19\x43\x61lculateCoverageResponse\x12\x33\n\x05\x61gent\x18\x05 \x01(\tB$\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12H\n\x0fintent_coverage\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.IntentCoverageH\x00\x12P\n\x13transition_coverage\x18\x04 \x01(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.TransitionCoverageH\x00\x12[\n\x14route_group_coverage\x18\x06 \x01(\x0b\x32;.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverageH\x00\x42\x0f\n\rcoverage_type\"\x8e\x02\n\x14ListTestCasesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/TestCase\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12N\n\x04view\x18\x04 \x01(\x0e\x32@.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView\"C\n\x0cTestCaseView\x12\x1e\n\x1aTEST_CASE_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\"m\n\x15ListTestCasesResponse\x12;\n\ntest_cases\x18\x01 \x03(\x0b\x32\'.google.cloud.dialogflow.cx.v3.TestCase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x94\x01\n\x1b\x42\x61tchDeleteTestCasesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/TestCase\x12\x39\n\x05names\x18\x03 \x03(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/TestCase\"\x94\x01\n\x15\x43reateTestCaseRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/TestCase\x12?\n\ttest_case\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.cx.v3.TestCaseB\x03\xe0\x41\x02\"\x8e\x01\n\x15UpdateTestCaseRequest\x12?\n\ttest_case\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.cx.v3.TestCaseB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"N\n\x12GetTestCaseRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/TestCase\"\x92\x01\n\x12RunTestCaseRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/TestCase\x12\x42\n\x0b\x65nvironment\x18\x02 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"T\n\x13RunTestCaseResponse\x12=\n\x06result\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.TestCaseResult\"\x15\n\x13RunTestCaseMetadata\"\xda\x01\n\x18\x42\x61tchRunTestCasesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/TestCase\x12\x42\n\x0b\x65nvironment\x18\x02 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12>\n\ntest_cases\x18\x03 \x03(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/TestCase\"[\n\x19\x42\x61tchRunTestCasesResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.cx.v3.TestCaseResult\"U\n\x19\x42\x61tchRunTestCasesMetadata\x12\x38\n\x06\x65rrors\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.cx.v3.TestError\"\x9a\x01\n\tTestError\x12:\n\ttest_case\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/TestCase\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12-\n\ttest_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x84\x01\n\x16ImportTestCasesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/TestCase\x12\x11\n\x07gcs_uri\x18\x02 \x01(\tH\x00\x12\x11\n\x07\x63ontent\x18\x03 \x01(\x0cH\x00\x42\x08\n\x06source\"Q\n\x17ImportTestCasesResponse\x12\x36\n\x05names\x18\x01 \x03(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/TestCase\"W\n\x17ImportTestCasesMetadata\x12<\n\x06\x65rrors\x18\x01 \x03(\x0b\x32,.google.cloud.dialogflow.cx.v3.TestCaseError\"o\n\rTestCaseError\x12:\n\ttest_case\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.cx.v3.TestCase\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\x9c\x02\n\x16\x45xportTestCasesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/TestCase\x12\x11\n\x07gcs_uri\x18\x02 \x01(\tH\x00\x12U\n\x0b\x64\x61ta_format\x18\x03 \x01(\x0e\x32@.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"=\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42LOB\x10\x01\x12\x08\n\x04JSON\x10\x02\x42\r\n\x0b\x64\x65stination\"N\n\x17\x45xportTestCasesResponse\x12\x11\n\x07gcs_uri\x18\x01 \x01(\tH\x00\x12\x11\n\x07\x63ontent\x18\x02 \x01(\x0cH\x00\x42\r\n\x0b\x64\x65stination\"\x19\n\x17\x45xportTestCasesMetadata\"\x95\x01\n\x1aListTestCaseResultsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(dialogflow.googleapis.com/TestCaseResult\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\"\x80\x01\n\x1bListTestCaseResultsResponse\x12H\n\x11test_case_results\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.cx.v3.TestCaseResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Z\n\x18GetTestCaseResultRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dialogflow.googleapis.com/TestCaseResult*A\n\nTestResult\x12\x1b\n\x17TEST_RESULT_UNSPECIFIED\x10\x00\x12\n\n\x06PASSED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x32\x99\x15\n\tTestCases\x12\xc3\x01\n\rListTestCases\x12\x33.google.cloud.dialogflow.cx.v3.ListTestCasesRequest\x1a\x34.google.cloud.dialogflow.cx.v3.ListTestCasesResponse\"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{parent=projects/*/locations/*/agents/*}/testCases\xda\x41\x06parent\x12\xc2\x01\n\x14\x42\x61tchDeleteTestCases\x12:.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest\x1a\x16.google.protobuf.Empty\"V\x82\xd3\xe4\x93\x02G\"B/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete:\x01*\xda\x41\x06parent\x12\xb0\x01\n\x0bGetTestCase\x12\x31.google.cloud.dialogflow.cx.v3.GetTestCaseRequest\x1a\'.google.cloud.dialogflow.cx.v3.TestCase\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/locations/*/agents/*/testCases/*}\xda\x41\x04name\x12\xcd\x01\n\x0e\x43reateTestCase\x12\x34.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest\x1a\'.google.cloud.dialogflow.cx.v3.TestCase\"\\\x82\xd3\xe4\x93\x02\x43\"6/v3/{parent=projects/*/locations/*/agents/*}/testCases:\ttest_case\xda\x41\x10parent,test_case\x12\xdc\x01\n\x0eUpdateTestCase\x12\x34.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest\x1a\'.google.cloud.dialogflow.cx.v3.TestCase\"k\x82\xd3\xe4\x93\x02M2@/v3/{test_case.name=projects/*/locations/*/agents/*/testCases/*}:\ttest_case\xda\x41\x15test_case,update_mask\x12\xd3\x01\n\x0bRunTestCase\x12\x31.google.cloud.dialogflow.cx.v3.RunTestCaseRequest\x1a\x1d.google.longrunning.Operation\"r\x82\xd3\xe4\x93\x02?\":/v3/{name=projects/*/locations/*/agents/*/testCases/*}:run:\x01*\xca\x41*\n\x13RunTestCaseResponse\x12\x13RunTestCaseMetadata\x12\xf1\x01\n\x11\x42\x61tchRunTestCases\x12\x37.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\x82\xd3\xe4\x93\x02\x44\"?/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchRun:\x01*\xca\x41\x36\n\x19\x42\x61tchRunTestCasesResponse\x12\x19\x42\x61tchRunTestCasesMetadata\x12\xd7\x01\n\x11\x43\x61lculateCoverage\x12\x37.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest\x1a\x38.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v3/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage\x12\xe6\x01\n\x0fImportTestCases\x12\x35.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest\x1a\x1d.google.longrunning.Operation\"}\x82\xd3\xe4\x93\x02\x42\"=/v3/{parent=projects/*/locations/*/agents/*}/testCases:import:\x01*\xca\x41\x32\n\x17ImportTestCasesResponse\x12\x17ImportTestCasesMetadata\x12\xe6\x01\n\x0f\x45xportTestCases\x12\x35.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest\x1a\x1d.google.longrunning.Operation\"}\x82\xd3\xe4\x93\x02\x42\"=/v3/{parent=projects/*/locations/*/agents/*}/testCases:export:\x01*\xca\x41\x32\n\x17\x45xportTestCasesResponse\x12\x17\x45xportTestCasesMetadata\x12\xdf\x01\n\x13ListTestCaseResults\x12\x39.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest\x1a:.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse\"Q\x82\xd3\xe4\x93\x02\x42\x12@/v3/{parent=projects/*/locations/*/agents/*/testCases/*}/results\xda\x41\x06parent\x12\xcc\x01\n\x11GetTestCaseResult\x12\x37.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest\x1a-.google.cloud.dialogflow.cx.v3.TestCaseResult\"O\x82\xd3\xe4\x93\x02\x42\x12@/v3/{name=projects/*/locations/*/agents/*/testCases/*/results/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb3\x01\n!com.google.cloud.dialogflow.cx.v3B\rTestCaseProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dialogflow.cx.v3.QueryInput", "google/cloud/dialogflow/cx/v3/session.proto"], + ["google.protobuf.Struct", "google/protobuf/struct.proto"], + ["google.cloud.dialogflow.cx.v3.Intent", "google/cloud/dialogflow/cx/v3/intent.proto"], + ["google.cloud.dialogflow.cx.v3.Page", "google/cloud/dialogflow/cx/v3/page.proto"], + ["google.cloud.dialogflow.cx.v3.ResponseMessage.Text", "google/cloud/dialogflow/cx/v3/response_message.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.cloud.dialogflow.cx.v3.Flow", "google/cloud/dialogflow/cx/v3/flow.proto"], + ["google.cloud.dialogflow.cx.v3.TransitionRouteGroup", "google/cloud/dialogflow/cx/v3/transition_route_group.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb index 6d2ff8c321bb..f1e58f5e1641 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/transition_route_group.proto @@ -11,42 +12,33 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/transition_route_group.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.TransitionRouteGroup" do - optional :name, :string, 1 - optional :display_name, :string, 2 - repeated :transition_routes, :message, 5, "google.cloud.dialogflow.cx.v3.TransitionRoute" - end - add_message "google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :language_code, :string, 4 - end - add_message "google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse" do - repeated :transition_route_groups, :message, 1, "google.cloud.dialogflow.cx.v3.TransitionRouteGroup" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest" do - optional :parent, :string, 1 - optional :transition_route_group, :message, 2, "google.cloud.dialogflow.cx.v3.TransitionRouteGroup" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest" do - optional :transition_route_group, :message, 1, "google.cloud.dialogflow.cx.v3.TransitionRouteGroup" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest" do - optional :name, :string, 1 - optional :force, :bool, 2 + +descriptor_data = "\n:google/cloud/dialogflow/cx/v3/transition_route_group.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xb5\x02\n\x14TransitionRouteGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\x11transition_routes\x18\x05 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute:\xa8\x01\xea\x41\xa4\x01\n.dialogflow.googleapis.com/TransitionRouteGroup\x12rprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}\"\xa8\x01\n ListTransitionRouteGroupsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"\x92\x01\n!ListTransitionRouteGroupsResponse\x12T\n\x17transition_route_groups\x18\x01 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"}\n\x1eGetTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xdc\x01\n!CreateTransitionRouteGroupRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12X\n\x16transition_route_group\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xc5\x01\n!UpdateTransitionRouteGroupRequest\x12X\n\x16transition_route_group\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"x\n!DeleteTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\xb0\x0b\n\x15TransitionRouteGroups\x12\xfb\x01\n\x19ListTransitionRouteGroups\x12?.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest\x1a@.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse\"[\x82\xd3\xe4\x93\x02L\x12J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups\xda\x41\x06parent\x12\xe8\x01\n\x17GetTransitionRouteGroup\x12=.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"Y\x82\xd3\xe4\x93\x02L\x12J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}\xda\x41\x04name\x12\xa0\x02\n\x1a\x43reateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\x8a\x01\x82\xd3\xe4\x93\x02\x64\"J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups:\x16transition_route_group\xda\x41\x1dparent,transition_route_group\x12\xbc\x02\n\x1aUpdateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xa6\x01\x82\xd3\xe4\x93\x02{2a/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}:\x16transition_route_group\xda\x41\"transition_route_group,update_mask\x12\xd1\x01\n\x1a\x44\x65leteTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest\x1a\x16.google.protobuf.Empty\"Y\x82\xd3\xe4\x93\x02L*J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xbf\x01\n!com.google.cloud.dialogflow.cx.v3B\x19TransitionRouteGroupProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.dialogflow.cx.v3.TransitionRoute", "google/cloud/dialogflow/cx/v3/page.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb index ecd717ce84b4..35c1b1c33f5f 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb @@ -1,44 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/validation_message.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/validation_message.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.ValidationMessage" do - optional :resource_type, :enum, 1, "google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType" - repeated :resources, :string, 2 - repeated :resource_names, :message, 6, "google.cloud.dialogflow.cx.v3.ResourceName" - optional :severity, :enum, 3, "google.cloud.dialogflow.cx.v3.ValidationMessage.Severity" - optional :detail, :string, 4 - end - add_enum "google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType" do - value :RESOURCE_TYPE_UNSPECIFIED, 0 - value :AGENT, 1 - value :INTENT, 2 - value :INTENT_TRAINING_PHRASE, 8 - value :INTENT_PARAMETER, 9 - value :INTENTS, 10 - value :INTENT_TRAINING_PHRASES, 11 - value :ENTITY_TYPE, 3 - value :ENTITY_TYPES, 12 - value :WEBHOOK, 4 - value :FLOW, 5 - value :PAGE, 6 - value :PAGES, 13 - value :TRANSITION_ROUTE_GROUP, 7 - end - add_enum "google.cloud.dialogflow.cx.v3.ValidationMessage.Severity" do - value :SEVERITY_UNSPECIFIED, 0 - value :INFO, 1 - value :WARNING, 2 - value :ERROR, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ResourceName" do - optional :name, :string, 1 - optional :display_name, :string, 2 + +descriptor_data = "\n6google/cloud/dialogflow/cx/v3/validation_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\"\xf8\x04\n\x11ValidationMessage\x12T\n\rresource_type\x18\x01 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType\x12\x15\n\tresources\x18\x02 \x03(\tB\x02\x18\x01\x12\x43\n\x0eresource_names\x18\x06 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.ResourceName\x12K\n\x08severity\x18\x03 \x01(\x0e\x32\x39.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity\x12\x0e\n\x06\x64\x65tail\x18\x04 \x01(\t\"\x8b\x02\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41GENT\x10\x01\x12\n\n\x06INTENT\x10\x02\x12\x1a\n\x16INTENT_TRAINING_PHRASE\x10\x08\x12\x14\n\x10INTENT_PARAMETER\x10\t\x12\x0b\n\x07INTENTS\x10\n\x12\x1b\n\x17INTENT_TRAINING_PHRASES\x10\x0b\x12\x0f\n\x0b\x45NTITY_TYPE\x10\x03\x12\x10\n\x0c\x45NTITY_TYPES\x10\x0c\x12\x0b\n\x07WEBHOOK\x10\x04\x12\x08\n\x04\x46LOW\x10\x05\x12\x08\n\x04PAGE\x10\x06\x12\t\n\x05PAGES\x10\r\x12\x1a\n\x16TRANSITION_ROUTE_GROUP\x10\x07\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"2\n\x0cResourceName\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\tB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x16ValidationMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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 = [ + ] + 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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/version_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/version_pb.rb index a63b53fc182b..4c6ac1ca71a1 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/version_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/version.proto @@ -14,63 +15,34 @@ require 'google/protobuf/struct_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/version.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata" do - optional :version, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.Version" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - optional :nlu_settings, :message, 4, "google.cloud.dialogflow.cx.v3.NluSettings" - optional :create_time, :message, 5, "google.protobuf.Timestamp" - optional :state, :enum, 6, "google.cloud.dialogflow.cx.v3.Version.State" - end - add_enum "google.cloud.dialogflow.cx.v3.Version.State" do - value :STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :SUCCEEDED, 2 - value :FAILED, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListVersionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListVersionsResponse" do - repeated :versions, :message, 1, "google.cloud.dialogflow.cx.v3.Version" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.CreateVersionRequest" do - optional :parent, :string, 1 - optional :version, :message, 2, "google.cloud.dialogflow.cx.v3.Version" - end - add_message "google.cloud.dialogflow.cx.v3.UpdateVersionRequest" do - optional :version, :message, 1, "google.cloud.dialogflow.cx.v3.Version" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.LoadVersionRequest" do - optional :name, :string, 1 - optional :allow_override_agent_resources, :bool, 2 - end - add_message "google.cloud.dialogflow.cx.v3.CompareVersionsRequest" do - optional :base_version, :string, 1 - optional :target_version, :string, 2 - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.CompareVersionsResponse" do - optional :base_version_content_json, :string, 1 - optional :target_version_content_json, :string, 2 - optional :compare_time, :message, 3, "google.protobuf.Timestamp" + +descriptor_data = "\n+google/cloud/dialogflow/cx/v3/version.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/flow.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"Y\n\x1e\x43reateVersionOperationMetadata\x12\x37\n\x07version\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Version\"\xce\x03\n\x07Version\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x45\n\x0cnlu_settings\x18\x04 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.NluSettingsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x05state\x18\x06 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.Version.StateB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:~\xea\x41{\n!dialogflow.googleapis.com/Version\x12Vprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}\"w\n\x13ListVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"i\n\x14ListVersionsResponse\x12\x38\n\x08versions\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.cx.v3.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11GetVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"\x8f\x01\n\x14\x43reateVersionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12<\n\x07version\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.VersionB\x03\xe0\x41\x02\"\x8a\x01\n\x14UpdateVersionRequest\x12<\n\x07version\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.VersionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"O\n\x14\x44\x65leteVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"u\n\x12LoadVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12&\n\x1e\x61llow_override_agent_resources\x18\x02 \x01(\x08\"\xb3\x01\n\x16\x43ompareVersionsRequest\x12?\n\x0c\x62\x61se_version\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x41\n\x0etarget_version\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x93\x01\n\x17\x43ompareVersionsResponse\x12!\n\x19\x62\x61se_version_content_json\x18\x01 \x01(\t\x12#\n\x1btarget_version_content_json\x18\x02 \x01(\t\x12\x30\n\x0c\x63ompare_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xe2\x0c\n\x08Versions\x12\xc7\x01\n\x0cListVersions\x12\x32.google.cloud.dialogflow.cx.v3.ListVersionsRequest\x1a\x33.google.cloud.dialogflow.cx.v3.ListVersionsResponse\"N\x82\xd3\xe4\x93\x02?\x12=/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions\xda\x41\x06parent\x12\xb4\x01\n\nGetVersion\x12\x30.google.cloud.dialogflow.cx.v3.GetVersionRequest\x1a&.google.cloud.dialogflow.cx.v3.Version\"L\x82\xd3\xe4\x93\x02?\x12=/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}\xda\x41\x04name\x12\xf1\x01\n\rCreateVersion\x12\x33.google.cloud.dialogflow.cx.v3.CreateVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02H\"=/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions:\x07version\xda\x41\x0eparent,version\xca\x41)\n\x07Version\x12\x1e\x43reateVersionOperationMetadata\x12\xda\x01\n\rUpdateVersion\x12\x33.google.cloud.dialogflow.cx.v3.UpdateVersionRequest\x1a&.google.cloud.dialogflow.cx.v3.Version\"l\x82\xd3\xe4\x93\x02P2E/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}:\x07version\xda\x41\x13version,update_mask\x12\xaa\x01\n\rDeleteVersion\x12\x33.google.cloud.dialogflow.cx.v3.DeleteVersionRequest\x1a\x16.google.protobuf.Empty\"L\x82\xd3\xe4\x93\x02?*=/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}\xda\x41\x04name\x12\xe8\x01\n\x0bLoadVersion\x12\x31.google.cloud.dialogflow.cx.v3.LoadVersionRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\x82\xd3\xe4\x93\x02G\"B/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load:\x01*\xda\x41\x04name\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf1\x01\n\x0f\x43ompareVersions\x12\x35.google.cloud.dialogflow.cx.v3.CompareVersionsRequest\x1a\x36.google.cloud.dialogflow.cx.v3.CompareVersionsResponse\"o\x82\xd3\xe4\x93\x02Z\"U/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions:\x01*\xda\x41\x0c\x62\x61se_version\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb2\x01\n!com.google.cloud.dialogflow.cx.v3B\x0cVersionProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.dialogflow.cx.v3.NluSettings", "google/cloud/dialogflow/cx/v3/flow.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb index 2452132751ef..602132a23c3f 100644 --- a/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +++ b/google-cloud-dialogflow-cx-v3/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3/webhook.proto @@ -13,133 +14,35 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/cx/v3/webhook.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.cx.v3.Webhook" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :timeout, :message, 6, "google.protobuf.Duration" - optional :disabled, :bool, 5 - oneof :webhook do - optional :generic_web_service, :message, 4, "google.cloud.dialogflow.cx.v3.Webhook.GenericWebService" - optional :service_directory, :message, 7, "google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig" - end - end - add_message "google.cloud.dialogflow.cx.v3.Webhook.GenericWebService" do - optional :uri, :string, 1 - optional :username, :string, 2 - optional :password, :string, 3 - map :request_headers, :string, :string, 4 - repeated :allowed_ca_certs, :bytes, 5 - end - add_message "google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig" do - optional :service, :string, 1 - optional :generic_web_service, :message, 2, "google.cloud.dialogflow.cx.v3.Webhook.GenericWebService" - end - add_message "google.cloud.dialogflow.cx.v3.ListWebhooksRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.cx.v3.ListWebhooksResponse" do - repeated :webhooks, :message, 1, "google.cloud.dialogflow.cx.v3.Webhook" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.cx.v3.GetWebhookRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.CreateWebhookRequest" do - optional :parent, :string, 1 - optional :webhook, :message, 2, "google.cloud.dialogflow.cx.v3.Webhook" - end - add_message "google.cloud.dialogflow.cx.v3.UpdateWebhookRequest" do - optional :webhook, :message, 1, "google.cloud.dialogflow.cx.v3.Webhook" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.cx.v3.DeleteWebhookRequest" do - optional :name, :string, 1 - optional :force, :bool, 2 - end - add_message "google.cloud.dialogflow.cx.v3.WebhookRequest" do - optional :detect_intent_response_id, :string, 1 - optional :language_code, :string, 15 - optional :fulfillment_info, :message, 6, "google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo" - optional :intent_info, :message, 3, "google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo" - optional :page_info, :message, 4, "google.cloud.dialogflow.cx.v3.PageInfo" - optional :session_info, :message, 5, "google.cloud.dialogflow.cx.v3.SessionInfo" - repeated :messages, :message, 7, "google.cloud.dialogflow.cx.v3.ResponseMessage" - optional :payload, :message, 8, "google.protobuf.Struct" - optional :sentiment_analysis_result, :message, 9, "google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult" - oneof :query do - optional :text, :string, 10 - optional :trigger_intent, :string, 11 - optional :transcript, :string, 12 - optional :trigger_event, :string, 14 - optional :dtmf_digits, :string, 17 - end - end - add_message "google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo" do - optional :tag, :string, 1 - end - add_message "google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo" do - optional :last_matched_intent, :string, 1 - optional :display_name, :string, 3 - map :parameters, :string, :message, 2, "google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue" - optional :confidence, :float, 4 - end - add_message "google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue" do - optional :original_value, :string, 1 - optional :resolved_value, :message, 2, "google.protobuf.Value" - end - add_message "google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult" do - optional :score, :float, 1 - optional :magnitude, :float, 2 - end - add_message "google.cloud.dialogflow.cx.v3.WebhookResponse" do - optional :fulfillment_response, :message, 1, "google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse" - optional :page_info, :message, 2, "google.cloud.dialogflow.cx.v3.PageInfo" - optional :session_info, :message, 3, "google.cloud.dialogflow.cx.v3.SessionInfo" - optional :payload, :message, 4, "google.protobuf.Struct" - oneof :transition do - optional :target_page, :string, 5 - optional :target_flow, :string, 6 - end - end - add_message "google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse" do - repeated :messages, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage" - optional :merge_behavior, :enum, 2, "google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior" - end - add_enum "google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior" do - value :MERGE_BEHAVIOR_UNSPECIFIED, 0 - value :APPEND, 1 - value :REPLACE, 2 - end - add_message "google.cloud.dialogflow.cx.v3.PageInfo" do - optional :current_page, :string, 1 - optional :display_name, :string, 4 - optional :form_info, :message, 3, "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo" - end - add_message "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo" do - repeated :parameter_info, :message, 2, "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo" - end - add_message "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo" do - optional :display_name, :string, 1 - optional :required, :bool, 2 - optional :state, :enum, 3, "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState" - optional :value, :message, 4, "google.protobuf.Value" - optional :just_collected, :bool, 5 - end - add_enum "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState" do - value :PARAMETER_STATE_UNSPECIFIED, 0 - value :EMPTY, 1 - value :INVALID, 2 - value :FILLED, 3 - end - add_message "google.cloud.dialogflow.cx.v3.SessionInfo" do - optional :session, :string, 1 - map :parameters, :string, :message, 2, "google.protobuf.Value" + +descriptor_data = "\n+google/cloud/dialogflow/cx/v3/webhook.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xe8\x06\n\x07Webhook\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12W\n\x13generic_web_service\x18\x04 \x01(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.Webhook.GenericWebServiceH\x00\x12Z\n\x11service_directory\x18\x07 \x01(\x0b\x32=.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfigH\x00\x12*\n\x07timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08\x64isabled\x18\x05 \x01(\x08\x1a\x8e\x02\n\x11GenericWebService\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x08username\x18\x02 \x01(\tB\x02\x18\x01\x12\x14\n\x08password\x18\x03 \x01(\tB\x02\x18\x01\x12\x65\n\x0frequest_headers\x18\x04 \x03(\x0b\x32L.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.RequestHeadersEntry\x12\x1d\n\x10\x61llowed_ca_certs\x18\x05 \x03(\x0c\x42\x03\xe0\x41\x01\x1a\x35\n\x13RequestHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xb1\x01\n\x16ServiceDirectoryConfig\x12@\n\x07service\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\x12U\n\x13generic_web_service\x18\x02 \x01(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService:q\xea\x41n\n!dialogflow.googleapis.com/Webhook\x12Iprojects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}B\t\n\x07webhook\"w\n\x13ListWebhooksRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Webhook\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"i\n\x14ListWebhooksResponse\x12\x38\n\x08webhooks\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.cx.v3.Webhook\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11GetWebhookRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Webhook\"\x8f\x01\n\x14\x43reateWebhookRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Webhook\x12<\n\x07webhook\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.WebhookB\x03\xe0\x41\x02\"\x85\x01\n\x14UpdateWebhookRequest\x12<\n\x07webhook\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.WebhookB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"^\n\x14\x44\x65leteWebhookRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Webhook\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x81\n\n\x0eWebhookRequest\x12!\n\x19\x64\x65tect_intent_response_id\x18\x01 \x01(\t\x12\x0e\n\x04text\x18\n \x01(\tH\x00\x12?\n\x0etrigger_intent\x18\x0b \x01(\tB%\xfa\x41\"\n dialogflow.googleapis.com/IntentH\x00\x12\x14\n\ntranscript\x18\x0c \x01(\tH\x00\x12\x17\n\rtrigger_event\x18\x0e \x01(\tH\x00\x12\x15\n\x0b\x64tmf_digits\x18\x11 \x01(\tH\x00\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12W\n\x10\x66ulfillment_info\x18\x06 \x01(\x0b\x32=.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo\x12M\n\x0bintent_info\x18\x03 \x01(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo\x12:\n\tpage_info\x18\x04 \x01(\x0b\x32\'.google.cloud.dialogflow.cx.v3.PageInfo\x12@\n\x0csession_info\x18\x05 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.SessionInfo\x12@\n\x08messages\x18\x07 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessage\x12(\n\x07payload\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12h\n\x19sentiment_analysis_result\x18\t \x01(\x0b\x32\x45.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult\x1a\x1e\n\x0f\x46ulfillmentInfo\x12\x0b\n\x03tag\x18\x01 \x01(\t\x1a\xbb\x03\n\nIntentInfo\x12\x42\n\x13last_matched_intent\x18\x01 \x01(\tB%\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\\\n\nparameters\x18\x02 \x03(\x0b\x32H.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.ParametersEntry\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x1a^\n\x14IntentParameterValue\x12\x16\n\x0eoriginal_value\x18\x01 \x01(\t\x12.\n\x0eresolved_value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\x1a\x80\x01\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\\\n\x05value\x18\x02 \x01(\x0b\x32M.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue:\x02\x38\x01\x1a;\n\x17SentimentAnalysisResult\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x42\x07\n\x05query\"\xaf\x05\n\x0fWebhookResponse\x12`\n\x14\x66ulfillment_response\x18\x01 \x01(\x0b\x32\x42.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse\x12:\n\tpage_info\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.cx.v3.PageInfo\x12@\n\x0csession_info\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.SessionInfo\x12(\n\x07payload\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12:\n\x0btarget_page\x18\x05 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/PageH\x00\x12:\n\x0btarget_flow\x18\x06 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/FlowH\x00\x1a\x8b\x02\n\x13\x46ulfillmentResponse\x12@\n\x08messages\x18\x01 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessage\x12h\n\x0emerge_behavior\x18\x02 \x01(\x0e\x32P.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior\"H\n\rMergeBehavior\x12\x1e\n\x1aMERGE_BEHAVIOR_UNSPECIFIED\x10\x00\x12\n\n\x06\x41PPEND\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\x42\x0c\n\ntransition\"\xb3\x04\n\x08PageInfo\x12\x39\n\x0c\x63urrent_page\x18\x01 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\x43\n\tform_info\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo\x1a\x90\x03\n\x08\x46ormInfo\x12V\n\x0eparameter_info\x18\x02 \x03(\x0b\x32>.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo\x1a\xab\x02\n\rParameterInfo\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x10\n\x08required\x18\x02 \x01(\x08\x12\\\n\x05state\x18\x03 \x01(\x0e\x32M.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12\x16\n\x0ejust_collected\x18\x05 \x01(\x08\"U\n\x0eParameterState\x12\x1f\n\x1bPARAMETER_STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45MPTY\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\n\n\x06\x46ILLED\x10\x03\"\xe1\x01\n\x0bSessionInfo\x12\x37\n\x07session\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Session\x12N\n\nparameters\x18\x02 \x03(\x0b\x32:.google.cloud.dialogflow.cx.v3.SessionInfo.ParametersEntry\x1aI\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x32\xb7\x08\n\x08Webhooks\x12\xbf\x01\n\x0cListWebhooks\x12\x32.google.cloud.dialogflow.cx.v3.ListWebhooksRequest\x1a\x33.google.cloud.dialogflow.cx.v3.ListWebhooksResponse\"F\x82\xd3\xe4\x93\x02\x37\x12\x35/v3/{parent=projects/*/locations/*/agents/*}/webhooks\xda\x41\x06parent\x12\xac\x01\n\nGetWebhook\x12\x30.google.cloud.dialogflow.cx.v3.GetWebhookRequest\x1a&.google.cloud.dialogflow.cx.v3.Webhook\"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v3/{name=projects/*/locations/*/agents/*/webhooks/*}\xda\x41\x04name\x12\xc5\x01\n\rCreateWebhook\x12\x33.google.cloud.dialogflow.cx.v3.CreateWebhookRequest\x1a&.google.cloud.dialogflow.cx.v3.Webhook\"W\x82\xd3\xe4\x93\x02@\"5/v3/{parent=projects/*/locations/*/agents/*}/webhooks:\x07webhook\xda\x41\x0eparent,webhook\x12\xd2\x01\n\rUpdateWebhook\x12\x33.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest\x1a&.google.cloud.dialogflow.cx.v3.Webhook\"d\x82\xd3\xe4\x93\x02H2=/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}:\x07webhook\xda\x41\x13webhook,update_mask\x12\xa2\x01\n\rDeleteWebhook\x12\x33.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest\x1a\x16.google.protobuf.Empty\"D\x82\xd3\xe4\x93\x02\x37*5/v3/{name=projects/*/locations/*/agents/*/webhooks/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb1\x02\n!com.google.cloud.dialogflow.cx.v3B\x0cWebhookProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\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.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.cloud.dialogflow.cx.v3.ResponseMessage", "google/cloud/dialogflow/cx/v3/response_message.proto"], + ["google.protobuf.Struct", "google/protobuf/struct.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 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 diff --git a/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/any.rb b/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/any.rb index 39618af2c75c..9f9367c74a8d 100644 --- a/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/any.rb +++ b/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/struct.rb b/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/struct.rb index 493cbe6b8a7f..5599dbc6b504 100644 --- a/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/struct.rb +++ b/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/struct.rb @@ -87,7 +87,7 @@ class ListValue # `NullValue` is a singleton enumeration to represent the null value for the # `Value` type union. # - # The JSON representation for `NullValue` is JSON `null`. + # The JSON representation for `NullValue` is JSON `null`. module NullValue # Null value. NULL_VALUE = 0 diff --git a/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/timestamp.rb b/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/timestamp.rb index fb9d03c73c8d..626cd5e0bf3a 100644 --- a/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-dialogflow-cx-v3/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-dialogflow-v2/google-cloud-dialogflow-v2.gemspec b/google-cloud-dialogflow-v2/google-cloud-dialogflow-v2.gemspec index 68106810f3c5..8229b9f43439 100644 --- a/google-cloud-dialogflow-v2/google-cloud-dialogflow-v2.gemspec +++ b/google-cloud-dialogflow-v2/google-cloud-dialogflow-v2.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-cloud-location", ">= 0.4", "< 2.a" diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/agent_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/agent_pb.rb index df5bafbbbd6b..e34fca45ab67 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/agent_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/agent_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/agent.proto @@ -13,90 +14,32 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/agent.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Agent" do - optional :parent, :string, 1 - optional :display_name, :string, 2 - optional :default_language_code, :string, 3 - repeated :supported_language_codes, :string, 4 - optional :time_zone, :string, 5 - optional :description, :string, 6 - optional :avatar_uri, :string, 7 - optional :enable_logging, :bool, 8 - optional :match_mode, :enum, 9, "google.cloud.dialogflow.v2.Agent.MatchMode" - optional :classification_threshold, :float, 10 - optional :api_version, :enum, 14, "google.cloud.dialogflow.v2.Agent.ApiVersion" - optional :tier, :enum, 15, "google.cloud.dialogflow.v2.Agent.Tier" - end - add_enum "google.cloud.dialogflow.v2.Agent.MatchMode" do - value :MATCH_MODE_UNSPECIFIED, 0 - value :MATCH_MODE_HYBRID, 1 - value :MATCH_MODE_ML_ONLY, 2 - end - add_enum "google.cloud.dialogflow.v2.Agent.ApiVersion" do - value :API_VERSION_UNSPECIFIED, 0 - value :API_VERSION_V1, 1 - value :API_VERSION_V2, 2 - value :API_VERSION_V2_BETA_1, 3 - end - add_enum "google.cloud.dialogflow.v2.Agent.Tier" do - value :TIER_UNSPECIFIED, 0 - value :TIER_STANDARD, 1 - value :TIER_ENTERPRISE, 2 - value :TIER_ENTERPRISE_PLUS, 3 - end - add_message "google.cloud.dialogflow.v2.GetAgentRequest" do - optional :parent, :string, 1 - end - add_message "google.cloud.dialogflow.v2.SetAgentRequest" do - optional :agent, :message, 1, "google.cloud.dialogflow.v2.Agent" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.DeleteAgentRequest" do - optional :parent, :string, 1 - end - add_message "google.cloud.dialogflow.v2.SearchAgentsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.SearchAgentsResponse" do - repeated :agents, :message, 1, "google.cloud.dialogflow.v2.Agent" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.TrainAgentRequest" do - optional :parent, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ExportAgentRequest" do - optional :parent, :string, 1 - optional :agent_uri, :string, 2 - end - add_message "google.cloud.dialogflow.v2.ExportAgentResponse" do - oneof :agent do - optional :agent_uri, :string, 1 - optional :agent_content, :bytes, 2 - end - end - add_message "google.cloud.dialogflow.v2.ImportAgentRequest" do - optional :parent, :string, 1 - oneof :agent do - optional :agent_uri, :string, 2 - optional :agent_content, :bytes, 3 - end - end - add_message "google.cloud.dialogflow.v2.RestoreAgentRequest" do - optional :parent, :string, 1 - oneof :agent do - optional :agent_uri, :string, 2 - optional :agent_content, :bytes, 3 - end - end - add_message "google.cloud.dialogflow.v2.GetValidationResultRequest" do - optional :parent, :string, 1 - optional :language_code, :string, 3 + +descriptor_data = "\n&google/cloud/dialogflow/v2/agent.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/dialogflow/v2/validation_result.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa5\x07\n\x05\x41gent\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\"\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18supported_language_codes\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\navatar_uri\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65nable_logging\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x46\n\nmatch_mode\x18\t \x01(\x0e\x32+.google.cloud.dialogflow.v2.Agent.MatchModeB\x05\x18\x01\xe0\x41\x01\x12%\n\x18\x63lassification_threshold\x18\n \x01(\x02\x42\x03\xe0\x41\x01\x12\x46\n\x0b\x61pi_version\x18\x0e \x01(\x0e\x32,.google.cloud.dialogflow.v2.Agent.ApiVersionB\x03\xe0\x41\x01\x12\x39\n\x04tier\x18\x0f \x01(\x0e\x32&.google.cloud.dialogflow.v2.Agent.TierB\x03\xe0\x41\x01\"V\n\tMatchMode\x12\x1a\n\x16MATCH_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11MATCH_MODE_HYBRID\x10\x01\x12\x16\n\x12MATCH_MODE_ML_ONLY\x10\x02\"l\n\nApiVersion\x12\x1b\n\x17\x41PI_VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x41PI_VERSION_V1\x10\x01\x12\x12\n\x0e\x41PI_VERSION_V2\x10\x02\x12\x19\n\x15\x41PI_VERSION_V2_BETA_1\x10\x03\"b\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x11\n\rTIER_STANDARD\x10\x01\x12\x13\n\x0fTIER_ENTERPRISE\x10\x02\x12\x1c\n\x14TIER_ENTERPRISE_PLUS\x10\x03\x1a\x02\x08\x01:m\xea\x41j\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x18projects/{project}/agent\x12-projects/{project}/locations/{location}/agent\"J\n\x0fGetAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\"~\n\x0fSetAgentRequest\x12\x35\n\x05\x61gent\x18\x01 \x01(\x0b\x32!.google.cloud.dialogflow.v2.AgentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"M\n\x12\x44\x65leteAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\"z\n\x13SearchAgentsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\npage_token\x18\x03 \x01(\t\"b\n\x14SearchAgentsResponse\x12\x31\n\x06\x61gents\x18\x01 \x03(\x0b\x32!.google.cloud.dialogflow.v2.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11TrainAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\"e\n\x12\x45xportAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x16\n\tagent_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\"L\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x42\x07\n\x05\x61gent\"\x84\x01\n\x12ImportAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent\"\x85\x01\n\x13RestoreAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent\"q\n\x1aGetValidationResultRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x32\xaa\x11\n\x06\x41gents\x12\xb7\x01\n\x08GetAgent\x12+.google.cloud.dialogflow.v2.GetAgentRequest\x1a!.google.cloud.dialogflow.v2.Agent\"[\x82\xd3\xe4\x93\x02L\x12\x1d/v2/{parent=projects/*}/agentZ+\x12)/v2/{parent=projects/*/locations/*}/agent\xda\x41\x06parent\x12\xd0\x01\n\x08SetAgent\x12+.google.cloud.dialogflow.v2.SetAgentRequest\x1a!.google.cloud.dialogflow.v2.Agent\"t\x82\xd3\xe4\x93\x02\x66\"#/v2/{agent.parent=projects/*}/agent:\x05\x61gentZ8\"//v2/{agent.parent=projects/*/locations/*}/agent:\x05\x61gent\xda\x41\x05\x61gent\x12\xb2\x01\n\x0b\x44\x65leteAgent\x12..google.cloud.dialogflow.v2.DeleteAgentRequest\x1a\x16.google.protobuf.Empty\"[\x82\xd3\xe4\x93\x02L*\x1d/v2/{parent=projects/*}/agentZ+*)/v2/{parent=projects/*/locations/*}/agent\xda\x41\x06parent\x12\xdc\x01\n\x0cSearchAgents\x12/.google.cloud.dialogflow.v2.SearchAgentsRequest\x1a\x30.google.cloud.dialogflow.v2.SearchAgentsResponse\"i\x82\xd3\xe4\x93\x02Z\x12$/v2/{parent=projects/*}/agent:searchZ2\x12\x30/v2/{parent=projects/*/locations/*}/agent:search\xda\x41\x06parent\x12\xfc\x01\n\nTrainAgent\x12-.google.cloud.dialogflow.v2.TrainAgentRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02^\"#/v2/{parent=projects/*}/agent:train:\x01*Z4\"//v2/{parent=projects/*/locations/*}/agent:train:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\x99\x02\n\x0b\x45xportAgent\x12..google.cloud.dialogflow.v2.ExportAgentRequest\x1a\x1d.google.longrunning.Operation\"\xba\x01\x82\xd3\xe4\x93\x02`\"$/v2/{parent=projects/*}/agent:export:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/agent:export:\x01*\xda\x41\x06parent\xca\x41H\n.google.cloud.dialogflow.v2.ExportAgentResponse\x12\x16google.protobuf.Struct\x12\xf7\x01\n\x0bImportAgent\x12..google.cloud.dialogflow.v2.ImportAgentRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02`\"$/v2/{parent=projects/*}/agent:import:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/agent:import:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xfb\x01\n\x0cRestoreAgent\x12/.google.cloud.dialogflow.v2.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation\"\x9a\x01\x82\xd3\xe4\x93\x02\x62\"%/v2/{parent=projects/*}/agent:restore:\x01*Z6\"1/v2/{parent=projects/*/locations/*}/agent:restore:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf1\x01\n\x13GetValidationResult\x12\x36.google.cloud.dialogflow.v2.GetValidationResultRequest\x1a,.google.cloud.dialogflow.v2.ValidationResult\"t\x82\xd3\xe4\x93\x02n\x12./v2/{parent=projects/*}/agent/validationResultZ<\x12:/v2/{parent=projects/*/locations/*}/agent/validationResult\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x93\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\nAgentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/answer_record_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/answer_record_pb.rb index ad381dbe6d77..e6eabbdfed3b 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/answer_record_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/answer_record.proto @@ -11,78 +12,34 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/answer_record.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.AnswerRecord" do - optional :name, :string, 1 - optional :answer_feedback, :message, 2, "google.cloud.dialogflow.v2.AnswerFeedback" - oneof :record do - optional :agent_assistant_record, :message, 4, "google.cloud.dialogflow.v2.AgentAssistantRecord" - end - end - add_message "google.cloud.dialogflow.v2.ListAnswerRecordsRequest" do - optional :parent, :string, 1 - optional :filter, :string, 2 - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - end - add_message "google.cloud.dialogflow.v2.ListAnswerRecordsResponse" do - repeated :answer_records, :message, 1, "google.cloud.dialogflow.v2.AnswerRecord" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.UpdateAnswerRecordRequest" do - optional :answer_record, :message, 1, "google.cloud.dialogflow.v2.AnswerRecord" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.AnswerFeedback" do - optional :correctness_level, :enum, 1, "google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel" - optional :clicked, :bool, 3 - optional :click_time, :message, 5, "google.protobuf.Timestamp" - optional :displayed, :bool, 4 - optional :display_time, :message, 6, "google.protobuf.Timestamp" - oneof :detail_feedback do - optional :agent_assistant_detail_feedback, :message, 2, "google.cloud.dialogflow.v2.AgentAssistantFeedback" - end - end - add_enum "google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel" do - value :CORRECTNESS_LEVEL_UNSPECIFIED, 0 - value :NOT_CORRECT, 1 - value :PARTIALLY_CORRECT, 2 - value :FULLY_CORRECT, 3 - end - add_message "google.cloud.dialogflow.v2.AgentAssistantFeedback" do - optional :answer_relevance, :enum, 1, "google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance" - optional :document_correctness, :enum, 2, "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness" - optional :document_efficiency, :enum, 3, "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency" - optional :summarization_feedback, :message, 4, "google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback" - end - add_message "google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback" do - optional :start_time, :message, 1, "google.protobuf.Timestamp" - optional :submit_time, :message, 2, "google.protobuf.Timestamp" - optional :summary_text, :string, 3 - end - add_enum "google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance" do - value :ANSWER_RELEVANCE_UNSPECIFIED, 0 - value :IRRELEVANT, 1 - value :RELEVANT, 2 - end - add_enum "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness" do - value :DOCUMENT_CORRECTNESS_UNSPECIFIED, 0 - value :INCORRECT, 1 - value :CORRECT, 2 - end - add_enum "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency" do - value :DOCUMENT_EFFICIENCY_UNSPECIFIED, 0 - value :INEFFICIENT, 1 - value :EFFICIENT, 2 - end - add_message "google.cloud.dialogflow.v2.AgentAssistantRecord" do - oneof :answer do - optional :article_suggestion_answer, :message, 5, "google.cloud.dialogflow.v2.ArticleAnswer" - optional :faq_answer, :message, 6, "google.cloud.dialogflow.v2.FaqAnswer" - end + +descriptor_data = "\n.google/cloud/dialogflow/v2/answer_record.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\x02\n\x0c\x41nswerRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x0f\x61nswer_feedback\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.AnswerFeedbackB\x03\xe0\x41\x02\x12W\n\x16\x61gent_assistant_record\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AgentAssistantRecordB\x03\xe0\x41\x03H\x00:\xa5\x01\xea\x41\xa1\x01\n&dialogflow.googleapis.com/AnswerRecord\x12\x30projects/{project}/answerRecords/{answer_record}\x12\x45projects/{project}/locations/{location}/answerRecords/{answer_record}B\x08\n\x06record\"\xa2\x01\n\x18ListAnswerRecordsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/AnswerRecord\x12\x15\n\x06\x66ilter\x18\x02 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"v\n\x19ListAnswerRecordsResponse\x12@\n\x0e\x61nswer_records\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x19UpdateAnswerRecordRequest\x12\x44\n\ranswer_record\x18\x01 \x01(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecordB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xd2\x03\n\x0e\x41nswerFeedback\x12V\n\x11\x63orrectness_level\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel\x12]\n\x1f\x61gent_assistant_detail_feedback\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.AgentAssistantFeedbackH\x00\x12\x0f\n\x07\x63licked\x18\x03 \x01(\x08\x12.\n\nclick_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdisplayed\x18\x04 \x01(\x08\x12\x30\n\x0c\x64isplay_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x10\x43orrectnessLevel\x12!\n\x1d\x43ORRECTNESS_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_CORRECT\x10\x01\x12\x15\n\x11PARTIALLY_CORRECT\x10\x02\x12\x11\n\rFULLY_CORRECT\x10\x03\x42\x11\n\x0f\x64\x65tail_feedback\"\xd6\x06\n\x16\x41gentAssistantFeedback\x12\x61\n\x10\x61nswer_relevance\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevanceB\x03\xe0\x41\x01\x12i\n\x14\x64ocument_correctness\x18\x02 \x01(\x0e\x32\x46.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectnessB\x03\xe0\x41\x01\x12g\n\x13\x64ocument_efficiency\x18\x03 \x01(\x0e\x32\x45.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiencyB\x03\xe0\x41\x01\x12m\n\x16summarization_feedback\x18\x04 \x01(\x0b\x32H.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackB\x03\xe0\x41\x01\x1a\x8e\x01\n\x15SummarizationFeedback\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0csummary_text\x18\x03 \x01(\t\"Q\n\x0f\x41nswerRelevance\x12 \n\x1c\x41NSWER_RELEVANCE_UNSPECIFIED\x10\x00\x12\x0e\n\nIRRELEVANT\x10\x01\x12\x0c\n\x08RELEVANT\x10\x02\"W\n\x13\x44ocumentCorrectness\x12$\n DOCUMENT_CORRECTNESS_UNSPECIFIED\x10\x00\x12\r\n\tINCORRECT\x10\x01\x12\x0b\n\x07\x43ORRECT\x10\x02\"Y\n\x12\x44ocumentEfficiency\x12#\n\x1f\x44OCUMENT_EFFICIENCY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINEFFICIENT\x10\x01\x12\r\n\tEFFICIENT\x10\x02\"\xb7\x01\n\x14\x41gentAssistantRecord\x12S\n\x19\x61rticle_suggestion_answer\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswerB\x03\xe0\x41\x03H\x00\x12@\n\nfaq_answer\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswerB\x03\xe0\x41\x03H\x00\x42\x08\n\x06\x61nswer2\xad\x05\n\rAnswerRecords\x12\xed\x01\n\x11ListAnswerRecords\x12\x34.google.cloud.dialogflow.v2.ListAnswerRecordsRequest\x1a\x35.google.cloud.dialogflow.v2.ListAnswerRecordsResponse\"k\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/answerRecordsZ3\x12\x31/v2/{parent=projects/*/locations/*}/answerRecords\xda\x41\x06parent\x12\xb1\x02\n\x12UpdateAnswerRecord\x12\x35.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest\x1a(.google.cloud.dialogflow.v2.AnswerRecord\"\xb9\x01\x82\xd3\xe4\x93\x02\x96\x01\x32\x33/v2/{answer_record.name=projects/*/answerRecords/*}:\ranswer_recordZP2?/v2/{answer_record.name=projects/*/locations/*/answerRecords/*}:\ranswer_record\xda\x41\x19\x61nswer_record,update_mask\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12\x41nswerRecordsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dialogflow.v2.ArticleAnswer", "google/cloud/dialogflow/v2/participant.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/audio_config_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/audio_config_pb.rb index 1d5fede386c5..c4ae9772e39c 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/audio_config_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/audio_config.proto @@ -7,104 +8,32 @@ require 'google/api/resource_pb' require 'google/protobuf/duration_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/audio_config.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.SpeechContext" do - repeated :phrases, :string, 1 - optional :boost, :float, 2 - end - add_message "google.cloud.dialogflow.v2.SpeechWordInfo" do - optional :word, :string, 3 - optional :start_offset, :message, 1, "google.protobuf.Duration" - optional :end_offset, :message, 2, "google.protobuf.Duration" - optional :confidence, :float, 4 - end - add_message "google.cloud.dialogflow.v2.InputAudioConfig" do - optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.v2.AudioEncoding" - optional :sample_rate_hertz, :int32, 2 - optional :language_code, :string, 3 - optional :enable_word_info, :bool, 13 - repeated :phrase_hints, :string, 4 - repeated :speech_contexts, :message, 11, "google.cloud.dialogflow.v2.SpeechContext" - optional :model, :string, 7 - optional :model_variant, :enum, 10, "google.cloud.dialogflow.v2.SpeechModelVariant" - optional :single_utterance, :bool, 8 - optional :disable_no_speech_recognized_event, :bool, 14 - optional :enable_automatic_punctuation, :bool, 17 - end - add_message "google.cloud.dialogflow.v2.VoiceSelectionParams" do - optional :name, :string, 1 - optional :ssml_gender, :enum, 2, "google.cloud.dialogflow.v2.SsmlVoiceGender" - end - add_message "google.cloud.dialogflow.v2.SynthesizeSpeechConfig" do - optional :speaking_rate, :double, 1 - optional :pitch, :double, 2 - optional :volume_gain_db, :double, 3 - repeated :effects_profile_id, :string, 5 - optional :voice, :message, 4, "google.cloud.dialogflow.v2.VoiceSelectionParams" - end - add_message "google.cloud.dialogflow.v2.OutputAudioConfig" do - optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.v2.OutputAudioEncoding" - optional :sample_rate_hertz, :int32, 2 - optional :synthesize_speech_config, :message, 3, "google.cloud.dialogflow.v2.SynthesizeSpeechConfig" - end - add_message "google.cloud.dialogflow.v2.TelephonyDtmfEvents" do - repeated :dtmf_events, :enum, 1, "google.cloud.dialogflow.v2.TelephonyDtmf" - end - add_message "google.cloud.dialogflow.v2.SpeechToTextConfig" do - optional :speech_model_variant, :enum, 1, "google.cloud.dialogflow.v2.SpeechModelVariant" - optional :model, :string, 2 - end - add_enum "google.cloud.dialogflow.v2.AudioEncoding" do - value :AUDIO_ENCODING_UNSPECIFIED, 0 - value :AUDIO_ENCODING_LINEAR_16, 1 - value :AUDIO_ENCODING_FLAC, 2 - value :AUDIO_ENCODING_MULAW, 3 - value :AUDIO_ENCODING_AMR, 4 - value :AUDIO_ENCODING_AMR_WB, 5 - value :AUDIO_ENCODING_OGG_OPUS, 6 - value :AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE, 7 - end - add_enum "google.cloud.dialogflow.v2.SpeechModelVariant" do - value :SPEECH_MODEL_VARIANT_UNSPECIFIED, 0 - value :USE_BEST_AVAILABLE, 1 - value :USE_STANDARD, 2 - value :USE_ENHANCED, 3 - end - add_enum "google.cloud.dialogflow.v2.SsmlVoiceGender" do - value :SSML_VOICE_GENDER_UNSPECIFIED, 0 - value :SSML_VOICE_GENDER_MALE, 1 - value :SSML_VOICE_GENDER_FEMALE, 2 - value :SSML_VOICE_GENDER_NEUTRAL, 3 - end - add_enum "google.cloud.dialogflow.v2.OutputAudioEncoding" do - value :OUTPUT_AUDIO_ENCODING_UNSPECIFIED, 0 - value :OUTPUT_AUDIO_ENCODING_LINEAR_16, 1 - value :OUTPUT_AUDIO_ENCODING_MP3, 2 - value :OUTPUT_AUDIO_ENCODING_MP3_64_KBPS, 4 - value :OUTPUT_AUDIO_ENCODING_OGG_OPUS, 3 - value :OUTPUT_AUDIO_ENCODING_MULAW, 5 - end - add_enum "google.cloud.dialogflow.v2.TelephonyDtmf" do - value :TELEPHONY_DTMF_UNSPECIFIED, 0 - value :DTMF_ONE, 1 - value :DTMF_TWO, 2 - value :DTMF_THREE, 3 - value :DTMF_FOUR, 4 - value :DTMF_FIVE, 5 - value :DTMF_SIX, 6 - value :DTMF_SEVEN, 7 - value :DTMF_EIGHT, 8 - value :DTMF_NINE, 9 - value :DTMF_ZERO, 10 - value :DTMF_A, 11 - value :DTMF_B, 12 - value :DTMF_C, 13 - value :DTMF_D, 14 - value :DTMF_STAR, 15 - value :DTMF_POUND, 16 + +descriptor_data = "\n-google/cloud/dialogflow/v2/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"/\n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xc1\x03\n\x10InputAudioConfig\x12\x41\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x18\n\x0cphrase_hints\x18\x04 \x03(\tB\x02\x18\x01\x12\x42\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32).google.cloud.dialogflow.v2.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12\x45\n\rmodel_variant\x18\n \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\x12*\n\"disable_no_speech_recognized_event\x18\x0e \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x11 \x01(\x08\"f\n\x14VoiceSelectionParams\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bssml_gender\x18\x02 \x01(\x0e\x32+.google.cloud.dialogflow.v2.SsmlVoiceGender\"\xb3\x01\n\x16SynthesizeSpeechConfig\x12\x15\n\rspeaking_rate\x18\x01 \x01(\x01\x12\r\n\x05pitch\x18\x02 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x03 \x01(\x01\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\t\x12?\n\x05voice\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.VoiceSelectionParams\"\xd2\x01\n\x11OutputAudioConfig\x12L\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12T\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig\"U\n\x13TelephonyDtmfEvents\x12>\n\x0b\x64tmf_events\x18\x01 \x03(\x0e\x32).google.cloud.dialogflow.v2.TelephonyDtmf\"q\n\x12SpeechToTextConfig\x12L\n\x14speech_model_variant\x18\x01 \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\r\n\x05model\x18\x02 \x01(\t*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xec\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12%\n!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\x10\x04\x12\"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x12\x1f\n\x1bOUTPUT_AUDIO_ENCODING_MULAW\x10\x05*\x94\x02\n\rTelephonyDtmf\x12\x1e\n\x1aTELEPHONY_DTMF_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44TMF_ONE\x10\x01\x12\x0c\n\x08\x44TMF_TWO\x10\x02\x12\x0e\n\nDTMF_THREE\x10\x03\x12\r\n\tDTMF_FOUR\x10\x04\x12\r\n\tDTMF_FIVE\x10\x05\x12\x0c\n\x08\x44TMF_SIX\x10\x06\x12\x0e\n\nDTMF_SEVEN\x10\x07\x12\x0e\n\nDTMF_EIGHT\x10\x08\x12\r\n\tDTMF_NINE\x10\t\x12\r\n\tDTMF_ZERO\x10\n\x12\n\n\x06\x44TMF_A\x10\x0b\x12\n\n\x06\x44TMF_B\x10\x0c\x12\n\n\x06\x44TMF_C\x10\r\x12\n\n\x06\x44TMF_D\x10\x0e\x12\r\n\tDTMF_STAR\x10\x0f\x12\x0e\n\nDTMF_POUND\x10\x10\x42\xd6\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x41udioConfigProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}\xea\x41\x62\n\x1fspeech.googleapis.com/PhraseSet\x12?projects/{project}/locations/{location}/phraseSets/{phrase_set}b\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.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/context_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/context_pb.rb index e1035b2fb152..f94c4702bbfc 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/context_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/context_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/context.proto @@ -11,40 +12,33 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/context.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Context" do - optional :name, :string, 1 - optional :lifespan_count, :int32, 2 - optional :parameters, :message, 3, "google.protobuf.Struct" - end - add_message "google.cloud.dialogflow.v2.ListContextsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListContextsResponse" do - repeated :contexts, :message, 1, "google.cloud.dialogflow.v2.Context" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetContextRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.CreateContextRequest" do - optional :parent, :string, 1 - optional :context, :message, 2, "google.cloud.dialogflow.v2.Context" - end - add_message "google.cloud.dialogflow.v2.UpdateContextRequest" do - optional :context, :message, 1, "google.cloud.dialogflow.v2.Context" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.DeleteContextRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.DeleteAllContextsRequest" do - optional :parent, :string, 1 + +descriptor_data = "\n(google/cloud/dialogflow/v2/context.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x8f\x04\n\x07\x43ontext\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0elifespan_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x30\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01:\xa1\x03\xea\x41\x9d\x03\n!dialogflow.googleapis.com/Context\x12>projects/{project}/agent/sessions/{session}/contexts/{context}\x12\x66projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}\x12Sprojects/{project}/locations/{location}/agent/sessions/{session}/contexts/{context}\x12{projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}\"\x81\x01\n\x13ListContextsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Context\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"f\n\x14ListContextsResponse\x12\x35\n\x08\x63ontexts\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11GetContextRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Context\"\x8c\x01\n\x14\x43reateContextRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Context\x12\x39\n\x07\x63ontext\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x02\"\x87\x01\n\x14UpdateContextRequest\x12\x39\n\x07\x63ontext\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"O\n\x14\x44\x65leteContextRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Context\"U\n\x18\x44\x65leteAllContextsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Context2\xe8\x14\n\x08\x43ontexts\x12\x9c\x03\n\x0cListContexts\x12/.google.cloud.dialogflow.v2.ListContextsRequest\x1a\x30.google.cloud.dialogflow.v2.ListContextsResponse\"\xa8\x02\x82\xd3\xe4\x93\x02\x98\x02\x12\x31/v2/{parent=projects/*/agent/sessions/*}/contextsZJ\x12H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contextsZ?\x12=/v2/{parent=projects/*/locations/*/agent/sessions/*}/contextsZV\x12T/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts\xda\x41\x06parent\x12\x89\x03\n\nGetContext\x12-.google.cloud.dialogflow.v2.GetContextRequest\x1a#.google.cloud.dialogflow.v2.Context\"\xa6\x02\x82\xd3\xe4\x93\x02\x98\x02\x12\x31/v2/{name=projects/*/agent/sessions/*/contexts/*}ZJ\x12H/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}Z?\x12=/v2/{name=projects/*/locations/*/agent/sessions/*/contexts/*}ZV\x12T/v2/{name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/contexts/*}\xda\x41\x04name\x12\xbd\x03\n\rCreateContext\x12\x30.google.cloud.dialogflow.v2.CreateContextRequest\x1a#.google.cloud.dialogflow.v2.Context\"\xd4\x02\x82\xd3\xe4\x93\x02\xbc\x02\"1/v2/{parent=projects/*/agent/sessions/*}/contexts:\x07\x63ontextZS\"H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts:\x07\x63ontextZH\"=/v2/{parent=projects/*/locations/*/agent/sessions/*}/contexts:\x07\x63ontextZ_\"T/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts:\x07\x63ontext\xda\x41\x0eparent,context\x12\xe2\x03\n\rUpdateContext\x12\x30.google.cloud.dialogflow.v2.UpdateContextRequest\x1a#.google.cloud.dialogflow.v2.Context\"\xf9\x02\x82\xd3\xe4\x93\x02\xdc\x02\x32\x39/v2/{context.name=projects/*/agent/sessions/*/contexts/*}:\x07\x63ontextZ[2P/v2/{context.name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}:\x07\x63ontextZP2E/v2/{context.name=projects/*/locations/*/agent/sessions/*/contexts/*}:\x07\x63ontextZg2\\/v2/{context.name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/contexts/*}:\x07\x63ontext\xda\x41\x13\x63ontext,update_mask\x12\x82\x03\n\rDeleteContext\x12\x30.google.cloud.dialogflow.v2.DeleteContextRequest\x1a\x16.google.protobuf.Empty\"\xa6\x02\x82\xd3\xe4\x93\x02\x98\x02*1/v2/{name=projects/*/agent/sessions/*/contexts/*}ZJ*H/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}Z?*=/v2/{name=projects/*/locations/*/agent/sessions/*/contexts/*}ZV*T/v2/{name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/contexts/*}\xda\x41\x04name\x12\x8c\x03\n\x11\x44\x65leteAllContexts\x12\x34.google.cloud.dialogflow.v2.DeleteAllContextsRequest\x1a\x16.google.protobuf.Empty\"\xa8\x02\x82\xd3\xe4\x93\x02\x98\x02*1/v2/{parent=projects/*/agent/sessions/*}/contextsZJ*H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contextsZ?*=/v2/{parent=projects/*/locations/*/agent/sessions/*}/contextsZV*T/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts\xda\x41\x06parent\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x95\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0c\x43ontextProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.Struct", "google/protobuf/struct.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb index 294edb746c0e..b0b5875f0997 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/conversation_dataset.proto @@ -13,63 +14,34 @@ require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/conversation_dataset.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.ConversationInfo" do - optional :language_code, :string, 1 - end - add_message "google.cloud.dialogflow.v2.InputConfig" do - oneof :source do - optional :gcs_source, :message, 1, "google.cloud.dialogflow.v2.GcsSources" - end - end - add_message "google.cloud.dialogflow.v2.ConversationDataset" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :input_config, :message, 5, "google.cloud.dialogflow.v2.InputConfig" - optional :conversation_info, :message, 6, "google.cloud.dialogflow.v2.ConversationInfo" - optional :conversation_count, :int64, 7 - end - add_message "google.cloud.dialogflow.v2.CreateConversationDatasetRequest" do - optional :parent, :string, 1 - optional :conversation_dataset, :message, 2, "google.cloud.dialogflow.v2.ConversationDataset" - end - add_message "google.cloud.dialogflow.v2.GetConversationDatasetRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ListConversationDatasetsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListConversationDatasetsResponse" do - repeated :conversation_datasets, :message, 1, "google.cloud.dialogflow.v2.ConversationDataset" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.DeleteConversationDatasetRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ImportConversationDataRequest" do - optional :name, :string, 1 - optional :input_config, :message, 2, "google.cloud.dialogflow.v2.InputConfig" - end - add_message "google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata" do - optional :conversation_dataset, :string, 1 - repeated :partial_failures, :message, 2, "google.rpc.Status" - optional :create_time, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.v2.ImportConversationDataOperationResponse" do - optional :conversation_dataset, :string, 1 - optional :import_count, :int32, 3 - end - add_message "google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata" do - optional :conversation_dataset, :string, 1 - end - add_message "google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata" do + +descriptor_data = "\n5google/cloud/dialogflow/v2/conversation_dataset.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/dialogflow/v2/gcs.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\".\n\x10\x43onversationInfo\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\"U\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2.GcsSourcesH\x00\x42\x08\n\x06source\"\xd1\x03\n\x13\x43onversationDataset\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x42\n\x0cinput_config\x18\x05 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.InputConfigB\x03\xe0\x41\x03\x12L\n\x11\x63onversation_info\x18\x06 \x01(\x0b\x32,.google.cloud.dialogflow.v2.ConversationInfoB\x03\xe0\x41\x03\x12\x1f\n\x12\x63onversation_count\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03:\x88\x01\xea\x41\x84\x01\n-dialogflow.googleapis.com/ConversationDataset\x12Sprojects/{project}/locations/{location}/conversationDatasets/{conversation_dataset}\"\x8b\x01\n CreateConversationDatasetRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\x14\x63onversation_dataset\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationDatasetB\x03\xe0\x41\x02\"d\n\x1dGetConversationDatasetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\"\x99\x01\n\x1fListConversationDatasetsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-dialogflow.googleapis.com/ConversationDataset\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8b\x01\n ListConversationDatasetsResponse\x12N\n\x15\x63onversation_datasets\x18\x01 \x03(\x0b\x32/.google.cloud.dialogflow.v2.ConversationDataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"g\n DeleteConversationDatasetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\"\xa8\x01\n\x1dImportConversationDataRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\x12\x42\n\x0cinput_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.InputConfigB\x03\xe0\x41\x02\"\xda\x01\n\'ImportConversationDataOperationMetadata\x12P\n\x14\x63onversation_dataset\x18\x01 \x01(\tB2\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x91\x01\n\'ImportConversationDataOperationResponse\x12P\n\x14\x63onversation_dataset\x18\x01 \x01(\tB2\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\x12\x14\n\x0cimport_count\x18\x03 \x01(\x05\"~\n*CreateConversationDatasetOperationMetadata\x12P\n\x14\x63onversation_dataset\x18\x01 \x01(\tB2\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\",\n*DeleteConversationDatasetOperationMetadata2\xd6\x0c\n\x14\x43onversationDatasets\x12\xb3\x02\n\x19\x43reateConversationDataset\x12<.google.cloud.dialogflow.v2.CreateConversationDatasetRequest\x1a\x1d.google.longrunning.Operation\"\xb8\x01\x82\xd3\xe4\x93\x02P\"8/v2/{parent=projects/*/locations/*}/conversationDatasets:\x14\x63onversation_dataset\xda\x41\x1bparent,conversation_dataset\xca\x41\x41\n\x13\x43onversationDataset\x12*CreateConversationDatasetOperationMetadata\x12\xfd\x01\n\x16GetConversationDataset\x12\x39.google.cloud.dialogflow.v2.GetConversationDatasetRequest\x1a/.google.cloud.dialogflow.v2.ConversationDataset\"w\x82\xd3\xe4\x93\x02j\x12,/v2/{name=projects/*/conversationDatasets/*}Z:\x12\x38/v2/{name=projects/*/locations/*/conversationDatasets/*}\xda\x41\x04name\x12\x90\x02\n\x18ListConversationDatasets\x12;.google.cloud.dialogflow.v2.ListConversationDatasetsRequest\x1a<.google.cloud.dialogflow.v2.ListConversationDatasetsResponse\"y\x82\xd3\xe4\x93\x02j\x12,/v2/{parent=projects/*}/conversationDatasetsZ:\x12\x38/v2/{parent=projects/*/locations/*}/conversationDatasets\xda\x41\x06parent\x12\x88\x02\n\x19\x44\x65leteConversationDataset\x12<.google.cloud.dialogflow.v2.DeleteConversationDatasetRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/locations/*/conversationDatasets/*}\xda\x41\x04name\xca\x41\x43\n\x15google.protobuf.Empty\x12*DeleteConversationDatasetOperationMetadata\x12\xef\x02\n\x16ImportConversationData\x12\x39.google.cloud.dialogflow.v2.ImportConversationDataRequest\x1a\x1d.google.longrunning.Operation\"\xfa\x01\x82\xd3\xe4\x93\x02\x9e\x01\"C/v2/{name=projects/*/conversationDatasets/*}:importConversationData:\x01*ZT\"O/v2/{name=projects/*/locations/*/conversationDatasets/*}:importConversationData:\x01*\xca\x41R\n\'ImportConversationDataOperationResponse\x12\'ImportConversationDataOperationMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xa1\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x18\x43onversationDatasetProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.dialogflow.v2.GcsSources", "google/cloud/dialogflow/v2/gcs.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.rpc.Status", "google/rpc/status.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb index c8d19b048770..8453c3f3cc2c 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/conversation_event.proto @@ -6,25 +7,33 @@ require 'google/cloud/dialogflow/v2/participant_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/conversation_event.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.ConversationEvent" do - optional :conversation, :string, 1 - optional :type, :enum, 2, "google.cloud.dialogflow.v2.ConversationEvent.Type" - optional :error_status, :message, 3, "google.rpc.Status" - oneof :payload do - optional :new_message_payload, :message, 4, "google.cloud.dialogflow.v2.Message" - end - end - add_enum "google.cloud.dialogflow.v2.ConversationEvent.Type" do - value :TYPE_UNSPECIFIED, 0 - value :CONVERSATION_STARTED, 1 - value :CONVERSATION_FINISHED, 2 - value :HUMAN_INTERVENTION_NEEDED, 3 - value :NEW_MESSAGE, 5 - value :UNRECOVERABLE_ERROR, 4 + +descriptor_data = "\n3google/cloud/dialogflow/v2/conversation_event.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a,google/cloud/dialogflow/v2/participant.proto\x1a\x17google/rpc/status.proto\"\x81\x03\n\x11\x43onversationEvent\x12\x14\n\x0c\x63onversation\x18\x01 \x01(\t\x12@\n\x04type\x18\x02 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.ConversationEvent.Type\x12(\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x42\n\x13new_message_payload\x18\x04 \x01(\x0b\x32#.google.cloud.dialogflow.v2.MessageH\x00\"\x9a\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43ONVERSATION_STARTED\x10\x01\x12\x19\n\x15\x43ONVERSATION_FINISHED\x10\x02\x12\x1d\n\x19HUMAN_INTERVENTION_NEEDED\x10\x03\x12\x0f\n\x0bNEW_MESSAGE\x10\x05\x12\x17\n\x13UNRECOVERABLE_ERROR\x10\x04\x42\t\n\x07payloadB\x9f\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16\x43onversationEventProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.rpc.Status", "google/rpc/status.proto"], + ["google.cloud.dialogflow.v2.Message", "google/cloud/dialogflow/v2/participant.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb index 4239a4067b6d..abc28e7c7f66 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/conversation_model.proto @@ -11,161 +12,32 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/conversation_model.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.ConversationModel" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - repeated :datasets, :message, 4, "google.cloud.dialogflow.v2.InputDataset" - optional :state, :enum, 7, "google.cloud.dialogflow.v2.ConversationModel.State" - optional :language_code, :string, 19 - oneof :model_metadata do - optional :article_suggestion_model_metadata, :message, 8, "google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata" - optional :smart_reply_model_metadata, :message, 9, "google.cloud.dialogflow.v2.SmartReplyModelMetadata" - end - end - add_enum "google.cloud.dialogflow.v2.ConversationModel.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATING, 1 - value :UNDEPLOYED, 2 - value :DEPLOYING, 3 - value :DEPLOYED, 4 - value :UNDEPLOYING, 5 - value :DELETING, 6 - value :FAILED, 7 - value :PENDING, 8 - end - add_enum "google.cloud.dialogflow.v2.ConversationModel.ModelType" do - value :MODEL_TYPE_UNSPECIFIED, 0 - value :SMART_REPLY_DUAL_ENCODER_MODEL, 2 - value :SMART_REPLY_BERT_MODEL, 6 - end - add_message "google.cloud.dialogflow.v2.ConversationModelEvaluation" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :evaluation_config, :message, 6, "google.cloud.dialogflow.v2.EvaluationConfig" - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :raw_human_eval_template_csv, :string, 8 - oneof :metrics do - optional :smart_reply_metrics, :message, 5, "google.cloud.dialogflow.v2.SmartReplyMetrics" - end - end - add_message "google.cloud.dialogflow.v2.EvaluationConfig" do - repeated :datasets, :message, 3, "google.cloud.dialogflow.v2.InputDataset" - oneof :model_specific_config do - optional :smart_reply_config, :message, 2, "google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig" - optional :smart_compose_config, :message, 4, "google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig" - end - end - add_message "google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig" do - optional :allowlist_document, :string, 1 - optional :max_result_count, :int32, 2 - end - add_message "google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig" do - optional :allowlist_document, :string, 1 - optional :max_result_count, :int32, 2 - end - add_message "google.cloud.dialogflow.v2.InputDataset" do - optional :dataset, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata" do - optional :training_model_type, :enum, 3, "google.cloud.dialogflow.v2.ConversationModel.ModelType" - end - add_message "google.cloud.dialogflow.v2.SmartReplyModelMetadata" do - optional :training_model_type, :enum, 6, "google.cloud.dialogflow.v2.ConversationModel.ModelType" - end - add_message "google.cloud.dialogflow.v2.SmartReplyMetrics" do - optional :allowlist_coverage, :float, 1 - repeated :top_n_metrics, :message, 2, "google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics" - optional :conversation_count, :int64, 3 - end - add_message "google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics" do - optional :n, :int32, 1 - optional :recall, :float, 2 - end - add_message "google.cloud.dialogflow.v2.CreateConversationModelRequest" do - optional :parent, :string, 1 - optional :conversation_model, :message, 2, "google.cloud.dialogflow.v2.ConversationModel" - end - add_message "google.cloud.dialogflow.v2.GetConversationModelRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ListConversationModelsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListConversationModelsResponse" do - repeated :conversation_models, :message, 1, "google.cloud.dialogflow.v2.ConversationModel" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.DeleteConversationModelRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.DeployConversationModelRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.UndeployConversationModelRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse" do - repeated :conversation_model_evaluations, :message, 1, "google.cloud.dialogflow.v2.ConversationModelEvaluation" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest" do - optional :parent, :string, 1 - optional :conversation_model_evaluation, :message, 2, "google.cloud.dialogflow.v2.ConversationModelEvaluation" - end - add_message "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata" do - optional :conversation_model, :string, 1 - optional :state, :enum, 2, "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State" - optional :create_time, :message, 3, "google.protobuf.Timestamp" - end - add_enum "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :PENDING, 1 - value :SUCCEEDED, 2 - value :FAILED, 3 - value :CANCELLED, 4 - value :CANCELLING, 5 - value :TRAINING, 6 - end - add_message "google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata" do - optional :conversation_model, :string, 1 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata" do - optional :conversation_model, :string, 1 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata" do - optional :conversation_model, :string, 1 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata" do - optional :conversation_model_evaluation, :string, 1 - optional :conversation_model, :string, 4 - optional :state, :enum, 2, "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State" - optional :create_time, :message, 3, "google.protobuf.Timestamp" - end - add_enum "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :INITIALIZING, 1 - value :RUNNING, 2 - value :CANCELLED, 3 - value :SUCCEEDED, 4 - value :FAILED, 5 + +descriptor_data = "\n3google/cloud/dialogflow/v2/conversation_model.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa7\x07\n\x11\x43onversationModel\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x08\x64\x61tasets\x18\x04 \x03(\x0b\x32(.google.cloud.dialogflow.v2.InputDatasetB\x03\xe0\x41\x02\x12G\n\x05state\x18\x07 \x01(\x0e\x32\x33.google.cloud.dialogflow.v2.ConversationModel.StateB\x03\xe0\x41\x03\x12\x15\n\rlanguage_code\x18\x13 \x01(\t\x12g\n!article_suggestion_model_metadata\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadataH\x00\x12Y\n\x1asmart_reply_model_metadata\x18\t \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SmartReplyModelMetadataH\x00\"\x91\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0e\n\nUNDEPLOYED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45PLOYED\x10\x04\x12\x0f\n\x0bUNDEPLOYING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\x0b\n\x07PENDING\x10\x08\"g\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\"\n\x1eSMART_REPLY_DUAL_ENCODER_MODEL\x10\x02\x12\x1a\n\x16SMART_REPLY_BERT_MODEL\x10\x06:\xbe\x01\xea\x41\xba\x01\n+dialogflow.googleapis.com/ConversationModel\x12Oprojects/{project}/locations/{location}/conversationModels/{conversation_model}\x12:projects/{project}/conversationModels/{conversation_model}B\x10\n\x0emodel_metadata\"\xcf\x04\n\x1b\x43onversationModelEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12L\n\x11\x65valuation_config\x18\x06 \x01(\x0b\x32,.google.cloud.dialogflow.v2.EvaluationConfigB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x13smart_reply_metrics\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SmartReplyMetricsB\x03\xe0\x41\x03H\x00\x12(\n\x1braw_human_eval_template_csv\x18\x08 \x01(\tB\x03\xe0\x41\x03:\xfa\x01\xea\x41\xf6\x01\n5dialogflow.googleapis.com/ConversationModelEvaluation\x12Sprojects/{project}/conversationModels/{conversation_model}/evaluations/{evaluation}\x12hprojects/{project}/locations/{location}/conversationModels/{conversation_model}/evaluations/{evaluation}B\t\n\x07metrics\"\x9c\x04\n\x10\x45valuationConfig\x12?\n\x08\x64\x61tasets\x18\x03 \x03(\x0b\x32(.google.cloud.dialogflow.v2.InputDatasetB\x03\xe0\x41\x02\x12[\n\x12smart_reply_config\x18\x02 \x01(\x0b\x32=.google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfigH\x00\x12_\n\x14smart_compose_config\x18\x04 \x01(\x0b\x32?.google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfigH\x00\x1av\n\x10SmartReplyConfig\x12\x43\n\x12\x61llowlist_document\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1d\n\x10max_result_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x1ax\n\x12SmartComposeConfig\x12\x43\n\x12\x61llowlist_document\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1d\n\x10max_result_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x42\x17\n\x15model_specific_config\"V\n\x0cInputDataset\x12\x46\n\x07\x64\x61taset\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\"{\n\x1e\x41rticleSuggestionModelMetadata\x12Y\n\x13training_model_type\x18\x03 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.ConversationModel.ModelTypeB\x03\xe0\x41\x01\"t\n\x17SmartReplyModelMetadata\x12Y\n\x13training_model_type\x18\x06 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.ConversationModel.ModelTypeB\x03\xe0\x41\x01\"\xc7\x01\n\x11SmartReplyMetrics\x12\x1a\n\x12\x61llowlist_coverage\x18\x01 \x01(\x02\x12P\n\rtop_n_metrics\x18\x02 \x03(\x0b\x32\x39.google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics\x12\x1a\n\x12\x63onversation_count\x18\x03 \x01(\x03\x1a(\n\x0bTopNMetrics\x12\t\n\x01n\x18\x01 \x01(\x05\x12\x0e\n\x06recall\x18\x02 \x01(\x02\"\x80\x01\n\x1e\x43reateConversationModelRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12N\n\x12\x63onversation_model\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.v2.ConversationModelB\x03\xe0\x41\x02\"0\n\x1bGetConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"e\n\x1dListConversationModelsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x85\x01\n\x1eListConversationModelsResponse\x12J\n\x13\x63onversation_models\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.v2.ConversationModel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"3\n\x1e\x44\x65leteConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"3\n\x1e\x44\x65ployConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"5\n UndeployConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\":\n%GetConversationModelEvaluationRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"o\n\'ListConversationModelEvaluationsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa4\x01\n(ListConversationModelEvaluationsResponse\x12_\n\x1e\x63onversation_model_evaluations\x18\x01 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.ConversationModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xde\x01\n(CreateConversationModelEvaluationRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x64ialogflow.googleapis.com/ConversationModelEvaluation\x12\x63\n\x1d\x63onversation_model_evaluation\x18\x02 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.ConversationModelEvaluationB\x03\xe0\x41\x02\"\xc7\x02\n(CreateConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12Y\n\x05state\x18\x02 \x01(\x0e\x32J.google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\x0e\n\nCANCELLING\x10\x05\x12\x0c\n\x08TRAINING\x10\x06\"w\n(DeployConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"y\n*UndeployConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n(DeleteConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf6\x02\n2CreateConversationModelEvaluationOperationMetadata\x12%\n\x1d\x63onversation_model_evaluation\x18\x01 \x01(\t\x12\x1a\n\x12\x63onversation_model\x18\x04 \x01(\t\x12\x63\n\x05state\x18\x02 \x01(\x0e\x32T.google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x32\xfe\x16\n\x12\x43onversationModels\x12\xe8\x02\n\x17\x43reateConversationModel\x12:.google.cloud.dialogflow.v2.CreateConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xf1\x01\x82\xd3\xe4\x93\x02\x8e\x01\"*/v2/{parent=projects/*}/conversationModels:\x12\x63onversation_modelZL\"6/v2/{parent=projects/*/locations/*}/conversationModels:\x12\x63onversation_model\xda\x41\x19parent,conversation_model\xca\x41=\n\x11\x43onversationModel\x12(CreateConversationModelOperationMetadata\x12\xf3\x01\n\x14GetConversationModel\x12\x37.google.cloud.dialogflow.v2.GetConversationModelRequest\x1a-.google.cloud.dialogflow.v2.ConversationModel\"s\x82\xd3\xe4\x93\x02\x66\x12*/v2/{name=projects/*/conversationModels/*}Z8\x12\x36/v2/{name=projects/*/locations/*/conversationModels/*}\xda\x41\x04name\x12\x86\x02\n\x16ListConversationModels\x12\x39.google.cloud.dialogflow.v2.ListConversationModelsRequest\x1a:.google.cloud.dialogflow.v2.ListConversationModelsResponse\"u\x82\xd3\xe4\x93\x02\x66\x12*/v2/{parent=projects/*}/conversationModelsZ8\x12\x36/v2/{parent=projects/*/locations/*}/conversationModels\xda\x41\x06parent\x12\xae\x02\n\x17\x44\x65leteConversationModel\x12:.google.cloud.dialogflow.v2.DeleteConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\x82\xd3\xe4\x93\x02\x66**/v2/{name=projects/*/conversationModels/*}Z8*6/v2/{name=projects/*/locations/*/conversationModels/*}\xda\x41\x04name\xca\x41\x41\n\x15google.protobuf.Empty\x12(DeleteConversationModelOperationMetadata\x12\xbb\x02\n\x17\x44\x65ployConversationModel\x12:.google.cloud.dialogflow.v2.DeployConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xc4\x01\x82\xd3\xe4\x93\x02z\"1/v2/{name=projects/*/conversationModels/*}:deploy:\x01*ZB\"=/v2/{name=projects/*/locations/*/conversationModels/*}:deploy:\x01*\xca\x41\x41\n\x15google.protobuf.Empty\x12(DeployConversationModelOperationMetadata\x12\xc5\x02\n\x19UndeployConversationModel\x12<.google.cloud.dialogflow.v2.UndeployConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xca\x01\x82\xd3\xe4\x93\x02~\"3/v2/{name=projects/*/conversationModels/*}:undeploy:\x01*ZD\"?/v2/{name=projects/*/locations/*/conversationModels/*}:undeploy:\x01*\xca\x41\x43\n\x15google.protobuf.Empty\x12*UndeployConversationModelOperationMetadata\x12\xaf\x02\n\x1eGetConversationModelEvaluation\x12\x41.google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest\x1a\x37.google.cloud.dialogflow.v2.ConversationModelEvaluation\"\x90\x01\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v2/{name=projects/*/conversationModels/*/evaluations/*}ZF\x12\x44/v2/{name=projects/*/locations/*/conversationModels/*/evaluations/*}\xda\x41\x04name\x12\xc2\x02\n ListConversationModelEvaluations\x12\x43.google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest\x1a\x44.google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse\"\x92\x01\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v2/{parent=projects/*/conversationModels/*}/evaluationsZF\x12\x44/v2/{parent=projects/*/locations/*/conversationModels/*}/evaluations\xda\x41\x06parent\x12\xd5\x02\n!CreateConversationModelEvaluation\x12\x44.google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest\x1a\x1d.google.longrunning.Operation\"\xca\x01\x82\xd3\xe4\x93\x02I\"D/v2/{parent=projects/*/locations/*/conversationModels/*}/evaluations:\x01*\xda\x41$parent,conversation_model_evaluation\xca\x41Q\n\x1b\x43onversationModelEvaluation\x12\x32\x43reateConversationModelEvaluationOperationMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9f\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16\x43onversationModelProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_pb.rb index 8a1a4e406266..3dd2e15df821 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/conversation.proto @@ -11,97 +12,34 @@ require 'google/cloud/dialogflow/v2/participant_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/conversation.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Conversation" do - optional :name, :string, 1 - optional :lifecycle_state, :enum, 2, "google.cloud.dialogflow.v2.Conversation.LifecycleState" - optional :conversation_profile, :string, 3 - optional :phone_number, :message, 4, "google.cloud.dialogflow.v2.ConversationPhoneNumber" - optional :start_time, :message, 5, "google.protobuf.Timestamp" - optional :end_time, :message, 6, "google.protobuf.Timestamp" - optional :conversation_stage, :enum, 7, "google.cloud.dialogflow.v2.Conversation.ConversationStage" - end - add_enum "google.cloud.dialogflow.v2.Conversation.LifecycleState" do - value :LIFECYCLE_STATE_UNSPECIFIED, 0 - value :IN_PROGRESS, 1 - value :COMPLETED, 2 - end - add_enum "google.cloud.dialogflow.v2.Conversation.ConversationStage" do - value :CONVERSATION_STAGE_UNSPECIFIED, 0 - value :VIRTUAL_AGENT_STAGE, 1 - value :HUMAN_ASSIST_STAGE, 2 - end - add_message "google.cloud.dialogflow.v2.CreateConversationRequest" do - optional :parent, :string, 1 - optional :conversation, :message, 2, "google.cloud.dialogflow.v2.Conversation" - optional :conversation_id, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListConversationsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.dialogflow.v2.ListConversationsResponse" do - repeated :conversations, :message, 1, "google.cloud.dialogflow.v2.Conversation" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetConversationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.CompleteConversationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ListMessagesRequest" do - optional :parent, :string, 1 - optional :filter, :string, 4 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListMessagesResponse" do - repeated :messages, :message, 1, "google.cloud.dialogflow.v2.Message" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.ConversationPhoneNumber" do - optional :phone_number, :string, 3 - end - add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryRequest" do - optional :conversation, :string, 1 - optional :latest_message, :string, 3 - optional :context_size, :int32, 4 - optional :assist_query_params, :message, 5, "google.cloud.dialogflow.v2.AssistQueryParameters" - end - add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse" do - optional :summary, :message, 1, "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary" - optional :latest_message, :string, 2 - optional :context_size, :int32, 3 - end - add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary" do - optional :text, :string, 1 - map :text_sections, :string, :string, 4 - optional :answer_record, :string, 3 - end - add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest" do - optional :stateless_conversation, :message, 1, "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation" - optional :conversation_profile, :message, 2, "google.cloud.dialogflow.v2.ConversationProfile" - optional :latest_message, :string, 3 - optional :max_context_size, :int32, 4 - end - add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation" do - repeated :messages, :message, 1, "google.cloud.dialogflow.v2.Message" - optional :parent, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse" do - optional :summary, :message, 1, "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary" - optional :latest_message, :string, 2 - optional :context_size, :int32, 3 - end - add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary" do - optional :text, :string, 1 - map :text_sections, :string, :string, 2 + +descriptor_data = "\n-google/cloud/dialogflow/v2/conversation.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/v2/conversation_profile.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x06\n\x0c\x43onversation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x0flifecycle_state\x18\x02 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.Conversation.LifecycleStateB\x03\xe0\x41\x03\x12S\n\x14\x63onversation_profile\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\x12N\n\x0cphone_number\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.ConversationPhoneNumberB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x12\x63onversation_stage\x18\x07 \x01(\x0e\x32:.google.cloud.dialogflow.v2.Conversation.ConversationStage\"Q\n\x0eLifecycleState\x12\x1f\n\x1bLIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tCOMPLETED\x10\x02\"h\n\x11\x43onversationStage\x12\"\n\x1e\x43ONVERSATION_STAGE_UNSPECIFIED\x10\x00\x12\x17\n\x13VIRTUAL_AGENT_STAGE\x10\x01\x12\x16\n\x12HUMAN_ASSIST_STAGE\x10\x02:\xa3\x01\xea\x41\x9f\x01\n&dialogflow.googleapis.com/Conversation\x12/projects/{project}/conversations/{conversation}\x12\x44projects/{project}/locations/{location}/conversations/{conversation}\"\xbe\x01\n\x19\x43reateConversationRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/Conversation\x12\x43\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32(.google.cloud.dialogflow.v2.ConversationB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversation_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x18ListConversationsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"u\n\x19ListConversationsResponse\x12?\n\rconversations\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x16GetConversationRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\"[\n\x1b\x43ompleteConversationRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\"\x96\x01\n\x13ListMessagesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Message\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"f\n\x14ListMessagesResponse\x12\x35\n\x08messages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"4\n\x17\x43onversationPhoneNumber\x12\x19\n\x0cphone_number\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\x8f\x02\n!SuggestConversationSummaryRequest\x12\x44\n\x0c\x63onversation\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\x12>\n\x0elatest_message\x18\x03 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x04 \x01(\x05\x12N\n\x13\x61ssist_query_params\x18\x05 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\"\xd7\x03\n\"SuggestConversationSummaryResponse\x12W\n\x07summary\x18\x01 \x01(\x0b\x32\x46.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x1a\x81\x02\n\x07Summary\x12\x0c\n\x04text\x18\x01 \x01(\t\x12o\n\rtext_sections\x18\x04 \x03(\x0b\x32X.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.TextSectionsEntry\x12\x42\n\ranswer_record\x18\x03 \x01(\tB+\xfa\x41(\n&dialogflow.googleapis.com/AnswerRecord\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd4\x03\n\x1fGenerateStatelessSummaryRequest\x12t\n\x16stateless_conversation\x18\x01 \x01(\x0b\x32O.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversationB\x03\xe0\x41\x02\x12R\n\x14\x63onversation_profile\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfileB\x03\xe0\x41\x02\x12>\n\x0elatest_message\x18\x03 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x18\n\x10max_context_size\x18\x04 \x01(\x05\x1a\x8c\x01\n\x13MinimalConversation\x12:\n\x08messages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.MessageB\x03\xe0\x41\x02\x12\x39\n\x06parent\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"\x8d\x03\n GenerateStatelessSummaryResponse\x12U\n\x07summary\x18\x01 \x01(\x0b\x32\x44.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x1a\xbb\x01\n\x07Summary\x12\x0c\n\x04text\x18\x01 \x01(\t\x12m\n\rtext_sections\x18\x02 \x03(\x0b\x32V.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xb4\x10\n\rConversations\x12\x8c\x02\n\x12\x43reateConversation\x12\x35.google.cloud.dialogflow.v2.CreateConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"\x94\x01\x82\xd3\xe4\x93\x02x\"%/v2/{parent=projects/*}/conversations:\x0c\x63onversationZA\"1/v2/{parent=projects/*/locations/*}/conversations:\x0c\x63onversation\xda\x41\x13parent,conversation\x12\xed\x01\n\x11ListConversations\x12\x34.google.cloud.dialogflow.v2.ListConversationsRequest\x1a\x35.google.cloud.dialogflow.v2.ListConversationsResponse\"k\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/conversationsZ3\x12\x31/v2/{parent=projects/*/locations/*}/conversations\xda\x41\x06parent\x12\xda\x01\n\x0fGetConversation\x12\x32.google.cloud.dialogflow.v2.GetConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"i\x82\xd3\xe4\x93\x02\\\x12%/v2/{name=projects/*/conversations/*}Z3\x12\x31/v2/{name=projects/*/locations/*/conversations/*}\xda\x41\x04name\x12\xfd\x01\n\x14\x43ompleteConversation\x12\x37.google.cloud.dialogflow.v2.CompleteConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"\x81\x01\x82\xd3\xe4\x93\x02t\"./v2/{name=projects/*/conversations/*}:complete:\x01*Z?\":/v2/{name=projects/*/locations/*/conversations/*}:complete:\x01*\xda\x41\x04name\x12\xf5\x01\n\x0cListMessages\x12/.google.cloud.dialogflow.v2.ListMessagesRequest\x1a\x30.google.cloud.dialogflow.v2.ListMessagesResponse\"\x81\x01\x82\xd3\xe4\x93\x02r\x12\x30/v2/{parent=projects/*/conversations/*}/messagesZ>\x12.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse\"\xd6\x01\x82\xd3\xe4\x93\x02\xc0\x01\"T/v2/{conversation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\x01*Ze\"`/v2/{conversation=projects/*/locations/*/conversations/*}/suggestions:suggestConversationSummary:\x01*\xda\x41\x0c\x63onversation\x12\xdd\x02\n\x18GenerateStatelessSummary\x12;.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest\x1a<.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse\"\xc5\x01\x82\xd3\xe4\x93\x02\xbe\x01\"S/v2/{stateless_conversation.parent=projects/*}/suggestions:generateStatelessSummary:\x01*Zd\"_/v2/{stateless_conversation.parent=projects/*/locations/*}/suggestions:generateStatelessSummary:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9a\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x11\x43onversationProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dialogflow.v2.Message", "google/cloud/dialogflow/v2/participant.proto"], + ["google.cloud.dialogflow.v2.ConversationProfile", "google/cloud/dialogflow/v2/conversation_profile.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb index d01e7a5bfdad..9f1f1a1ad8c3 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/conversation_profile.proto @@ -14,167 +15,34 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/conversation_profile.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.ConversationProfile" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :create_time, :message, 11, "google.protobuf.Timestamp" - optional :update_time, :message, 12, "google.protobuf.Timestamp" - optional :automated_agent_config, :message, 3, "google.cloud.dialogflow.v2.AutomatedAgentConfig" - optional :human_agent_assistant_config, :message, 4, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig" - optional :human_agent_handoff_config, :message, 5, "google.cloud.dialogflow.v2.HumanAgentHandoffConfig" - optional :notification_config, :message, 6, "google.cloud.dialogflow.v2.NotificationConfig" - optional :logging_config, :message, 7, "google.cloud.dialogflow.v2.LoggingConfig" - optional :new_message_event_notification_config, :message, 8, "google.cloud.dialogflow.v2.NotificationConfig" - optional :stt_config, :message, 9, "google.cloud.dialogflow.v2.SpeechToTextConfig" - optional :language_code, :string, 10 - optional :time_zone, :string, 14 - optional :security_settings, :string, 13 - optional :tts_config, :message, 18, "google.cloud.dialogflow.v2.SynthesizeSpeechConfig" - end - add_message "google.cloud.dialogflow.v2.ListConversationProfilesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListConversationProfilesResponse" do - repeated :conversation_profiles, :message, 1, "google.cloud.dialogflow.v2.ConversationProfile" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetConversationProfileRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.CreateConversationProfileRequest" do - optional :parent, :string, 1 - optional :conversation_profile, :message, 2, "google.cloud.dialogflow.v2.ConversationProfile" - end - add_message "google.cloud.dialogflow.v2.UpdateConversationProfileRequest" do - optional :conversation_profile, :message, 1, "google.cloud.dialogflow.v2.ConversationProfile" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.DeleteConversationProfileRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.AutomatedAgentConfig" do - optional :agent, :string, 1 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig" do - optional :notification_config, :message, 2, "google.cloud.dialogflow.v2.NotificationConfig" - optional :human_agent_suggestion_config, :message, 3, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig" - optional :end_user_suggestion_config, :message, 4, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig" - optional :message_analysis_config, :message, 5, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig" - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings" do - optional :no_smalltalk, :bool, 1 - optional :only_end_user, :bool, 2 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig" do - optional :suggestion_feature, :message, 5, "google.cloud.dialogflow.v2.SuggestionFeature" - optional :enable_event_based_suggestion, :bool, 3 - optional :suggestion_trigger_settings, :message, 10, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings" - optional :query_config, :message, 6, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig" - optional :conversation_model_config, :message, 7, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig" - optional :conversation_process_config, :message, 8, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig" - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig" do - repeated :feature_configs, :message, 2, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig" - optional :group_suggestion_responses, :bool, 3 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig" do - optional :max_results, :int32, 4 - optional :confidence_threshold, :float, 5 - optional :context_filter_settings, :message, 7, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings" - oneof :query_source do - optional :knowledge_base_query_source, :message, 1, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource" - optional :document_query_source, :message, 2, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource" - optional :dialogflow_query_source, :message, 3, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource" - end - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource" do - repeated :knowledge_bases, :string, 1 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource" do - repeated :documents, :string, 1 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource" do - optional :agent, :string, 1 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings" do - optional :drop_handoff_messages, :bool, 1 - optional :drop_virtual_agent_messages, :bool, 2 - optional :drop_ivr_messages, :bool, 3 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig" do - optional :model, :string, 1 - optional :baseline_model_version, :string, 8 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig" do - optional :recent_sentences_count, :int32, 2 - end - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig" do - optional :enable_entity_extraction, :bool, 2 - optional :enable_sentiment_analysis, :bool, 3 - end - add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig" do - oneof :agent_service do - optional :live_person_config, :message, 1, "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig" - optional :salesforce_live_agent_config, :message, 2, "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig" - end - end - add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig" do - optional :account_number, :string, 1 - end - add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig" do - optional :organization_id, :string, 1 - optional :deployment_id, :string, 2 - optional :button_id, :string, 3 - optional :endpoint_domain, :string, 4 - end - add_message "google.cloud.dialogflow.v2.NotificationConfig" do - optional :topic, :string, 1 - optional :message_format, :enum, 2, "google.cloud.dialogflow.v2.NotificationConfig.MessageFormat" - end - add_enum "google.cloud.dialogflow.v2.NotificationConfig.MessageFormat" do - value :MESSAGE_FORMAT_UNSPECIFIED, 0 - value :PROTO, 1 - value :JSON, 2 - end - add_message "google.cloud.dialogflow.v2.LoggingConfig" do - optional :enable_stackdriver_logging, :bool, 3 - end - add_message "google.cloud.dialogflow.v2.SuggestionFeature" do - optional :type, :enum, 1, "google.cloud.dialogflow.v2.SuggestionFeature.Type" - end - add_enum "google.cloud.dialogflow.v2.SuggestionFeature.Type" do - value :TYPE_UNSPECIFIED, 0 - value :ARTICLE_SUGGESTION, 1 - value :FAQ, 2 - value :SMART_REPLY, 3 - end - add_message "google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest" do - optional :conversation_profile, :string, 1 - optional :participant_role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role" - optional :suggestion_feature_config, :message, 3, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig" - end - add_message "google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest" do - optional :conversation_profile, :string, 1 - optional :participant_role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role" - optional :suggestion_feature_type, :enum, 3, "google.cloud.dialogflow.v2.SuggestionFeature.Type" - end - add_message "google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata" do - optional :conversation_profile, :string, 1 - optional :participant_role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role" - optional :suggestion_feature_type, :enum, 3, "google.cloud.dialogflow.v2.SuggestionFeature.Type" - optional :create_time, :message, 4, "google.protobuf.Timestamp" - end - add_message "google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata" do - optional :conversation_profile, :string, 1 - optional :participant_role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role" - optional :suggestion_feature_type, :enum, 3, "google.cloud.dialogflow.v2.SuggestionFeature.Type" - optional :create_time, :message, 4, "google.protobuf.Timestamp" + +descriptor_data = "\n5google/cloud/dialogflow/v2/conversation_profile.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/dialogflow/v2/audio_config.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf0\x08\n\x13\x43onversationProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12P\n\x16\x61utomated_agent_config\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AutomatedAgentConfig\x12[\n\x1chuman_agent_assistant_config\x18\x04 \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.HumanAgentAssistantConfig\x12W\n\x1ahuman_agent_handoff_config\x18\x05 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.HumanAgentHandoffConfig\x12K\n\x13notification_config\x18\x06 \x01(\x0b\x32..google.cloud.dialogflow.v2.NotificationConfig\x12\x41\n\x0elogging_config\x18\x07 \x01(\x0b\x32).google.cloud.dialogflow.v2.LoggingConfig\x12]\n%new_message_event_notification_config\x18\x08 \x01(\x0b\x32..google.cloud.dialogflow.v2.NotificationConfig\x12\x42\n\nstt_config\x18\t \x01(\x0b\x32..google.cloud.dialogflow.v2.SpeechToTextConfig\x12\x15\n\rlanguage_code\x18\n \x01(\t\x12\x11\n\ttime_zone\x18\x0e \x01(\t\x12L\n\x11security_settings\x18\r \x01(\tB1\xfa\x41.\n,dialogflow.googleapis.com/CXSecuritySettings\x12\x46\n\ntts_config\x18\x12 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig:\xc8\x01\xea\x41\xc4\x01\n-dialogflow.googleapis.com/ConversationProfile\x12>projects/{project}/conversationProfiles/{conversation_profile}\x12Sprojects/{project}/locations/{location}/conversationProfiles/{conversation_profile}\"\x8f\x01\n\x1fListConversationProfilesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-dialogflow.googleapis.com/ConversationProfile\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8b\x01\n ListConversationProfilesResponse\x12N\n\x15\x63onversation_profiles\x18\x01 \x03(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1dGetConversationProfileRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\"\xbd\x01\n CreateConversationProfileRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-dialogflow.googleapis.com/ConversationProfile\x12R\n\x14\x63onversation_profile\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfileB\x03\xe0\x41\x02\"\xac\x01\n UpdateConversationProfileRequest\x12R\n\x14\x63onversation_profile\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"g\n DeleteConversationProfileRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\"N\n\x14\x41utomatedAgentConfig\x12\x36\n\x05\x61gent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\x81\x14\n\x19HumanAgentAssistantConfig\x12K\n\x13notification_config\x18\x02 \x01(\x0b\x32..google.cloud.dialogflow.v2.NotificationConfig\x12m\n\x1dhuman_agent_suggestion_config\x18\x03 \x01(\x0b\x32\x46.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig\x12j\n\x1a\x65nd_user_suggestion_config\x18\x04 \x01(\x0b\x32\x46.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig\x12l\n\x17message_analysis_config\x18\x05 \x01(\x0b\x32K.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig\x1aH\n\x19SuggestionTriggerSettings\x12\x14\n\x0cno_smalltalk\x18\x01 \x01(\x08\x12\x15\n\ronly_end_user\x18\x02 \x01(\x08\x1a\xcc\x04\n\x17SuggestionFeatureConfig\x12I\n\x12suggestion_feature\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SuggestionFeature\x12%\n\x1d\x65nable_event_based_suggestion\x18\x03 \x01(\x08\x12t\n\x1bsuggestion_trigger_settings\x18\n \x01(\x0b\x32O.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings\x12\x61\n\x0cquery_config\x18\x06 \x01(\x0b\x32K.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig\x12p\n\x19\x63onversation_model_config\x18\x07 \x01(\x0b\x32M.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig\x12t\n\x1b\x63onversation_process_config\x18\x08 \x01(\x0b\x32O.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig\x1a\x9e\x01\n\x10SuggestionConfig\x12\x66\n\x0f\x66\x65\x61ture_configs\x18\x02 \x03(\x0b\x32M.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig\x12\"\n\x1agroup_suggestion_responses\x18\x03 \x01(\x08\x1a\xfc\x07\n\x15SuggestionQueryConfig\x12\x8b\x01\n\x1bknowledge_base_query_source\x18\x01 \x01(\x0b\x32\x64.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\x00\x12\x80\x01\n\x15\x64ocument_query_source\x18\x02 \x01(\x0b\x32_.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceH\x00\x12\x84\x01\n\x17\x64ialogflow_query_source\x18\x03 \x01(\x0b\x32\x61.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\x00\x12\x13\n\x0bmax_results\x18\x04 \x01(\x05\x12\x1c\n\x14\x63onfidence_threshold\x18\x05 \x01(\x02\x12\x82\x01\n\x17\x63ontext_filter_settings\x18\x07 \x01(\x0b\x32\x61.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings\x1a\x64\n\x18KnowledgeBaseQuerySource\x12H\n\x0fknowledge_bases\x18\x01 \x03(\tB/\xe0\x41\x02\xfa\x41)\n\'dialogflow.googleapis.com/KnowledgeBase\x1aT\n\x13\x44ocumentQuerySource\x12=\n\tdocuments\x18\x01 \x03(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\x1aO\n\x15\x44ialogflowQuerySource\x12\x36\n\x05\x61gent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x1av\n\x15\x43ontextFilterSettings\x12\x1d\n\x15\x64rop_handoff_messages\x18\x01 \x01(\x08\x12#\n\x1b\x64rop_virtual_agent_messages\x18\x02 \x01(\x08\x12\x19\n\x11\x64rop_ivr_messages\x18\x03 \x01(\x08\x42\x0e\n\x0cquery_source\x1az\n\x17\x43onversationModelConfig\x12?\n\x05model\x18\x01 \x01(\tB0\xfa\x41-\n+dialogflow.googleapis.com/ConversationModel\x12\x1e\n\x16\x62\x61seline_model_version\x18\x08 \x01(\t\x1a;\n\x19\x43onversationProcessConfig\x12\x1e\n\x16recent_sentences_count\x18\x02 \x01(\x05\x1a\\\n\x15MessageAnalysisConfig\x12 \n\x18\x65nable_entity_extraction\x18\x02 \x01(\x08\x12!\n\x19\x65nable_sentiment_analysis\x18\x03 \x01(\x08\"\xc4\x03\n\x17HumanAgentHandoffConfig\x12\x62\n\x12live_person_config\x18\x01 \x01(\x0b\x32\x44.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigH\x00\x12u\n\x1csalesforce_live_agent_config\x18\x02 \x01(\x0b\x32M.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\x00\x1a/\n\x10LivePersonConfig\x12\x1b\n\x0e\x61\x63\x63ount_number\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\x8b\x01\n\x19SalesforceLiveAgentConfig\x12\x1c\n\x0forganization_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rdeployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tbutton_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0f\x65ndpoint_domain\x18\x04 \x01(\tB\x03\xe0\x41\x02\x42\x0f\n\ragent_service\"\xbf\x01\n\x12NotificationConfig\x12\r\n\x05topic\x18\x01 \x01(\t\x12T\n\x0emessage_format\x18\x02 \x01(\x0e\x32<.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat\"D\n\rMessageFormat\x12\x1e\n\x1aMESSAGE_FORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05PROTO\x10\x01\x12\x08\n\x04JSON\x10\x02\"3\n\rLoggingConfig\x12\"\n\x1a\x65nable_stackdriver_logging\x18\x03 \x01(\x08\"\xa5\x01\n\x11SuggestionFeature\x12@\n\x04type\x18\x01 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.SuggestionFeature.Type\"N\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41RTICLE_SUGGESTION\x10\x01\x12\x07\n\x03\x46\x41Q\x10\x02\x12\x0f\n\x0bSMART_REPLY\x10\x03\"\x8a\x02\n!SetSuggestionFeatureConfigRequest\x12!\n\x14\x63onversation_profile\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x10participant_role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x02\x12u\n\x19suggestion_feature_config\x18\x03 \x01(\x0b\x32M.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigB\x03\xe0\x41\x02\"\xef\x01\n#ClearSuggestionFeatureConfigRequest\x12!\n\x14\x63onversation_profile\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x10participant_role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x02\x12X\n\x17suggestion_feature_type\x18\x03 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\x03\xe0\x41\x02\"\xa3\x02\n+SetSuggestionFeatureConfigOperationMetadata\x12\x1c\n\x14\x63onversation_profile\x18\x01 \x01(\t\x12K\n\x10participant_role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x02\x12X\n\x17suggestion_feature_type\x18\x03 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\x03\xe0\x41\x02\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa5\x02\n-ClearSuggestionFeatureConfigOperationMetadata\x12\x1c\n\x14\x63onversation_profile\x18\x01 \x01(\t\x12K\n\x10participant_role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x02\x12X\n\x17suggestion_feature_type\x18\x03 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\x03\xe0\x41\x02\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xb3\x14\n\x14\x43onversationProfiles\x12\x90\x02\n\x18ListConversationProfiles\x12;.google.cloud.dialogflow.v2.ListConversationProfilesRequest\x1a<.google.cloud.dialogflow.v2.ListConversationProfilesResponse\"y\x82\xd3\xe4\x93\x02j\x12,/v2/{parent=projects/*}/conversationProfilesZ:\x12\x38/v2/{parent=projects/*/locations/*}/conversationProfiles\xda\x41\x06parent\x12\xfd\x01\n\x16GetConversationProfile\x12\x39.google.cloud.dialogflow.v2.GetConversationProfileRequest\x1a/.google.cloud.dialogflow.v2.ConversationProfile\"w\x82\xd3\xe4\x93\x02j\x12,/v2/{name=projects/*/conversationProfiles/*}Z:\x12\x38/v2/{name=projects/*/locations/*/conversationProfiles/*}\xda\x41\x04name\x12\xc8\x02\n\x19\x43reateConversationProfile\x12<.google.cloud.dialogflow.v2.CreateConversationProfileRequest\x1a/.google.cloud.dialogflow.v2.ConversationProfile\"\xbb\x01\x82\xd3\xe4\x93\x02\x96\x01\",/v2/{parent=projects/*}/conversationProfiles:\x14\x63onversation_profileZP\"8/v2/{parent=projects/*/locations/*}/conversationProfiles:\x14\x63onversation_profile\xda\x41\x1bparent,conversation_profile\x12\xf7\x02\n\x19UpdateConversationProfile\x12<.google.cloud.dialogflow.v2.UpdateConversationProfileRequest\x1a/.google.cloud.dialogflow.v2.ConversationProfile\"\xea\x01\x82\xd3\xe4\x93\x02\xc0\x01\x32\x41/v2/{conversation_profile.name=projects/*/conversationProfiles/*}:\x14\x63onversation_profileZe2M/v2/{conversation_profile.name=projects/*/locations/*/conversationProfiles/*}:\x14\x63onversation_profile\xda\x41 conversation_profile,update_mask\x12\xea\x01\n\x19\x44\x65leteConversationProfile\x12<.google.cloud.dialogflow.v2.DeleteConversationProfileRequest\x1a\x16.google.protobuf.Empty\"w\x82\xd3\xe4\x93\x02j*,/v2/{name=projects/*/conversationProfiles/*}Z:*8/v2/{name=projects/*/locations/*/conversationProfiles/*}\xda\x41\x04name\x12\xe8\x03\n\x1aSetSuggestionFeatureConfig\x12=.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest\x1a\x1d.google.longrunning.Operation\"\xeb\x02\x82\xd3\xe4\x93\x02\xc6\x01\"W/v2/{conversation_profile=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\x01*Zh\"c/v2/{conversation_profile=projects/*/locations/*/conversationProfiles/*}:setSuggestionFeatureConfig:\x01*\xda\x41\x14\x63onversation_profile\xda\x41?conversation_profile,participant_role,suggestion_feature_config\xca\x41\x42\n\x13\x43onversationProfile\x12+SetSuggestionFeatureConfigOperationMetadata\x12\xf0\x03\n\x1c\x43learSuggestionFeatureConfig\x12?.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest\x1a\x1d.google.longrunning.Operation\"\xef\x02\x82\xd3\xe4\x93\x02\xca\x01\"Y/v2/{conversation_profile=projects/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\x01*Zj\"e/v2/{conversation_profile=projects/*/locations/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\x01*\xda\x41\x14\x63onversation_profile\xda\x41=conversation_profile,participant_role,suggestion_feature_type\xca\x41\x44\n\x13\x43onversationProfile\x12-ClearSuggestionFeatureConfigOperationMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xa0\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x18\x43onversationProfileProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41|\n,dialogflow.googleapis.com/CXSecuritySettings\x12Lprojects/{project}/locations/{location}/securitySettings/{security_settings}b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dialogflow.v2.SpeechToTextConfig", "google/cloud/dialogflow/v2/audio_config.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/document_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/document_pb.rb index f9ed98962310..10e32d7ac23c 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/document_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/document_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/document.proto @@ -14,114 +15,35 @@ require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/document.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Document" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :mime_type, :string, 3 - repeated :knowledge_types, :enum, 4, "google.cloud.dialogflow.v2.Document.KnowledgeType" - optional :enable_auto_reload, :bool, 11 - optional :latest_reload_status, :message, 12, "google.cloud.dialogflow.v2.Document.ReloadStatus" - map :metadata, :string, :string, 7 - optional :state, :enum, 13, "google.cloud.dialogflow.v2.Document.State" - oneof :source do - optional :content_uri, :string, 5 - optional :raw_content, :bytes, 9 - end - end - add_message "google.cloud.dialogflow.v2.Document.ReloadStatus" do - optional :time, :message, 1, "google.protobuf.Timestamp" - optional :status, :message, 2, "google.rpc.Status" - end - add_enum "google.cloud.dialogflow.v2.Document.KnowledgeType" do - value :KNOWLEDGE_TYPE_UNSPECIFIED, 0 - value :FAQ, 1 - value :EXTRACTIVE_QA, 2 - value :ARTICLE_SUGGESTION, 3 - value :AGENT_FACING_SMART_REPLY, 4 - end - add_enum "google.cloud.dialogflow.v2.Document.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATING, 1 - value :ACTIVE, 2 - value :UPDATING, 3 - value :RELOADING, 4 - value :DELETING, 5 - end - add_message "google.cloud.dialogflow.v2.GetDocumentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ListDocumentsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.dialogflow.v2.ListDocumentsResponse" do - repeated :documents, :message, 1, "google.cloud.dialogflow.v2.Document" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.CreateDocumentRequest" do - optional :parent, :string, 1 - optional :document, :message, 2, "google.cloud.dialogflow.v2.Document" - end - add_message "google.cloud.dialogflow.v2.ImportDocumentsRequest" do - optional :parent, :string, 1 - optional :document_template, :message, 3, "google.cloud.dialogflow.v2.ImportDocumentTemplate" - optional :import_gcs_custom_metadata, :bool, 4 - oneof :source do - optional :gcs_source, :message, 2, "google.cloud.dialogflow.v2.GcsSources" - end - end - add_message "google.cloud.dialogflow.v2.ImportDocumentTemplate" do - optional :mime_type, :string, 1 - repeated :knowledge_types, :enum, 2, "google.cloud.dialogflow.v2.Document.KnowledgeType" - map :metadata, :string, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ImportDocumentsResponse" do - repeated :warnings, :message, 1, "google.rpc.Status" - end - add_message "google.cloud.dialogflow.v2.DeleteDocumentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.UpdateDocumentRequest" do - optional :document, :message, 1, "google.cloud.dialogflow.v2.Document" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.ReloadDocumentRequest" do - optional :name, :string, 1 - optional :import_gcs_custom_metadata, :bool, 4 - optional :smart_messaging_partial_update, :bool, 5 - oneof :source do - optional :content_uri, :string, 3 - end - end - add_message "google.cloud.dialogflow.v2.ExportDocumentRequest" do - optional :name, :string, 1 - optional :export_full_content, :bool, 3 - optional :smart_messaging_partial_update, :bool, 5 - oneof :destination do - optional :gcs_destination, :message, 2, "google.cloud.dialogflow.v2.GcsDestination" - end - end - add_message "google.cloud.dialogflow.v2.ExportOperationMetadata" do - optional :exported_gcs_destination, :message, 1, "google.cloud.dialogflow.v2.GcsDestination" - end - add_message "google.cloud.dialogflow.v2.KnowledgeOperationMetadata" do - optional :state, :enum, 1, "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State" - optional :knowledge_base, :string, 3 - oneof :operation_metadata do - optional :export_operation_metadata, :message, 4, "google.cloud.dialogflow.v2.ExportOperationMetadata" - end - end - add_enum "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :PENDING, 1 - value :RUNNING, 2 - value :DONE, 3 + +descriptor_data = "\n)google/cloud/dialogflow/v2/document.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/dialogflow/v2/gcs.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xa6\x08\n\x08\x44ocument\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tmime_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0fknowledge_types\x18\x04 \x03(\x0e\x32\x32.google.cloud.dialogflow.v2.Document.KnowledgeTypeB\x03\xe0\x41\x02\x12\x15\n\x0b\x63ontent_uri\x18\x05 \x01(\tH\x00\x12\x15\n\x0braw_content\x18\t \x01(\x0cH\x00\x12\x1f\n\x12\x65nable_auto_reload\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12T\n\x14latest_reload_status\x18\x0c \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.Document.ReloadStatusB\x03\xe0\x41\x03\x12I\n\x08metadata\x18\x07 \x03(\x0b\x32\x32.google.cloud.dialogflow.v2.Document.MetadataEntryB\x03\xe0\x41\x01\x12>\n\x05state\x18\r \x01(\x0e\x32*.google.cloud.dialogflow.v2.Document.StateB\x03\xe0\x41\x03\x1a\\\n\x0cReloadStatus\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x81\x01\n\rKnowledgeType\x12\x1e\n\x1aKNOWLEDGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x46\x41Q\x10\x01\x12\x11\n\rEXTRACTIVE_QA\x10\x02\x12\x16\n\x12\x41RTICLE_SUGGESTION\x10\x03\x12\x1c\n\x18\x41GENT_FACING_SMART_REPLY\x10\x04\"c\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\r\n\tRELOADING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05:\xcf\x01\xea\x41\xcb\x01\n\"dialogflow.googleapis.com/Document\x12Gprojects/{project}/knowledgeBases/{knowledge_base}/documents/{document}\x12\\projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}B\x08\n\x06source\"N\n\x12GetDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\"\x89\x01\n\x14ListDocumentsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\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\"i\n\x15ListDocumentsResponse\x12\x37\n\tdocuments\x18\x01 \x03(\x0b\x32$.google.cloud.dialogflow.v2.Document\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x90\x01\n\x15\x43reateDocumentRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\x12;\n\x08\x64ocument\x18\x02 \x01(\x0b\x32$.google.cloud.dialogflow.v2.DocumentB\x03\xe0\x41\x02\"\x94\x02\n\x16ImportDocumentsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\x12<\n\ngcs_source\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.GcsSourcesH\x00\x12R\n\x11\x64ocument_template\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.ImportDocumentTemplateB\x03\xe0\x41\x02\x12\"\n\x1aimport_gcs_custom_metadata\x18\x04 \x01(\x08\x42\x08\n\x06source\"\x87\x02\n\x16ImportDocumentTemplate\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0fknowledge_types\x18\x02 \x03(\x0e\x32\x32.google.cloud.dialogflow.v2.Document.KnowledgeTypeB\x03\xe0\x41\x02\x12R\n\x08metadata\x18\x03 \x03(\x0b\x32@.google.cloud.dialogflow.v2.ImportDocumentTemplate.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"?\n\x17ImportDocumentsResponse\x12$\n\x08warnings\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\"Q\n\x15\x44\x65leteDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\"\x8a\x01\n\x15UpdateDocumentRequest\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.dialogflow.v2.DocumentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcd\x01\n\x15ReloadDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1a\n\x0b\x63ontent_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12\'\n\x1aimport_gcs_custom_metadata\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1esmart_messaging_partial_update\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x42\x08\n\x06source\"\xec\x01\n\x15\x45xportDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x45\n\x0fgcs_destination\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.GcsDestinationH\x00\x12\x1b\n\x13\x65xport_full_content\x18\x03 \x01(\x08\x12&\n\x1esmart_messaging_partial_update\x18\x05 \x01(\x08\x42\r\n\x0b\x64\x65stination\"g\n\x17\x45xportOperationMetadata\x12L\n\x18\x65xported_gcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.dialogflow.v2.GcsDestination\"\xba\x02\n\x1aKnowledgeOperationMetadata\x12P\n\x05state\x18\x01 \x01(\x0e\x32<.google.cloud.dialogflow.v2.KnowledgeOperationMetadata.StateB\x03\xe0\x41\x03\x12\x16\n\x0eknowledge_base\x18\x03 \x01(\t\x12X\n\x19\x65xport_operation_metadata\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.ExportOperationMetadataH\x00\"B\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x42\x14\n\x12operation_metadata2\xac\x16\n\tDocuments\x12\xb9\x02\n\rListDocuments\x12\x30.google.cloud.dialogflow.v2.ListDocumentsRequest\x1a\x31.google.cloud.dialogflow.v2.ListDocumentsResponse\"\xc2\x01\x82\xd3\xe4\x93\x02\xb2\x01\x12\x32/v2/{parent=projects/*/knowledgeBases/*}/documentsZ@\x12>/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documentsZ:\x12\x38/v2/{parent=projects/*/agent/knowledgeBases/*}/documents\xda\x41\x06parent\x12\xa6\x02\n\x0bGetDocument\x12..google.cloud.dialogflow.v2.GetDocumentRequest\x1a$.google.cloud.dialogflow.v2.Document\"\xc0\x01\x82\xd3\xe4\x93\x02\xb2\x01\x12\x32/v2/{name=projects/*/knowledgeBases/*/documents/*}Z@\x12>/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}Z:\x12\x38/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}\xda\x41\x04name\x12\xf7\x02\n\x0e\x43reateDocument\x12\x31.google.cloud.dialogflow.v2.CreateDocumentRequest\x1a\x1d.google.longrunning.Operation\"\x92\x02\x82\xd3\xe4\x93\x02\xd0\x01\"2/v2/{parent=projects/*/knowledgeBases/*}/documents:\x08\x64ocumentZJ\">/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documents:\x08\x64ocumentZD\"8/v2/{parent=projects/*/agent/knowledgeBases/*}/documents:\x08\x64ocument\xda\x41\x0fparent,document\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x12\xb0\x02\n\x0fImportDocuments\x12\x32.google.cloud.dialogflow.v2.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\xc9\x01\x82\xd3\xe4\x93\x02\x8a\x01\"9/v2/{parent=projects/*/knowledgeBases/*}/documents:import:\x01*ZJ\"E/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documents:import:\x01*\xca\x41\x35\n\x17ImportDocumentsResponse\x12\x1aKnowledgeOperationMetadata\x12\xdb\x02\n\x0e\x44\x65leteDocument\x12\x31.google.cloud.dialogflow.v2.DeleteDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xf6\x01\x82\xd3\xe4\x93\x02\xb2\x01*2/v2/{name=projects/*/knowledgeBases/*/documents/*}Z@*>/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}Z:*8/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}\xda\x41\x04name\xca\x41\x33\n\x15google.protobuf.Empty\x12\x1aKnowledgeOperationMetadata\x12\x97\x03\n\x0eUpdateDocument\x12\x31.google.cloud.dialogflow.v2.UpdateDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x02\x82\xd3\xe4\x93\x02\xeb\x01\x32;/v2/{document.name=projects/*/knowledgeBases/*/documents/*}:\x08\x64ocumentZS2G/v2/{document.name=projects/*/locations/*/knowledgeBases/*/documents/*}:\x08\x64ocumentZM2A/v2/{document.name=projects/*/agent/knowledgeBases/*/documents/*}:\x08\x64ocument\xda\x41\x14\x64ocument,update_mask\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x12\xf8\x02\n\x0eReloadDocument\x12\x31.google.cloud.dialogflow.v2.ReloadDocumentRequest\x1a\x1d.google.longrunning.Operation\"\x93\x02\x82\xd3\xe4\x93\x02\xd0\x01\"9/v2/{name=projects/*/knowledgeBases/*/documents/*}:reload:\x01*ZJ\"E/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}:reload:\x01*ZD\"?/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}:reload:\x01*\xda\x41\x10name,content_uri\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x12\x9f\x02\n\x0e\x45xportDocument\x12\x31.google.cloud.dialogflow.v2.ExportDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xba\x01\x82\xd3\xe4\x93\x02\x8a\x01\"9/v2/{name=projects/*/knowledgeBases/*/documents/*}:export:\x01*ZJ\"E/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}:export:\x01*\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x96\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\rDocumentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.cloud.dialogflow.v2.GcsSources", "google/cloud/dialogflow/v2/gcs.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/entity_type_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/entity_type_pb.rb index 920c93e06aac..dcc5de5d3ff5 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/entity_type_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/entity_type.proto @@ -12,93 +13,32 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/entity_type.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.EntityType" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :kind, :enum, 3, "google.cloud.dialogflow.v2.EntityType.Kind" - optional :auto_expansion_mode, :enum, 4, "google.cloud.dialogflow.v2.EntityType.AutoExpansionMode" - repeated :entities, :message, 6, "google.cloud.dialogflow.v2.EntityType.Entity" - optional :enable_fuzzy_extraction, :bool, 7 - end - add_message "google.cloud.dialogflow.v2.EntityType.Entity" do - optional :value, :string, 1 - repeated :synonyms, :string, 2 - end - add_enum "google.cloud.dialogflow.v2.EntityType.Kind" do - value :KIND_UNSPECIFIED, 0 - value :KIND_MAP, 1 - value :KIND_LIST, 2 - value :KIND_REGEXP, 3 - end - add_enum "google.cloud.dialogflow.v2.EntityType.AutoExpansionMode" do - value :AUTO_EXPANSION_MODE_UNSPECIFIED, 0 - value :AUTO_EXPANSION_MODE_DEFAULT, 1 - end - add_message "google.cloud.dialogflow.v2.ListEntityTypesRequest" do - optional :parent, :string, 1 - optional :language_code, :string, 2 - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - end - add_message "google.cloud.dialogflow.v2.ListEntityTypesResponse" do - repeated :entity_types, :message, 1, "google.cloud.dialogflow.v2.EntityType" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetEntityTypeRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.v2.CreateEntityTypeRequest" do - optional :parent, :string, 1 - optional :entity_type, :message, 2, "google.cloud.dialogflow.v2.EntityType" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.v2.UpdateEntityTypeRequest" do - optional :entity_type, :message, 1, "google.cloud.dialogflow.v2.EntityType" - optional :language_code, :string, 2 - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.DeleteEntityTypeRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest" do - optional :parent, :string, 1 - optional :language_code, :string, 4 - optional :update_mask, :message, 5, "google.protobuf.FieldMask" - oneof :entity_type_batch do - optional :entity_type_batch_uri, :string, 2 - optional :entity_type_batch_inline, :message, 3, "google.cloud.dialogflow.v2.EntityTypeBatch" - end - end - add_message "google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse" do - repeated :entity_types, :message, 1, "google.cloud.dialogflow.v2.EntityType" - end - add_message "google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest" do - optional :parent, :string, 1 - repeated :entity_type_names, :string, 2 - end - add_message "google.cloud.dialogflow.v2.BatchCreateEntitiesRequest" do - optional :parent, :string, 1 - repeated :entities, :message, 2, "google.cloud.dialogflow.v2.EntityType.Entity" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest" do - optional :parent, :string, 1 - repeated :entities, :message, 2, "google.cloud.dialogflow.v2.EntityType.Entity" - optional :language_code, :string, 3 - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest" do - optional :parent, :string, 1 - repeated :entity_values, :string, 2 - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.v2.EntityTypeBatch" do - repeated :entity_types, :message, 1, "google.cloud.dialogflow.v2.EntityType" + +descriptor_data = "\n,google/cloud/dialogflow/v2/entity_type.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xc3\x05\n\nEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x04kind\x18\x03 \x01(\x0e\x32+.google.cloud.dialogflow.v2.EntityType.KindB\x03\xe0\x41\x02\x12Z\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32\x38.google.cloud.dialogflow.v2.EntityType.AutoExpansionModeB\x03\xe0\x41\x01\x12\x44\n\x08\x65ntities\x18\x06 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x01\x12$\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x33\n\x06\x45ntity\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x02\"J\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0c\n\x08KIND_MAP\x10\x01\x12\r\n\tKIND_LIST\x10\x02\x12\x0f\n\x0bKIND_REGEXP\x10\x03\"Y\n\x11\x41utoExpansionMode\x12#\n\x1f\x41UTO_EXPANSION_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTO_EXPANSION_MODE_DEFAULT\x10\x01:\xa7\x01\xea\x41\xa3\x01\n$dialogflow.googleapis.com/EntityType\x12\x32projects/{project}/agent/entityTypes/{entity_type}\x12Gprojects/{project}/locations/{location}/agent/entityTypes/{entity_type}\"\xa3\x01\n\x16ListEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"p\n\x17ListEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"n\n\x14GetEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xb5\x01\n\x17\x43reateEntityTypeRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12@\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xad\x01\n\x17UpdateEntityTypeRequest\x12@\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"U\n\x17\x44\x65leteEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\"\xb6\x02\n\x1d\x42\x61tchUpdateEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1f\n\x15\x65ntity_type_batch_uri\x18\x02 \x01(\tH\x00\x12O\n\x18\x65ntity_type_batch_inline\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.EntityTypeBatchH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x13\n\x11\x65ntity_type_batch\"^\n\x1e\x42\x61tchUpdateEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\"}\n\x1d\x42\x61tchDeleteEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1e\n\x11\x65ntity_type_names\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\xbc\x01\n\x1a\x42\x61tchCreateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf2\x01\n\x1a\x42\x61tchUpdateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x92\x01\n\x1a\x42\x61tchDeleteEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rentity_values\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"O\n\x0f\x45ntityTypeBatch\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType2\xd6\x19\n\x0b\x45ntityTypes\x12\x87\x02\n\x0fListEntityTypes\x12\x32.google.cloud.dialogflow.v2.ListEntityTypesRequest\x1a\x33.google.cloud.dialogflow.v2.ListEntityTypesResponse\"\x8a\x01\x82\xd3\xe4\x93\x02\x64\x12)/v2/{parent=projects/*/agent}/entityTypesZ7\x12\x35/v2/{parent=projects/*/locations/*/agent}/entityTypes\xda\x41\x06parent\xda\x41\x14parent,language_code\x12\xf2\x01\n\rGetEntityType\x12\x30.google.cloud.dialogflow.v2.GetEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\x86\x01\x82\xd3\xe4\x93\x02\x64\x12)/v2/{name=projects/*/agent/entityTypes/*}Z7\x12\x35/v2/{name=projects/*/locations/*/agent/entityTypes/*}\xda\x41\x04name\xda\x41\x12name,language_code\x12\xae\x02\n\x10\x43reateEntityType\x12\x33.google.cloud.dialogflow.v2.CreateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\xbc\x01\x82\xd3\xe4\x93\x02~\")/v2/{parent=projects/*/agent}/entityTypes:\x0b\x65ntity_typeZD\"5/v2/{parent=projects/*/locations/*/agent}/entityTypes:\x0b\x65ntity_type\xda\x41\x12parent,entity_type\xda\x41 parent,entity_type,language_code\x12\xb9\x02\n\x10UpdateEntityType\x12\x33.google.cloud.dialogflow.v2.UpdateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\xc7\x01\x82\xd3\xe4\x93\x02\x96\x01\x32\x35/v2/{entity_type.name=projects/*/agent/entityTypes/*}:\x0b\x65ntity_typeZP2A/v2/{entity_type.name=projects/*/locations/*/agent/entityTypes/*}:\x0b\x65ntity_type\xda\x41\x0b\x65ntity_type\xda\x41\x19\x65ntity_type,language_code\x12\xd2\x01\n\x10\x44\x65leteEntityType\x12\x33.google.cloud.dialogflow.v2.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty\"q\x82\xd3\xe4\x93\x02\x64*)/v2/{name=projects/*/agent/entityTypes/*}Z7*5/v2/{name=projects/*/locations/*/agent/entityTypes/*}\xda\x41\x04name\x12\xd4\x02\n\x16\x42\x61tchUpdateEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\xdf\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v2/{parent=projects/*/agent}/entityTypes:batchUpdate:\x01*ZF\"A/v2/{parent=projects/*/locations/*/agent}/entityTypes:batchUpdate:\x01*\xca\x41S\n9google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse\x12\x16google.protobuf.Struct\x12\xcb\x02\n\x16\x42\x61tchDeleteEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\xd6\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v2/{parent=projects/*/agent}/entityTypes:batchDelete:\x01*ZF\"A/v2/{parent=projects/*/locations/*/agent}/entityTypes:batchDelete:\x01*\xda\x41\x18parent,entity_type_names\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf2\x02\n\x13\x42\x61tchCreateEntities\x12\x36.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchCreate:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchCreate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf2\x02\n\x13\x42\x61tchUpdateEntities\x12\x36.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchUpdate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xfc\x02\n\x13\x42\x61tchDeleteEntities\x12\x36.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchDelete:\x01*\xda\x41\x14parent,entity_values\xda\x41\"parent,entity_values,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x98\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0f\x45ntityTypeProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/environment_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/environment_pb.rb index 437b2da4ad5e..c53ead82b754 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/environment_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/environment_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/environment.proto @@ -13,70 +14,35 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/environment.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Environment" do - optional :name, :string, 1 - optional :description, :string, 2 - optional :agent_version, :string, 3 - optional :state, :enum, 4, "google.cloud.dialogflow.v2.Environment.State" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - optional :text_to_speech_settings, :message, 7, "google.cloud.dialogflow.v2.TextToSpeechSettings" - optional :fulfillment, :message, 8, "google.cloud.dialogflow.v2.Fulfillment" - end - add_enum "google.cloud.dialogflow.v2.Environment.State" do - value :STATE_UNSPECIFIED, 0 - value :STOPPED, 1 - value :LOADING, 2 - value :RUNNING, 3 - end - add_message "google.cloud.dialogflow.v2.TextToSpeechSettings" do - optional :enable_text_to_speech, :bool, 1 - optional :output_audio_encoding, :enum, 2, "google.cloud.dialogflow.v2.OutputAudioEncoding" - optional :sample_rate_hertz, :int32, 3 - map :synthesize_speech_configs, :string, :message, 4, "google.cloud.dialogflow.v2.SynthesizeSpeechConfig" - end - add_message "google.cloud.dialogflow.v2.ListEnvironmentsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListEnvironmentsResponse" do - repeated :environments, :message, 1, "google.cloud.dialogflow.v2.Environment" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetEnvironmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.CreateEnvironmentRequest" do - optional :parent, :string, 1 - optional :environment, :message, 2, "google.cloud.dialogflow.v2.Environment" - optional :environment_id, :string, 3 - end - add_message "google.cloud.dialogflow.v2.UpdateEnvironmentRequest" do - optional :environment, :message, 1, "google.cloud.dialogflow.v2.Environment" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - optional :allow_load_to_draft_and_discard_changes, :bool, 3 - end - add_message "google.cloud.dialogflow.v2.DeleteEnvironmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.EnvironmentHistory" do - optional :parent, :string, 1 - repeated :entries, :message, 2, "google.cloud.dialogflow.v2.EnvironmentHistory.Entry" - optional :next_page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.EnvironmentHistory.Entry" do - optional :agent_version, :string, 1 - optional :description, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" + +descriptor_data = "\n,google/cloud/dialogflow/v2/environment.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/dialogflow/v2/audio_config.proto\x1a,google/cloud/dialogflow/v2/fulfillment.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x84\x05\n\x0b\x45nvironment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\ragent_version\x18\x03 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32-.google.cloud.dialogflow.v2.Environment.StateB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x17text_to_speech_settings\x18\x07 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.TextToSpeechSettingsB\x03\xe0\x41\x01\x12\x41\n\x0b\x66ulfillment\x18\x08 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.FulfillmentB\x03\xe0\x41\x01\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07STOPPED\x10\x01\x12\x0b\n\x07LOADING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03:\xaa\x01\xea\x41\xa6\x01\n%dialogflow.googleapis.com/Environment\x12\x33projects/{project}/agent/environments/{environment}\x12Hprojects/{project}/locations/{location}/agent/environments/{environment}\"\x9a\x03\n\x14TextToSpeechSettings\x12\"\n\x15\x65nable_text_to_speech\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12S\n\x15output_audio_encoding\x18\x02 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12u\n\x19synthesize_speech_configs\x18\x04 \x03(\x0b\x32M.google.cloud.dialogflow.v2.TextToSpeechSettings.SynthesizeSpeechConfigsEntryB\x03\xe0\x41\x01\x1ar\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig:\x02\x38\x01\"\x89\x01\n\x17ListEnvironmentsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Environment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"r\n\x18ListEnvironmentsResponse\x12=\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32\'.google.cloud.dialogflow.v2.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15GetEnvironmentRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"\xb9\x01\n\x18\x43reateEnvironmentRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Environment\x12\x41\n\x0b\x65nvironment\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.EnvironmentB\x03\xe0\x41\x02\x12\x1b\n\x0e\x65nvironment_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xc9\x01\n\x18UpdateEnvironmentRequest\x12\x41\n\x0b\x65nvironment\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.EnvironmentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x34\n\'allow_load_to_draft_and_discard_changes\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"W\n\x18\x44\x65leteEnvironmentRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"\x8e\x01\n\x1cGetEnvironmentHistoryRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf9\x01\n\x12\x45nvironmentHistory\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x07\x65ntries\x18\x02 \x03(\x0b\x32\x34.google.cloud.dialogflow.v2.EnvironmentHistory.EntryB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a\x64\n\x05\x45ntry\x12\x15\n\ragent_version\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xcb\x0c\n\x0c\x45nvironments\x12\xf4\x01\n\x10ListEnvironments\x12\x33.google.cloud.dialogflow.v2.ListEnvironmentsRequest\x1a\x34.google.cloud.dialogflow.v2.ListEnvironmentsResponse\"u\x82\xd3\xe4\x93\x02\x66\x12*/v2/{parent=projects/*/agent}/environmentsZ8\x12\x36/v2/{parent=projects/*/locations/*/agent}/environments\xda\x41\x06parent\x12\xda\x01\n\x0eGetEnvironment\x12\x31.google.cloud.dialogflow.v2.GetEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"l\x82\xd3\xe4\x93\x02\x66\x12*/v2/{name=projects/*/agent/environments/*}Z8\x12\x36/v2/{name=projects/*/locations/*/agent/environments/*}\x12\xfc\x01\n\x11\x43reateEnvironment\x12\x34.google.cloud.dialogflow.v2.CreateEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"\x87\x01\x82\xd3\xe4\x93\x02\x80\x01\"*/v2/{parent=projects/*/agent}/environments:\x0b\x65nvironmentZE\"6/v2/{parent=projects/*/locations/*/agent}/environments:\x0b\x65nvironment\x12\x94\x02\n\x11UpdateEnvironment\x12\x34.google.cloud.dialogflow.v2.UpdateEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"\x9f\x01\x82\xd3\xe4\x93\x02\x98\x01\x32\x36/v2/{environment.name=projects/*/agent/environments/*}:\x0b\x65nvironmentZQ2B/v2/{environment.name=projects/*/locations/*/agent/environments/*}:\x0b\x65nvironment\x12\xcf\x01\n\x11\x44\x65leteEnvironment\x12\x34.google.cloud.dialogflow.v2.DeleteEnvironmentRequest\x1a\x16.google.protobuf.Empty\"l\x82\xd3\xe4\x93\x02\x66**/v2/{name=projects/*/agent/environments/*}Z8*6/v2/{name=projects/*/locations/*/agent/environments/*}\x12\x84\x02\n\x15GetEnvironmentHistory\x12\x38.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest\x1a..google.cloud.dialogflow.v2.EnvironmentHistory\"\x80\x01\x82\xd3\xe4\x93\x02z\x12\x34/v2/{parent=projects/*/agent/environments/*}/historyZB\x12@/v2/{parent=projects/*/locations/*/agent/environments/*}/history\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x45nvironmentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dialogflow.v2.Fulfillment", "google/cloud/dialogflow/v2/fulfillment.proto"], + ["google.cloud.dialogflow.v2.SynthesizeSpeechConfig", "google/cloud/dialogflow/v2/audio_config.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb index fca89cb6a3e2..e4b1417decb8 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/fulfillment.proto @@ -9,39 +10,32 @@ require 'google/api/resource_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/fulfillment.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Fulfillment" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :enabled, :bool, 4 - repeated :features, :message, 5, "google.cloud.dialogflow.v2.Fulfillment.Feature" - oneof :fulfillment do - optional :generic_web_service, :message, 3, "google.cloud.dialogflow.v2.Fulfillment.GenericWebService" - end - end - add_message "google.cloud.dialogflow.v2.Fulfillment.GenericWebService" do - optional :uri, :string, 1 - optional :username, :string, 2 - optional :password, :string, 3 - map :request_headers, :string, :string, 4 - optional :is_cloud_function, :bool, 5 - end - add_message "google.cloud.dialogflow.v2.Fulfillment.Feature" do - optional :type, :enum, 1, "google.cloud.dialogflow.v2.Fulfillment.Feature.Type" - end - add_enum "google.cloud.dialogflow.v2.Fulfillment.Feature.Type" do - value :TYPE_UNSPECIFIED, 0 - value :SMALLTALK, 1 - end - add_message "google.cloud.dialogflow.v2.GetFulfillmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.UpdateFulfillmentRequest" do - optional :fulfillment, :message, 1, "google.cloud.dialogflow.v2.Fulfillment" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" + +descriptor_data = "\n,google/cloud/dialogflow/v2/fulfillment.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xa9\x06\n\x0b\x46ulfillment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13generic_web_service\x18\x03 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceH\x00\x12\x14\n\x07\x65nabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x46\n\x08\x66\x65\x61tures\x18\x05 \x03(\x0b\x32/.google.cloud.dialogflow.v2.Fulfillment.FeatureB\x03\xe0\x41\x01\x1a\x99\x02\n\x11GenericWebService\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08password\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12k\n\x0frequest_headers\x18\x04 \x03(\x0b\x32M.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.RequestHeadersEntryB\x03\xe0\x41\x01\x12 \n\x11is_cloud_function\x18\x05 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x1a\x35\n\x13RequestHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1az\n\x07\x46\x65\x61ture\x12\x42\n\x04type\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.v2.Fulfillment.Feature.Type\"+\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tSMALLTALK\x10\x01:\x8c\x01\xea\x41\x88\x01\n%dialogflow.googleapis.com/Fulfillment\x12$projects/{project}/agent/fulfillment\x12\x39projects/{project}/locations/{location}/agent/fulfillmentB\r\n\x0b\x66ulfillment\"T\n\x15GetFulfillmentRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Fulfillment\"\x93\x01\n\x18UpdateFulfillmentRequest\x12\x41\n\x0b\x66ulfillment\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.FulfillmentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x32\x91\x05\n\x0c\x46ulfillments\x12\xdb\x01\n\x0eGetFulfillment\x12\x31.google.cloud.dialogflow.v2.GetFulfillmentRequest\x1a\'.google.cloud.dialogflow.v2.Fulfillment\"m\x82\xd3\xe4\x93\x02`\x12\'/v2/{name=projects/*/agent/fulfillment}Z5\x12\x33/v2/{name=projects/*/locations/*/agent/fulfillment}\xda\x41\x04name\x12\xa8\x02\n\x11UpdateFulfillment\x12\x34.google.cloud.dialogflow.v2.UpdateFulfillmentRequest\x1a\'.google.cloud.dialogflow.v2.Fulfillment\"\xb3\x01\x82\xd3\xe4\x93\x02\x92\x01\x32\x33/v2/{fulfillment.name=projects/*/agent/fulfillment}:\x0b\x66ulfillmentZN2?/v2/{fulfillment.name=projects/*/locations/*/agent/fulfillment}:\x0b\x66ulfillment\xda\x41\x17\x66ulfillment,update_mask\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x46ulfillmentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/gcs_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/gcs_pb.rb index d6463d2e18cc..9b5316e92e41 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/gcs_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/gcs_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/gcs.proto @@ -5,15 +6,31 @@ require 'google/api/field_behavior_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/gcs.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.GcsSources" do - repeated :uris, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GcsDestination" do - optional :uri, :string, 1 + +descriptor_data = "\n$google/cloud/dialogflow/v2/gcs.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\"\x1f\n\nGcsSources\x12\x11\n\x04uris\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\tB\x91\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x08GcsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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 = [ + ] + 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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb index 75759095a4e9..e93a8c4ac243 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/human_agent_assistant_event.proto @@ -5,14 +6,32 @@ require 'google/cloud/dialogflow/v2/participant_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/human_agent_assistant_event.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.HumanAgentAssistantEvent" do - optional :conversation, :string, 1 - optional :participant, :string, 3 - repeated :suggestion_results, :message, 5, "google.cloud.dialogflow.v2.SuggestionResult" + +descriptor_data = "\ncloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.dialogflow.v2.SuggestionResult", "google/cloud/dialogflow/v2/participant.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/intent_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/intent_pb.rb index e6d4c715b72d..cbaae057c13a 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/intent_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/intent_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/intent.proto @@ -13,299 +14,34 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/intent.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Intent" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :webhook_state, :enum, 6, "google.cloud.dialogflow.v2.Intent.WebhookState" - optional :priority, :int32, 3 - optional :is_fallback, :bool, 4 - optional :ml_disabled, :bool, 19 - optional :live_agent_handoff, :bool, 20 - optional :end_interaction, :bool, 21 - repeated :input_context_names, :string, 7 - repeated :events, :string, 8 - repeated :training_phrases, :message, 9, "google.cloud.dialogflow.v2.Intent.TrainingPhrase" - optional :action, :string, 10 - repeated :output_contexts, :message, 11, "google.cloud.dialogflow.v2.Context" - optional :reset_contexts, :bool, 12 - repeated :parameters, :message, 13, "google.cloud.dialogflow.v2.Intent.Parameter" - repeated :messages, :message, 14, "google.cloud.dialogflow.v2.Intent.Message" - repeated :default_response_platforms, :enum, 15, "google.cloud.dialogflow.v2.Intent.Message.Platform" - optional :root_followup_intent_name, :string, 16 - optional :parent_followup_intent_name, :string, 17 - repeated :followup_intent_info, :message, 18, "google.cloud.dialogflow.v2.Intent.FollowupIntentInfo" - end - add_message "google.cloud.dialogflow.v2.Intent.TrainingPhrase" do - optional :name, :string, 1 - optional :type, :enum, 2, "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type" - repeated :parts, :message, 3, "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part" - optional :times_added_count, :int32, 4 - end - add_message "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part" do - optional :text, :string, 1 - optional :entity_type, :string, 2 - optional :alias, :string, 3 - optional :user_defined, :bool, 4 - end - add_enum "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type" do - value :TYPE_UNSPECIFIED, 0 - value :EXAMPLE, 1 - value :TEMPLATE, 2 - end - add_message "google.cloud.dialogflow.v2.Intent.Parameter" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :value, :string, 3 - optional :default_value, :string, 4 - optional :entity_type_display_name, :string, 5 - optional :mandatory, :bool, 6 - repeated :prompts, :string, 7 - optional :is_list, :bool, 8 - end - add_message "google.cloud.dialogflow.v2.Intent.Message" do - optional :platform, :enum, 6, "google.cloud.dialogflow.v2.Intent.Message.Platform" - oneof :message do - optional :text, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.Text" - optional :image, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.Image" - optional :quick_replies, :message, 3, "google.cloud.dialogflow.v2.Intent.Message.QuickReplies" - optional :card, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Card" - optional :payload, :message, 5, "google.protobuf.Struct" - optional :simple_responses, :message, 7, "google.cloud.dialogflow.v2.Intent.Message.SimpleResponses" - optional :basic_card, :message, 8, "google.cloud.dialogflow.v2.Intent.Message.BasicCard" - optional :suggestions, :message, 9, "google.cloud.dialogflow.v2.Intent.Message.Suggestions" - optional :link_out_suggestion, :message, 10, "google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion" - optional :list_select, :message, 11, "google.cloud.dialogflow.v2.Intent.Message.ListSelect" - optional :carousel_select, :message, 12, "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect" - optional :browse_carousel_card, :message, 22, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard" - optional :table_card, :message, 23, "google.cloud.dialogflow.v2.Intent.Message.TableCard" - optional :media_content, :message, 24, "google.cloud.dialogflow.v2.Intent.Message.MediaContent" - end - end - add_message "google.cloud.dialogflow.v2.Intent.Message.Text" do - repeated :text, :string, 1 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.Image" do - optional :image_uri, :string, 1 - optional :accessibility_text, :string, 2 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.QuickReplies" do - optional :title, :string, 1 - repeated :quick_replies, :string, 2 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.Card" do - optional :title, :string, 1 - optional :subtitle, :string, 2 - optional :image_uri, :string, 3 - repeated :buttons, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Card.Button" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.Card.Button" do - optional :text, :string, 1 - optional :postback, :string, 2 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.SimpleResponse" do - optional :text_to_speech, :string, 1 - optional :ssml, :string, 2 - optional :display_text, :string, 3 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.SimpleResponses" do - repeated :simple_responses, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.SimpleResponse" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.BasicCard" do - optional :title, :string, 1 - optional :subtitle, :string, 2 - optional :formatted_text, :string, 3 - optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image" - repeated :buttons, :message, 5, "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button" do - optional :title, :string, 1 - optional :open_uri_action, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction" do - optional :uri, :string, 1 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.Suggestion" do - optional :title, :string, 1 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.Suggestions" do - repeated :suggestions, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.Suggestion" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion" do - optional :destination_name, :string, 1 - optional :uri, :string, 2 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.ListSelect" do - optional :title, :string, 1 - repeated :items, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item" - optional :subtitle, :string, 3 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item" do - optional :info, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo" - optional :title, :string, 2 - optional :description, :string, 3 - optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect" do - repeated :items, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item" do - optional :info, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo" - optional :title, :string, 2 - optional :description, :string, 3 - optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo" do - optional :key, :string, 1 - repeated :synonyms, :string, 2 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.MediaContent" do - optional :media_type, :enum, 1, "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType" - repeated :media_objects, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject" do - optional :name, :string, 1 - optional :description, :string, 2 - optional :content_url, :string, 5 - oneof :image do - optional :large_image, :message, 3, "google.cloud.dialogflow.v2.Intent.Message.Image" - optional :icon, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image" - end - end - add_enum "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType" do - value :RESPONSE_MEDIA_TYPE_UNSPECIFIED, 0 - value :AUDIO, 1 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard" do - repeated :items, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem" - optional :image_display_options, :enum, 2, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem" do - optional :open_uri_action, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction" - optional :title, :string, 2 - optional :description, :string, 3 - optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image" - optional :footer, :string, 5 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction" do - optional :url, :string, 1 - optional :url_type_hint, :enum, 3, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint" - end - add_enum "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint" do - value :URL_TYPE_HINT_UNSPECIFIED, 0 - value :AMP_ACTION, 1 - value :AMP_CONTENT, 2 - end - add_enum "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions" do - value :IMAGE_DISPLAY_OPTIONS_UNSPECIFIED, 0 - value :GRAY, 1 - value :WHITE, 2 - value :CROPPED, 3 - value :BLURRED_BACKGROUND, 4 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.TableCard" do - optional :title, :string, 1 - optional :subtitle, :string, 2 - optional :image, :message, 3, "google.cloud.dialogflow.v2.Intent.Message.Image" - repeated :column_properties, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties" - repeated :rows, :message, 5, "google.cloud.dialogflow.v2.Intent.Message.TableCardRow" - repeated :buttons, :message, 6, "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button" - end - add_message "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties" do - optional :header, :string, 1 - optional :horizontal_alignment, :enum, 2, "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment" - end - add_enum "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment" do - value :HORIZONTAL_ALIGNMENT_UNSPECIFIED, 0 - value :LEADING, 1 - value :CENTER, 2 - value :TRAILING, 3 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.TableCardRow" do - repeated :cells, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.TableCardCell" - optional :divider_after, :bool, 2 - end - add_message "google.cloud.dialogflow.v2.Intent.Message.TableCardCell" do - optional :text, :string, 1 - end - add_enum "google.cloud.dialogflow.v2.Intent.Message.Platform" do - value :PLATFORM_UNSPECIFIED, 0 - value :FACEBOOK, 1 - value :SLACK, 2 - value :TELEGRAM, 3 - value :KIK, 4 - value :SKYPE, 5 - value :LINE, 6 - value :VIBER, 7 - value :ACTIONS_ON_GOOGLE, 8 - value :GOOGLE_HANGOUTS, 11 - end - add_message "google.cloud.dialogflow.v2.Intent.FollowupIntentInfo" do - optional :followup_intent_name, :string, 1 - optional :parent_followup_intent_name, :string, 2 - end - add_enum "google.cloud.dialogflow.v2.Intent.WebhookState" do - value :WEBHOOK_STATE_UNSPECIFIED, 0 - value :WEBHOOK_STATE_ENABLED, 1 - value :WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING, 2 - end - add_message "google.cloud.dialogflow.v2.ListIntentsRequest" do - optional :parent, :string, 1 - optional :language_code, :string, 2 - optional :intent_view, :enum, 3, "google.cloud.dialogflow.v2.IntentView" - optional :page_size, :int32, 4 - optional :page_token, :string, 5 - end - add_message "google.cloud.dialogflow.v2.ListIntentsResponse" do - repeated :intents, :message, 1, "google.cloud.dialogflow.v2.Intent" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetIntentRequest" do - optional :name, :string, 1 - optional :language_code, :string, 2 - optional :intent_view, :enum, 3, "google.cloud.dialogflow.v2.IntentView" - end - add_message "google.cloud.dialogflow.v2.CreateIntentRequest" do - optional :parent, :string, 1 - optional :intent, :message, 2, "google.cloud.dialogflow.v2.Intent" - optional :language_code, :string, 3 - optional :intent_view, :enum, 4, "google.cloud.dialogflow.v2.IntentView" - end - add_message "google.cloud.dialogflow.v2.UpdateIntentRequest" do - optional :intent, :message, 1, "google.cloud.dialogflow.v2.Intent" - optional :language_code, :string, 2 - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - optional :intent_view, :enum, 4, "google.cloud.dialogflow.v2.IntentView" - end - add_message "google.cloud.dialogflow.v2.DeleteIntentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.BatchUpdateIntentsRequest" do - optional :parent, :string, 1 - optional :language_code, :string, 4 - optional :update_mask, :message, 5, "google.protobuf.FieldMask" - optional :intent_view, :enum, 6, "google.cloud.dialogflow.v2.IntentView" - oneof :intent_batch do - optional :intent_batch_uri, :string, 2 - optional :intent_batch_inline, :message, 3, "google.cloud.dialogflow.v2.IntentBatch" - end - end - add_message "google.cloud.dialogflow.v2.BatchUpdateIntentsResponse" do - repeated :intents, :message, 1, "google.cloud.dialogflow.v2.Intent" - end - add_message "google.cloud.dialogflow.v2.BatchDeleteIntentsRequest" do - optional :parent, :string, 1 - repeated :intents, :message, 2, "google.cloud.dialogflow.v2.Intent" - end - add_message "google.cloud.dialogflow.v2.IntentBatch" do - repeated :intents, :message, 1, "google.cloud.dialogflow.v2.Intent" - end - add_enum "google.cloud.dialogflow.v2.IntentView" do - value :INTENT_VIEW_UNSPECIFIED, 0 - value :INTENT_VIEW_FULL, 1 + +descriptor_data = "\n\'google/cloud/dialogflow/v2/intent.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/v2/context.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd7\x38\n\x06Intent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12K\n\rwebhook_state\x18\x06 \x01(\x0e\x32/.google.cloud.dialogflow.v2.Intent.WebhookStateB\x03\xe0\x41\x01\x12\x15\n\x08priority\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bis_fallback\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0bml_disabled\x18\x13 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12live_agent_handoff\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0f\x65nd_interaction\x18\x15 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13input_context_names\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x65vents\x18\x08 \x03(\tB\x03\xe0\x41\x01\x12P\n\x10training_phrases\x18\t \x03(\x0b\x32\x31.google.cloud.dialogflow.v2.Intent.TrainingPhraseB\x03\xe0\x41\x01\x12\x13\n\x06\x61\x63tion\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x41\n\x0foutput_contexts\x18\x0b \x03(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x01\x12\x1b\n\x0ereset_contexts\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x45\n\nparameters\x18\r \x03(\x0b\x32,.google.cloud.dialogflow.v2.Intent.ParameterB\x03\xe0\x41\x01\x12\x41\n\x08messages\x18\x0e \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.MessageB\x03\xe0\x41\x01\x12\\\n\x1a\x64\x65\x66\x61ult_response_platforms\x18\x0f \x03(\x0e\x32\x33.google.cloud.dialogflow.v2.Intent.Message.PlatformB\x03\xe0\x41\x01\x12&\n\x19root_followup_intent_name\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12#\n\x1bparent_followup_intent_name\x18\x11 \x01(\t\x12X\n\x14\x66ollowup_intent_info\x18\x12 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.FollowupIntentInfoB\x03\xe0\x41\x03\x1a\xf1\x02\n\x0eTrainingPhrase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12I\n\x04type\x18\x02 \x01(\x0e\x32\x36.google.cloud.dialogflow.v2.Intent.TrainingPhrase.TypeB\x03\xe0\x41\x02\x12J\n\x05parts\x18\x03 \x03(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartB\x03\xe0\x41\x02\x12\x1e\n\x11times_added_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x1a]\n\x04Part\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x18\n\x0b\x65ntity_type\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cuser_defined\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45XAMPLE\x10\x01\x12\x10\n\x08TEMPLATE\x10\x02\x1a\x02\x08\x01\x1a\xca\x01\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rdefault_value\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x65ntity_type_display_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmandatory\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x14\n\x07prompts\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12\x14\n\x07is_list\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x96*\n\x07Message\x12?\n\x04text\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.Intent.Message.TextH\x00\x12\x41\n\x05image\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageH\x00\x12P\n\rquick_replies\x18\x03 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesH\x00\x12?\n\x04\x63\x61rd\x18\x04 \x01(\x0b\x32/.google.cloud.dialogflow.v2.Intent.Message.CardH\x00\x12*\n\x07payload\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12V\n\x10simple_responses\x18\x07 \x01(\x0b\x32:.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesH\x00\x12J\n\nbasic_card\x18\x08 \x01(\x0b\x32\x34.google.cloud.dialogflow.v2.Intent.Message.BasicCardH\x00\x12M\n\x0bsuggestions\x18\t \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.Message.SuggestionsH\x00\x12[\n\x13link_out_suggestion\x18\n \x01(\x0b\x32<.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionH\x00\x12L\n\x0blist_select\x18\x0b \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.Message.ListSelectH\x00\x12T\n\x0f\x63\x61rousel_select\x18\x0c \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectH\x00\x12]\n\x14\x62rowse_carousel_card\x18\x16 \x01(\x0b\x32=.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardH\x00\x12J\n\ntable_card\x18\x17 \x01(\x0b\x32\x34.google.cloud.dialogflow.v2.Intent.Message.TableCardH\x00\x12P\n\rmedia_content\x18\x18 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.MediaContentH\x00\x12J\n\x08platform\x18\x06 \x01(\x0e\x32\x33.google.cloud.dialogflow.v2.Intent.Message.PlatformB\x03\xe0\x41\x01\x1a\x19\n\x04Text\x12\x11\n\x04text\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a@\n\x05Image\x12\x16\n\timage_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x61\x63\x63\x65ssibility_text\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a>\n\x0cQuickReplies\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rquick_replies\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\xcb\x01\n\x04\x43\x61rd\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\timage_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x07\x62uttons\x18\x04 \x03(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.Message.Card.ButtonB\x03\xe0\x41\x01\x1a\x32\n\x06\x42utton\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08postback\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1aQ\n\x0eSimpleResponse\x12\x16\n\x0etext_to_speech\x18\x01 \x01(\t\x12\x0c\n\x04ssml\x18\x02 \x01(\t\x12\x19\n\x0c\x64isplay_text\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1ak\n\x0fSimpleResponses\x12X\n\x10simple_responses\x18\x01 \x03(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SimpleResponseB\x03\xe0\x41\x02\x1a\x88\x03\n\tBasicCard\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\x0e\x66ormatted_text\x18\x03 \x01(\t\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12Q\n\x07\x62uttons\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonB\x03\xe0\x41\x01\x1a\x9e\x01\n\x06\x42utton\x12\r\n\x05title\x18\x01 \x01(\t\x12g\n\x0fopen_uri_action\x18\x02 \x01(\x0b\x32I.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriActionB\x03\xe0\x41\x02\x1a\x1c\n\rOpenUriAction\x12\x0b\n\x03uri\x18\x01 \x01(\t\x1a \n\nSuggestion\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a^\n\x0bSuggestions\x12O\n\x0bsuggestions\x18\x01 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.Message.SuggestionB\x03\xe0\x41\x02\x1a\x44\n\x11LinkOutSuggestion\x12\x1d\n\x10\x64\x65stination_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\xd2\x02\n\nListSelect\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12N\n\x05items\x18\x02 \x03(\x0b\x32:.google.cloud.dialogflow.v2.Intent.Message.ListSelect.ItemB\x03\xe0\x41\x02\x12\x15\n\x08subtitle\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\xc8\x01\n\x04Item\x12L\n\x04info\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SelectItemInfoB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x1a\xaf\x02\n\x0e\x43\x61rouselSelect\x12R\n\x05items\x18\x01 \x03(\x0b\x32>.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.ItemB\x03\xe0\x41\x02\x1a\xc8\x01\n\x04Item\x12L\n\x04info\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SelectItemInfoB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x1a\x39\n\x0eSelectItemInfo\x12\x10\n\x03key\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\x8e\x04\n\x0cMediaContent\x12\x62\n\nmedia_type\x18\x01 \x01(\x0e\x32I.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaTypeB\x03\xe0\x41\x01\x12\x62\n\rmedia_objects\x18\x02 \x03(\x0b\x32K.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject\x1a\xf0\x01\n\x13ResponseMediaObject\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12L\n\x0blarge_image\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01H\x00\x12\x45\n\x04icon\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01H\x00\x12\x13\n\x0b\x63ontent_url\x18\x05 \x01(\tB\x07\n\x05image\"C\n\x11ResponseMediaType\x12#\n\x1fRESPONSE_MEDIA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41UDIO\x10\x01\x1a\xff\x06\n\x12\x42rowseCarouselCard\x12\x63\n\x05items\x18\x01 \x03(\x0b\x32T.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem\x12u\n\x15image_display_options\x18\x02 \x01(\x0e\x32Q.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptionsB\x03\xe0\x41\x01\x1a\x94\x04\n\x16\x42rowseCarouselCardItem\x12{\n\x0fopen_uri_action\x18\x01 \x01(\x0b\x32\x62.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction\x12\r\n\x05title\x18\x02 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12\x13\n\x06\x66ooter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x1a\xf8\x01\n\rOpenUrlAction\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x8a\x01\n\rurl_type_hint\x18\x03 \x01(\x0e\x32n.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHintB\x03\xe0\x41\x01\"M\n\x0bUrlTypeHint\x12\x1d\n\x19URL_TYPE_HINT_UNSPECIFIED\x10\x00\x12\x0e\n\nAMP_ACTION\x10\x01\x12\x0f\n\x0b\x41MP_CONTENT\x10\x02\"v\n\x13ImageDisplayOptions\x12%\n!IMAGE_DISPLAY_OPTIONS_UNSPECIFIED\x10\x00\x12\x08\n\x04GRAY\x10\x01\x12\t\n\x05WHITE\x10\x02\x12\x0b\n\x07\x43ROPPED\x10\x03\x12\x16\n\x12\x42LURRED_BACKGROUND\x10\x04\x1a\xf3\x02\n\tTableCard\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12[\n\x11\x63olumn_properties\x18\x04 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesB\x03\xe0\x41\x01\x12J\n\x04rows\x18\x05 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.TableCardRowB\x03\xe0\x41\x01\x12Q\n\x07\x62uttons\x18\x06 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonB\x03\xe0\x41\x01\x1a\xfa\x01\n\x10\x43olumnProperties\x12\x0e\n\x06header\x18\x01 \x01(\t\x12r\n\x14horizontal_alignment\x18\x02 \x01(\x0e\x32O.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignmentB\x03\xe0\x41\x01\"b\n\x13HorizontalAlignment\x12$\n HORIZONTAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x0b\n\x07LEADING\x10\x01\x12\n\n\x06\x43\x45NTER\x10\x02\x12\x0c\n\x08TRAILING\x10\x03\x1ax\n\x0cTableCardRow\x12L\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x38.google.cloud.dialogflow.v2.Intent.Message.TableCardCellB\x03\xe0\x41\x01\x12\x1a\n\rdivider_after\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x1d\n\rTableCardCell\x12\x0c\n\x04text\x18\x01 \x01(\t\"\xa0\x01\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x46\x41\x43\x45\x42OOK\x10\x01\x12\t\n\x05SLACK\x10\x02\x12\x0c\n\x08TELEGRAM\x10\x03\x12\x07\n\x03KIK\x10\x04\x12\t\n\x05SKYPE\x10\x05\x12\x08\n\x04LINE\x10\x06\x12\t\n\x05VIBER\x10\x07\x12\x15\n\x11\x41\x43TIONS_ON_GOOGLE\x10\x08\x12\x13\n\x0fGOOGLE_HANGOUTS\x10\x0b\x42\t\n\x07message\x1aW\n\x12\x46ollowupIntentInfo\x12\x1c\n\x14\x66ollowup_intent_name\x18\x01 \x01(\t\x12#\n\x1bparent_followup_intent_name\x18\x02 \x01(\t\"t\n\x0cWebhookState\x12\x1d\n\x19WEBHOOK_STATE_UNSPECIFIED\x10\x00\x12\x19\n\x15WEBHOOK_STATE_ENABLED\x10\x01\x12*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING\x10\x02:\x91\x01\xea\x41\x8d\x01\n dialogflow.googleapis.com/Intent\x12)projects/{project}/agent/intents/{intent}\x12>projects/{project}/locations/{location}/agent/intents/{intent}\"\xdd\x01\n\x12ListIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x03 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"c\n\x13ListIntentsResponse\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa8\x01\n\x10GetIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x03 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"\xe6\x01\n\x13\x43reateIntentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x37\n\x06intent\x18\x02 \x01(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x04 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"\xe2\x01\n\x13UpdateIntentRequest\x12\x37\n\x06intent\x18\x01 \x01(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x04 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"M\n\x13\x44\x65leteIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\"\xdd\x02\n\x19\x42\x61tchUpdateIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x1a\n\x10intent_batch_uri\x18\x02 \x01(\tH\x00\x12\x46\n\x13intent_batch_inline\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.IntentBatchH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x06 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\x42\x0e\n\x0cintent_batch\"Q\n\x1a\x42\x61tchUpdateIntentsResponse\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent\"\x8f\x01\n\x19\x42\x61tchDeleteIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x38\n\x07intents\x18\x02 \x03(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\"B\n\x0bIntentBatch\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent*?\n\nIntentView\x12\x1b\n\x17INTENT_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10INTENT_VIEW_FULL\x10\x01\x32\xf3\x10\n\x07Intents\x12\xf0\x02\n\x0bListIntents\x12..google.cloud.dialogflow.v2.ListIntentsRequest\x1a/.google.cloud.dialogflow.v2.ListIntentsResponse\"\xff\x01\x82\xd3\xe4\x93\x02\xd8\x01\x12%/v2/{parent=projects/*/agent}/intentsZ3\x12\x31/v2/{parent=projects/*/locations/*/agent}/intentsZ6\x12\x34/v2/{parent=projects/*/agent/environments/*}/intentsZB\x12@/v2/{parent=projects/*/locations/*/agent/environments/*}/intents\xda\x41\x06parent\xda\x41\x14parent,language_code\x12\xdd\x01\n\tGetIntent\x12,.google.cloud.dialogflow.v2.GetIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"~\x82\xd3\xe4\x93\x02\\\x12%/v2/{name=projects/*/agent/intents/*}Z3\x12\x31/v2/{name=projects/*/locations/*/agent/intents/*}\xda\x41\x04name\xda\x41\x12name,language_code\x12\x86\x02\n\x0c\x43reateIntent\x12/.google.cloud.dialogflow.v2.CreateIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"\xa0\x01\x82\xd3\xe4\x93\x02l\"%/v2/{parent=projects/*/agent}/intents:\x06intentZ;\"1/v2/{parent=projects/*/locations/*/agent}/intents:\x06intent\xda\x41\rparent,intent\xda\x41\x1bparent,intent,language_code\x12\xa0\x02\n\x0cUpdateIntent\x12/.google.cloud.dialogflow.v2.UpdateIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"\xba\x01\x82\xd3\xe4\x93\x02z2,/v2/{intent.name=projects/*/agent/intents/*}:\x06intentZB28/v2/{intent.name=projects/*/locations/*/agent/intents/*}:\x06intent\xda\x41\x14intent,language_code\xda\x41 intent,language_code,update_mask\x12\xc2\x01\n\x0c\x44\x65leteIntent\x12/.google.cloud.dialogflow.v2.DeleteIntentRequest\x1a\x16.google.protobuf.Empty\"i\x82\xd3\xe4\x93\x02\\*%/v2/{name=projects/*/agent/intents/*}Z3*1/v2/{name=projects/*/locations/*/agent/intents/*}\xda\x41\x04name\x12\xf6\x02\n\x12\x42\x61tchUpdateIntents\x12\x35.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest\x1a\x1d.google.longrunning.Operation\"\x89\x02\x82\xd3\xe4\x93\x02z\"1/v2/{parent=projects/*/agent}/intents:batchUpdate:\x01*ZB\"=/v2/{parent=projects/*/locations/*/agent}/intents:batchUpdate:\x01*\xda\x41\x17parent,intent_batch_uri\xda\x41\x1aparent,intent_batch_inline\xca\x41O\n5google.cloud.dialogflow.v2.BatchUpdateIntentsResponse\x12\x16google.protobuf.Struct\x12\xb0\x02\n\x12\x42\x61tchDeleteIntents\x12\x35.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest\x1a\x1d.google.longrunning.Operation\"\xc3\x01\x82\xd3\xe4\x93\x02z\"1/v2/{parent=projects/*/agent}/intents:batchDelete:\x01*ZB\"=/v2/{parent=projects/*/locations/*/agent}/intents:batchDelete:\x01*\xda\x41\x0eparent,intents\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x94\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0bIntentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.dialogflow.v2.Context", "google/cloud/dialogflow/v2/context.proto"], + ["google.protobuf.Struct", "google/protobuf/struct.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb index 77a15b486eb7..480f7d4738e9 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/knowledge_base.proto @@ -10,39 +11,32 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/knowledge_base.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.KnowledgeBase" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :language_code, :string, 4 - end - add_message "google.cloud.dialogflow.v2.ListKnowledgeBasesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.dialogflow.v2.ListKnowledgeBasesResponse" do - repeated :knowledge_bases, :message, 1, "google.cloud.dialogflow.v2.KnowledgeBase" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetKnowledgeBaseRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest" do - optional :parent, :string, 1 - optional :knowledge_base, :message, 2, "google.cloud.dialogflow.v2.KnowledgeBase" - end - add_message "google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest" do - optional :name, :string, 1 - optional :force, :bool, 2 - end - add_message "google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest" do - optional :knowledge_base, :message, 1, "google.cloud.dialogflow.v2.KnowledgeBase" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" + +descriptor_data = "\n/google/cloud/dialogflow/v2/knowledge_base.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xfc\x01\n\rKnowledgeBase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x04 \x01(\t:\xaa\x01\xea\x41\xa6\x01\n\'dialogflow.googleapis.com/KnowledgeBase\x12\x32projects/{project}/knowledgeBases/{knowledge_base}\x12Gprojects/{project}/locations/{location}/knowledgeBases/{knowledge_base}\"\x93\x01\n\x19ListKnowledgeBasesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dialogflow.googleapis.com/KnowledgeBase\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\"y\n\x1aListKnowledgeBasesResponse\x12\x42\n\x0fknowledge_bases\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.v2.KnowledgeBase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetKnowledgeBaseRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dialogflow.googleapis.com/KnowledgeBase\"\xa5\x01\n\x1a\x43reateKnowledgeBaseRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dialogflow.googleapis.com/KnowledgeBase\x12\x46\n\x0eknowledge_base\x18\x02 \x01(\x0b\x32).google.cloud.dialogflow.v2.KnowledgeBaseB\x03\xe0\x41\x02\"o\n\x1a\x44\x65leteKnowledgeBaseRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dialogflow.googleapis.com/KnowledgeBase\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x9a\x01\n\x1aUpdateKnowledgeBaseRequest\x12\x46\n\x0eknowledge_base\x18\x01 \x01(\x0b\x32).google.cloud.dialogflow.v2.KnowledgeBaseB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x32\xb4\r\n\x0eKnowledgeBases\x12\xa4\x02\n\x12ListKnowledgeBases\x12\x35.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest\x1a\x36.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse\"\x9e\x01\x82\xd3\xe4\x93\x02\x8e\x01\x12&/v2/{parent=projects/*}/knowledgeBasesZ4\x12\x32/v2/{parent=projects/*/locations/*}/knowledgeBasesZ.\x12,/v2/{parent=projects/*/agent}/knowledgeBases\xda\x41\x06parent\x12\x91\x02\n\x10GetKnowledgeBase\x12\x33.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest\x1a).google.cloud.dialogflow.v2.KnowledgeBase\"\x9c\x01\x82\xd3\xe4\x93\x02\x8e\x01\x12&/v2/{name=projects/*/knowledgeBases/*}Z4\x12\x32/v2/{name=projects/*/locations/*/knowledgeBases/*}Z.\x12,/v2/{name=projects/*/agent/knowledgeBases/*}\xda\x41\x04name\x12\xd8\x02\n\x13\x43reateKnowledgeBase\x12\x36.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest\x1a).google.cloud.dialogflow.v2.KnowledgeBase\"\xdd\x01\x82\xd3\xe4\x93\x02\xbe\x01\"&/v2/{parent=projects/*}/knowledgeBases:\x0eknowledge_baseZD\"2/v2/{parent=projects/*/locations/*}/knowledgeBases:\x0eknowledge_baseZ>\",/v2/{parent=projects/*/agent}/knowledgeBases:\x0eknowledge_base\xda\x41\x15parent,knowledge_base\x12\x84\x02\n\x13\x44\x65leteKnowledgeBase\x12\x36.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest\x1a\x16.google.protobuf.Empty\"\x9c\x01\x82\xd3\xe4\x93\x02\x8e\x01*&/v2/{name=projects/*/knowledgeBases/*}Z4*2/v2/{name=projects/*/locations/*/knowledgeBases/*}Z.*,/v2/{name=projects/*/agent/knowledgeBases/*}\xda\x41\x04name\x12\x8a\x03\n\x13UpdateKnowledgeBase\x12\x36.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest\x1a).google.cloud.dialogflow.v2.KnowledgeBase\"\x8f\x02\x82\xd3\xe4\x93\x02\xeb\x01\x32\x35/v2/{knowledge_base.name=projects/*/knowledgeBases/*}:\x0eknowledge_baseZS2A/v2/{knowledge_base.name=projects/*/locations/*/knowledgeBases/*}:\x0eknowledge_baseZM2;/v2/{knowledge_base.name=projects/*/agent/knowledgeBases/*}:\x0eknowledge_base\xda\x41\x1aknowledge_base,update_mask\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12KnowledgeBaseProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/participant_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/participant_pb.rb index 394990a34954..80fd24c42793 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/participant_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/participant_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/participant.proto @@ -14,198 +15,37 @@ require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/participant.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Participant" do - optional :name, :string, 1 - optional :role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role" - optional :sip_recording_media_label, :string, 6 - optional :obfuscated_external_user_id, :string, 7 - map :documents_metadata_filters, :string, :string, 8 - end - add_enum "google.cloud.dialogflow.v2.Participant.Role" do - value :ROLE_UNSPECIFIED, 0 - value :HUMAN_AGENT, 1 - value :AUTOMATED_AGENT, 2 - value :END_USER, 3 - end - add_message "google.cloud.dialogflow.v2.Message" do - optional :name, :string, 1 - optional :content, :string, 2 - optional :language_code, :string, 3 - optional :participant, :string, 4 - optional :participant_role, :enum, 5, "google.cloud.dialogflow.v2.Participant.Role" - optional :create_time, :message, 6, "google.protobuf.Timestamp" - optional :send_time, :message, 9, "google.protobuf.Timestamp" - optional :message_annotation, :message, 7, "google.cloud.dialogflow.v2.MessageAnnotation" - optional :sentiment_analysis, :message, 8, "google.cloud.dialogflow.v2.SentimentAnalysisResult" - end - add_message "google.cloud.dialogflow.v2.CreateParticipantRequest" do - optional :parent, :string, 1 - optional :participant, :message, 2, "google.cloud.dialogflow.v2.Participant" - end - add_message "google.cloud.dialogflow.v2.GetParticipantRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.ListParticipantsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListParticipantsResponse" do - repeated :participants, :message, 1, "google.cloud.dialogflow.v2.Participant" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.UpdateParticipantRequest" do - optional :participant, :message, 1, "google.cloud.dialogflow.v2.Participant" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.AnalyzeContentRequest" do - optional :participant, :string, 1 - optional :reply_audio_config, :message, 5, "google.cloud.dialogflow.v2.OutputAudioConfig" - optional :query_params, :message, 9, "google.cloud.dialogflow.v2.QueryParameters" - optional :assist_query_params, :message, 14, "google.cloud.dialogflow.v2.AssistQueryParameters" - optional :cx_parameters, :message, 18, "google.protobuf.Struct" - optional :request_id, :string, 11 - oneof :input do - optional :text_input, :message, 6, "google.cloud.dialogflow.v2.TextInput" - optional :event_input, :message, 8, "google.cloud.dialogflow.v2.EventInput" - end - end - add_message "google.cloud.dialogflow.v2.DtmfParameters" do - optional :accepts_dtmf_input, :bool, 1 - end - add_message "google.cloud.dialogflow.v2.AnalyzeContentResponse" do - optional :reply_text, :string, 1 - optional :reply_audio, :message, 2, "google.cloud.dialogflow.v2.OutputAudio" - optional :automated_agent_reply, :message, 3, "google.cloud.dialogflow.v2.AutomatedAgentReply" - optional :message, :message, 5, "google.cloud.dialogflow.v2.Message" - repeated :human_agent_suggestion_results, :message, 6, "google.cloud.dialogflow.v2.SuggestionResult" - repeated :end_user_suggestion_results, :message, 7, "google.cloud.dialogflow.v2.SuggestionResult" - optional :dtmf_parameters, :message, 9, "google.cloud.dialogflow.v2.DtmfParameters" - end - add_message "google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest" do - optional :participant, :string, 1 - optional :reply_audio_config, :message, 4, "google.cloud.dialogflow.v2.OutputAudioConfig" - optional :query_params, :message, 7, "google.cloud.dialogflow.v2.QueryParameters" - optional :assist_query_params, :message, 8, "google.cloud.dialogflow.v2.AssistQueryParameters" - optional :cx_parameters, :message, 13, "google.protobuf.Struct" - optional :enable_partial_automated_agent_reply, :bool, 12 - optional :enable_debugging_info, :bool, 19 - oneof :config do - optional :audio_config, :message, 2, "google.cloud.dialogflow.v2.InputAudioConfig" - optional :text_config, :message, 3, "google.cloud.dialogflow.v2.InputTextConfig" - end - oneof :input do - optional :input_audio, :bytes, 5 - optional :input_text, :string, 6 - optional :input_dtmf, :message, 9, "google.cloud.dialogflow.v2.TelephonyDtmfEvents" - end - end - add_message "google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse" do - optional :recognition_result, :message, 1, "google.cloud.dialogflow.v2.StreamingRecognitionResult" - optional :reply_text, :string, 2 - optional :reply_audio, :message, 3, "google.cloud.dialogflow.v2.OutputAudio" - optional :automated_agent_reply, :message, 4, "google.cloud.dialogflow.v2.AutomatedAgentReply" - optional :message, :message, 6, "google.cloud.dialogflow.v2.Message" - repeated :human_agent_suggestion_results, :message, 7, "google.cloud.dialogflow.v2.SuggestionResult" - repeated :end_user_suggestion_results, :message, 8, "google.cloud.dialogflow.v2.SuggestionResult" - optional :dtmf_parameters, :message, 10, "google.cloud.dialogflow.v2.DtmfParameters" - optional :debugging_info, :message, 11, "google.cloud.dialogflow.v2.CloudConversationDebuggingInfo" - end - add_message "google.cloud.dialogflow.v2.SuggestArticlesRequest" do - optional :parent, :string, 1 - optional :latest_message, :string, 2 - optional :context_size, :int32, 3 - optional :assist_query_params, :message, 4, "google.cloud.dialogflow.v2.AssistQueryParameters" - end - add_message "google.cloud.dialogflow.v2.SuggestArticlesResponse" do - repeated :article_answers, :message, 1, "google.cloud.dialogflow.v2.ArticleAnswer" - optional :latest_message, :string, 2 - optional :context_size, :int32, 3 - end - add_message "google.cloud.dialogflow.v2.SuggestFaqAnswersRequest" do - optional :parent, :string, 1 - optional :latest_message, :string, 2 - optional :context_size, :int32, 3 - optional :assist_query_params, :message, 4, "google.cloud.dialogflow.v2.AssistQueryParameters" - end - add_message "google.cloud.dialogflow.v2.SuggestFaqAnswersResponse" do - repeated :faq_answers, :message, 1, "google.cloud.dialogflow.v2.FaqAnswer" - optional :latest_message, :string, 2 - optional :context_size, :int32, 3 - end - add_message "google.cloud.dialogflow.v2.SuggestSmartRepliesRequest" do - optional :parent, :string, 1 - optional :current_text_input, :message, 4, "google.cloud.dialogflow.v2.TextInput" - optional :latest_message, :string, 2 - optional :context_size, :int32, 3 - end - add_message "google.cloud.dialogflow.v2.SuggestSmartRepliesResponse" do - repeated :smart_reply_answers, :message, 1, "google.cloud.dialogflow.v2.SmartReplyAnswer" - optional :latest_message, :string, 2 - optional :context_size, :int32, 3 - end - add_message "google.cloud.dialogflow.v2.OutputAudio" do - optional :config, :message, 1, "google.cloud.dialogflow.v2.OutputAudioConfig" - optional :audio, :bytes, 2 - end - add_message "google.cloud.dialogflow.v2.AutomatedAgentReply" do - optional :detect_intent_response, :message, 1, "google.cloud.dialogflow.v2.DetectIntentResponse" - optional :automated_agent_reply_type, :enum, 7, "google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType" - optional :allow_cancellation, :bool, 8 - optional :cx_current_page, :string, 11 - end - add_enum "google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType" do - value :AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED, 0 - value :PARTIAL, 1 - value :FINAL, 2 - end - add_message "google.cloud.dialogflow.v2.ArticleAnswer" do - optional :title, :string, 1 - optional :uri, :string, 2 - repeated :snippets, :string, 3 - optional :confidence, :float, 4 - map :metadata, :string, :string, 5 - optional :answer_record, :string, 6 - end - add_message "google.cloud.dialogflow.v2.FaqAnswer" do - optional :answer, :string, 1 - optional :confidence, :float, 2 - optional :question, :string, 3 - optional :source, :string, 4 - map :metadata, :string, :string, 5 - optional :answer_record, :string, 6 - end - add_message "google.cloud.dialogflow.v2.SmartReplyAnswer" do - optional :reply, :string, 1 - optional :confidence, :float, 2 - optional :answer_record, :string, 3 - end - add_message "google.cloud.dialogflow.v2.SuggestionResult" do - oneof :suggestion_response do - optional :error, :message, 1, "google.rpc.Status" - optional :suggest_articles_response, :message, 2, "google.cloud.dialogflow.v2.SuggestArticlesResponse" - optional :suggest_faq_answers_response, :message, 3, "google.cloud.dialogflow.v2.SuggestFaqAnswersResponse" - optional :suggest_smart_replies_response, :message, 4, "google.cloud.dialogflow.v2.SuggestSmartRepliesResponse" - end - end - add_message "google.cloud.dialogflow.v2.InputTextConfig" do - optional :language_code, :string, 1 - end - add_message "google.cloud.dialogflow.v2.AnnotatedMessagePart" do - optional :text, :string, 1 - optional :entity_type, :string, 2 - optional :formatted_value, :message, 3, "google.protobuf.Value" - end - add_message "google.cloud.dialogflow.v2.MessageAnnotation" do - repeated :parts, :message, 1, "google.cloud.dialogflow.v2.AnnotatedMessagePart" - optional :contain_entities, :bool, 2 - end - add_message "google.cloud.dialogflow.v2.AssistQueryParameters" do - map :documents_metadata_filters, :string, :string, 1 + +descriptor_data = "\n,google/cloud/dialogflow/v2/participant.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/dialogflow/v2/audio_config.proto\x1a(google/cloud/dialogflow/v2/session.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x91\x05\n\x0bParticipant\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12?\n\x04role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x05\x12&\n\x19sip_recording_media_label\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12(\n\x1bobfuscated_external_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12n\n\x1a\x64ocuments_metadata_filters\x18\x08 \x03(\x0b\x32\x45.google.cloud.dialogflow.v2.Participant.DocumentsMetadataFiltersEntryB\x03\xe0\x41\x01\x1a?\n\x1d\x44ocumentsMetadataFiltersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"P\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bHUMAN_AGENT\x10\x01\x12\x13\n\x0f\x41UTOMATED_AGENT\x10\x02\x12\x0c\n\x08\x45ND_USER\x10\x03:\xd8\x01\xea\x41\xd4\x01\n%dialogflow.googleapis.com/Participant\x12Jprojects/{project}/conversations/{conversation}/participants/{participant}\x12_projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}\"\x8c\x05\n\x07Message\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x63ontent\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bparticipant\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12K\n\x10participant_role\x18\x05 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x32\n\tsend_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12N\n\x12message_annotation\x18\x07 \x01(\x0b\x32-.google.cloud.dialogflow.v2.MessageAnnotationB\x03\xe0\x41\x03\x12T\n\x12sentiment_analysis\x18\x08 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SentimentAnalysisResultB\x03\xe0\x41\x03:\xc4\x01\xea\x41\xc0\x01\n!dialogflow.googleapis.com/Message\x12\x42projects/{project}/conversations/{conversation}/messages/{message}\x12Wprojects/{project}/locations/{location}/conversations/{conversation}/messages/{message}\"\x9c\x01\n\x18\x43reateParticipantRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Participant\x12\x41\n\x0bparticipant\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.ParticipantB\x03\xe0\x41\x02\"T\n\x15GetParticipantRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\"\x89\x01\n\x17ListParticipantsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Participant\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"r\n\x18ListParticipantsResponse\x12=\n\x0cparticipants\x18\x01 \x03(\x0b\x32\'.google.cloud.dialogflow.v2.Participant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x93\x01\n\x18UpdateParticipantRequest\x12\x41\n\x0bparticipant\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.ParticipantB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x82\x04\n\x15\x41nalyzeContentRequest\x12\x42\n\x0bparticipant\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12;\n\ntext_input\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputH\x00\x12=\n\x0b\x65vent_input\x18\x08 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInputH\x00\x12I\n\x12reply_audio_config\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\x41\n\x0cquery_params\x18\t \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12N\n\x13\x61ssist_query_params\x18\x0e \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\x12.\n\rcx_parameters\x18\x12 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nrequest_id\x18\x0b \x01(\tB\x07\n\x05input\",\n\x0e\x44tmfParameters\x12\x1a\n\x12\x61\x63\x63\x65pts_dtmf_input\x18\x01 \x01(\x08\"\xde\x03\n\x16\x41nalyzeContentResponse\x12\x12\n\nreply_text\x18\x01 \x01(\t\x12<\n\x0breply_audio\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.OutputAudio\x12N\n\x15\x61utomated_agent_reply\x18\x03 \x01(\x0b\x32/.google.cloud.dialogflow.v2.AutomatedAgentReply\x12\x34\n\x07message\x18\x05 \x01(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12T\n\x1ehuman_agent_suggestion_results\x18\x06 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12Q\n\x1b\x65nd_user_suggestion_results\x18\x07 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12\x43\n\x0f\x64tmf_parameters\x18\t \x01(\x0b\x32*.google.cloud.dialogflow.v2.DtmfParameters\"\xd0\x05\n\x1eStreamingAnalyzeContentRequest\x12\x42\n\x0bparticipant\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x44\n\x0c\x61udio_config\x18\x02 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigH\x00\x12\x42\n\x0btext_config\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.InputTextConfigH\x00\x12I\n\x12reply_audio_config\x18\x04 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\x15\n\x0binput_audio\x18\x05 \x01(\x0cH\x01\x12\x14\n\ninput_text\x18\x06 \x01(\tH\x01\x12\x45\n\ninput_dtmf\x18\t \x01(\x0b\x32/.google.cloud.dialogflow.v2.TelephonyDtmfEventsH\x01\x12\x41\n\x0cquery_params\x18\x07 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12N\n\x13\x61ssist_query_params\x18\x08 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\x12.\n\rcx_parameters\x18\r \x01(\x0b\x32\x17.google.protobuf.Struct\x12,\n$enable_partial_automated_agent_reply\x18\x0c \x01(\x08\x12\x1d\n\x15\x65nable_debugging_info\x18\x13 \x01(\x08\x42\x08\n\x06\x63onfigB\x07\n\x05input\"\x8f\x05\n\x1fStreamingAnalyzeContentResponse\x12R\n\x12recognition_result\x18\x01 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResult\x12\x12\n\nreply_text\x18\x02 \x01(\t\x12<\n\x0breply_audio\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.OutputAudio\x12N\n\x15\x61utomated_agent_reply\x18\x04 \x01(\x0b\x32/.google.cloud.dialogflow.v2.AutomatedAgentReply\x12\x34\n\x07message\x18\x06 \x01(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12T\n\x1ehuman_agent_suggestion_results\x18\x07 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12Q\n\x1b\x65nd_user_suggestion_results\x18\x08 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12\x43\n\x0f\x64tmf_parameters\x18\n \x01(\x0b\x32*.google.cloud.dialogflow.v2.DtmfParameters\x12R\n\x0e\x64\x65\x62ugging_info\x18\x0b \x01(\x0b\x32:.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo\"\x85\x02\n\x16SuggestArticlesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x0elatest_message\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12N\n\x13\x61ssist_query_params\x18\x04 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\"\x8b\x01\n\x17SuggestArticlesResponse\x12\x42\n\x0f\x61rticle_answers\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswer\x12\x16\n\x0elatest_message\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\x87\x02\n\x18SuggestFaqAnswersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x0elatest_message\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12N\n\x13\x61ssist_query_params\x18\x04 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\"\x85\x01\n\x19SuggestFaqAnswersResponse\x12:\n\x0b\x66\x61q_answers\x18\x01 \x03(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswer\x12\x16\n\x0elatest_message\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\xf4\x01\n\x1aSuggestSmartRepliesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x12\x63urrent_text_input\x18\x04 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInput\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\xc3\x01\n\x1bSuggestSmartRepliesResponse\x12N\n\x13smart_reply_answers\x18\x01 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SmartReplyAnswerB\x03\xe0\x41\x03\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"[\n\x0bOutputAudio\x12=\n\x06\x63onfig\x18\x01 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\r\n\x05\x61udio\x18\x02 \x01(\x0c\"\xe8\x02\n\x13\x41utomatedAgentReply\x12P\n\x16\x64\x65tect_intent_response\x18\x01 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.DetectIntentResponse\x12k\n\x1a\x61utomated_agent_reply_type\x18\x07 \x01(\x0e\x32G.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType\x12\x1a\n\x12\x61llow_cancellation\x18\x08 \x01(\x08\x12\x17\n\x0f\x63x_current_page\x18\x0b \x01(\t\"]\n\x17\x41utomatedAgentReplyType\x12*\n&AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARTIAL\x10\x01\x12\t\n\x05\x46INAL\x10\x02\"\xe4\x01\n\rArticleAnswer\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x10\n\x08snippets\x18\x03 \x03(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12I\n\x08metadata\x18\x05 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry\x12\x15\n\ranswer_record\x18\x06 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe0\x01\n\tFaqAnswer\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x10\n\x08question\x18\x03 \x01(\t\x12\x0e\n\x06source\x18\x04 \x01(\t\x12\x45\n\x08metadata\x18\x05 \x03(\x0b\x32\x33.google.cloud.dialogflow.v2.FaqAnswer.MetadataEntry\x12\x15\n\ranswer_record\x18\x06 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x10SmartReplyAnswer\x12\r\n\x05reply\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x42\n\ranswer_record\x18\x03 \x01(\tB+\xfa\x41(\n&dialogflow.googleapis.com/AnswerRecord\"\xea\x02\n\x10SuggestionResult\x12#\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12X\n\x19suggest_articles_response\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SuggestArticlesResponseH\x00\x12]\n\x1csuggest_faq_answers_response\x18\x03 \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.SuggestFaqAnswersResponseH\x00\x12\x61\n\x1esuggest_smart_replies_response\x18\x04 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.SuggestSmartRepliesResponseH\x00\x42\x15\n\x13suggestion_response\"-\n\x0fInputTextConfig\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\"j\n\x14\x41nnotatedMessagePart\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x13\n\x0b\x65ntity_type\x18\x02 \x01(\t\x12/\n\x0f\x66ormatted_value\x18\x03 \x01(\x0b\x32\x16.google.protobuf.Value\"n\n\x11MessageAnnotation\x12?\n\x05parts\x18\x01 \x03(\x0b\x32\x30.google.cloud.dialogflow.v2.AnnotatedMessagePart\x12\x18\n\x10\x63ontain_entities\x18\x02 \x01(\x08\"\xcd\x01\n\x15\x41ssistQueryParameters\x12s\n\x1a\x64ocuments_metadata_filters\x18\x01 \x03(\x0b\x32O.google.cloud.dialogflow.v2.AssistQueryParameters.DocumentsMetadataFiltersEntry\x1a?\n\x1d\x44ocumentsMetadataFiltersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xfa\x15\n\x0cParticipants\x12\xa5\x02\n\x11\x43reateParticipant\x12\x34.google.cloud.dialogflow.v2.CreateParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\xb0\x01\x82\xd3\xe4\x93\x02\x94\x01\"4/v2/{parent=projects/*/conversations/*}/participants:\x0bparticipantZO\"@/v2/{parent=projects/*/locations/*/conversations/*}/participants:\x0bparticipant\xda\x41\x12parent,participant\x12\xf6\x01\n\x0eGetParticipant\x12\x31.google.cloud.dialogflow.v2.GetParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\x87\x01\x82\xd3\xe4\x93\x02z\x12\x34/v2/{name=projects/*/conversations/*/participants/*}ZB\x12@/v2/{name=projects/*/locations/*/conversations/*/participants/*}\xda\x41\x04name\x12\x89\x02\n\x10ListParticipants\x12\x33.google.cloud.dialogflow.v2.ListParticipantsRequest\x1a\x34.google.cloud.dialogflow.v2.ListParticipantsResponse\"\x89\x01\x82\xd3\xe4\x93\x02z\x12\x34/v2/{parent=projects/*/conversations/*}/participantsZB\x12@/v2/{parent=projects/*/locations/*/conversations/*}/participants\xda\x41\x06parent\x12\xc2\x02\n\x11UpdateParticipant\x12\x34.google.cloud.dialogflow.v2.UpdateParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\xcd\x01\x82\xd3\xe4\x93\x02\xac\x01\x32@/v2/{participant.name=projects/*/conversations/*/participants/*}:\x0bparticipantZ[2L/v2/{participant.name=projects/*/locations/*/conversations/*/participants/*}:\x0bparticipant\xda\x41\x17participant,update_mask\x12\xe0\x02\n\x0e\x41nalyzeContent\x12\x31.google.cloud.dialogflow.v2.AnalyzeContentRequest\x1a\x32.google.cloud.dialogflow.v2.AnalyzeContentResponse\"\xe6\x01\x82\xd3\xe4\x93\x02\xac\x01\"J/v2/{participant=projects/*/conversations/*/participants/*}:analyzeContent:\x01*Z[\"V/v2/{participant=projects/*/locations/*/conversations/*/participants/*}:analyzeContent:\x01*\xda\x41\x16participant,text_input\xda\x41\x17participant,event_input\x12\x98\x01\n\x17StreamingAnalyzeContent\x12:.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest\x1a;.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse\"\x00(\x01\x30\x01\x12\xc9\x02\n\x0fSuggestArticles\x12\x32.google.cloud.dialogflow.v2.SuggestArticlesRequest\x1a\x33.google.cloud.dialogflow.v2.SuggestArticlesResponse\"\xcc\x01\x82\xd3\xe4\x93\x02\xbc\x01\"R/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestArticles:\x01*Zc\"^/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestArticles:\x01*\xda\x41\x06parent\x12\xd3\x02\n\x11SuggestFaqAnswers\x12\x34.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest\x1a\x35.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse\"\xd0\x01\x82\xd3\xe4\x93\x02\xc0\x01\"T/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\x01*Ze\"`/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\x01*\xda\x41\x06parent\x12\xdd\x02\n\x13SuggestSmartReplies\x12\x36.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest\x1a\x37.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse\"\xd4\x01\x82\xd3\xe4\x93\x02\xc4\x01\"V/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\x01*Zg\"b/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\x01*\xda\x41\x06parent\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10ParticipantProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.dialogflow.v2.SentimentAnalysisResult", "google/cloud/dialogflow/v2/session.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.cloud.dialogflow.v2.OutputAudioConfig", "google/cloud/dialogflow/v2/audio_config.proto"], + ["google.protobuf.Struct", "google/protobuf/struct.proto"], + ["google.rpc.Status", "google/rpc/status.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb index 50e3997e188c..aa642abc1170 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/session_entity_type.proto @@ -11,42 +12,33 @@ require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/session_entity_type.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.SessionEntityType" do - optional :name, :string, 1 - optional :entity_override_mode, :enum, 2, "google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode" - repeated :entities, :message, 3, "google.cloud.dialogflow.v2.EntityType.Entity" - end - add_enum "google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode" do - value :ENTITY_OVERRIDE_MODE_UNSPECIFIED, 0 - value :ENTITY_OVERRIDE_MODE_OVERRIDE, 1 - value :ENTITY_OVERRIDE_MODE_SUPPLEMENT, 2 - end - add_message "google.cloud.dialogflow.v2.ListSessionEntityTypesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListSessionEntityTypesResponse" do - repeated :session_entity_types, :message, 1, "google.cloud.dialogflow.v2.SessionEntityType" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetSessionEntityTypeRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest" do - optional :parent, :string, 1 - optional :session_entity_type, :message, 2, "google.cloud.dialogflow.v2.SessionEntityType" - end - add_message "google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest" do - optional :session_entity_type, :message, 1, "google.cloud.dialogflow.v2.SessionEntityType" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest" do - optional :name, :string, 1 + +descriptor_data = "\n4google/cloud/dialogflow/v2/session_entity_type.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/dialogflow/v2/entity_type.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa1\x06\n\x11SessionEntityType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x14\x65ntity_override_mode\x18\x02 \x01(\x0e\x32@.google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideModeB\x03\xe0\x41\x02\x12\x44\n\x08\x65ntities\x18\x03 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\"\x82\x01\n\x12\x45ntityOverrideMode\x12$\n ENTITY_OVERRIDE_MODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x45NTITY_OVERRIDE_MODE_OVERRIDE\x10\x01\x12#\n\x1f\x45NTITY_OVERRIDE_MODE_SUPPLEMENT\x10\x02:\xc8\x03\xea\x41\xc4\x03\n+dialogflow.googleapis.com/SessionEntityType\x12\x45projects/{project}/agent/sessions/{session}/entityTypes/{entity_type}\x12mprojects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/entityTypes/{entity_type}\x12Zprojects/{project}/locations/{location}/agent/sessions/{session}/entityTypes/{entity_type}\x12\x82\x01projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/entityTypes/{entity_type}\"\x95\x01\n\x1dListSessionEntityTypesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+dialogflow.googleapis.com/SessionEntityType\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x86\x01\n\x1eListSessionEntityTypesResponse\x12K\n\x14session_entity_types\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"`\n\x1bGetSessionEntityTypeRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+dialogflow.googleapis.com/SessionEntityType\"\xb6\x01\n\x1e\x43reateSessionEntityTypeRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+dialogflow.googleapis.com/SessionEntityType\x12O\n\x13session_entity_type\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityTypeB\x03\xe0\x41\x02\"\xa7\x01\n\x1eUpdateSessionEntityTypeRequest\x12O\n\x13session_entity_type\x18\x01 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityTypeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"c\n\x1e\x44\x65leteSessionEntityTypeRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+dialogflow.googleapis.com/SessionEntityType2\xea\x14\n\x12SessionEntityTypes\x12\xc6\x03\n\x16ListSessionEntityTypes\x12\x39.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest\x1a:.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse\"\xb4\x02\x82\xd3\xe4\x93\x02\xa4\x02\x12\x34/v2/{parent=projects/*/agent/sessions/*}/entityTypesZM\x12K/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/entityTypesZB\x12@/v2/{parent=projects/*/locations/*/agent/sessions/*}/entityTypesZY\x12W/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/entityTypes\xda\x41\x06parent\x12\xb3\x03\n\x14GetSessionEntityType\x12\x37.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType\"\xb2\x02\x82\xd3\xe4\x93\x02\xa4\x02\x12\x34/v2/{name=projects/*/agent/sessions/*/entityTypes/*}ZM\x12K/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}ZB\x12@/v2/{name=projects/*/locations/*/agent/sessions/*/entityTypes/*}ZY\x12W/v2/{name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/entityTypes/*}\xda\x41\x04name\x12\xa3\x04\n\x17\x43reateSessionEntityType\x12:.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType\"\x9c\x03\x82\xd3\xe4\x93\x02\xf8\x02\"4/v2/{parent=projects/*/agent/sessions/*}/entityTypes:\x13session_entity_typeZb\"K/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/entityTypes:\x13session_entity_typeZW\"@/v2/{parent=projects/*/locations/*/agent/sessions/*}/entityTypes:\x13session_entity_typeZn\"W/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/entityTypes:\x13session_entity_type\xda\x41\x1aparent,session_entity_type\x12\x8f\x05\n\x17UpdateSessionEntityType\x12:.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType\"\x88\x04\x82\xd3\xe4\x93\x02\xc9\x03\x32H/v2/{session_entity_type.name=projects/*/agent/sessions/*/entityTypes/*}:\x13session_entity_typeZv2_/v2/{session_entity_type.name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}:\x13session_entity_typeZk2T/v2/{session_entity_type.name=projects/*/locations/*/agent/sessions/*/entityTypes/*}:\x13session_entity_typeZ\x82\x01\x32k/v2/{session_entity_type.name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/entityTypes/*}:\x13session_entity_type\xda\x41\x13session_entity_type\xda\x41\x1fsession_entity_type,update_mask\x12\xa2\x03\n\x17\x44\x65leteSessionEntityType\x12:.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest\x1a\x16.google.protobuf.Empty\"\xb2\x02\x82\xd3\xe4\x93\x02\xa4\x02*4/v2/{name=projects/*/agent/sessions/*/entityTypes/*}ZM*K/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}ZB*@/v2/{name=projects/*/locations/*/agent/sessions/*/entityTypes/*}ZY*W/v2/{name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/entityTypes/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9f\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16SessionEntityTypeProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.dialogflow.v2.EntityType.Entity", "google/cloud/dialogflow/v2/entity_type.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/session_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/session_pb.rb index cde3c213b837..44b85ed0c33b 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/session_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/session_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/session.proto @@ -17,130 +18,40 @@ require 'google/rpc/status_pb' require 'google/type/latlng_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/session.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.DetectIntentRequest" do - optional :session, :string, 1 - optional :query_params, :message, 2, "google.cloud.dialogflow.v2.QueryParameters" - optional :query_input, :message, 3, "google.cloud.dialogflow.v2.QueryInput" - optional :output_audio_config, :message, 4, "google.cloud.dialogflow.v2.OutputAudioConfig" - optional :output_audio_config_mask, :message, 7, "google.protobuf.FieldMask" - optional :input_audio, :bytes, 5 - end - add_message "google.cloud.dialogflow.v2.DetectIntentResponse" do - optional :response_id, :string, 1 - optional :query_result, :message, 2, "google.cloud.dialogflow.v2.QueryResult" - optional :webhook_status, :message, 3, "google.rpc.Status" - optional :output_audio, :bytes, 4 - optional :output_audio_config, :message, 6, "google.cloud.dialogflow.v2.OutputAudioConfig" - end - add_message "google.cloud.dialogflow.v2.QueryParameters" do - optional :time_zone, :string, 1 - optional :geo_location, :message, 2, "google.type.LatLng" - repeated :contexts, :message, 3, "google.cloud.dialogflow.v2.Context" - optional :reset_contexts, :bool, 4 - repeated :session_entity_types, :message, 5, "google.cloud.dialogflow.v2.SessionEntityType" - optional :payload, :message, 6, "google.protobuf.Struct" - optional :sentiment_analysis_request_config, :message, 10, "google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig" - map :webhook_headers, :string, :string, 14 - end - add_message "google.cloud.dialogflow.v2.QueryInput" do - oneof :input do - optional :audio_config, :message, 1, "google.cloud.dialogflow.v2.InputAudioConfig" - optional :text, :message, 2, "google.cloud.dialogflow.v2.TextInput" - optional :event, :message, 3, "google.cloud.dialogflow.v2.EventInput" - end - end - add_message "google.cloud.dialogflow.v2.QueryResult" do - optional :query_text, :string, 1 - optional :language_code, :string, 15 - optional :speech_recognition_confidence, :float, 2 - optional :action, :string, 3 - optional :parameters, :message, 4, "google.protobuf.Struct" - optional :all_required_params_present, :bool, 5 - optional :cancels_slot_filling, :bool, 21 - optional :fulfillment_text, :string, 6 - repeated :fulfillment_messages, :message, 7, "google.cloud.dialogflow.v2.Intent.Message" - optional :webhook_source, :string, 8 - optional :webhook_payload, :message, 9, "google.protobuf.Struct" - repeated :output_contexts, :message, 10, "google.cloud.dialogflow.v2.Context" - optional :intent, :message, 11, "google.cloud.dialogflow.v2.Intent" - optional :intent_detection_confidence, :float, 12 - optional :diagnostic_info, :message, 14, "google.protobuf.Struct" - optional :sentiment_analysis_result, :message, 17, "google.cloud.dialogflow.v2.SentimentAnalysisResult" - end - add_message "google.cloud.dialogflow.v2.StreamingDetectIntentRequest" do - optional :session, :string, 1 - optional :query_params, :message, 2, "google.cloud.dialogflow.v2.QueryParameters" - optional :query_input, :message, 3, "google.cloud.dialogflow.v2.QueryInput" - optional :single_utterance, :bool, 4 - optional :output_audio_config, :message, 5, "google.cloud.dialogflow.v2.OutputAudioConfig" - optional :output_audio_config_mask, :message, 7, "google.protobuf.FieldMask" - optional :input_audio, :bytes, 6 - optional :enable_debugging_info, :bool, 8 - end - add_message "google.cloud.dialogflow.v2.CloudConversationDebuggingInfo" do - optional :audio_data_chunks, :int32, 1 - optional :result_end_time_offset, :message, 2, "google.protobuf.Duration" - optional :first_audio_duration, :message, 3, "google.protobuf.Duration" - optional :single_utterance, :bool, 5 - repeated :speech_partial_results_end_times, :message, 6, "google.protobuf.Duration" - repeated :speech_final_results_end_times, :message, 7, "google.protobuf.Duration" - optional :partial_responses, :int32, 8 - optional :speaker_id_passive_latency_ms_offset, :int32, 9 - optional :bargein_event_triggered, :bool, 10 - optional :speech_single_utterance, :bool, 11 - repeated :dtmf_partial_results_times, :message, 12, "google.protobuf.Duration" - repeated :dtmf_final_results_times, :message, 13, "google.protobuf.Duration" - optional :single_utterance_end_time_offset, :message, 14, "google.protobuf.Duration" - optional :no_speech_timeout, :message, 15, "google.protobuf.Duration" - optional :is_input_text, :bool, 16 - optional :client_half_close_time_offset, :message, 17, "google.protobuf.Duration" - optional :client_half_close_streaming_time_offset, :message, 18, "google.protobuf.Duration" - end - add_message "google.cloud.dialogflow.v2.StreamingDetectIntentResponse" do - optional :response_id, :string, 1 - optional :recognition_result, :message, 2, "google.cloud.dialogflow.v2.StreamingRecognitionResult" - optional :query_result, :message, 3, "google.cloud.dialogflow.v2.QueryResult" - optional :webhook_status, :message, 4, "google.rpc.Status" - optional :output_audio, :bytes, 5 - optional :output_audio_config, :message, 6, "google.cloud.dialogflow.v2.OutputAudioConfig" - optional :debugging_info, :message, 8, "google.cloud.dialogflow.v2.CloudConversationDebuggingInfo" - end - add_message "google.cloud.dialogflow.v2.StreamingRecognitionResult" do - optional :message_type, :enum, 1, "google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType" - optional :transcript, :string, 2 - optional :is_final, :bool, 3 - optional :confidence, :float, 4 - repeated :speech_word_info, :message, 7, "google.cloud.dialogflow.v2.SpeechWordInfo" - optional :speech_end_offset, :message, 8, "google.protobuf.Duration" - optional :language_code, :string, 10 - end - add_enum "google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType" do - value :MESSAGE_TYPE_UNSPECIFIED, 0 - value :TRANSCRIPT, 1 - value :END_OF_SINGLE_UTTERANCE, 2 - end - add_message "google.cloud.dialogflow.v2.TextInput" do - optional :text, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.cloud.dialogflow.v2.EventInput" do - optional :name, :string, 1 - optional :parameters, :message, 2, "google.protobuf.Struct" - optional :language_code, :string, 3 - end - add_message "google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig" do - optional :analyze_query_text_sentiment, :bool, 1 - end - add_message "google.cloud.dialogflow.v2.SentimentAnalysisResult" do - optional :query_text_sentiment, :message, 1, "google.cloud.dialogflow.v2.Sentiment" - end - add_message "google.cloud.dialogflow.v2.Sentiment" do - optional :score, :float, 1 - optional :magnitude, :float, 2 + +descriptor_data = "\n(google/cloud/dialogflow/v2/session.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/dialogflow/v2/audio_config.proto\x1a(google/cloud/dialogflow/v2/context.proto\x1a\'google/cloud/dialogflow/v2/intent.proto\x1a\x34google/cloud/dialogflow/v2/session_entity_type.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\x18google/type/latlng.proto\"\xf5\x02\n\x13\x44\x65tectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x41\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12J\n\x13output_audio_config\x18\x04 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x05 \x01(\x0c\"\xf8\x01\n\x14\x44\x65tectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12=\n\x0cquery_result\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x04 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\"\x8d\x04\n\x0fQueryParameters\x12\x11\n\ttime_zone\x18\x01 \x01(\t\x12)\n\x0cgeo_location\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\x12\x35\n\x08\x63ontexts\x18\x03 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x16\n\x0ereset_contexts\x18\x04 \x01(\x08\x12K\n\x14session_entity_types\x18\x05 \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityType\x12(\n\x07payload\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x65\n!sentiment_analysis_request_config\x18\n \x01(\x0b\x32:.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig\x12X\n\x0fwebhook_headers\x18\x0e \x03(\x0b\x32?.google.cloud.dialogflow.v2.QueryParameters.WebhookHeadersEntry\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcb\x01\n\nQueryInput\x12\x44\n\x0c\x61udio_config\x18\x01 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigH\x00\x12\x35\n\x04text\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputH\x00\x12\x37\n\x05\x65vent\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInputH\x00\x42\x07\n\x05input\"\xae\x05\n\x0bQueryResult\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12%\n\x1dspeech_recognition_confidence\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x12+\n\nparameters\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12#\n\x1b\x61ll_required_params_present\x18\x05 \x01(\x08\x12\x1c\n\x14\x63\x61ncels_slot_filling\x18\x15 \x01(\x08\x12\x18\n\x10\x66ulfillment_text\x18\x06 \x01(\t\x12H\n\x14\x66ulfillment_messages\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.Message\x12\x16\n\x0ewebhook_source\x18\x08 \x01(\t\x12\x30\n\x0fwebhook_payload\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12<\n\x0foutput_contexts\x18\n \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x32\n\x06intent\x18\x0b \x01(\x0b\x32\".google.cloud.dialogflow.v2.Intent\x12#\n\x1bintent_detection_confidence\x18\x0c \x01(\x02\x12\x30\n\x0f\x64iagnostic_info\x18\x0e \x01(\x0b\x32\x17.google.protobuf.Struct\x12V\n\x19sentiment_analysis_result\x18\x11 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SentimentAnalysisResult\"\xbb\x03\n\x1cStreamingDetectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x41\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12\x1c\n\x10single_utterance\x18\x04 \x01(\x08\x42\x02\x18\x01\x12J\n\x13output_audio_config\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x06 \x01(\x0c\x12\x1d\n\x15\x65nable_debugging_info\x18\x08 \x01(\x08\"\xf8\x06\n\x1e\x43loudConversationDebuggingInfo\x12\x19\n\x11\x61udio_data_chunks\x18\x01 \x01(\x05\x12\x39\n\x16result_end_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14\x66irst_audio_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10single_utterance\x18\x05 \x01(\x08\x12\x43\n speech_partial_results_end_times\x18\x06 \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1espeech_final_results_end_times\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x19\n\x11partial_responses\x18\x08 \x01(\x05\x12,\n$speaker_id_passive_latency_ms_offset\x18\t \x01(\x05\x12\x1f\n\x17\x62\x61rgein_event_triggered\x18\n \x01(\x08\x12\x1f\n\x17speech_single_utterance\x18\x0b \x01(\x08\x12=\n\x1a\x64tmf_partial_results_times\x18\x0c \x03(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18\x64tmf_final_results_times\x18\r \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x43\n single_utterance_end_time_offset\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11no_speech_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\ris_input_text\x18\x10 \x01(\x08\x12@\n\x1d\x63lient_half_close_time_offset\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12J\n\'client_half_close_streaming_time_offset\x18\x12 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xa9\x03\n\x1dStreamingDetectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12R\n\x12recognition_result\x18\x02 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResult\x12=\n\x0cquery_result\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x05 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12R\n\x0e\x64\x65\x62ugging_info\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo\"\x9d\x03\n\x1aStreamingRecognitionResult\x12X\n\x0cmessage_type\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12\x10\n\x08is_final\x18\x03 \x01(\x08\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x44\n\x10speech_word_info\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.SpeechWordInfo\x12\x34\n\x11speech_end_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rlanguage_code\x18\n \x01(\t\"X\n\x0bMessageType\x12\x1c\n\x18MESSAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTRANSCRIPT\x10\x01\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x02\":\n\tTextInput\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"h\n\nEventInput\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\"F\n\x1eSentimentAnalysisRequestConfig\x12$\n\x1c\x61nalyze_query_text_sentiment\x18\x01 \x01(\x08\"^\n\x17SentimentAnalysisResult\x12\x43\n\x14query_text_sentiment\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.v2.Sentiment\"-\n\tSentiment\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x32\xe5\x05\n\x08Sessions\x12\xc9\x03\n\x0c\x44\x65tectIntent\x12/.google.cloud.dialogflow.v2.DetectIntentRequest\x1a\x30.google.cloud.dialogflow.v2.DetectIntentResponse\"\xd5\x02\x82\xd3\xe4\x93\x02\xb8\x02\"6/v2/{session=projects/*/agent/sessions/*}:detectIntent:\x01*ZR\"M/v2/{session=projects/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*ZG\"B/v2/{session=projects/*/locations/*/agent/sessions/*}:detectIntent:\x01*Z^\"Y/v2/{session=projects/*/locations/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*\xda\x41\x13session,query_input\x12\x92\x01\n\x15StreamingDetectIntent\x12\x38.google.cloud.dialogflow.v2.StreamingDetectIntentRequest\x1a\x39.google.cloud.dialogflow.v2.StreamingDetectIntentResponse\"\x00(\x01\x30\x01\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xea\x03\n\x1e\x63om.google.cloud.dialogflow.v2B\x0cSessionProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41\xd1\x02\n!dialogflow.googleapis.com/Session\x12+projects/{project}/agent/sessions/{session}\x12Sprojects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}\x12@projects/{project}/locations/{location}/agent/sessions/{session}\x12hprojects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}b\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.dialogflow.v2.OutputAudioConfig", "google/cloud/dialogflow/v2/audio_config.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.type.LatLng", "google/type/latlng.proto"], + ["google.cloud.dialogflow.v2.Context", "google/cloud/dialogflow/v2/context.proto"], + ["google.cloud.dialogflow.v2.SessionEntityType", "google/cloud/dialogflow/v2/session_entity_type.proto"], + ["google.protobuf.Struct", "google/protobuf/struct.proto"], + ["google.cloud.dialogflow.v2.Intent.Message", "google/cloud/dialogflow/v2/intent.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/validation_result_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/validation_result_pb.rb index da6cd688fb06..111c0d7fccc8 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/validation_result_pb.rb @@ -1,26 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/validation_result.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/validation_result.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.ValidationError" do - optional :severity, :enum, 1, "google.cloud.dialogflow.v2.ValidationError.Severity" - repeated :entries, :string, 3 - optional :error_message, :string, 4 - end - add_enum "google.cloud.dialogflow.v2.ValidationError.Severity" do - value :SEVERITY_UNSPECIFIED, 0 - value :INFO, 1 - value :WARNING, 2 - value :ERROR, 3 - value :CRITICAL, 4 - end - add_message "google.cloud.dialogflow.v2.ValidationResult" do - repeated :validation_errors, :message, 1, "google.cloud.dialogflow.v2.ValidationError" + +descriptor_data = "\n2google/cloud/dialogflow/v2/validation_result.proto\x12\x1agoogle.cloud.dialogflow.v2\"\xd7\x01\n\x0fValidationError\x12\x46\n\x08severity\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.v2.ValidationError.Severity\x12\x0f\n\x07\x65ntries\x18\x03 \x03(\t\x12\x15\n\rerror_message\x18\x04 \x01(\t\"T\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08\x43RITICAL\x10\x04\"Z\n\x10ValidationResult\x12\x46\n\x11validation_errors\x18\x01 \x03(\x0b\x32+.google.cloud.dialogflow.v2.ValidationErrorB\x9e\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x15ValidationResultProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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 = [ + ] + 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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/version_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/version_pb.rb index 6c072df5ce93..9192a0014523 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/version_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/version_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/version.proto @@ -11,45 +12,33 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/version.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.Version" do - optional :name, :string, 1 - optional :description, :string, 2 - optional :version_number, :int32, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :status, :enum, 6, "google.cloud.dialogflow.v2.Version.VersionStatus" - end - add_enum "google.cloud.dialogflow.v2.Version.VersionStatus" do - value :VERSION_STATUS_UNSPECIFIED, 0 - value :IN_PROGRESS, 1 - value :READY, 2 - value :FAILED, 3 - end - add_message "google.cloud.dialogflow.v2.ListVersionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dialogflow.v2.ListVersionsResponse" do - repeated :versions, :message, 1, "google.cloud.dialogflow.v2.Version" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dialogflow.v2.GetVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.dialogflow.v2.CreateVersionRequest" do - optional :parent, :string, 1 - optional :version, :message, 2, "google.cloud.dialogflow.v2.Version" - end - add_message "google.cloud.dialogflow.v2.UpdateVersionRequest" do - optional :version, :message, 1, "google.cloud.dialogflow.v2.Version" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.dialogflow.v2.DeleteVersionRequest" do - optional :name, :string, 1 + +descriptor_data = "\n(google/cloud/dialogflow/v2/version.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc3\x03\n\x07Version\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eversion_number\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x46\n\x06status\x18\x06 \x01(\x0e\x32\x31.google.cloud.dialogflow.v2.Version.VersionStatusB\x03\xe0\x41\x03\"W\n\rVersionStatus\x12\x1e\n\x1aVERSION_STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\t\n\x05READY\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:\x96\x01\xea\x41\x92\x01\n!dialogflow.googleapis.com/Version\x12+projects/{project}/agent/versions/{version}\x12@projects/{project}/locations/{location}/agent/versions/{version}\"\x81\x01\n\x13ListVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"f\n\x14ListVersionsResponse\x12\x35\n\x08versions\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11GetVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"\x8c\x01\n\x14\x43reateVersionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12\x39\n\x07version\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.v2.VersionB\x03\xe0\x41\x02\"\x87\x01\n\x14UpdateVersionRequest\x12\x39\n\x07version\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.v2.VersionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"O\n\x14\x44\x65leteVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version2\xfc\t\n\x08Versions\x12\xe0\x01\n\x0cListVersions\x12/.google.cloud.dialogflow.v2.ListVersionsRequest\x1a\x30.google.cloud.dialogflow.v2.ListVersionsResponse\"m\x82\xd3\xe4\x93\x02^\x12&/v2/{parent=projects/*/agent}/versionsZ4\x12\x32/v2/{parent=projects/*/locations/*/agent}/versions\xda\x41\x06parent\x12\xcd\x01\n\nGetVersion\x12-.google.cloud.dialogflow.v2.GetVersionRequest\x1a#.google.cloud.dialogflow.v2.Version\"k\x82\xd3\xe4\x93\x02^\x12&/v2/{name=projects/*/agent/versions/*}Z4\x12\x32/v2/{name=projects/*/locations/*/agent/versions/*}\xda\x41\x04name\x12\xf0\x01\n\rCreateVersion\x12\x30.google.cloud.dialogflow.v2.CreateVersionRequest\x1a#.google.cloud.dialogflow.v2.Version\"\x87\x01\x82\xd3\xe4\x93\x02p\"&/v2/{parent=projects/*/agent}/versions:\x07versionZ=\"2/v2/{parent=projects/*/locations/*/agent}/versions:\x07version\xda\x41\x0eparent,version\x12\x86\x02\n\rUpdateVersion\x12\x30.google.cloud.dialogflow.v2.UpdateVersionRequest\x1a#.google.cloud.dialogflow.v2.Version\"\x9d\x01\x82\xd3\xe4\x93\x02\x80\x01\x32./v2/{version.name=projects/*/agent/versions/*}:\x07versionZE2:/v2/{version.name=projects/*/locations/*/agent/versions/*}:\x07version\xda\x41\x13version,update_mask\x12\xc6\x01\n\rDeleteVersion\x12\x30.google.cloud.dialogflow.v2.DeleteVersionRequest\x1a\x16.google.protobuf.Empty\"k\x82\xd3\xe4\x93\x02^*&/v2/{name=projects/*/agent/versions/*}Z4*2/v2/{name=projects/*/locations/*/agent/versions/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x95\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0cVersionProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/webhook_pb.rb b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/webhook_pb.rb index 6ff992993b05..14efb7e90837 100644 --- a/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/webhook_pb.rb +++ b/google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/webhook_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/webhook.proto @@ -9,29 +10,36 @@ require 'google/cloud/dialogflow/v2/session_entity_type_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dialogflow/v2/webhook.proto", :syntax => :proto3) do - add_message "google.cloud.dialogflow.v2.WebhookRequest" do - optional :session, :string, 4 - optional :response_id, :string, 1 - optional :query_result, :message, 2, "google.cloud.dialogflow.v2.QueryResult" - optional :original_detect_intent_request, :message, 3, "google.cloud.dialogflow.v2.OriginalDetectIntentRequest" - end - add_message "google.cloud.dialogflow.v2.WebhookResponse" do - optional :fulfillment_text, :string, 1 - repeated :fulfillment_messages, :message, 2, "google.cloud.dialogflow.v2.Intent.Message" - optional :source, :string, 3 - optional :payload, :message, 4, "google.protobuf.Struct" - repeated :output_contexts, :message, 5, "google.cloud.dialogflow.v2.Context" - optional :followup_event_input, :message, 6, "google.cloud.dialogflow.v2.EventInput" - repeated :session_entity_types, :message, 10, "google.cloud.dialogflow.v2.SessionEntityType" - end - add_message "google.cloud.dialogflow.v2.OriginalDetectIntentRequest" do - optional :source, :string, 1 - optional :version, :string, 2 - optional :payload, :message, 3, "google.protobuf.Struct" + +descriptor_data = "\n(google/cloud/dialogflow/v2/webhook.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a(google/cloud/dialogflow/v2/context.proto\x1a\'google/cloud/dialogflow/v2/intent.proto\x1a(google/cloud/dialogflow/v2/session.proto\x1a\x34google/cloud/dialogflow/v2/session_entity_type.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd6\x01\n\x0eWebhookRequest\x12\x0f\n\x07session\x18\x04 \x01(\t\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12=\n\x0cquery_result\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12_\n\x1eoriginal_detect_intent_request\x18\x03 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.OriginalDetectIntentRequest\"\x80\x03\n\x0fWebhookResponse\x12\x18\n\x10\x66ulfillment_text\x18\x01 \x01(\t\x12H\n\x14\x66ulfillment_messages\x18\x02 \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.Message\x12\x0e\n\x06source\x18\x03 \x01(\t\x12(\n\x07payload\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12<\n\x0foutput_contexts\x18\x05 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x44\n\x14\x66ollowup_event_input\x18\x06 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInput\x12K\n\x14session_entity_types\x18\n \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityType\"h\n\x1bOriginalDetectIntentRequest\x12\x0e\n\x06source\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07payload\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x95\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0cWebhookProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\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.dialogflow.v2.QueryResult", "google/cloud/dialogflow/v2/session.proto"], + ["google.cloud.dialogflow.v2.Intent.Message", "google/cloud/dialogflow/v2/intent.proto"], + ["google.protobuf.Struct", "google/protobuf/struct.proto"], + ["google.cloud.dialogflow.v2.Context", "google/cloud/dialogflow/v2/context.proto"], + ["google.cloud.dialogflow.v2.SessionEntityType", "google/cloud/dialogflow/v2/session_entity_type.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 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 diff --git a/google-cloud-dialogflow-v2/proto_docs/google/protobuf/any.rb b/google-cloud-dialogflow-v2/proto_docs/google/protobuf/any.rb index 8774b7f4a815..68a54aef5a75 100644 --- a/google-cloud-dialogflow-v2/proto_docs/google/protobuf/any.rb +++ b/google-cloud-dialogflow-v2/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-dialogflow-v2/proto_docs/google/protobuf/struct.rb b/google-cloud-dialogflow-v2/proto_docs/google/protobuf/struct.rb index e6e877e712fb..25e2ea17d987 100644 --- a/google-cloud-dialogflow-v2/proto_docs/google/protobuf/struct.rb +++ b/google-cloud-dialogflow-v2/proto_docs/google/protobuf/struct.rb @@ -87,7 +87,7 @@ class ListValue # `NullValue` is a singleton enumeration to represent the null value for the # `Value` type union. # - # The JSON representation for `NullValue` is JSON `null`. + # The JSON representation for `NullValue` is JSON `null`. module NullValue # Null value. NULL_VALUE = 0 diff --git a/google-cloud-dialogflow-v2/proto_docs/google/protobuf/timestamp.rb b/google-cloud-dialogflow-v2/proto_docs/google/protobuf/timestamp.rb index 7c4e206ac5fb..4891104f14b9 100644 --- a/google-cloud-dialogflow-v2/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-dialogflow-v2/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-dlp-v2/google-cloud-dlp-v2.gemspec b/google-cloud-dlp-v2/google-cloud-dlp-v2.gemspec index ec32870db1fc..35eff7f2eb1c 100644 --- a/google-cloud-dlp-v2/google-cloud-dlp-v2.gemspec +++ b/google-cloud-dlp-v2/google-cloud-dlp-v2.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-cloud-location", ">= 0.4", "< 2.a" diff --git a/google-cloud-dlp-v2/lib/google/privacy/dlp/v2/dlp_pb.rb b/google-cloud-dlp-v2/lib/google/privacy/dlp/v2/dlp_pb.rb index ff78a0986f7c..6c902f5bada5 100644 --- a/google-cloud-dlp-v2/lib/google/privacy/dlp/v2/dlp_pb.rb +++ b/google-cloud-dlp-v2/lib/google/privacy/dlp/v2/dlp_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/privacy/dlp/v2/dlp.proto @@ -17,1337 +18,39 @@ require 'google/type/dayofweek_pb' require 'google/type/timeofday_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/privacy/dlp/v2/dlp.proto", :syntax => :proto3) do - add_message "google.privacy.dlp.v2.ExcludeInfoTypes" do - repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType" - end - add_message "google.privacy.dlp.v2.ExcludeByHotword" do - optional :hotword_regex, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Regex" - optional :proximity, :message, 2, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity" - end - add_message "google.privacy.dlp.v2.ExclusionRule" do - optional :matching_type, :enum, 4, "google.privacy.dlp.v2.MatchingType" - oneof :type do - optional :dictionary, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary" - optional :regex, :message, 2, "google.privacy.dlp.v2.CustomInfoType.Regex" - optional :exclude_info_types, :message, 3, "google.privacy.dlp.v2.ExcludeInfoTypes" - optional :exclude_by_hotword, :message, 5, "google.privacy.dlp.v2.ExcludeByHotword" - end - end - add_message "google.privacy.dlp.v2.InspectionRule" do - oneof :type do - optional :hotword_rule, :message, 1, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule" - optional :exclusion_rule, :message, 2, "google.privacy.dlp.v2.ExclusionRule" - end - end - add_message "google.privacy.dlp.v2.InspectionRuleSet" do - repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType" - repeated :rules, :message, 2, "google.privacy.dlp.v2.InspectionRule" - end - add_message "google.privacy.dlp.v2.InspectConfig" do - repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :min_likelihood, :enum, 2, "google.privacy.dlp.v2.Likelihood" - optional :limits, :message, 3, "google.privacy.dlp.v2.InspectConfig.FindingLimits" - optional :include_quote, :bool, 4 - optional :exclude_info_types, :bool, 5 - repeated :custom_info_types, :message, 6, "google.privacy.dlp.v2.CustomInfoType" - repeated :content_options, :enum, 8, "google.privacy.dlp.v2.ContentOption" - repeated :rule_set, :message, 10, "google.privacy.dlp.v2.InspectionRuleSet" - end - add_message "google.privacy.dlp.v2.InspectConfig.FindingLimits" do - optional :max_findings_per_item, :int32, 1 - optional :max_findings_per_request, :int32, 2 - repeated :max_findings_per_info_type, :message, 3, "google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit" - end - add_message "google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit" do - optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :max_findings, :int32, 2 - end - add_message "google.privacy.dlp.v2.ByteContentItem" do - optional :type, :enum, 1, "google.privacy.dlp.v2.ByteContentItem.BytesType" - optional :data, :bytes, 2 - end - add_enum "google.privacy.dlp.v2.ByteContentItem.BytesType" do - value :BYTES_TYPE_UNSPECIFIED, 0 - value :IMAGE, 6 - value :IMAGE_JPEG, 1 - value :IMAGE_BMP, 2 - value :IMAGE_PNG, 3 - value :IMAGE_SVG, 4 - value :TEXT_UTF8, 5 - value :WORD_DOCUMENT, 7 - value :PDF, 8 - value :POWERPOINT_DOCUMENT, 9 - value :EXCEL_DOCUMENT, 10 - value :AVRO, 11 - value :CSV, 12 - value :TSV, 13 - end - add_message "google.privacy.dlp.v2.ContentItem" do - oneof :data_item do - optional :value, :string, 3 - optional :table, :message, 4, "google.privacy.dlp.v2.Table" - optional :byte_item, :message, 5, "google.privacy.dlp.v2.ByteContentItem" - end - end - add_message "google.privacy.dlp.v2.Table" do - repeated :headers, :message, 1, "google.privacy.dlp.v2.FieldId" - repeated :rows, :message, 2, "google.privacy.dlp.v2.Table.Row" - end - add_message "google.privacy.dlp.v2.Table.Row" do - repeated :values, :message, 1, "google.privacy.dlp.v2.Value" - end - add_message "google.privacy.dlp.v2.InspectResult" do - repeated :findings, :message, 1, "google.privacy.dlp.v2.Finding" - optional :findings_truncated, :bool, 2 - end - add_message "google.privacy.dlp.v2.Finding" do - optional :name, :string, 14 - optional :quote, :string, 1 - optional :info_type, :message, 2, "google.privacy.dlp.v2.InfoType" - optional :likelihood, :enum, 3, "google.privacy.dlp.v2.Likelihood" - optional :location, :message, 4, "google.privacy.dlp.v2.Location" - optional :create_time, :message, 6, "google.protobuf.Timestamp" - optional :quote_info, :message, 7, "google.privacy.dlp.v2.QuoteInfo" - optional :resource_name, :string, 8 - optional :trigger_name, :string, 9 - map :labels, :string, :string, 10 - optional :job_create_time, :message, 11, "google.protobuf.Timestamp" - optional :job_name, :string, 13 - optional :finding_id, :string, 15 - end - add_message "google.privacy.dlp.v2.Location" do - optional :byte_range, :message, 1, "google.privacy.dlp.v2.Range" - optional :codepoint_range, :message, 2, "google.privacy.dlp.v2.Range" - repeated :content_locations, :message, 7, "google.privacy.dlp.v2.ContentLocation" - optional :container, :message, 8, "google.privacy.dlp.v2.Container" - end - add_message "google.privacy.dlp.v2.ContentLocation" do - optional :container_name, :string, 1 - optional :container_timestamp, :message, 6, "google.protobuf.Timestamp" - optional :container_version, :string, 7 - oneof :location do - optional :record_location, :message, 2, "google.privacy.dlp.v2.RecordLocation" - optional :image_location, :message, 3, "google.privacy.dlp.v2.ImageLocation" - optional :document_location, :message, 5, "google.privacy.dlp.v2.DocumentLocation" - optional :metadata_location, :message, 8, "google.privacy.dlp.v2.MetadataLocation" - end - end - add_message "google.privacy.dlp.v2.MetadataLocation" do - optional :type, :enum, 1, "google.privacy.dlp.v2.MetadataType" - oneof :label do - optional :storage_label, :message, 3, "google.privacy.dlp.v2.StorageMetadataLabel" - end - end - add_message "google.privacy.dlp.v2.StorageMetadataLabel" do - optional :key, :string, 1 - end - add_message "google.privacy.dlp.v2.DocumentLocation" do - optional :file_offset, :int64, 1 - end - add_message "google.privacy.dlp.v2.RecordLocation" do - optional :record_key, :message, 1, "google.privacy.dlp.v2.RecordKey" - optional :field_id, :message, 2, "google.privacy.dlp.v2.FieldId" - optional :table_location, :message, 3, "google.privacy.dlp.v2.TableLocation" - end - add_message "google.privacy.dlp.v2.TableLocation" do - optional :row_index, :int64, 1 - end - add_message "google.privacy.dlp.v2.Container" do - optional :type, :string, 1 - optional :project_id, :string, 2 - optional :full_path, :string, 3 - optional :root_path, :string, 4 - optional :relative_path, :string, 5 - optional :update_time, :message, 6, "google.protobuf.Timestamp" - optional :version, :string, 7 - end - add_message "google.privacy.dlp.v2.Range" do - optional :start, :int64, 1 - optional :end, :int64, 2 - end - add_message "google.privacy.dlp.v2.ImageLocation" do - repeated :bounding_boxes, :message, 1, "google.privacy.dlp.v2.BoundingBox" - end - add_message "google.privacy.dlp.v2.BoundingBox" do - optional :top, :int32, 1 - optional :left, :int32, 2 - optional :width, :int32, 3 - optional :height, :int32, 4 - end - add_message "google.privacy.dlp.v2.RedactImageRequest" do - optional :parent, :string, 1 - optional :location_id, :string, 8 - optional :inspect_config, :message, 2, "google.privacy.dlp.v2.InspectConfig" - repeated :image_redaction_configs, :message, 5, "google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig" - optional :include_findings, :bool, 6 - optional :byte_item, :message, 7, "google.privacy.dlp.v2.ByteContentItem" - end - add_message "google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig" do - optional :redaction_color, :message, 3, "google.privacy.dlp.v2.Color" - oneof :target do - optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :redact_all_text, :bool, 2 - end - end - add_message "google.privacy.dlp.v2.Color" do - optional :red, :float, 1 - optional :green, :float, 2 - optional :blue, :float, 3 - end - add_message "google.privacy.dlp.v2.RedactImageResponse" do - optional :redacted_image, :bytes, 1 - optional :extracted_text, :string, 2 - optional :inspect_result, :message, 3, "google.privacy.dlp.v2.InspectResult" - end - add_message "google.privacy.dlp.v2.DeidentifyContentRequest" do - optional :parent, :string, 1 - optional :deidentify_config, :message, 2, "google.privacy.dlp.v2.DeidentifyConfig" - optional :inspect_config, :message, 3, "google.privacy.dlp.v2.InspectConfig" - optional :item, :message, 4, "google.privacy.dlp.v2.ContentItem" - optional :inspect_template_name, :string, 5 - optional :deidentify_template_name, :string, 6 - optional :location_id, :string, 7 - end - add_message "google.privacy.dlp.v2.DeidentifyContentResponse" do - optional :item, :message, 1, "google.privacy.dlp.v2.ContentItem" - optional :overview, :message, 2, "google.privacy.dlp.v2.TransformationOverview" - end - add_message "google.privacy.dlp.v2.ReidentifyContentRequest" do - optional :parent, :string, 1 - optional :reidentify_config, :message, 2, "google.privacy.dlp.v2.DeidentifyConfig" - optional :inspect_config, :message, 3, "google.privacy.dlp.v2.InspectConfig" - optional :item, :message, 4, "google.privacy.dlp.v2.ContentItem" - optional :inspect_template_name, :string, 5 - optional :reidentify_template_name, :string, 6 - optional :location_id, :string, 7 - end - add_message "google.privacy.dlp.v2.ReidentifyContentResponse" do - optional :item, :message, 1, "google.privacy.dlp.v2.ContentItem" - optional :overview, :message, 2, "google.privacy.dlp.v2.TransformationOverview" - end - add_message "google.privacy.dlp.v2.InspectContentRequest" do - optional :parent, :string, 1 - optional :inspect_config, :message, 2, "google.privacy.dlp.v2.InspectConfig" - optional :item, :message, 3, "google.privacy.dlp.v2.ContentItem" - optional :inspect_template_name, :string, 4 - optional :location_id, :string, 5 - end - add_message "google.privacy.dlp.v2.InspectContentResponse" do - optional :result, :message, 1, "google.privacy.dlp.v2.InspectResult" - end - add_message "google.privacy.dlp.v2.OutputStorageConfig" do - optional :output_schema, :enum, 3, "google.privacy.dlp.v2.OutputStorageConfig.OutputSchema" - oneof :type do - optional :table, :message, 1, "google.privacy.dlp.v2.BigQueryTable" - end - end - add_enum "google.privacy.dlp.v2.OutputStorageConfig.OutputSchema" do - value :OUTPUT_SCHEMA_UNSPECIFIED, 0 - value :BASIC_COLUMNS, 1 - value :GCS_COLUMNS, 2 - value :DATASTORE_COLUMNS, 3 - value :BIG_QUERY_COLUMNS, 4 - value :ALL_COLUMNS, 5 - end - add_message "google.privacy.dlp.v2.InfoTypeStats" do - optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :count, :int64, 2 - end - add_message "google.privacy.dlp.v2.InspectDataSourceDetails" do - optional :requested_options, :message, 2, "google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions" - optional :result, :message, 3, "google.privacy.dlp.v2.InspectDataSourceDetails.Result" - end - add_message "google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions" do - optional :snapshot_inspect_template, :message, 1, "google.privacy.dlp.v2.InspectTemplate" - optional :job_config, :message, 3, "google.privacy.dlp.v2.InspectJobConfig" - end - add_message "google.privacy.dlp.v2.InspectDataSourceDetails.Result" do - optional :processed_bytes, :int64, 1 - optional :total_estimated_bytes, :int64, 2 - repeated :info_type_stats, :message, 3, "google.privacy.dlp.v2.InfoTypeStats" - optional :hybrid_stats, :message, 7, "google.privacy.dlp.v2.HybridInspectStatistics" - end - add_message "google.privacy.dlp.v2.HybridInspectStatistics" do - optional :processed_count, :int64, 1 - optional :aborted_count, :int64, 2 - optional :pending_count, :int64, 3 - end - add_message "google.privacy.dlp.v2.InfoTypeDescription" do - optional :name, :string, 1 - optional :display_name, :string, 2 - repeated :supported_by, :enum, 3, "google.privacy.dlp.v2.InfoTypeSupportedBy" - optional :description, :string, 4 - repeated :versions, :message, 9, "google.privacy.dlp.v2.VersionDescription" - repeated :categories, :message, 10, "google.privacy.dlp.v2.InfoTypeCategory" - end - add_message "google.privacy.dlp.v2.InfoTypeCategory" do - oneof :category do - optional :location_category, :enum, 1, "google.privacy.dlp.v2.InfoTypeCategory.LocationCategory" - optional :industry_category, :enum, 2, "google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory" - optional :type_category, :enum, 3, "google.privacy.dlp.v2.InfoTypeCategory.TypeCategory" - end - end - add_enum "google.privacy.dlp.v2.InfoTypeCategory.LocationCategory" do - value :LOCATION_UNSPECIFIED, 0 - value :GLOBAL, 1 - value :ARGENTINA, 2 - value :AUSTRALIA, 3 - value :BELGIUM, 4 - value :BRAZIL, 5 - value :CANADA, 6 - value :CHILE, 7 - value :CHINA, 8 - value :COLOMBIA, 9 - value :DENMARK, 10 - value :FRANCE, 11 - value :FINLAND, 12 - value :GERMANY, 13 - value :HONG_KONG, 14 - value :INDIA, 15 - value :INDONESIA, 16 - value :IRELAND, 17 - value :ISRAEL, 18 - value :ITALY, 19 - value :JAPAN, 20 - value :KOREA, 21 - value :MEXICO, 22 - value :THE_NETHERLANDS, 23 - value :NORWAY, 24 - value :PARAGUAY, 25 - value :PERU, 26 - value :POLAND, 27 - value :PORTUGAL, 28 - value :SINGAPORE, 29 - value :SOUTH_AFRICA, 30 - value :SPAIN, 31 - value :SWEDEN, 32 - value :TAIWAN, 33 - value :THAILAND, 34 - value :TURKEY, 35 - value :UNITED_KINGDOM, 36 - value :UNITED_STATES, 37 - value :URUGUAY, 38 - value :VENEZUELA, 39 - value :INTERNAL, 40 - value :NEW_ZEALAND, 41 - end - add_enum "google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory" do - value :INDUSTRY_UNSPECIFIED, 0 - value :FINANCE, 1 - value :HEALTH, 2 - value :TELECOMMUNICATIONS, 3 - end - add_enum "google.privacy.dlp.v2.InfoTypeCategory.TypeCategory" do - value :TYPE_UNSPECIFIED, 0 - value :PII, 1 - value :SPII, 2 - value :DEMOGRAPHIC, 3 - value :CREDENTIAL, 4 - value :GOVERNMENT_ID, 5 - value :DOCUMENT, 6 - value :CONTEXTUAL_INFORMATION, 7 - end - add_message "google.privacy.dlp.v2.VersionDescription" do - optional :version, :string, 1 - optional :description, :string, 2 - end - add_message "google.privacy.dlp.v2.ListInfoTypesRequest" do - optional :parent, :string, 4 - optional :language_code, :string, 1 - optional :filter, :string, 2 - optional :location_id, :string, 3 - end - add_message "google.privacy.dlp.v2.ListInfoTypesResponse" do - repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoTypeDescription" - end - add_message "google.privacy.dlp.v2.RiskAnalysisJobConfig" do - optional :privacy_metric, :message, 1, "google.privacy.dlp.v2.PrivacyMetric" - optional :source_table, :message, 2, "google.privacy.dlp.v2.BigQueryTable" - repeated :actions, :message, 3, "google.privacy.dlp.v2.Action" - end - add_message "google.privacy.dlp.v2.QuasiId" do - optional :field, :message, 1, "google.privacy.dlp.v2.FieldId" - oneof :tag do - optional :info_type, :message, 2, "google.privacy.dlp.v2.InfoType" - optional :custom_tag, :string, 3 - optional :inferred, :message, 4, "google.protobuf.Empty" - end - end - add_message "google.privacy.dlp.v2.StatisticalTable" do - optional :table, :message, 3, "google.privacy.dlp.v2.BigQueryTable" - repeated :quasi_ids, :message, 1, "google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField" - optional :relative_frequency, :message, 2, "google.privacy.dlp.v2.FieldId" - end - add_message "google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField" do - optional :field, :message, 1, "google.privacy.dlp.v2.FieldId" - optional :custom_tag, :string, 2 - end - add_message "google.privacy.dlp.v2.PrivacyMetric" do - oneof :type do - optional :numerical_stats_config, :message, 1, "google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig" - optional :categorical_stats_config, :message, 2, "google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig" - optional :k_anonymity_config, :message, 3, "google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig" - optional :l_diversity_config, :message, 4, "google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig" - optional :k_map_estimation_config, :message, 5, "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig" - optional :delta_presence_estimation_config, :message, 6, "google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig" - end - end - add_message "google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig" do - optional :field, :message, 1, "google.privacy.dlp.v2.FieldId" - end - add_message "google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig" do - optional :field, :message, 1, "google.privacy.dlp.v2.FieldId" - end - add_message "google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig" do - repeated :quasi_ids, :message, 1, "google.privacy.dlp.v2.FieldId" - optional :entity_id, :message, 2, "google.privacy.dlp.v2.EntityId" - end - add_message "google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig" do - repeated :quasi_ids, :message, 1, "google.privacy.dlp.v2.FieldId" - optional :sensitive_attribute, :message, 2, "google.privacy.dlp.v2.FieldId" - end - add_message "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig" do - repeated :quasi_ids, :message, 1, "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField" - optional :region_code, :string, 2 - repeated :auxiliary_tables, :message, 3, "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable" - end - add_message "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField" do - optional :field, :message, 1, "google.privacy.dlp.v2.FieldId" - oneof :tag do - optional :info_type, :message, 2, "google.privacy.dlp.v2.InfoType" - optional :custom_tag, :string, 3 - optional :inferred, :message, 4, "google.protobuf.Empty" - end - end - add_message "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable" do - optional :table, :message, 3, "google.privacy.dlp.v2.BigQueryTable" - repeated :quasi_ids, :message, 1, "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField" - optional :relative_frequency, :message, 2, "google.privacy.dlp.v2.FieldId" - end - add_message "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField" do - optional :field, :message, 1, "google.privacy.dlp.v2.FieldId" - optional :custom_tag, :string, 2 - end - add_message "google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig" do - repeated :quasi_ids, :message, 1, "google.privacy.dlp.v2.QuasiId" - optional :region_code, :string, 2 - repeated :auxiliary_tables, :message, 3, "google.privacy.dlp.v2.StatisticalTable" - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails" do - optional :requested_privacy_metric, :message, 1, "google.privacy.dlp.v2.PrivacyMetric" - optional :requested_source_table, :message, 2, "google.privacy.dlp.v2.BigQueryTable" - optional :requested_options, :message, 10, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions" - oneof :result do - optional :numerical_stats_result, :message, 3, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult" - optional :categorical_stats_result, :message, 4, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult" - optional :k_anonymity_result, :message, 5, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult" - optional :l_diversity_result, :message, 6, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult" - optional :k_map_estimation_result, :message, 7, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult" - optional :delta_presence_estimation_result, :message, 9, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult" - end - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult" do - optional :min_value, :message, 1, "google.privacy.dlp.v2.Value" - optional :max_value, :message, 2, "google.privacy.dlp.v2.Value" - repeated :quantile_values, :message, 4, "google.privacy.dlp.v2.Value" - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult" do - repeated :value_frequency_histogram_buckets, :message, 5, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket" - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket" do - optional :value_frequency_lower_bound, :int64, 1 - optional :value_frequency_upper_bound, :int64, 2 - optional :bucket_size, :int64, 3 - repeated :bucket_values, :message, 4, "google.privacy.dlp.v2.ValueFrequency" - optional :bucket_value_count, :int64, 5 - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult" do - repeated :equivalence_class_histogram_buckets, :message, 5, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket" - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass" do - repeated :quasi_ids_values, :message, 1, "google.privacy.dlp.v2.Value" - optional :equivalence_class_size, :int64, 2 - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket" do - optional :equivalence_class_size_lower_bound, :int64, 1 - optional :equivalence_class_size_upper_bound, :int64, 2 - optional :bucket_size, :int64, 3 - repeated :bucket_values, :message, 4, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass" - optional :bucket_value_count, :int64, 5 - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult" do - repeated :sensitive_value_frequency_histogram_buckets, :message, 5, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket" - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass" do - repeated :quasi_ids_values, :message, 1, "google.privacy.dlp.v2.Value" - optional :equivalence_class_size, :int64, 2 - optional :num_distinct_sensitive_values, :int64, 3 - repeated :top_sensitive_values, :message, 4, "google.privacy.dlp.v2.ValueFrequency" - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket" do - optional :sensitive_value_frequency_lower_bound, :int64, 1 - optional :sensitive_value_frequency_upper_bound, :int64, 2 - optional :bucket_size, :int64, 3 - repeated :bucket_values, :message, 4, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass" - optional :bucket_value_count, :int64, 5 - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult" do - repeated :k_map_estimation_histogram, :message, 1, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket" - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues" do - repeated :quasi_ids_values, :message, 1, "google.privacy.dlp.v2.Value" - optional :estimated_anonymity, :int64, 2 - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket" do - optional :min_anonymity, :int64, 1 - optional :max_anonymity, :int64, 2 - optional :bucket_size, :int64, 5 - repeated :bucket_values, :message, 6, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues" - optional :bucket_value_count, :int64, 7 - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult" do - repeated :delta_presence_estimation_histogram, :message, 1, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket" - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues" do - repeated :quasi_ids_values, :message, 1, "google.privacy.dlp.v2.Value" - optional :estimated_probability, :double, 2 - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket" do - optional :min_probability, :double, 1 - optional :max_probability, :double, 2 - optional :bucket_size, :int64, 5 - repeated :bucket_values, :message, 6, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues" - optional :bucket_value_count, :int64, 7 - end - add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions" do - optional :job_config, :message, 1, "google.privacy.dlp.v2.RiskAnalysisJobConfig" - end - add_message "google.privacy.dlp.v2.ValueFrequency" do - optional :value, :message, 1, "google.privacy.dlp.v2.Value" - optional :count, :int64, 2 - end - add_message "google.privacy.dlp.v2.Value" do - oneof :type do - optional :integer_value, :int64, 1 - optional :float_value, :double, 2 - optional :string_value, :string, 3 - optional :boolean_value, :bool, 4 - optional :timestamp_value, :message, 5, "google.protobuf.Timestamp" - optional :time_value, :message, 6, "google.type.TimeOfDay" - optional :date_value, :message, 7, "google.type.Date" - optional :day_of_week_value, :enum, 8, "google.type.DayOfWeek" - end - end - add_message "google.privacy.dlp.v2.QuoteInfo" do - oneof :parsed_quote do - optional :date_time, :message, 2, "google.privacy.dlp.v2.DateTime" - end - end - add_message "google.privacy.dlp.v2.DateTime" do - optional :date, :message, 1, "google.type.Date" - optional :day_of_week, :enum, 2, "google.type.DayOfWeek" - optional :time, :message, 3, "google.type.TimeOfDay" - optional :time_zone, :message, 4, "google.privacy.dlp.v2.DateTime.TimeZone" - end - add_message "google.privacy.dlp.v2.DateTime.TimeZone" do - optional :offset_minutes, :int32, 1 - end - add_message "google.privacy.dlp.v2.DeidentifyConfig" do - optional :transformation_error_handling, :message, 3, "google.privacy.dlp.v2.TransformationErrorHandling" - oneof :transformation do - optional :info_type_transformations, :message, 1, "google.privacy.dlp.v2.InfoTypeTransformations" - optional :record_transformations, :message, 2, "google.privacy.dlp.v2.RecordTransformations" - optional :image_transformations, :message, 4, "google.privacy.dlp.v2.ImageTransformations" - end - end - add_message "google.privacy.dlp.v2.ImageTransformations" do - repeated :transforms, :message, 2, "google.privacy.dlp.v2.ImageTransformations.ImageTransformation" - end - add_message "google.privacy.dlp.v2.ImageTransformations.ImageTransformation" do - optional :redaction_color, :message, 3, "google.privacy.dlp.v2.Color" - oneof :target do - optional :selected_info_types, :message, 4, "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes" - optional :all_info_types, :message, 5, "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes" - optional :all_text, :message, 6, "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText" - end - end - add_message "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes" do - repeated :info_types, :message, 5, "google.privacy.dlp.v2.InfoType" - end - add_message "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes" do - end - add_message "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText" do - end - add_message "google.privacy.dlp.v2.TransformationErrorHandling" do - oneof :mode do - optional :throw_error, :message, 1, "google.privacy.dlp.v2.TransformationErrorHandling.ThrowError" - optional :leave_untransformed, :message, 2, "google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed" - end - end - add_message "google.privacy.dlp.v2.TransformationErrorHandling.ThrowError" do - end - add_message "google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed" do - end - add_message "google.privacy.dlp.v2.PrimitiveTransformation" do - oneof :transformation do - optional :replace_config, :message, 1, "google.privacy.dlp.v2.ReplaceValueConfig" - optional :redact_config, :message, 2, "google.privacy.dlp.v2.RedactConfig" - optional :character_mask_config, :message, 3, "google.privacy.dlp.v2.CharacterMaskConfig" - optional :crypto_replace_ffx_fpe_config, :message, 4, "google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig" - optional :fixed_size_bucketing_config, :message, 5, "google.privacy.dlp.v2.FixedSizeBucketingConfig" - optional :bucketing_config, :message, 6, "google.privacy.dlp.v2.BucketingConfig" - optional :replace_with_info_type_config, :message, 7, "google.privacy.dlp.v2.ReplaceWithInfoTypeConfig" - optional :time_part_config, :message, 8, "google.privacy.dlp.v2.TimePartConfig" - optional :crypto_hash_config, :message, 9, "google.privacy.dlp.v2.CryptoHashConfig" - optional :date_shift_config, :message, 11, "google.privacy.dlp.v2.DateShiftConfig" - optional :crypto_deterministic_config, :message, 12, "google.privacy.dlp.v2.CryptoDeterministicConfig" - optional :replace_dictionary_config, :message, 13, "google.privacy.dlp.v2.ReplaceDictionaryConfig" - end - end - add_message "google.privacy.dlp.v2.TimePartConfig" do - optional :part_to_extract, :enum, 1, "google.privacy.dlp.v2.TimePartConfig.TimePart" - end - add_enum "google.privacy.dlp.v2.TimePartConfig.TimePart" do - value :TIME_PART_UNSPECIFIED, 0 - value :YEAR, 1 - value :MONTH, 2 - value :DAY_OF_MONTH, 3 - value :DAY_OF_WEEK, 4 - value :WEEK_OF_YEAR, 5 - value :HOUR_OF_DAY, 6 - end - add_message "google.privacy.dlp.v2.CryptoHashConfig" do - optional :crypto_key, :message, 1, "google.privacy.dlp.v2.CryptoKey" - end - add_message "google.privacy.dlp.v2.CryptoDeterministicConfig" do - optional :crypto_key, :message, 1, "google.privacy.dlp.v2.CryptoKey" - optional :surrogate_info_type, :message, 2, "google.privacy.dlp.v2.InfoType" - optional :context, :message, 3, "google.privacy.dlp.v2.FieldId" - end - add_message "google.privacy.dlp.v2.ReplaceValueConfig" do - optional :new_value, :message, 1, "google.privacy.dlp.v2.Value" - end - add_message "google.privacy.dlp.v2.ReplaceDictionaryConfig" do - oneof :type do - optional :word_list, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList" - end - end - add_message "google.privacy.dlp.v2.ReplaceWithInfoTypeConfig" do - end - add_message "google.privacy.dlp.v2.RedactConfig" do - end - add_message "google.privacy.dlp.v2.CharsToIgnore" do - oneof :characters do - optional :characters_to_skip, :string, 1 - optional :common_characters_to_ignore, :enum, 2, "google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore" - end - end - add_enum "google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore" do - value :COMMON_CHARS_TO_IGNORE_UNSPECIFIED, 0 - value :NUMERIC, 1 - value :ALPHA_UPPER_CASE, 2 - value :ALPHA_LOWER_CASE, 3 - value :PUNCTUATION, 4 - value :WHITESPACE, 5 - end - add_message "google.privacy.dlp.v2.CharacterMaskConfig" do - optional :masking_character, :string, 1 - optional :number_to_mask, :int32, 2 - optional :reverse_order, :bool, 3 - repeated :characters_to_ignore, :message, 4, "google.privacy.dlp.v2.CharsToIgnore" - end - add_message "google.privacy.dlp.v2.FixedSizeBucketingConfig" do - optional :lower_bound, :message, 1, "google.privacy.dlp.v2.Value" - optional :upper_bound, :message, 2, "google.privacy.dlp.v2.Value" - optional :bucket_size, :double, 3 - end - add_message "google.privacy.dlp.v2.BucketingConfig" do - repeated :buckets, :message, 1, "google.privacy.dlp.v2.BucketingConfig.Bucket" - end - add_message "google.privacy.dlp.v2.BucketingConfig.Bucket" do - optional :min, :message, 1, "google.privacy.dlp.v2.Value" - optional :max, :message, 2, "google.privacy.dlp.v2.Value" - optional :replacement_value, :message, 3, "google.privacy.dlp.v2.Value" - end - add_message "google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig" do - optional :crypto_key, :message, 1, "google.privacy.dlp.v2.CryptoKey" - optional :context, :message, 2, "google.privacy.dlp.v2.FieldId" - optional :surrogate_info_type, :message, 8, "google.privacy.dlp.v2.InfoType" - oneof :alphabet do - optional :common_alphabet, :enum, 4, "google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet" - optional :custom_alphabet, :string, 5 - optional :radix, :int32, 6 - end - end - add_enum "google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet" do - value :FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED, 0 - value :NUMERIC, 1 - value :HEXADECIMAL, 2 - value :UPPER_CASE_ALPHA_NUMERIC, 3 - value :ALPHA_NUMERIC, 4 - end - add_message "google.privacy.dlp.v2.CryptoKey" do - oneof :source do - optional :transient, :message, 1, "google.privacy.dlp.v2.TransientCryptoKey" - optional :unwrapped, :message, 2, "google.privacy.dlp.v2.UnwrappedCryptoKey" - optional :kms_wrapped, :message, 3, "google.privacy.dlp.v2.KmsWrappedCryptoKey" - end - end - add_message "google.privacy.dlp.v2.TransientCryptoKey" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.UnwrappedCryptoKey" do - optional :key, :bytes, 1 - end - add_message "google.privacy.dlp.v2.KmsWrappedCryptoKey" do - optional :wrapped_key, :bytes, 1 - optional :crypto_key_name, :string, 2 - end - add_message "google.privacy.dlp.v2.DateShiftConfig" do - optional :upper_bound_days, :int32, 1 - optional :lower_bound_days, :int32, 2 - optional :context, :message, 3, "google.privacy.dlp.v2.FieldId" - oneof :method do - optional :crypto_key, :message, 4, "google.privacy.dlp.v2.CryptoKey" - end - end - add_message "google.privacy.dlp.v2.InfoTypeTransformations" do - repeated :transformations, :message, 1, "google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation" - end - add_message "google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation" do - repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :primitive_transformation, :message, 2, "google.privacy.dlp.v2.PrimitiveTransformation" - end - add_message "google.privacy.dlp.v2.FieldTransformation" do - repeated :fields, :message, 1, "google.privacy.dlp.v2.FieldId" - optional :condition, :message, 3, "google.privacy.dlp.v2.RecordCondition" - oneof :transformation do - optional :primitive_transformation, :message, 4, "google.privacy.dlp.v2.PrimitiveTransformation" - optional :info_type_transformations, :message, 5, "google.privacy.dlp.v2.InfoTypeTransformations" - end - end - add_message "google.privacy.dlp.v2.RecordTransformations" do - repeated :field_transformations, :message, 1, "google.privacy.dlp.v2.FieldTransformation" - repeated :record_suppressions, :message, 2, "google.privacy.dlp.v2.RecordSuppression" - end - add_message "google.privacy.dlp.v2.RecordSuppression" do - optional :condition, :message, 1, "google.privacy.dlp.v2.RecordCondition" - end - add_message "google.privacy.dlp.v2.RecordCondition" do - optional :expressions, :message, 3, "google.privacy.dlp.v2.RecordCondition.Expressions" - end - add_message "google.privacy.dlp.v2.RecordCondition.Condition" do - optional :field, :message, 1, "google.privacy.dlp.v2.FieldId" - optional :operator, :enum, 3, "google.privacy.dlp.v2.RelationalOperator" - optional :value, :message, 4, "google.privacy.dlp.v2.Value" - end - add_message "google.privacy.dlp.v2.RecordCondition.Conditions" do - repeated :conditions, :message, 1, "google.privacy.dlp.v2.RecordCondition.Condition" - end - add_message "google.privacy.dlp.v2.RecordCondition.Expressions" do - optional :logical_operator, :enum, 1, "google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator" - oneof :type do - optional :conditions, :message, 3, "google.privacy.dlp.v2.RecordCondition.Conditions" - end - end - add_enum "google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator" do - value :LOGICAL_OPERATOR_UNSPECIFIED, 0 - value :AND, 1 - end - add_message "google.privacy.dlp.v2.TransformationOverview" do - optional :transformed_bytes, :int64, 2 - repeated :transformation_summaries, :message, 3, "google.privacy.dlp.v2.TransformationSummary" - end - add_message "google.privacy.dlp.v2.TransformationSummary" do - optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :field, :message, 2, "google.privacy.dlp.v2.FieldId" - optional :transformation, :message, 3, "google.privacy.dlp.v2.PrimitiveTransformation" - repeated :field_transformations, :message, 5, "google.privacy.dlp.v2.FieldTransformation" - optional :record_suppress, :message, 6, "google.privacy.dlp.v2.RecordSuppression" - repeated :results, :message, 4, "google.privacy.dlp.v2.TransformationSummary.SummaryResult" - optional :transformed_bytes, :int64, 7 - end - add_message "google.privacy.dlp.v2.TransformationSummary.SummaryResult" do - optional :count, :int64, 1 - optional :code, :enum, 2, "google.privacy.dlp.v2.TransformationSummary.TransformationResultCode" - optional :details, :string, 3 - end - add_enum "google.privacy.dlp.v2.TransformationSummary.TransformationResultCode" do - value :TRANSFORMATION_RESULT_CODE_UNSPECIFIED, 0 - value :SUCCESS, 1 - value :ERROR, 2 - end - add_message "google.privacy.dlp.v2.TransformationDescription" do - optional :type, :enum, 1, "google.privacy.dlp.v2.TransformationType" - optional :description, :string, 2 - optional :condition, :string, 3 - optional :info_type, :message, 4, "google.privacy.dlp.v2.InfoType" - end - add_message "google.privacy.dlp.v2.TransformationDetails" do - optional :resource_name, :string, 1 - optional :container_name, :string, 2 - repeated :transformation, :message, 3, "google.privacy.dlp.v2.TransformationDescription" - optional :status_details, :message, 4, "google.privacy.dlp.v2.TransformationResultStatus" - optional :transformed_bytes, :int64, 5 - optional :transformation_location, :message, 6, "google.privacy.dlp.v2.TransformationLocation" - end - add_message "google.privacy.dlp.v2.TransformationLocation" do - optional :container_type, :enum, 3, "google.privacy.dlp.v2.TransformationContainerType" - oneof :location_type do - optional :finding_id, :string, 1 - optional :record_transformation, :message, 2, "google.privacy.dlp.v2.RecordTransformation" - end - end - add_message "google.privacy.dlp.v2.RecordTransformation" do - optional :field_id, :message, 1, "google.privacy.dlp.v2.FieldId" - optional :container_timestamp, :message, 2, "google.protobuf.Timestamp" - optional :container_version, :string, 3 - end - add_message "google.privacy.dlp.v2.TransformationResultStatus" do - optional :result_status_type, :enum, 1, "google.privacy.dlp.v2.TransformationResultStatusType" - optional :details, :message, 2, "google.rpc.Status" - end - add_message "google.privacy.dlp.v2.TransformationDetailsStorageConfig" do - oneof :type do - optional :table, :message, 1, "google.privacy.dlp.v2.BigQueryTable" - end - end - add_message "google.privacy.dlp.v2.Schedule" do - oneof :option do - optional :recurrence_period_duration, :message, 1, "google.protobuf.Duration" - end - end - add_message "google.privacy.dlp.v2.Manual" do - end - add_message "google.privacy.dlp.v2.InspectTemplate" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - optional :inspect_config, :message, 6, "google.privacy.dlp.v2.InspectConfig" - end - add_message "google.privacy.dlp.v2.DeidentifyTemplate" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - optional :deidentify_config, :message, 6, "google.privacy.dlp.v2.DeidentifyConfig" - end - add_message "google.privacy.dlp.v2.Error" do - optional :details, :message, 1, "google.rpc.Status" - repeated :timestamps, :message, 2, "google.protobuf.Timestamp" - end - add_message "google.privacy.dlp.v2.JobTrigger" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :description, :string, 3 - repeated :triggers, :message, 5, "google.privacy.dlp.v2.JobTrigger.Trigger" - repeated :errors, :message, 6, "google.privacy.dlp.v2.Error" - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :update_time, :message, 8, "google.protobuf.Timestamp" - optional :last_run_time, :message, 9, "google.protobuf.Timestamp" - optional :status, :enum, 10, "google.privacy.dlp.v2.JobTrigger.Status" - oneof :job do - optional :inspect_job, :message, 4, "google.privacy.dlp.v2.InspectJobConfig" - end - end - add_message "google.privacy.dlp.v2.JobTrigger.Trigger" do - oneof :trigger do - optional :schedule, :message, 1, "google.privacy.dlp.v2.Schedule" - optional :manual, :message, 2, "google.privacy.dlp.v2.Manual" - end - end - add_enum "google.privacy.dlp.v2.JobTrigger.Status" do - value :STATUS_UNSPECIFIED, 0 - value :HEALTHY, 1 - value :PAUSED, 2 - value :CANCELLED, 3 - end - add_message "google.privacy.dlp.v2.Action" do - oneof :action do - optional :save_findings, :message, 1, "google.privacy.dlp.v2.Action.SaveFindings" - optional :pub_sub, :message, 2, "google.privacy.dlp.v2.Action.PublishToPubSub" - optional :publish_summary_to_cscc, :message, 3, "google.privacy.dlp.v2.Action.PublishSummaryToCscc" - optional :publish_findings_to_cloud_data_catalog, :message, 5, "google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog" - optional :deidentify, :message, 7, "google.privacy.dlp.v2.Action.Deidentify" - optional :job_notification_emails, :message, 8, "google.privacy.dlp.v2.Action.JobNotificationEmails" - optional :publish_to_stackdriver, :message, 9, "google.privacy.dlp.v2.Action.PublishToStackdriver" - end - end - add_message "google.privacy.dlp.v2.Action.SaveFindings" do - optional :output_config, :message, 1, "google.privacy.dlp.v2.OutputStorageConfig" - end - add_message "google.privacy.dlp.v2.Action.PublishToPubSub" do - optional :topic, :string, 1 - end - add_message "google.privacy.dlp.v2.Action.PublishSummaryToCscc" do - end - add_message "google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog" do - end - add_message "google.privacy.dlp.v2.Action.Deidentify" do - optional :transformation_config, :message, 7, "google.privacy.dlp.v2.TransformationConfig" - optional :transformation_details_storage_config, :message, 3, "google.privacy.dlp.v2.TransformationDetailsStorageConfig" - repeated :file_types_to_transform, :enum, 8, "google.privacy.dlp.v2.FileType" - oneof :output do - optional :cloud_storage_output, :string, 9 - end - end - add_message "google.privacy.dlp.v2.Action.JobNotificationEmails" do - end - add_message "google.privacy.dlp.v2.Action.PublishToStackdriver" do - end - add_message "google.privacy.dlp.v2.TransformationConfig" do - optional :deidentify_template, :string, 1 - optional :structured_deidentify_template, :string, 2 - optional :image_redact_template, :string, 4 - end - add_message "google.privacy.dlp.v2.CreateInspectTemplateRequest" do - optional :parent, :string, 1 - optional :inspect_template, :message, 2, "google.privacy.dlp.v2.InspectTemplate" - optional :template_id, :string, 3 - optional :location_id, :string, 4 - end - add_message "google.privacy.dlp.v2.UpdateInspectTemplateRequest" do - optional :name, :string, 1 - optional :inspect_template, :message, 2, "google.privacy.dlp.v2.InspectTemplate" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.privacy.dlp.v2.GetInspectTemplateRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.ListInspectTemplatesRequest" do - optional :parent, :string, 1 - optional :page_token, :string, 2 - optional :page_size, :int32, 3 - optional :order_by, :string, 4 - optional :location_id, :string, 5 - end - add_message "google.privacy.dlp.v2.ListInspectTemplatesResponse" do - repeated :inspect_templates, :message, 1, "google.privacy.dlp.v2.InspectTemplate" - optional :next_page_token, :string, 2 - end - add_message "google.privacy.dlp.v2.DeleteInspectTemplateRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.CreateJobTriggerRequest" do - optional :parent, :string, 1 - optional :job_trigger, :message, 2, "google.privacy.dlp.v2.JobTrigger" - optional :trigger_id, :string, 3 - optional :location_id, :string, 4 - end - add_message "google.privacy.dlp.v2.ActivateJobTriggerRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.UpdateJobTriggerRequest" do - optional :name, :string, 1 - optional :job_trigger, :message, 2, "google.privacy.dlp.v2.JobTrigger" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.privacy.dlp.v2.GetJobTriggerRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.CreateDlpJobRequest" do - optional :parent, :string, 1 - optional :job_id, :string, 4 - optional :location_id, :string, 5 - oneof :job do - optional :inspect_job, :message, 2, "google.privacy.dlp.v2.InspectJobConfig" - optional :risk_job, :message, 3, "google.privacy.dlp.v2.RiskAnalysisJobConfig" - end - end - add_message "google.privacy.dlp.v2.ListJobTriggersRequest" do - optional :parent, :string, 1 - optional :page_token, :string, 2 - optional :page_size, :int32, 3 - optional :order_by, :string, 4 - optional :filter, :string, 5 - optional :type, :enum, 6, "google.privacy.dlp.v2.DlpJobType" - optional :location_id, :string, 7 - end - add_message "google.privacy.dlp.v2.ListJobTriggersResponse" do - repeated :job_triggers, :message, 1, "google.privacy.dlp.v2.JobTrigger" - optional :next_page_token, :string, 2 - end - add_message "google.privacy.dlp.v2.DeleteJobTriggerRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.InspectJobConfig" do - optional :storage_config, :message, 1, "google.privacy.dlp.v2.StorageConfig" - optional :inspect_config, :message, 2, "google.privacy.dlp.v2.InspectConfig" - optional :inspect_template_name, :string, 3 - repeated :actions, :message, 4, "google.privacy.dlp.v2.Action" - end - add_message "google.privacy.dlp.v2.DataProfileAction" do - oneof :action do - optional :export_data, :message, 1, "google.privacy.dlp.v2.DataProfileAction.Export" - optional :pub_sub_notification, :message, 2, "google.privacy.dlp.v2.DataProfileAction.PubSubNotification" - end - end - add_message "google.privacy.dlp.v2.DataProfileAction.Export" do - optional :profile_table, :message, 1, "google.privacy.dlp.v2.BigQueryTable" - end - add_message "google.privacy.dlp.v2.DataProfileAction.PubSubNotification" do - optional :topic, :string, 1 - optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType" - optional :pubsub_condition, :message, 3, "google.privacy.dlp.v2.DataProfilePubSubCondition" - optional :detail_of_message, :enum, 4, "google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel" - end - add_enum "google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel" do - value :DETAIL_LEVEL_UNSPECIFIED, 0 - value :TABLE_PROFILE, 1 - value :RESOURCE_NAME, 2 - end - add_enum "google.privacy.dlp.v2.DataProfileAction.EventType" do - value :EVENT_TYPE_UNSPECIFIED, 0 - value :NEW_PROFILE, 1 - value :CHANGED_PROFILE, 2 - value :SCORE_INCREASED, 3 - value :ERROR_CHANGED, 4 - end - add_message "google.privacy.dlp.v2.DataProfileJobConfig" do - optional :location, :message, 1, "google.privacy.dlp.v2.DataProfileLocation" - optional :project_id, :string, 5 - repeated :inspect_templates, :string, 7 - repeated :data_profile_actions, :message, 6, "google.privacy.dlp.v2.DataProfileAction" - end - add_message "google.privacy.dlp.v2.DataProfileLocation" do - oneof :location do - optional :organization_id, :int64, 1 - optional :folder_id, :int64, 2 - end - end - add_message "google.privacy.dlp.v2.DlpJob" do - optional :name, :string, 1 - optional :type, :enum, 2, "google.privacy.dlp.v2.DlpJobType" - optional :state, :enum, 3, "google.privacy.dlp.v2.DlpJob.JobState" - optional :create_time, :message, 6, "google.protobuf.Timestamp" - optional :start_time, :message, 7, "google.protobuf.Timestamp" - optional :end_time, :message, 8, "google.protobuf.Timestamp" - optional :job_trigger_name, :string, 10 - repeated :errors, :message, 11, "google.privacy.dlp.v2.Error" - oneof :details do - optional :risk_details, :message, 4, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails" - optional :inspect_details, :message, 5, "google.privacy.dlp.v2.InspectDataSourceDetails" - end - end - add_enum "google.privacy.dlp.v2.DlpJob.JobState" do - value :JOB_STATE_UNSPECIFIED, 0 - value :PENDING, 1 - value :RUNNING, 2 - value :DONE, 3 - value :CANCELED, 4 - value :FAILED, 5 - value :ACTIVE, 6 - end - add_message "google.privacy.dlp.v2.GetDlpJobRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.ListDlpJobsRequest" do - optional :parent, :string, 4 - optional :filter, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :type, :enum, 5, "google.privacy.dlp.v2.DlpJobType" - optional :order_by, :string, 6 - optional :location_id, :string, 7 - end - add_message "google.privacy.dlp.v2.ListDlpJobsResponse" do - repeated :jobs, :message, 1, "google.privacy.dlp.v2.DlpJob" - optional :next_page_token, :string, 2 - end - add_message "google.privacy.dlp.v2.CancelDlpJobRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.FinishDlpJobRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.DeleteDlpJobRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.CreateDeidentifyTemplateRequest" do - optional :parent, :string, 1 - optional :deidentify_template, :message, 2, "google.privacy.dlp.v2.DeidentifyTemplate" - optional :template_id, :string, 3 - optional :location_id, :string, 4 - end - add_message "google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest" do - optional :name, :string, 1 - optional :deidentify_template, :message, 2, "google.privacy.dlp.v2.DeidentifyTemplate" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.privacy.dlp.v2.GetDeidentifyTemplateRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.ListDeidentifyTemplatesRequest" do - optional :parent, :string, 1 - optional :page_token, :string, 2 - optional :page_size, :int32, 3 - optional :order_by, :string, 4 - optional :location_id, :string, 5 - end - add_message "google.privacy.dlp.v2.ListDeidentifyTemplatesResponse" do - repeated :deidentify_templates, :message, 1, "google.privacy.dlp.v2.DeidentifyTemplate" - optional :next_page_token, :string, 2 - end - add_message "google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.LargeCustomDictionaryConfig" do - optional :output_path, :message, 1, "google.privacy.dlp.v2.CloudStoragePath" - oneof :source do - optional :cloud_storage_file_set, :message, 2, "google.privacy.dlp.v2.CloudStorageFileSet" - optional :big_query_field, :message, 3, "google.privacy.dlp.v2.BigQueryField" - end - end - add_message "google.privacy.dlp.v2.LargeCustomDictionaryStats" do - optional :approx_num_phrases, :int64, 1 - end - add_message "google.privacy.dlp.v2.StoredInfoTypeConfig" do - optional :display_name, :string, 1 - optional :description, :string, 2 - oneof :type do - optional :large_custom_dictionary, :message, 3, "google.privacy.dlp.v2.LargeCustomDictionaryConfig" - optional :dictionary, :message, 4, "google.privacy.dlp.v2.CustomInfoType.Dictionary" - optional :regex, :message, 5, "google.privacy.dlp.v2.CustomInfoType.Regex" - end - end - add_message "google.privacy.dlp.v2.StoredInfoTypeStats" do - oneof :type do - optional :large_custom_dictionary, :message, 1, "google.privacy.dlp.v2.LargeCustomDictionaryStats" - end - end - add_message "google.privacy.dlp.v2.StoredInfoTypeVersion" do - optional :config, :message, 1, "google.privacy.dlp.v2.StoredInfoTypeConfig" - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :state, :enum, 3, "google.privacy.dlp.v2.StoredInfoTypeState" - repeated :errors, :message, 4, "google.privacy.dlp.v2.Error" - optional :stats, :message, 5, "google.privacy.dlp.v2.StoredInfoTypeStats" - end - add_message "google.privacy.dlp.v2.StoredInfoType" do - optional :name, :string, 1 - optional :current_version, :message, 2, "google.privacy.dlp.v2.StoredInfoTypeVersion" - repeated :pending_versions, :message, 3, "google.privacy.dlp.v2.StoredInfoTypeVersion" - end - add_message "google.privacy.dlp.v2.CreateStoredInfoTypeRequest" do - optional :parent, :string, 1 - optional :config, :message, 2, "google.privacy.dlp.v2.StoredInfoTypeConfig" - optional :stored_info_type_id, :string, 3 - optional :location_id, :string, 4 - end - add_message "google.privacy.dlp.v2.UpdateStoredInfoTypeRequest" do - optional :name, :string, 1 - optional :config, :message, 2, "google.privacy.dlp.v2.StoredInfoTypeConfig" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.privacy.dlp.v2.GetStoredInfoTypeRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.ListStoredInfoTypesRequest" do - optional :parent, :string, 1 - optional :page_token, :string, 2 - optional :page_size, :int32, 3 - optional :order_by, :string, 4 - optional :location_id, :string, 5 - end - add_message "google.privacy.dlp.v2.ListStoredInfoTypesResponse" do - repeated :stored_info_types, :message, 1, "google.privacy.dlp.v2.StoredInfoType" - optional :next_page_token, :string, 2 - end - add_message "google.privacy.dlp.v2.DeleteStoredInfoTypeRequest" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.HybridInspectJobTriggerRequest" do - optional :name, :string, 1 - optional :hybrid_item, :message, 3, "google.privacy.dlp.v2.HybridContentItem" - end - add_message "google.privacy.dlp.v2.HybridInspectDlpJobRequest" do - optional :name, :string, 1 - optional :hybrid_item, :message, 3, "google.privacy.dlp.v2.HybridContentItem" - end - add_message "google.privacy.dlp.v2.HybridContentItem" do - optional :item, :message, 1, "google.privacy.dlp.v2.ContentItem" - optional :finding_details, :message, 2, "google.privacy.dlp.v2.HybridFindingDetails" - end - add_message "google.privacy.dlp.v2.HybridFindingDetails" do - optional :container_details, :message, 1, "google.privacy.dlp.v2.Container" - optional :file_offset, :int64, 2 - optional :row_offset, :int64, 3 - optional :table_options, :message, 4, "google.privacy.dlp.v2.TableOptions" - map :labels, :string, :string, 5 - end - add_message "google.privacy.dlp.v2.HybridInspectResponse" do - end - add_message "google.privacy.dlp.v2.DataRiskLevel" do - optional :score, :enum, 1, "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore" - end - add_enum "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore" do - value :RISK_SCORE_UNSPECIFIED, 0 - value :RISK_LOW, 10 - value :RISK_MODERATE, 20 - value :RISK_HIGH, 30 - end - add_message "google.privacy.dlp.v2.DataProfileConfigSnapshot" do - optional :inspect_config, :message, 2, "google.privacy.dlp.v2.InspectConfig" - optional :data_profile_job, :message, 3, "google.privacy.dlp.v2.DataProfileJobConfig" - end - add_message "google.privacy.dlp.v2.TableDataProfile" do - optional :name, :string, 1 - optional :project_data_profile, :string, 2 - optional :dataset_project_id, :string, 24 - optional :dataset_location, :string, 29 - optional :dataset_id, :string, 25 - optional :table_id, :string, 26 - optional :full_resource, :string, 3 - optional :profile_status, :message, 21, "google.privacy.dlp.v2.ProfileStatus" - optional :state, :enum, 22, "google.privacy.dlp.v2.TableDataProfile.State" - optional :sensitivity_score, :message, 5, "google.privacy.dlp.v2.SensitivityScore" - optional :data_risk_level, :message, 6, "google.privacy.dlp.v2.DataRiskLevel" - repeated :predicted_info_types, :message, 27, "google.privacy.dlp.v2.InfoTypeSummary" - repeated :other_info_types, :message, 28, "google.privacy.dlp.v2.OtherInfoTypeSummary" - optional :config_snapshot, :message, 7, "google.privacy.dlp.v2.DataProfileConfigSnapshot" - optional :last_modified_time, :message, 8, "google.protobuf.Timestamp" - optional :expiration_time, :message, 9, "google.protobuf.Timestamp" - optional :scanned_column_count, :int64, 10 - optional :failed_column_count, :int64, 11 - optional :table_size_bytes, :int64, 12 - optional :row_count, :int64, 13 - optional :encryption_status, :enum, 14, "google.privacy.dlp.v2.EncryptionStatus" - optional :resource_visibility, :enum, 15, "google.privacy.dlp.v2.ResourceVisibility" - optional :profile_last_generated, :message, 16, "google.protobuf.Timestamp" - map :resource_labels, :string, :string, 17 - optional :create_time, :message, 23, "google.protobuf.Timestamp" - end - add_enum "google.privacy.dlp.v2.TableDataProfile.State" do - value :STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :DONE, 2 - end - add_message "google.privacy.dlp.v2.ProfileStatus" do - optional :status, :message, 1, "google.rpc.Status" - optional :timestamp, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.privacy.dlp.v2.InfoTypeSummary" do - optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :estimated_prevalence, :int32, 2 - end - add_message "google.privacy.dlp.v2.OtherInfoTypeSummary" do - optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :estimated_prevalence, :int32, 2 - end - add_message "google.privacy.dlp.v2.DataProfilePubSubCondition" do - optional :expressions, :message, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions" - end - add_message "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition" do - oneof :value do - optional :minimum_risk_score, :enum, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket" - optional :minimum_sensitivity_score, :enum, 2, "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket" - end - end - add_message "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions" do - optional :logical_operator, :enum, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator" - repeated :conditions, :message, 2, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition" - end - add_enum "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator" do - value :LOGICAL_OPERATOR_UNSPECIFIED, 0 - value :OR, 1 - value :AND, 2 - end - add_enum "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket" do - value :PROFILE_SCORE_BUCKET_UNSPECIFIED, 0 - value :HIGH, 1 - value :MEDIUM_OR_HIGH, 2 - end - add_message "google.privacy.dlp.v2.DataProfilePubSubMessage" do - optional :profile, :message, 1, "google.privacy.dlp.v2.TableDataProfile" - optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType" - end - add_enum "google.privacy.dlp.v2.TransformationResultStatusType" do - value :STATE_TYPE_UNSPECIFIED, 0 - value :INVALID_TRANSFORM, 1 - value :BIGQUERY_MAX_ROW_SIZE_EXCEEDED, 2 - value :METADATA_UNRETRIEVABLE, 3 - value :SUCCESS, 4 - end - add_enum "google.privacy.dlp.v2.TransformationContainerType" do - value :TRANSFORM_UNKNOWN_CONTAINER, 0 - value :TRANSFORM_BODY, 1 - value :TRANSFORM_METADATA, 2 - value :TRANSFORM_TABLE, 3 - end - add_enum "google.privacy.dlp.v2.TransformationType" do - value :TRANSFORMATION_TYPE_UNSPECIFIED, 0 - value :RECORD_SUPPRESSION, 1 - value :REPLACE_VALUE, 2 - value :REPLACE_DICTIONARY, 15 - value :REDACT, 3 - value :CHARACTER_MASK, 4 - value :CRYPTO_REPLACE_FFX_FPE, 5 - value :FIXED_SIZE_BUCKETING, 6 - value :BUCKETING, 7 - value :REPLACE_WITH_INFO_TYPE, 8 - value :TIME_PART, 9 - value :CRYPTO_HASH, 10 - value :DATE_SHIFT, 12 - value :CRYPTO_DETERMINISTIC_CONFIG, 13 - value :REDACT_IMAGE, 14 - end - add_enum "google.privacy.dlp.v2.RelationalOperator" do - value :RELATIONAL_OPERATOR_UNSPECIFIED, 0 - value :EQUAL_TO, 1 - value :NOT_EQUAL_TO, 2 - value :GREATER_THAN, 3 - value :LESS_THAN, 4 - value :GREATER_THAN_OR_EQUALS, 5 - value :LESS_THAN_OR_EQUALS, 6 - value :EXISTS, 7 - end - add_enum "google.privacy.dlp.v2.MatchingType" do - value :MATCHING_TYPE_UNSPECIFIED, 0 - value :MATCHING_TYPE_FULL_MATCH, 1 - value :MATCHING_TYPE_PARTIAL_MATCH, 2 - value :MATCHING_TYPE_INVERSE_MATCH, 3 - end - add_enum "google.privacy.dlp.v2.ContentOption" do - value :CONTENT_UNSPECIFIED, 0 - value :CONTENT_TEXT, 1 - value :CONTENT_IMAGE, 2 - end - add_enum "google.privacy.dlp.v2.MetadataType" do - value :METADATATYPE_UNSPECIFIED, 0 - value :STORAGE_METADATA, 2 - end - add_enum "google.privacy.dlp.v2.InfoTypeSupportedBy" do - value :ENUM_TYPE_UNSPECIFIED, 0 - value :INSPECT, 1 - value :RISK_ANALYSIS, 2 - end - add_enum "google.privacy.dlp.v2.DlpJobType" do - value :DLP_JOB_TYPE_UNSPECIFIED, 0 - value :INSPECT_JOB, 1 - value :RISK_ANALYSIS_JOB, 2 - end - add_enum "google.privacy.dlp.v2.StoredInfoTypeState" do - value :STORED_INFO_TYPE_STATE_UNSPECIFIED, 0 - value :PENDING, 1 - value :READY, 2 - value :FAILED, 3 - value :INVALID, 4 - end - add_enum "google.privacy.dlp.v2.ResourceVisibility" do - value :RESOURCE_VISIBILITY_UNSPECIFIED, 0 - value :RESOURCE_VISIBILITY_PUBLIC, 10 - value :RESOURCE_VISIBILITY_RESTRICTED, 20 - end - add_enum "google.privacy.dlp.v2.EncryptionStatus" do - value :ENCRYPTION_STATUS_UNSPECIFIED, 0 - value :ENCRYPTION_GOOGLE_MANAGED, 1 - value :ENCRYPTION_CUSTOMER_MANAGED, 2 + +descriptor_data = "\n\x1fgoogle/privacy/dlp/v2/dlp.proto\x12\x15google.privacy.dlp.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/privacy/dlp/v2/storage.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"G\n\x10\x45xcludeInfoTypes\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\"\xa8\x01\n\x10\x45xcludeByHotword\x12\x42\n\rhotword_regex\x18\x01 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\n\tproximity\x18\x02 \x01(\x0b\x32=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\"\xe7\x02\n\rExclusionRule\x12\x46\n\ndictionary\x18\x01 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\n\x05regex\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12\x45\n\x12\x65xclude_info_types\x18\x03 \x01(\x0b\x32\'.google.privacy.dlp.v2.ExcludeInfoTypesH\x00\x12\x45\n\x12\x65xclude_by_hotword\x18\x05 \x01(\x0b\x32\'.google.privacy.dlp.v2.ExcludeByHotwordH\x00\x12:\n\rmatching_type\x18\x04 \x01(\x0e\x32#.google.privacy.dlp.v2.MatchingTypeB\x06\n\x04type\"\xb1\x01\n\x0eInspectionRule\x12W\n\x0chotword_rule\x18\x01 \x01(\x0b\x32?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x12>\n\x0e\x65xclusion_rule\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.ExclusionRuleH\x00\x42\x06\n\x04type\"~\n\x11InspectionRuleSet\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x34\n\x05rules\x18\x02 \x03(\x0b\x32%.google.privacy.dlp.v2.InspectionRule\"\xc7\x05\n\rInspectConfig\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x39\n\x0emin_likelihood\x18\x02 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x42\n\x06limits\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.InspectConfig.FindingLimits\x12\x15\n\rinclude_quote\x18\x04 \x01(\x08\x12\x1a\n\x12\x65xclude_info_types\x18\x05 \x01(\x08\x12@\n\x11\x63ustom_info_types\x18\x06 \x03(\x0b\x32%.google.privacy.dlp.v2.CustomInfoType\x12=\n\x0f\x63ontent_options\x18\x08 \x03(\x0e\x32$.google.privacy.dlp.v2.ContentOption\x12:\n\x08rule_set\x18\n \x03(\x0b\x32(.google.privacy.dlp.v2.InspectionRuleSet\x1a\x91\x02\n\rFindingLimits\x12\x1d\n\x15max_findings_per_item\x18\x01 \x01(\x05\x12 \n\x18max_findings_per_request\x18\x02 \x01(\x05\x12\x64\n\x1amax_findings_per_info_type\x18\x03 \x03(\x0b\x32@.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit\x1aY\n\rInfoTypeLimit\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x14\n\x0cmax_findings\x18\x02 \x01(\x05\"\xc5\x02\n\x0f\x42yteContentItem\x12>\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.privacy.dlp.v2.ByteContentItem.BytesType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"\xe3\x01\n\tBytesType\x12\x1a\n\x16\x42YTES_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05IMAGE\x10\x06\x12\x0e\n\nIMAGE_JPEG\x10\x01\x12\r\n\tIMAGE_BMP\x10\x02\x12\r\n\tIMAGE_PNG\x10\x03\x12\r\n\tIMAGE_SVG\x10\x04\x12\r\n\tTEXT_UTF8\x10\x05\x12\x11\n\rWORD_DOCUMENT\x10\x07\x12\x07\n\x03PDF\x10\x08\x12\x17\n\x13POWERPOINT_DOCUMENT\x10\t\x12\x12\n\x0e\x45XCEL_DOCUMENT\x10\n\x12\x08\n\x04\x41VRO\x10\x0b\x12\x07\n\x03\x43SV\x10\x0c\x12\x07\n\x03TSV\x10\r\"\x97\x01\n\x0b\x43ontentItem\x12\x0f\n\x05value\x18\x03 \x01(\tH\x00\x12-\n\x05table\x18\x04 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.TableH\x00\x12;\n\tbyte_item\x18\x05 \x01(\x0b\x32&.google.privacy.dlp.v2.ByteContentItemH\x00\x42\x0b\n\tdata_item\"\x9d\x01\n\x05Table\x12/\n\x07headers\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12.\n\x04rows\x18\x02 \x03(\x0b\x32 .google.privacy.dlp.v2.Table.Row\x1a\x33\n\x03Row\x12,\n\x06values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\"]\n\rInspectResult\x12\x30\n\x08\x66indings\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.Finding\x12\x1a\n\x12\x66indings_truncated\x18\x02 \x01(\x08\"\xdf\x05\n\x07\x46inding\x12\x0c\n\x04name\x18\x0e \x01(\t\x12\r\n\x05quote\x18\x01 \x01(\t\x12\x32\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x35\n\nlikelihood\x18\x03 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x31\n\x08location\x18\x04 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.Location\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nquote_info\x18\x07 \x01(\x0b\x32 .google.privacy.dlp.v2.QuoteInfo\x12\x35\n\rresource_name\x18\x08 \x01(\tB\x1e\xfa\x41\x1b\n\x19\x64lp.googleapis.com/DlpJob\x12\x38\n\x0ctrigger_name\x18\t \x01(\tB\"\xfa\x41\x1f\n\x1d\x64lp.googleapis.com/JobTrigger\x12:\n\x06labels\x18\n \x03(\x0b\x32*.google.privacy.dlp.v2.Finding.LabelsEntry\x12\x33\n\x0fjob_create_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x08job_name\x18\r \x01(\tB\x1e\xfa\x41\x1b\n\x19\x64lp.googleapis.com/DlpJob\x12\x12\n\nfinding_id\x18\x0f \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:[\xea\x41X\n\x1a\x64lp.googleapis.com/Finding\x12:projects/{project}/locations/{location}/findings/{finding}\"\xeb\x01\n\x08Location\x12\x30\n\nbyte_range\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Range\x12\x35\n\x0f\x63odepoint_range\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Range\x12\x41\n\x11\x63ontent_locations\x18\x07 \x03(\x0b\x32&.google.privacy.dlp.v2.ContentLocation\x12\x33\n\tcontainer\x18\x08 \x01(\x0b\x32 .google.privacy.dlp.v2.Container\"\x97\x03\n\x0f\x43ontentLocation\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12@\n\x0frecord_location\x18\x02 \x01(\x0b\x32%.google.privacy.dlp.v2.RecordLocationH\x00\x12>\n\x0eimage_location\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.ImageLocationH\x00\x12\x44\n\x11\x64ocument_location\x18\x05 \x01(\x0b\x32\'.google.privacy.dlp.v2.DocumentLocationH\x00\x12\x44\n\x11metadata_location\x18\x08 \x01(\x0b\x32\'.google.privacy.dlp.v2.MetadataLocationH\x00\x12\x37\n\x13\x63ontainer_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x63ontainer_version\x18\x07 \x01(\tB\n\n\x08location\"\x94\x01\n\x10MetadataLocation\x12\x31\n\x04type\x18\x01 \x01(\x0e\x32#.google.privacy.dlp.v2.MetadataType\x12\x44\n\rstorage_label\x18\x03 \x01(\x0b\x32+.google.privacy.dlp.v2.StorageMetadataLabelH\x00\x42\x07\n\x05label\"#\n\x14StorageMetadataLabel\x12\x0b\n\x03key\x18\x01 \x01(\t\"\'\n\x10\x44ocumentLocation\x12\x13\n\x0b\x66ile_offset\x18\x01 \x01(\x03\"\xb6\x01\n\x0eRecordLocation\x12\x34\n\nrecord_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.RecordKey\x12\x30\n\x08\x66ield_id\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12<\n\x0etable_location\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.TableLocation\"\"\n\rTableLocation\x12\x11\n\trow_index\x18\x01 \x01(\x03\"\xac\x01\n\tContainer\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\tfull_path\x18\x03 \x01(\t\x12\x11\n\troot_path\x18\x04 \x01(\t\x12\x15\n\rrelative_path\x18\x05 \x01(\t\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07version\x18\x07 \x01(\t\"#\n\x05Range\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03\"K\n\rImageLocation\x12:\n\x0e\x62ounding_boxes\x18\x01 \x03(\x0b\x32\".google.privacy.dlp.v2.BoundingBox\"G\n\x0b\x42oundingBox\x12\x0b\n\x03top\x18\x01 \x01(\x05\x12\x0c\n\x04left\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\"\xfc\x03\n\x12RedactImageRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xfa\x41\x1f\x12\x1d\x64lp.googleapis.com/DlpContent\x12\x13\n\x0blocation_id\x18\x08 \x01(\t\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12_\n\x17image_redaction_configs\x18\x05 \x03(\x0b\x32>.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig\x12\x18\n\x10include_findings\x18\x06 \x01(\x08\x12\x39\n\tbyte_item\x18\x07 \x01(\x0b\x32&.google.privacy.dlp.v2.ByteContentItem\x1a\xa8\x01\n\x14ImageRedactionConfig\x12\x34\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x19\n\x0fredact_all_text\x18\x02 \x01(\x08H\x00\x12\x35\n\x0fredaction_color\x18\x03 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.ColorB\x08\n\x06target\"1\n\x05\x43olor\x12\x0b\n\x03red\x18\x01 \x01(\x02\x12\r\n\x05green\x18\x02 \x01(\x02\x12\x0c\n\x04\x62lue\x18\x03 \x01(\x02\"\x83\x01\n\x13RedactImageResponse\x12\x16\n\x0eredacted_image\x18\x01 \x01(\x0c\x12\x16\n\x0e\x65xtracted_text\x18\x02 \x01(\t\x12<\n\x0einspect_result\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectResult\"\xd8\x02\n\x18\x44\x65identifyContentRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xfa\x41\x1f\x12\x1d\x64lp.googleapis.com/DlpContent\x12\x42\n\x11\x64\x65identify_config\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig\x12<\n\x0einspect_config\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x04 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x05 \x01(\t\x12 \n\x18\x64\x65identify_template_name\x18\x06 \x01(\t\x12\x13\n\x0blocation_id\x18\x07 \x01(\t\"\x8e\x01\n\x19\x44\x65identifyContentResponse\x12\x30\n\x04item\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12?\n\x08overview\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.TransformationOverview\"\xdb\x02\n\x18ReidentifyContentRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64lp.googleapis.com/DlpContent\x12\x42\n\x11reidentify_config\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig\x12<\n\x0einspect_config\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x04 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x05 \x01(\t\x12 \n\x18reidentify_template_name\x18\x06 \x01(\t\x12\x13\n\x0blocation_id\x18\x07 \x01(\t\"\x8e\x01\n\x19ReidentifyContentResponse\x12\x30\n\x04item\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12?\n\x08overview\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.TransformationOverview\"\xef\x01\n\x15InspectContentRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xfa\x41\x1f\x12\x1d\x64lp.googleapis.com/DlpContent\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x03 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"N\n\x16InspectContentResponse\x12\x34\n\x06result\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectResult\"\xb7\x02\n\x13OutputStorageConfig\x12\x35\n\x05table\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTableH\x00\x12N\n\routput_schema\x18\x03 \x01(\x0e\x32\x37.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema\"\x90\x01\n\x0cOutputSchema\x12\x1d\n\x19OUTPUT_SCHEMA_UNSPECIFIED\x10\x00\x12\x11\n\rBASIC_COLUMNS\x10\x01\x12\x0f\n\x0bGCS_COLUMNS\x10\x02\x12\x15\n\x11\x44\x41TASTORE_COLUMNS\x10\x03\x12\x15\n\x11\x42IG_QUERY_COLUMNS\x10\x04\x12\x0f\n\x0b\x41LL_COLUMNS\x10\x05\x42\x06\n\x04type\"R\n\rInfoTypeStats\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xa4\x04\n\x18InspectDataSourceDetails\x12[\n\x11requested_options\x18\x02 \x01(\x0b\x32@.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions\x12\x46\n\x06result\x18\x03 \x01(\x0b\x32\x36.google.privacy.dlp.v2.InspectDataSourceDetails.Result\x1a\x9a\x01\n\x10RequestedOptions\x12I\n\x19snapshot_inspect_template\x18\x01 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12;\n\njob_config\x18\x03 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfig\x1a\xc5\x01\n\x06Result\x12\x17\n\x0fprocessed_bytes\x18\x01 \x01(\x03\x12\x1d\n\x15total_estimated_bytes\x18\x02 \x01(\x03\x12=\n\x0finfo_type_stats\x18\x03 \x03(\x0b\x32$.google.privacy.dlp.v2.InfoTypeStats\x12\x44\n\x0chybrid_stats\x18\x07 \x01(\x0b\x32..google.privacy.dlp.v2.HybridInspectStatistics\"`\n\x17HybridInspectStatistics\x12\x17\n\x0fprocessed_count\x18\x01 \x01(\x03\x12\x15\n\raborted_count\x18\x02 \x01(\x03\x12\x15\n\rpending_count\x18\x03 \x01(\x03\"\x8a\x02\n\x13InfoTypeDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12@\n\x0csupported_by\x18\x03 \x03(\x0e\x32*.google.privacy.dlp.v2.InfoTypeSupportedBy\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12;\n\x08versions\x18\t \x03(\x0b\x32).google.privacy.dlp.v2.VersionDescription\x12;\n\ncategories\x18\n \x03(\x0b\x32\'.google.privacy.dlp.v2.InfoTypeCategory\"\xe9\x08\n\x10InfoTypeCategory\x12U\n\x11location_category\x18\x01 \x01(\x0e\x32\x38.google.privacy.dlp.v2.InfoTypeCategory.LocationCategoryH\x00\x12U\n\x11industry_category\x18\x02 \x01(\x0e\x32\x38.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategoryH\x00\x12M\n\rtype_category\x18\x03 \x01(\x0e\x32\x34.google.privacy.dlp.v2.InfoTypeCategory.TypeCategoryH\x00\"\xd4\x04\n\x10LocationCategory\x12\x18\n\x14LOCATION_UNSPECIFIED\x10\x00\x12\n\n\x06GLOBAL\x10\x01\x12\r\n\tARGENTINA\x10\x02\x12\r\n\tAUSTRALIA\x10\x03\x12\x0b\n\x07\x42\x45LGIUM\x10\x04\x12\n\n\x06\x42RAZIL\x10\x05\x12\n\n\x06\x43\x41NADA\x10\x06\x12\t\n\x05\x43HILE\x10\x07\x12\t\n\x05\x43HINA\x10\x08\x12\x0c\n\x08\x43OLOMBIA\x10\t\x12\x0b\n\x07\x44\x45NMARK\x10\n\x12\n\n\x06\x46RANCE\x10\x0b\x12\x0b\n\x07\x46INLAND\x10\x0c\x12\x0b\n\x07GERMANY\x10\r\x12\r\n\tHONG_KONG\x10\x0e\x12\t\n\x05INDIA\x10\x0f\x12\r\n\tINDONESIA\x10\x10\x12\x0b\n\x07IRELAND\x10\x11\x12\n\n\x06ISRAEL\x10\x12\x12\t\n\x05ITALY\x10\x13\x12\t\n\x05JAPAN\x10\x14\x12\t\n\x05KOREA\x10\x15\x12\n\n\x06MEXICO\x10\x16\x12\x13\n\x0fTHE_NETHERLANDS\x10\x17\x12\n\n\x06NORWAY\x10\x18\x12\x0c\n\x08PARAGUAY\x10\x19\x12\x08\n\x04PERU\x10\x1a\x12\n\n\x06POLAND\x10\x1b\x12\x0c\n\x08PORTUGAL\x10\x1c\x12\r\n\tSINGAPORE\x10\x1d\x12\x10\n\x0cSOUTH_AFRICA\x10\x1e\x12\t\n\x05SPAIN\x10\x1f\x12\n\n\x06SWEDEN\x10 \x12\n\n\x06TAIWAN\x10!\x12\x0c\n\x08THAILAND\x10\"\x12\n\n\x06TURKEY\x10#\x12\x12\n\x0eUNITED_KINGDOM\x10$\x12\x11\n\rUNITED_STATES\x10%\x12\x0b\n\x07URUGUAY\x10&\x12\r\n\tVENEZUELA\x10\'\x12\x0c\n\x08INTERNAL\x10(\x12\x0f\n\x0bNEW_ZEALAND\x10)\"]\n\x10IndustryCategory\x12\x18\n\x14INDUSTRY_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x46INANCE\x10\x01\x12\n\n\x06HEALTH\x10\x02\x12\x16\n\x12TELECOMMUNICATIONS\x10\x03\"\x95\x01\n\x0cTypeCategory\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03PII\x10\x01\x12\x08\n\x04SPII\x10\x02\x12\x0f\n\x0b\x44\x45MOGRAPHIC\x10\x03\x12\x0e\n\nCREDENTIAL\x10\x04\x12\x11\n\rGOVERNMENT_ID\x10\x05\x12\x0c\n\x08\x44OCUMENT\x10\x06\x12\x1a\n\x16\x43ONTEXTUAL_INFORMATION\x10\x07\x42\n\n\x08\x63\x61tegory\":\n\x12VersionDescription\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"b\n\x14ListInfoTypesRequest\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x13\n\x0blocation_id\x18\x03 \x01(\t\"W\n\x15ListInfoTypesResponse\x12>\n\ninfo_types\x18\x01 \x03(\x0b\x32*.google.privacy.dlp.v2.InfoTypeDescription\"\xc1\x01\n\x15RiskAnalysisJobConfig\x12<\n\x0eprivacy_metric\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.PrivacyMetric\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12.\n\x07\x61\x63tions\x18\x03 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.Action\"\xbc\x01\n\x07QuasiId\x12\x32\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldIdB\x03\xe0\x41\x02\x12\x34\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\n\ncustom_tag\x18\x03 \x01(\tH\x00\x12*\n\x08inferred\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x42\x05\n\x03tag\"\xbe\x02\n\x10StatisticalTable\x12\x38\n\x05table\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTableB\x03\xe0\x41\x02\x12T\n\tquasi_ids\x18\x01 \x03(\x0b\x32<.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldB\x03\xe0\x41\x02\x12?\n\x12relative_frequency\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldIdB\x03\xe0\x41\x02\x1aY\n\x14QuasiIdentifierField\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\ncustom_tag\x18\x02 \x01(\t\"\x93\x0f\n\rPrivacyMetric\x12[\n\x16numerical_stats_config\x18\x01 \x01(\x0b\x32\x39.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfigH\x00\x12_\n\x18\x63\x61tegorical_stats_config\x18\x02 \x01(\x0b\x32;.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\x00\x12S\n\x12k_anonymity_config\x18\x03 \x01(\x0b\x32\x35.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfigH\x00\x12S\n\x12l_diversity_config\x18\x04 \x01(\x0b\x32\x35.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfigH\x00\x12\\\n\x17k_map_estimation_config\x18\x05 \x01(\x0b\x32\x39.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfigH\x00\x12n\n delta_presence_estimation_config\x18\x06 \x01(\x0b\x32\x42.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfigH\x00\x1a\x45\n\x14NumericalStatsConfig\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1aG\n\x16\x43\x61tegoricalStatsConfig\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1ay\n\x10KAnonymityConfig\x12\x31\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x32\n\tentity_id\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.EntityId\x1a\x82\x01\n\x10LDiversityConfig\x12\x31\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12;\n\x13sensitive_attribute\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1a\x81\x06\n\x14KMapEstimationConfig\x12]\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x45.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedFieldB\x03\xe0\x41\x02\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x62\n\x10\x61uxiliary_tables\x18\x03 \x03(\x0b\x32H.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\x1a\xc0\x01\n\x0bTaggedField\x12\x32\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldIdB\x03\xe0\x41\x02\x12\x34\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\n\ncustom_tag\x18\x03 \x01(\tH\x00\x12*\n\x08inferred\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x42\x05\n\x03tag\x1a\xcd\x02\n\x0e\x41uxiliaryTable\x12\x38\n\x05table\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTableB\x03\xe0\x41\x02\x12m\n\tquasi_ids\x18\x01 \x03(\x0b\x32U.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdFieldB\x03\xe0\x41\x02\x12?\n\x12relative_frequency\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldIdB\x03\xe0\x41\x02\x1aQ\n\x0cQuasiIdField\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\ncustom_tag\x18\x02 \x01(\t\x1a\xaf\x01\n\x1d\x44\x65ltaPresenceEstimationConfig\x12\x36\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.QuasiIdB\x03\xe0\x41\x02\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x41\n\x10\x61uxiliary_tables\x18\x03 \x03(\x0b\x32\'.google.privacy.dlp.v2.StatisticalTableB\x06\n\x04type\"\xc1\x1f\n\x1c\x41nalyzeDataSourceRiskDetails\x12\x46\n\x18requested_privacy_metric\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.PrivacyMetric\x12\x44\n\x16requested_source_table\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12j\n\x16numerical_stats_result\x18\x03 \x01(\x0b\x32H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResultH\x00\x12n\n\x18\x63\x61tegorical_stats_result\x18\x04 \x01(\x0b\x32J.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultH\x00\x12\x62\n\x12k_anonymity_result\x18\x05 \x01(\x0b\x32\x44.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResultH\x00\x12\x62\n\x12l_diversity_result\x18\x06 \x01(\x0b\x32\x44.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResultH\x00\x12k\n\x17k_map_estimation_result\x18\x07 \x01(\x0b\x32H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\x00\x12}\n delta_presence_estimation_result\x18\t \x01(\x0b\x32Q.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\x00\x12k\n\x11requested_options\x18\n \x01(\x0b\x32P.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions\x1a\xaf\x01\n\x14NumericalStatsResult\x12/\n\tmin_value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12/\n\tmax_value\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x35\n\x0fquantile_values\x18\x04 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x1a\x8d\x03\n\x16\x43\x61tegoricalStatsResult\x12\x95\x01\n!value_frequency_histogram_buckets\x18\x05 \x03(\x0b\x32j.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket\x1a\xda\x01\n\x1f\x43\x61tegoricalStatsHistogramBucket\x12#\n\x1bvalue_frequency_lower_bound\x18\x01 \x01(\x03\x12#\n\x1bvalue_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12<\n\rbucket_values\x18\x04 \x03(\x0b\x32%.google.privacy.dlp.v2.ValueFrequency\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\xb5\x04\n\x10KAnonymityResult\x12\x8b\x01\n#equivalence_class_histogram_buckets\x18\x05 \x03(\x0b\x32^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket\x1at\n\x1aKAnonymityEquivalenceClass\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1e\n\x16\x65quivalence_class_size\x18\x02 \x01(\x03\x1a\x9c\x02\n\x19KAnonymityHistogramBucket\x12*\n\"equivalence_class_size_lower_bound\x18\x01 \x01(\x03\x12*\n\"equivalence_class_size_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12v\n\rbucket_values\x18\x04 \x03(\x0b\x32_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\xb0\x05\n\x10LDiversityResult\x12\x93\x01\n+sensitive_value_frequency_histogram_buckets\x18\x05 \x03(\x0b\x32^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket\x1a\xe0\x01\n\x1aLDiversityEquivalenceClass\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1e\n\x16\x65quivalence_class_size\x18\x02 \x01(\x03\x12%\n\x1dnum_distinct_sensitive_values\x18\x03 \x01(\x03\x12\x43\n\x14top_sensitive_values\x18\x04 \x03(\x0b\x32%.google.privacy.dlp.v2.ValueFrequency\x1a\xa2\x02\n\x19LDiversityHistogramBucket\x12-\n%sensitive_value_frequency_lower_bound\x18\x01 \x01(\x03\x12-\n%sensitive_value_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12v\n\rbucket_values\x18\x04 \x03(\x0b\x32_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\x95\x04\n\x14KMapEstimationResult\x12\x8a\x01\n\x1ak_map_estimation_histogram\x18\x01 \x03(\x0b\x32\x66.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket\x1ar\n\x1bKMapEstimationQuasiIdValues\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1b\n\x13\x65stimated_anonymity\x18\x02 \x01(\x03\x1a\xfb\x01\n\x1dKMapEstimationHistogramBucket\x12\x15\n\rmin_anonymity\x18\x01 \x01(\x03\x12\x15\n\rmax_anonymity\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x05 \x01(\x03\x12{\n\rbucket_values\x18\x06 \x03(\x0b\x32\x64.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues\x12\x1a\n\x12\x62ucket_value_count\x18\x07 \x01(\x03\x1a\xe4\x04\n\x1d\x44\x65ltaPresenceEstimationResult\x12\xa5\x01\n#delta_presence_estimation_histogram\x18\x01 \x03(\x0b\x32x.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket\x1a}\n$DeltaPresenceEstimationQuasiIdValues\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1d\n\x15\x65stimated_probability\x18\x02 \x01(\x01\x1a\x9b\x02\n&DeltaPresenceEstimationHistogramBucket\x12\x17\n\x0fmin_probability\x18\x01 \x01(\x01\x12\x17\n\x0fmax_probability\x18\x02 \x01(\x01\x12\x13\n\x0b\x62ucket_size\x18\x05 \x01(\x03\x12\x8d\x01\n\rbucket_values\x18\x06 \x03(\x0b\x32v.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues\x12\x1a\n\x12\x62ucket_value_count\x18\x07 \x01(\x03\x1a`\n\x1cRequestedRiskAnalysisOptions\x12@\n\njob_config\x18\x01 \x01(\x0b\x32,.google.privacy.dlp.v2.RiskAnalysisJobConfigB\x08\n\x06result\"L\n\x0eValueFrequency\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xb3\x02\n\x05Value\x12\x17\n\rinteger_value\x18\x01 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x02 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x17\n\rboolean_value\x18\x04 \x01(\x08H\x00\x12\x35\n\x0ftimestamp_value\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12,\n\ntime_value\x18\x06 \x01(\x0b\x32\x16.google.type.TimeOfDayH\x00\x12\'\n\ndate_value\x18\x07 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x33\n\x11\x64\x61y_of_week_value\x18\x08 \x01(\x0e\x32\x16.google.type.DayOfWeekH\x00\x42\x06\n\x04type\"Q\n\tQuoteInfo\x12\x34\n\tdate_time\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.DateTimeH\x00\x42\x0e\n\x0cparsed_quote\"\xdf\x01\n\x08\x44\x61teTime\x12\x1f\n\x04\x64\x61te\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12+\n\x0b\x64\x61y_of_week\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeek\x12$\n\x04time\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDay\x12;\n\ttime_zone\x18\x04 \x01(\x0b\x32(.google.privacy.dlp.v2.DateTime.TimeZone\x1a\"\n\x08TimeZone\x12\x16\n\x0eoffset_minutes\x18\x01 \x01(\x05\"\xf2\x02\n\x10\x44\x65identifyConfig\x12S\n\x19info_type_transformations\x18\x01 \x01(\x0b\x32..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x12N\n\x16record_transformations\x18\x02 \x01(\x0b\x32,.google.privacy.dlp.v2.RecordTransformationsH\x00\x12L\n\x15image_transformations\x18\x04 \x01(\x0b\x32+.google.privacy.dlp.v2.ImageTransformationsH\x00\x12Y\n\x1dtransformation_error_handling\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.TransformationErrorHandlingB\x10\n\x0etransformation\"\xe5\x04\n\x14ImageTransformations\x12S\n\ntransforms\x18\x02 \x03(\x0b\x32?.google.privacy.dlp.v2.ImageTransformations.ImageTransformation\x1a\xf7\x03\n\x13ImageTransformation\x12p\n\x13selected_info_types\x18\x04 \x01(\x0b\x32Q.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypesH\x00\x12\x66\n\x0e\x61ll_info_types\x18\x05 \x01(\x0b\x32L.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesH\x00\x12[\n\x08\x61ll_text\x18\x06 \x01(\x0b\x32G.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextH\x00\x12\x35\n\x0fredaction_color\x18\x03 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Color\x1aM\n\x11SelectedInfoTypes\x12\x38\n\ninfo_types\x18\x05 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeB\x03\xe0\x41\x02\x1a\x0e\n\x0c\x41llInfoTypes\x1a\t\n\x07\x41llTextB\x08\n\x06target\"\x85\x02\n\x1bTransformationErrorHandling\x12T\n\x0bthrow_error\x18\x01 \x01(\x0b\x32=.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorH\x00\x12\x64\n\x13leave_untransformed\x18\x02 \x01(\x0b\x32\x45.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedH\x00\x1a\x0c\n\nThrowError\x1a\x14\n\x12LeaveUntransformedB\x06\n\x04mode\"\xca\x07\n\x17PrimitiveTransformation\x12\x43\n\x0ereplace_config\x18\x01 \x01(\x0b\x32).google.privacy.dlp.v2.ReplaceValueConfigH\x00\x12<\n\rredact_config\x18\x02 \x01(\x0b\x32#.google.privacy.dlp.v2.RedactConfigH\x00\x12K\n\x15\x63haracter_mask_config\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.CharacterMaskConfigH\x00\x12Y\n\x1d\x63rypto_replace_ffx_fpe_config\x18\x04 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfigH\x00\x12V\n\x1b\x66ixed_size_bucketing_config\x18\x05 \x01(\x0b\x32/.google.privacy.dlp.v2.FixedSizeBucketingConfigH\x00\x12\x42\n\x10\x62ucketing_config\x18\x06 \x01(\x0b\x32&.google.privacy.dlp.v2.BucketingConfigH\x00\x12Y\n\x1dreplace_with_info_type_config\x18\x07 \x01(\x0b\x32\x30.google.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\x00\x12\x41\n\x10time_part_config\x18\x08 \x01(\x0b\x32%.google.privacy.dlp.v2.TimePartConfigH\x00\x12\x45\n\x12\x63rypto_hash_config\x18\t \x01(\x0b\x32\'.google.privacy.dlp.v2.CryptoHashConfigH\x00\x12\x43\n\x11\x64\x61te_shift_config\x18\x0b \x01(\x0b\x32&.google.privacy.dlp.v2.DateShiftConfigH\x00\x12W\n\x1b\x63rypto_deterministic_config\x18\x0c \x01(\x0b\x32\x30.google.privacy.dlp.v2.CryptoDeterministicConfigH\x00\x12S\n\x19replace_dictionary_config\x18\r \x01(\x0b\x32..google.privacy.dlp.v2.ReplaceDictionaryConfigH\x00\x42\x10\n\x0etransformation\"\xdc\x01\n\x0eTimePartConfig\x12G\n\x0fpart_to_extract\x18\x01 \x01(\x0e\x32..google.privacy.dlp.v2.TimePartConfig.TimePart\"\x80\x01\n\x08TimePart\x12\x19\n\x15TIME_PART_UNSPECIFIED\x10\x00\x12\x08\n\x04YEAR\x10\x01\x12\t\n\x05MONTH\x10\x02\x12\x10\n\x0c\x44\x41Y_OF_MONTH\x10\x03\x12\x0f\n\x0b\x44\x41Y_OF_WEEK\x10\x04\x12\x10\n\x0cWEEK_OF_YEAR\x10\x05\x12\x0f\n\x0bHOUR_OF_DAY\x10\x06\"H\n\x10\x43ryptoHashConfig\x12\x34\n\ncrypto_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKey\"\xc0\x01\n\x19\x43ryptoDeterministicConfig\x12\x34\n\ncrypto_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKey\x12<\n\x13surrogate_info_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12/\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\"E\n\x12ReplaceValueConfig\x12/\n\tnew_value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\"q\n\x17ReplaceDictionaryConfig\x12N\n\tword_list\x18\x01 \x01(\x0b\x32\x39.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00\x42\x06\n\x04type\"\x1b\n\x19ReplaceWithInfoTypeConfig\"\x0e\n\x0cRedactConfig\"\xb6\x02\n\rCharsToIgnore\x12\x1c\n\x12\x63haracters_to_skip\x18\x01 \x01(\tH\x00\x12_\n\x1b\x63ommon_characters_to_ignore\x18\x02 \x01(\x0e\x32\x38.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\x00\"\x97\x01\n\x13\x43ommonCharsToIgnore\x12&\n\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\x10\x00\x12\x0b\n\x07NUMERIC\x10\x01\x12\x14\n\x10\x41LPHA_UPPER_CASE\x10\x02\x12\x14\n\x10\x41LPHA_LOWER_CASE\x10\x03\x12\x0f\n\x0bPUNCTUATION\x10\x04\x12\x0e\n\nWHITESPACE\x10\x05\x42\x0c\n\ncharacters\"\xa3\x01\n\x13\x43haracterMaskConfig\x12\x19\n\x11masking_character\x18\x01 \x01(\t\x12\x16\n\x0enumber_to_mask\x18\x02 \x01(\x05\x12\x15\n\rreverse_order\x18\x03 \x01(\x08\x12\x42\n\x14\x63haracters_to_ignore\x18\x04 \x03(\x0b\x32$.google.privacy.dlp.v2.CharsToIgnore\"\xa4\x01\n\x18\x46ixedSizeBucketingConfig\x12\x36\n\x0blower_bound\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.ValueB\x03\xe0\x41\x02\x12\x36\n\x0bupper_bound\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.ValueB\x03\xe0\x41\x02\x12\x18\n\x0b\x62ucket_size\x18\x03 \x01(\x01\x42\x03\xe0\x41\x02\"\xf0\x01\n\x0f\x42ucketingConfig\x12>\n\x07\x62uckets\x18\x01 \x03(\x0b\x32-.google.privacy.dlp.v2.BucketingConfig.Bucket\x1a\x9c\x01\n\x06\x42ucket\x12)\n\x03min\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12)\n\x03max\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12<\n\x11replacement_value\x18\x03 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.ValueB\x03\xe0\x41\x02\"\xf9\x03\n\x19\x43ryptoReplaceFfxFpeConfig\x12\x39\n\ncrypto_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKeyB\x03\xe0\x41\x02\x12/\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x63\n\x0f\x63ommon_alphabet\x18\x04 \x01(\x0e\x32H.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabetH\x00\x12\x19\n\x0f\x63ustom_alphabet\x18\x05 \x01(\tH\x00\x12\x0f\n\x05radix\x18\x06 \x01(\x05H\x00\x12<\n\x13surrogate_info_type\x18\x08 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\"\x94\x01\n\x17\x46\x66xCommonNativeAlphabet\x12*\n&FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED\x10\x00\x12\x0b\n\x07NUMERIC\x10\x01\x12\x0f\n\x0bHEXADECIMAL\x10\x02\x12\x1c\n\x18UPPER_CASE_ALPHA_NUMERIC\x10\x03\x12\x11\n\rALPHA_NUMERIC\x10\x04\x42\n\n\x08\x61lphabet\"\xd8\x01\n\tCryptoKey\x12>\n\ttransient\x18\x01 \x01(\x0b\x32).google.privacy.dlp.v2.TransientCryptoKeyH\x00\x12>\n\tunwrapped\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.UnwrappedCryptoKeyH\x00\x12\x41\n\x0bkms_wrapped\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.KmsWrappedCryptoKeyH\x00\x42\x08\n\x06source\"\'\n\x12TransientCryptoKey\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"&\n\x12UnwrappedCryptoKey\x12\x10\n\x03key\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\"M\n\x13KmsWrappedCryptoKey\x12\x18\n\x0bwrapped_key\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x1c\n\x0f\x63rypto_key_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xc2\x01\n\x0f\x44\x61teShiftConfig\x12\x1d\n\x10upper_bound_days\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1d\n\x10lower_bound_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12/\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x36\n\ncrypto_key\x18\x04 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKeyH\x00\x42\x08\n\x06method\"\xa5\x02\n\x17InfoTypeTransformations\x12\x63\n\x0ftransformations\x18\x01 \x03(\x0b\x32\x45.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformationB\x03\xe0\x41\x02\x1a\xa4\x01\n\x16InfoTypeTransformation\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12U\n\x18primitive_transformation\x18\x02 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformationB\x03\xe0\x41\x02\"\xc0\x02\n\x13\x46ieldTransformation\x12\x33\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldIdB\x03\xe0\x41\x02\x12\x39\n\tcondition\x18\x03 \x01(\x0b\x32&.google.privacy.dlp.v2.RecordCondition\x12R\n\x18primitive_transformation\x18\x04 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformationH\x00\x12S\n\x19info_type_transformations\x18\x05 \x01(\x0b\x32..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x42\x10\n\x0etransformation\"\xa9\x01\n\x15RecordTransformations\x12I\n\x15\x66ield_transformations\x18\x01 \x03(\x0b\x32*.google.privacy.dlp.v2.FieldTransformation\x12\x45\n\x13record_suppressions\x18\x02 \x03(\x0b\x32(.google.privacy.dlp.v2.RecordSuppression\"N\n\x11RecordSuppression\x12\x39\n\tcondition\x18\x01 \x01(\x0b\x32&.google.privacy.dlp.v2.RecordCondition\"\xdc\x04\n\x0fRecordCondition\x12G\n\x0b\x65xpressions\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.RecordCondition.Expressions\x1a\xae\x01\n\tCondition\x12\x32\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldIdB\x03\xe0\x41\x02\x12@\n\x08operator\x18\x03 \x01(\x0e\x32).google.privacy.dlp.v2.RelationalOperatorB\x03\xe0\x41\x02\x12+\n\x05value\x18\x04 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x1aR\n\nConditions\x12\x44\n\nconditions\x18\x01 \x03(\x0b\x32\x30.google.privacy.dlp.v2.RecordCondition.Condition\x1a\xfa\x01\n\x0b\x45xpressions\x12\\\n\x10logical_operator\x18\x01 \x01(\x0e\x32\x42.google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\x12G\n\nconditions\x18\x03 \x01(\x0b\x32\x31.google.privacy.dlp.v2.RecordCondition.ConditionsH\x00\"<\n\x0fLogicalOperator\x12 \n\x1cLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x42\x06\n\x04type\"\x83\x01\n\x16TransformationOverview\x12\x19\n\x11transformed_bytes\x18\x02 \x01(\x03\x12N\n\x18transformation_summaries\x18\x03 \x03(\x0b\x32,.google.privacy.dlp.v2.TransformationSummary\"\x9f\x05\n\x15TransformationSummary\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12-\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x46\n\x0etransformation\x18\x03 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformation\x12I\n\x15\x66ield_transformations\x18\x05 \x03(\x0b\x32*.google.privacy.dlp.v2.FieldTransformation\x12\x41\n\x0frecord_suppress\x18\x06 \x01(\x0b\x32(.google.privacy.dlp.v2.RecordSuppression\x12K\n\x07results\x18\x04 \x03(\x0b\x32:.google.privacy.dlp.v2.TransformationSummary.SummaryResult\x12\x19\n\x11transformed_bytes\x18\x07 \x01(\x03\x1a\x84\x01\n\rSummaryResult\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12S\n\x04\x63ode\x18\x02 \x01(\x0e\x32\x45.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\t\"^\n\x18TransformationResultCode\x12*\n&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"\xb0\x01\n\x19TransformationDescription\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32).google.privacy.dlp.v2.TransformationType\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x11\n\tcondition\x18\x03 \x01(\t\x12\x32\n\tinfo_type\x18\x04 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\"\xc6\x02\n\x15TransformationDetails\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontainer_name\x18\x02 \x01(\t\x12H\n\x0etransformation\x18\x03 \x03(\x0b\x32\x30.google.privacy.dlp.v2.TransformationDescription\x12I\n\x0estatus_details\x18\x04 \x01(\x0b\x32\x31.google.privacy.dlp.v2.TransformationResultStatus\x12\x19\n\x11transformed_bytes\x18\x05 \x01(\x03\x12N\n\x17transformation_location\x18\x06 \x01(\x0b\x32-.google.privacy.dlp.v2.TransformationLocation\"\xd9\x01\n\x16TransformationLocation\x12\x14\n\nfinding_id\x18\x01 \x01(\tH\x00\x12L\n\x15record_transformation\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.RecordTransformationH\x00\x12J\n\x0e\x63ontainer_type\x18\x03 \x01(\x0e\x32\x32.google.privacy.dlp.v2.TransformationContainerTypeB\x0f\n\rlocation_type\"\x9c\x01\n\x14RecordTransformation\x12\x30\n\x08\x66ield_id\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x37\n\x13\x63ontainer_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x63ontainer_version\x18\x03 \x01(\t\"\x94\x01\n\x1aTransformationResultStatus\x12Q\n\x12result_status_type\x18\x01 \x01(\x0e\x32\x35.google.privacy.dlp.v2.TransformationResultStatusType\x12#\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"c\n\"TransformationDetailsStorageConfig\x12\x35\n\x05table\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTableH\x00\x42\x06\n\x04type\"U\n\x08Schedule\x12?\n\x1arecurrence_period_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x08\n\x06option\"\x08\n\x06Manual\"\xc2\x04\n\x0fInspectTemplate\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x0einspect_config\x18\x06 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig:\xc6\x02\xea\x41\xc2\x02\n\"dlp.googleapis.com/InspectTemplate\x12@organizations/{organization}/inspectTemplates/{inspect_template}\x12\x36projects/{project}/inspectTemplates/{inspect_template}\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\"\xe6\x04\n\x12\x44\x65identifyTemplate\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x42\n\x11\x64\x65identify_config\x18\x06 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig:\xe1\x02\xea\x41\xdd\x02\n%dlp.googleapis.com/DeidentifyTemplate\x12\x46organizations/{organization}/deidentifyTemplates/{deidentify_template}\x12\n\x0binspect_job\x18\x04 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12;\n\x08triggers\x18\x05 \x03(\x0b\x32).google.privacy.dlp.v2.JobTrigger.Trigger\x12\x31\n\x06\x65rrors\x18\x06 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.ErrorB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rlast_run_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x06status\x18\n \x01(\x0e\x32(.google.privacy.dlp.v2.JobTrigger.StatusB\x03\xe0\x41\x02\x1az\n\x07Trigger\x12\x33\n\x08schedule\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.ScheduleH\x00\x12/\n\x06manual\x18\x02 \x01(\x0b\x32\x1d.google.privacy.dlp.v2.ManualH\x00\x42\t\n\x07trigger\"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\r\n\tCANCELLED\x10\x03:\x94\x01\xea\x41\x90\x01\n\x1d\x64lp.googleapis.com/JobTrigger\x12,projects/{project}/jobTriggers/{job_trigger}\x12\x41projects/{project}/locations/{location}/jobTriggers/{job_trigger}B\x05\n\x03job\"\xea\x08\n\x06\x41\x63tion\x12\x43\n\rsave_findings\x18\x01 \x01(\x0b\x32*.google.privacy.dlp.v2.Action.SaveFindingsH\x00\x12@\n\x07pub_sub\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.Action.PublishToPubSubH\x00\x12U\n\x17publish_summary_to_cscc\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\x00\x12q\n&publish_findings_to_cloud_data_catalog\x18\x05 \x01(\x0b\x32?.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogH\x00\x12>\n\ndeidentify\x18\x07 \x01(\x0b\x32(.google.privacy.dlp.v2.Action.DeidentifyH\x00\x12V\n\x17job_notification_emails\x18\x08 \x01(\x0b\x32\x33.google.privacy.dlp.v2.Action.JobNotificationEmailsH\x00\x12T\n\x16publish_to_stackdriver\x18\t \x01(\x0b\x32\x32.google.privacy.dlp.v2.Action.PublishToStackdriverH\x00\x1aQ\n\x0cSaveFindings\x12\x41\n\routput_config\x18\x01 \x01(\x0b\x32*.google.privacy.dlp.v2.OutputStorageConfig\x1a \n\x0fPublishToPubSub\x12\r\n\x05topic\x18\x01 \x01(\t\x1a\x16\n\x14PublishSummaryToCscc\x1a#\n!PublishFindingsToCloudDataCatalog\x1a\xb3\x02\n\nDeidentify\x12J\n\x15transformation_config\x18\x07 \x01(\x0b\x32+.google.privacy.dlp.v2.TransformationConfig\x12h\n%transformation_details_storage_config\x18\x03 \x01(\x0b\x32\x39.google.privacy.dlp.v2.TransformationDetailsStorageConfig\x12#\n\x14\x63loud_storage_output\x18\t \x01(\tB\x03\xe0\x41\x02H\x00\x12@\n\x17\x66ile_types_to_transform\x18\x08 \x03(\x0e\x32\x1f.google.privacy.dlp.v2.FileTypeB\x08\n\x06output\x1a\x17\n\x15JobNotificationEmails\x1a\x16\n\x14PublishToStackdriverB\x08\n\x06\x61\x63tion\"z\n\x14TransformationConfig\x12\x1b\n\x13\x64\x65identify_template\x18\x01 \x01(\t\x12&\n\x1estructured_deidentify_template\x18\x02 \x01(\t\x12\x1d\n\x15image_redact_template\x18\x04 \x01(\t\"\xcb\x01\n\x1c\x43reateInspectTemplateRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dlp.googleapis.com/InspectTemplate\x12\x45\n\x10inspect_template\x18\x02 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplateB\x03\xe0\x41\x02\x12\x13\n\x0btemplate_id\x18\x03 \x01(\t\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\"\xcb\x01\n\x1cUpdateInspectTemplateRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dlp.googleapis.com/InspectTemplate\x12@\n\x10inspect_template\x18\x02 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"U\n\x19GetInspectTemplateRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dlp.googleapis.com/InspectTemplate\"\xa7\x01\n\x1bListInspectTemplatesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dlp.googleapis.com/InspectTemplate\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"z\n\x1cListInspectTemplatesResponse\x12\x41\n\x11inspect_templates\x18\x01 \x03(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x1c\x44\x65leteInspectTemplateRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dlp.googleapis.com/InspectTemplate\"\xb6\x01\n\x17\x43reateJobTriggerRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64lp.googleapis.com/JobTrigger\x12;\n\x0bjob_trigger\x18\x02 \x01(\x0b\x32!.google.privacy.dlp.v2.JobTriggerB\x03\xe0\x41\x02\x12\x12\n\ntrigger_id\x18\x03 \x01(\t\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\"P\n\x19\x41\x63tivateJobTriggerRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64lp.googleapis.com/JobTrigger\"\xb7\x01\n\x17UpdateJobTriggerRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64lp.googleapis.com/JobTrigger\x12\x36\n\x0bjob_trigger\x18\x02 \x01(\x0b\x32!.google.privacy.dlp.v2.JobTrigger\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x14GetJobTriggerRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64lp.googleapis.com/JobTrigger\"\xf6\x01\n\x13\x43reateDlpJobRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\x12\x19\x64lp.googleapis.com/DlpJob\x12>\n\x0binspect_job\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12@\n\x08risk_job\x18\x03 \x01(\x0b\x32,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\x00\x12\x0e\n\x06job_id\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\tB\x05\n\x03job\"\xde\x01\n\x16ListJobTriggersRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64lp.googleapis.com/JobTrigger\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12/\n\x04type\x18\x06 \x01(\x0e\x32!.google.privacy.dlp.v2.DlpJobType\x12\x13\n\x0blocation_id\x18\x07 \x01(\t\"k\n\x17ListJobTriggersResponse\x12\x37\n\x0cjob_triggers\x18\x01 \x03(\x0b\x32!.google.privacy.dlp.v2.JobTrigger\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x17\x44\x65leteJobTriggerRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64lp.googleapis.com/JobTrigger\"\xdd\x01\n\x10InspectJobConfig\x12<\n\x0estorage_config\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.StorageConfig\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x1d\n\x15inspect_template_name\x18\x03 \x01(\t\x12.\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.Action\"\xed\x05\n\x11\x44\x61taProfileAction\x12\x46\n\x0b\x65xport_data\x18\x01 \x01(\x0b\x32/.google.privacy.dlp.v2.DataProfileAction.ExportH\x00\x12[\n\x14pub_sub_notification\x18\x02 \x01(\x0b\x32;.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationH\x00\x1a\x45\n\x06\x45xport\x12;\n\rprofile_table\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x1a\xea\x02\n\x12PubSubNotification\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x41\n\x05\x65vent\x18\x02 \x01(\x0e\x32\x32.google.privacy.dlp.v2.DataProfileAction.EventType\x12K\n\x10pubsub_condition\x18\x03 \x01(\x0b\x32\x31.google.privacy.dlp.v2.DataProfilePubSubCondition\x12\x62\n\x11\x64\x65tail_of_message\x18\x04 \x01(\x0e\x32G.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel\"Q\n\x0b\x44\x65tailLevel\x12\x1c\n\x18\x44\x45TAIL_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rTABLE_PROFILE\x10\x01\x12\x11\n\rRESOURCE_NAME\x10\x02\"u\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNEW_PROFILE\x10\x01\x12\x13\n\x0f\x43HANGED_PROFILE\x10\x02\x12\x13\n\x0fSCORE_INCREASED\x10\x03\x12\x11\n\rERROR_CHANGED\x10\x04\x42\x08\n\x06\x61\x63tion\"\xcb\x01\n\x14\x44\x61taProfileJobConfig\x12<\n\x08location\x18\x01 \x01(\x0b\x32*.google.privacy.dlp.v2.DataProfileLocation\x12\x12\n\nproject_id\x18\x05 \x01(\t\x12\x19\n\x11inspect_templates\x18\x07 \x03(\t\x12\x46\n\x14\x64\x61ta_profile_actions\x18\x06 \x03(\x0b\x32(.google.privacy.dlp.v2.DataProfileAction\"Q\n\x13\x44\x61taProfileLocation\x12\x19\n\x0forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\n\tfolder_id\x18\x02 \x01(\x03H\x00\x42\n\n\x08location\"\xeb\x05\n\x06\x44lpJob\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x04type\x18\x02 \x01(\x0e\x32!.google.privacy.dlp.v2.DlpJobType\x12\x35\n\x05state\x18\x03 \x01(\x0e\x32&.google.privacy.dlp.v2.DlpJob.JobState\x12K\n\x0crisk_details\x18\x04 \x01(\x0b\x32\x33.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\x00\x12J\n\x0finspect_details\x18\x05 \x01(\x0b\x32/.google.privacy.dlp.v2.InspectDataSourceDetailsH\x00\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10job_trigger_name\x18\n \x01(\t\x12,\n\x06\x65rrors\x18\x0b \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Error\"o\n\x08JobState\x12\x19\n\x15JOB_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\x0c\n\x08\x43\x41NCELED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\n\n\x06\x41\x43TIVE\x10\x06:\x7f\xea\x41|\n\x19\x64lp.googleapis.com/DlpJob\x12$projects/{project}/dlpJobs/{dlp_job}\x12\x39projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\t\n\x07\x64\x65tails\"C\n\x10GetDlpJobRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x64lp.googleapis.com/DlpJob\"\xd6\x01\n\x12ListDlpJobsRequest\x12\x31\n\x06parent\x18\x04 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\x12\x19\x64lp.googleapis.com/DlpJob\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12/\n\x04type\x18\x05 \x01(\x0e\x32!.google.privacy.dlp.v2.DlpJobType\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x13\n\x0blocation_id\x18\x07 \x01(\t\"[\n\x13ListDlpJobsResponse\x12+\n\x04jobs\x18\x01 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.DlpJob\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"F\n\x13\x43\x61ncelDlpJobRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x64lp.googleapis.com/DlpJob\"F\n\x13\x46inishDlpJobRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x64lp.googleapis.com/DlpJob\"F\n\x13\x44\x65leteDlpJobRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x64lp.googleapis.com/DlpJob\"\xd7\x01\n\x1f\x43reateDeidentifyTemplateRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dlp.googleapis.com/DeidentifyTemplate\x12K\n\x13\x64\x65identify_template\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplateB\x03\xe0\x41\x02\x12\x13\n\x0btemplate_id\x18\x03 \x01(\t\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\"\xd7\x01\n\x1fUpdateDeidentifyTemplateRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dlp.googleapis.com/DeidentifyTemplate\x12\x46\n\x13\x64\x65identify_template\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplate\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"[\n\x1cGetDeidentifyTemplateRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dlp.googleapis.com/DeidentifyTemplate\"\xad\x01\n\x1eListDeidentifyTemplatesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dlp.googleapis.com/DeidentifyTemplate\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"\x83\x01\n\x1fListDeidentifyTemplatesResponse\x12G\n\x14\x64\x65identify_templates\x18\x01 \x03(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x1f\x44\x65leteDeidentifyTemplateRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dlp.googleapis.com/DeidentifyTemplate\"\xf4\x01\n\x1bLargeCustomDictionaryConfig\x12<\n\x0boutput_path\x18\x01 \x01(\x0b\x32\'.google.privacy.dlp.v2.CloudStoragePath\x12L\n\x16\x63loud_storage_file_set\x18\x02 \x01(\x0b\x32*.google.privacy.dlp.v2.CloudStorageFileSetH\x00\x12?\n\x0f\x62ig_query_field\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryFieldH\x00\x42\x08\n\x06source\"8\n\x1aLargeCustomDictionaryStats\x12\x1a\n\x12\x61pprox_num_phrases\x18\x01 \x01(\x03\"\xa6\x02\n\x14StoredInfoTypeConfig\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12U\n\x17large_custom_dictionary\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\x00\x12\x46\n\ndictionary\x18\x04 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\n\x05regex\x18\x05 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x42\x06\n\x04type\"s\n\x13StoredInfoTypeStats\x12T\n\x17large_custom_dictionary\x18\x01 \x01(\x0b\x32\x31.google.privacy.dlp.v2.LargeCustomDictionaryStatsH\x00\x42\x06\n\x04type\"\xa9\x02\n\x15StoredInfoTypeVersion\x12;\n\x06\x63onfig\x18\x01 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.google.privacy.dlp.v2.StoredInfoTypeState\x12,\n\x06\x65rrors\x18\x04 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Error\x12\x39\n\x05stats\x18\x05 \x01(\x0b\x32*.google.privacy.dlp.v2.StoredInfoTypeStats\"\xf1\x03\n\x0eStoredInfoType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0f\x63urrent_version\x18\x02 \x01(\x0b\x32,.google.privacy.dlp.v2.StoredInfoTypeVersion\x12\x46\n\x10pending_versions\x18\x03 \x03(\x0b\x32,.google.privacy.dlp.v2.StoredInfoTypeVersion:\xc1\x02\xea\x41\xbd\x02\n!dlp.googleapis.com/StoredInfoType\x12?organizations/{organization}/storedInfoTypes/{stored_info_type}\x12\x35projects/{project}/storedInfoTypes/{stored_info_type}\x12Torganizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}\x12Jprojects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}\"\xcc\x01\n\x1b\x43reateStoredInfoTypeRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dlp.googleapis.com/StoredInfoType\x12@\n\x06\x63onfig\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfigB\x03\xe0\x41\x02\x12\x1b\n\x13stored_info_type_id\x18\x03 \x01(\t\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\"\xc4\x01\n\x1bUpdateStoredInfoTypeRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dlp.googleapis.com/StoredInfoType\x12;\n\x06\x63onfig\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"S\n\x18GetStoredInfoTypeRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dlp.googleapis.com/StoredInfoType\"\xa5\x01\n\x1aListStoredInfoTypesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dlp.googleapis.com/StoredInfoType\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"x\n\x1bListStoredInfoTypesResponse\x12@\n\x11stored_info_types\x18\x01 \x03(\x0b\x32%.google.privacy.dlp.v2.StoredInfoType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x1b\x44\x65leteStoredInfoTypeRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dlp.googleapis.com/StoredInfoType\"\x94\x01\n\x1eHybridInspectJobTriggerRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64lp.googleapis.com/JobTrigger\x12=\n\x0bhybrid_item\x18\x03 \x01(\x0b\x32(.google.privacy.dlp.v2.HybridContentItem\"\x8c\x01\n\x1aHybridInspectDlpJobRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x64lp.googleapis.com/DlpJob\x12=\n\x0bhybrid_item\x18\x03 \x01(\x0b\x32(.google.privacy.dlp.v2.HybridContentItem\"\x8b\x01\n\x11HybridContentItem\x12\x30\n\x04item\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12\x44\n\x0f\x66inding_details\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.HybridFindingDetails\"\xb0\x02\n\x14HybridFindingDetails\x12;\n\x11\x63ontainer_details\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.Container\x12\x13\n\x0b\x66ile_offset\x18\x02 \x01(\x03\x12\x12\n\nrow_offset\x18\x03 \x01(\x03\x12:\n\rtable_options\x18\x04 \x01(\x0b\x32#.google.privacy.dlp.v2.TableOptions\x12G\n\x06labels\x18\x05 \x03(\x0b\x32\x37.google.privacy.dlp.v2.HybridFindingDetails.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x17\n\x15HybridInspectResponse\"\xb9\x01\n\rDataRiskLevel\x12\x46\n\x05score\x18\x01 \x01(\x0e\x32\x37.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"`\n\x12\x44\x61taRiskLevelScore\x12\x1a\n\x16RISK_SCORE_UNSPECIFIED\x10\x00\x12\x0c\n\x08RISK_LOW\x10\n\x12\x11\n\rRISK_MODERATE\x10\x14\x12\r\n\tRISK_HIGH\x10\x1e\"\xa0\x01\n\x19\x44\x61taProfileConfigSnapshot\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x45\n\x10\x64\x61ta_profile_job\x18\x03 \x01(\x0b\x32+.google.privacy.dlp.v2.DataProfileJobConfig\"\x9a\n\n\x10TableDataProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x14project_data_profile\x18\x02 \x01(\t\x12\x1a\n\x12\x64\x61taset_project_id\x18\x18 \x01(\t\x12\x18\n\x10\x64\x61taset_location\x18\x1d \x01(\t\x12\x12\n\ndataset_id\x18\x19 \x01(\t\x12\x10\n\x08table_id\x18\x1a \x01(\t\x12\x15\n\rfull_resource\x18\x03 \x01(\t\x12<\n\x0eprofile_status\x18\x15 \x01(\x0b\x32$.google.privacy.dlp.v2.ProfileStatus\x12<\n\x05state\x18\x16 \x01(\x0e\x32-.google.privacy.dlp.v2.TableDataProfile.State\x12\x42\n\x11sensitivity_score\x18\x05 \x01(\x0b\x32\'.google.privacy.dlp.v2.SensitivityScore\x12=\n\x0f\x64\x61ta_risk_level\x18\x06 \x01(\x0b\x32$.google.privacy.dlp.v2.DataRiskLevel\x12\x44\n\x14predicted_info_types\x18\x1b \x03(\x0b\x32&.google.privacy.dlp.v2.InfoTypeSummary\x12\x45\n\x10other_info_types\x18\x1c \x03(\x0b\x32+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12I\n\x0f\x63onfig_snapshot\x18\x07 \x01(\x0b\x32\x30.google.privacy.dlp.v2.DataProfileConfigSnapshot\x12\x36\n\x12last_modified_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1c\n\x14scanned_column_count\x18\n \x01(\x03\x12\x1b\n\x13\x66\x61iled_column_count\x18\x0b \x01(\x03\x12\x18\n\x10table_size_bytes\x18\x0c \x01(\x03\x12\x11\n\trow_count\x18\r \x01(\x03\x12\x42\n\x11\x65ncryption_status\x18\x0e \x01(\x0e\x32\'.google.privacy.dlp.v2.EncryptionStatus\x12\x46\n\x13resource_visibility\x18\x0f \x01(\x0e\x32).google.privacy.dlp.v2.ResourceVisibility\x12:\n\x16profile_last_generated\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0fresource_labels\x18\x11 \x03(\x0b\x32;.google.privacy.dlp.v2.TableDataProfile.ResourceLabelsEntry\x12/\n\x0b\x63reate_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x35\n\x13ResourceLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x08\n\x04\x44ONE\x10\x02\"b\n\rProfileStatus\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12-\n\ttimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"g\n\x0fInfoTypeSummary\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12 \n\x14\x65stimated_prevalence\x18\x02 \x01(\x05\x42\x02\x18\x01\"h\n\x14OtherInfoTypeSummary\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x1c\n\x14\x65stimated_prevalence\x18\x02 \x01(\x05\"\xea\x05\n\x1a\x44\x61taProfilePubSubCondition\x12X\n\x0b\x65xpressions\x18\x01 \x01(\x0b\x32\x43.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions\x1a\xe9\x01\n\x0fPubSubCondition\x12\x62\n\x12minimum_risk_score\x18\x01 \x01(\x0e\x32\x44.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00\x12i\n\x19minimum_sensitivity_score\x18\x02 \x01(\x0e\x32\x44.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00\x42\x07\n\x05value\x1a\xab\x02\n\x11PubSubExpressions\x12s\n\x10logical_operator\x18\x01 \x01(\x0e\x32Y.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\x12U\n\nconditions\x18\x02 \x03(\x0b\x32\x41.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition\"J\n\x15PubSubLogicalOperator\x12 \n\x1cLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x06\n\x02OR\x10\x01\x12\x07\n\x03\x41ND\x10\x02\"X\n\x12ProfileScoreBucket\x12$\n PROFILE_SCORE_BUCKET_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\x12\n\x0eMEDIUM_OR_HIGH\x10\x02\"\x97\x01\n\x18\x44\x61taProfilePubSubMessage\x12\x38\n\x07profile\x18\x01 \x01(\x0b\x32\'.google.privacy.dlp.v2.TableDataProfile\x12\x41\n\x05\x65vent\x18\x02 \x01(\x0e\x32\x32.google.privacy.dlp.v2.DataProfileAction.EventType*\xa0\x01\n\x1eTransformationResultStatusType\x12\x1a\n\x16STATE_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11INVALID_TRANSFORM\x10\x01\x12\"\n\x1e\x42IGQUERY_MAX_ROW_SIZE_EXCEEDED\x10\x02\x12\x1a\n\x16METADATA_UNRETRIEVABLE\x10\x03\x12\x0b\n\x07SUCCESS\x10\x04*\x7f\n\x1bTransformationContainerType\x12\x1f\n\x1bTRANSFORM_UNKNOWN_CONTAINER\x10\x00\x12\x12\n\x0eTRANSFORM_BODY\x10\x01\x12\x16\n\x12TRANSFORM_METADATA\x10\x02\x12\x13\n\x0fTRANSFORM_TABLE\x10\x03*\xe0\x02\n\x12TransformationType\x12#\n\x1fTRANSFORMATION_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12RECORD_SUPPRESSION\x10\x01\x12\x11\n\rREPLACE_VALUE\x10\x02\x12\x16\n\x12REPLACE_DICTIONARY\x10\x0f\x12\n\n\x06REDACT\x10\x03\x12\x12\n\x0e\x43HARACTER_MASK\x10\x04\x12\x1a\n\x16\x43RYPTO_REPLACE_FFX_FPE\x10\x05\x12\x18\n\x14\x46IXED_SIZE_BUCKETING\x10\x06\x12\r\n\tBUCKETING\x10\x07\x12\x1a\n\x16REPLACE_WITH_INFO_TYPE\x10\x08\x12\r\n\tTIME_PART\x10\t\x12\x0f\n\x0b\x43RYPTO_HASH\x10\n\x12\x0e\n\nDATE_SHIFT\x10\x0c\x12\x1f\n\x1b\x43RYPTO_DETERMINISTIC_CONFIG\x10\r\x12\x10\n\x0cREDACT_IMAGE\x10\x0e*\xbb\x01\n\x12RelationalOperator\x12#\n\x1fRELATIONAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45QUAL_TO\x10\x01\x12\x10\n\x0cNOT_EQUAL_TO\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\r\n\tLESS_THAN\x10\x04\x12\x1a\n\x16GREATER_THAN_OR_EQUALS\x10\x05\x12\x17\n\x13LESS_THAN_OR_EQUALS\x10\x06\x12\n\n\x06\x45XISTS\x10\x07*\x8d\x01\n\x0cMatchingType\x12\x1d\n\x19MATCHING_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18MATCHING_TYPE_FULL_MATCH\x10\x01\x12\x1f\n\x1bMATCHING_TYPE_PARTIAL_MATCH\x10\x02\x12\x1f\n\x1bMATCHING_TYPE_INVERSE_MATCH\x10\x03*M\n\rContentOption\x12\x17\n\x13\x43ONTENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43ONTENT_TEXT\x10\x01\x12\x11\n\rCONTENT_IMAGE\x10\x02*B\n\x0cMetadataType\x12\x1c\n\x18METADATATYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10STORAGE_METADATA\x10\x02*P\n\x13InfoTypeSupportedBy\x12\x19\n\x15\x45NUM_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INSPECT\x10\x01\x12\x11\n\rRISK_ANALYSIS\x10\x02*R\n\nDlpJobType\x12\x1c\n\x18\x44LP_JOB_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINSPECT_JOB\x10\x01\x12\x15\n\x11RISK_ANALYSIS_JOB\x10\x02*n\n\x13StoredInfoTypeState\x12&\n\"STORED_INFO_TYPE_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\t\n\x05READY\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0b\n\x07INVALID\x10\x04*}\n\x12ResourceVisibility\x12#\n\x1fRESOURCE_VISIBILITY_UNSPECIFIED\x10\x00\x12\x1e\n\x1aRESOURCE_VISIBILITY_PUBLIC\x10\n\x12\"\n\x1eRESOURCE_VISIBILITY_RESTRICTED\x10\x14*u\n\x10\x45ncryptionStatus\x12!\n\x1d\x45NCRYPTION_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x45NCRYPTION_GOOGLE_MANAGED\x10\x01\x12\x1f\n\x1b\x45NCRYPTION_CUSTOMER_MANAGED\x10\x02\x32\xa0L\n\nDlpService\x12\xdb\x01\n\x0eInspectContent\x12,.google.privacy.dlp.v2.InspectContentRequest\x1a-.google.privacy.dlp.v2.InspectContentResponse\"l\x82\xd3\xe4\x93\x02\x66\"\'/v2/{parent=projects/*}/content:inspect:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/content:inspect:\x01*\x12\xcc\x01\n\x0bRedactImage\x12).google.privacy.dlp.v2.RedactImageRequest\x1a*.google.privacy.dlp.v2.RedactImageResponse\"f\x82\xd3\xe4\x93\x02`\"$/v2/{parent=projects/*}/image:redact:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/image:redact:\x01*\x12\xea\x01\n\x11\x44\x65identifyContent\x12/.google.privacy.dlp.v2.DeidentifyContentRequest\x1a\x30.google.privacy.dlp.v2.DeidentifyContentResponse\"r\x82\xd3\xe4\x93\x02l\"*/v2/{parent=projects/*}/content:deidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:deidentify:\x01*\x12\xea\x01\n\x11ReidentifyContent\x12/.google.privacy.dlp.v2.ReidentifyContentRequest\x1a\x30.google.privacy.dlp.v2.ReidentifyContentResponse\"r\x82\xd3\xe4\x93\x02l\"*/v2/{parent=projects/*}/content:reidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:reidentify:\x01*\x12\xb0\x01\n\rListInfoTypes\x12+.google.privacy.dlp.v2.ListInfoTypesRequest\x1a,.google.privacy.dlp.v2.ListInfoTypesResponse\"D\x82\xd3\xe4\x93\x02\x35\x12\r/v2/infoTypesZ$\x12\"/v2/{parent=locations/*}/infoTypes\xda\x41\x06parent\x12\xf4\x02\n\x15\x43reateInspectTemplate\x12\x33.google.privacy.dlp.v2.CreateInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate\"\xfd\x01\x82\xd3\xe4\x93\x02\xdc\x01\"-/v2/{parent=organizations/*}/inspectTemplates:\x01*Z>\"9/v2/{parent=organizations/*/locations/*}/inspectTemplates:\x01*Z-\"(/v2/{parent=projects/*}/inspectTemplates:\x01*Z9\"4/v2/{parent=projects/*/locations/*}/inspectTemplates:\x01*\xda\x41\x17parent,inspect_template\x12\xfe\x02\n\x15UpdateInspectTemplate\x12\x33.google.privacy.dlp.v2.UpdateInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate\"\x87\x02\x82\xd3\xe4\x93\x02\xdc\x01\x32-/v2/{name=organizations/*/inspectTemplates/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/inspectTemplates/*}:\x01*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\x01*Z924/v2/{name=projects/*/locations/*/inspectTemplates/*}:\x01*\xda\x41!name,inspect_template,update_mask\x12\xcf\x02\n\x12GetInspectTemplate\x12\x30.google.privacy.dlp.v2.GetInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate\"\xde\x01\x82\xd3\xe4\x93\x02\xd0\x01\x12-/v2/{name=organizations/*/inspectTemplates/*}Z;\x12\x39/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z*\x12(/v2/{name=projects/*/inspectTemplates/*}Z6\x12\x34/v2/{name=projects/*/locations/*/inspectTemplates/*}\xda\x41\x04name\x12\xe2\x02\n\x14ListInspectTemplates\x12\x32.google.privacy.dlp.v2.ListInspectTemplatesRequest\x1a\x33.google.privacy.dlp.v2.ListInspectTemplatesResponse\"\xe0\x01\x82\xd3\xe4\x93\x02\xd0\x01\x12-/v2/{parent=organizations/*}/inspectTemplatesZ;\x12\x39/v2/{parent=organizations/*/locations/*}/inspectTemplatesZ*\x12(/v2/{parent=projects/*}/inspectTemplatesZ6\x12\x34/v2/{parent=projects/*/locations/*}/inspectTemplates\xda\x41\x06parent\x12\xc5\x02\n\x15\x44\x65leteInspectTemplate\x12\x33.google.privacy.dlp.v2.DeleteInspectTemplateRequest\x1a\x16.google.protobuf.Empty\"\xde\x01\x82\xd3\xe4\x93\x02\xd0\x01*-/v2/{name=organizations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}Z6*4/v2/{name=projects/*/locations/*/inspectTemplates/*}\xda\x41\x04name\x12\x8c\x03\n\x18\x43reateDeidentifyTemplate\x12\x36.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest\x1a).google.privacy.dlp.v2.DeidentifyTemplate\"\x8c\x02\x82\xd3\xe4\x93\x02\xe8\x01\"0/v2/{parent=organizations/*}/deidentifyTemplates:\x01*ZA\"\x12\x12*\"9/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect:\x01*\xda\x41\x04name\x12\x91\x01\n\x0c\x46inishDlpJob\x12*.google.privacy.dlp.v2.FinishDlpJobRequest\x1a\x16.google.protobuf.Empty\"=\x82\xd3\xe4\x93\x02\x37\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:finish:\x01*\x1a\x46\xca\x41\x12\x64lp.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xeb\x02\n\x19\x63om.google.privacy.dlp.v2B\x08\x44lpProtoP\x01Z)cloud.google.com/go/dlp/apiv2/dlppb;dlppb\xaa\x02\x13Google.Cloud.Dlp.V2\xca\x02\x13Google\\Cloud\\Dlp\\V2\xea\x02\x16Google::Cloud::Dlp::V2\xea\x41r\n\x1d\x64lp.googleapis.com/DlpContent\x12\x1dprojects/{project}/dlpContent\x12\x32projects/{project}/locations/{location}/dlpContent\xea\x41\\\n\'dlp.googleapis.com/OrganizationLocation\x12\x31organizations/{organization}/locations/{location}b\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.privacy.dlp.v2.InfoType", "google/privacy/dlp/v2/storage.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Empty", "google/protobuf/empty.proto"], + ["google.type.TimeOfDay", "google/type/timeofday.proto"], + ["google.type.Date", "google/type/date.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-dlp-v2/lib/google/privacy/dlp/v2/storage_pb.rb b/google-cloud-dlp-v2/lib/google/privacy/dlp/v2/storage_pb.rb index 7d0626056da6..aec89367f006 100644 --- a/google-cloud-dlp-v2/lib/google/privacy/dlp/v2/storage_pb.rb +++ b/google-cloud-dlp-v2/lib/google/privacy/dlp/v2/storage_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/privacy/dlp/v2/storage.proto @@ -6,215 +7,32 @@ require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do - add_message "google.privacy.dlp.v2.InfoType" do - optional :name, :string, 1 - optional :version, :string, 2 - end - add_message "google.privacy.dlp.v2.SensitivityScore" do - optional :score, :enum, 1, "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel" - end - add_enum "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel" do - value :SENSITIVITY_SCORE_UNSPECIFIED, 0 - value :SENSITIVITY_LOW, 10 - value :SENSITIVITY_MODERATE, 20 - value :SENSITIVITY_HIGH, 30 - end - add_message "google.privacy.dlp.v2.StoredType" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - end - add_message "google.privacy.dlp.v2.CustomInfoType" do - optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType" - optional :likelihood, :enum, 6, "google.privacy.dlp.v2.Likelihood" - repeated :detection_rules, :message, 7, "google.privacy.dlp.v2.CustomInfoType.DetectionRule" - optional :exclusion_type, :enum, 8, "google.privacy.dlp.v2.CustomInfoType.ExclusionType" - oneof :type do - optional :dictionary, :message, 2, "google.privacy.dlp.v2.CustomInfoType.Dictionary" - optional :regex, :message, 3, "google.privacy.dlp.v2.CustomInfoType.Regex" - optional :surrogate_type, :message, 4, "google.privacy.dlp.v2.CustomInfoType.SurrogateType" - optional :stored_type, :message, 5, "google.privacy.dlp.v2.StoredType" - end - end - add_message "google.privacy.dlp.v2.CustomInfoType.Dictionary" do - oneof :source do - optional :word_list, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList" - optional :cloud_storage_path, :message, 3, "google.privacy.dlp.v2.CloudStoragePath" - end - end - add_message "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList" do - repeated :words, :string, 1 - end - add_message "google.privacy.dlp.v2.CustomInfoType.Regex" do - optional :pattern, :string, 1 - repeated :group_indexes, :int32, 2 - end - add_message "google.privacy.dlp.v2.CustomInfoType.SurrogateType" do - end - add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule" do - oneof :type do - optional :hotword_rule, :message, 1, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule" - end - end - add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity" do - optional :window_before, :int32, 1 - optional :window_after, :int32, 2 - end - add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment" do - oneof :adjustment do - optional :fixed_likelihood, :enum, 1, "google.privacy.dlp.v2.Likelihood" - optional :relative_likelihood, :int32, 2 - end - end - add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule" do - optional :hotword_regex, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Regex" - optional :proximity, :message, 2, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity" - optional :likelihood_adjustment, :message, 3, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment" - end - add_enum "google.privacy.dlp.v2.CustomInfoType.ExclusionType" do - value :EXCLUSION_TYPE_UNSPECIFIED, 0 - value :EXCLUSION_TYPE_EXCLUDE, 1 - end - add_message "google.privacy.dlp.v2.FieldId" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.PartitionId" do - optional :project_id, :string, 2 - optional :namespace_id, :string, 4 - end - add_message "google.privacy.dlp.v2.KindExpression" do - optional :name, :string, 1 - end - add_message "google.privacy.dlp.v2.DatastoreOptions" do - optional :partition_id, :message, 1, "google.privacy.dlp.v2.PartitionId" - optional :kind, :message, 2, "google.privacy.dlp.v2.KindExpression" - end - add_message "google.privacy.dlp.v2.CloudStorageRegexFileSet" do - optional :bucket_name, :string, 1 - repeated :include_regex, :string, 2 - repeated :exclude_regex, :string, 3 - end - add_message "google.privacy.dlp.v2.CloudStorageOptions" do - optional :file_set, :message, 1, "google.privacy.dlp.v2.CloudStorageOptions.FileSet" - optional :bytes_limit_per_file, :int64, 4 - optional :bytes_limit_per_file_percent, :int32, 8 - repeated :file_types, :enum, 5, "google.privacy.dlp.v2.FileType" - optional :sample_method, :enum, 6, "google.privacy.dlp.v2.CloudStorageOptions.SampleMethod" - optional :files_limit_percent, :int32, 7 - end - add_message "google.privacy.dlp.v2.CloudStorageOptions.FileSet" do - optional :url, :string, 1 - optional :regex_file_set, :message, 2, "google.privacy.dlp.v2.CloudStorageRegexFileSet" - end - add_enum "google.privacy.dlp.v2.CloudStorageOptions.SampleMethod" do - value :SAMPLE_METHOD_UNSPECIFIED, 0 - value :TOP, 1 - value :RANDOM_START, 2 - end - add_message "google.privacy.dlp.v2.CloudStorageFileSet" do - optional :url, :string, 1 - end - add_message "google.privacy.dlp.v2.CloudStoragePath" do - optional :path, :string, 1 - end - add_message "google.privacy.dlp.v2.BigQueryOptions" do - optional :table_reference, :message, 1, "google.privacy.dlp.v2.BigQueryTable" - repeated :identifying_fields, :message, 2, "google.privacy.dlp.v2.FieldId" - optional :rows_limit, :int64, 3 - optional :rows_limit_percent, :int32, 6 - optional :sample_method, :enum, 4, "google.privacy.dlp.v2.BigQueryOptions.SampleMethod" - repeated :excluded_fields, :message, 5, "google.privacy.dlp.v2.FieldId" - repeated :included_fields, :message, 7, "google.privacy.dlp.v2.FieldId" - end - add_enum "google.privacy.dlp.v2.BigQueryOptions.SampleMethod" do - value :SAMPLE_METHOD_UNSPECIFIED, 0 - value :TOP, 1 - value :RANDOM_START, 2 - end - add_message "google.privacy.dlp.v2.StorageConfig" do - optional :timespan_config, :message, 6, "google.privacy.dlp.v2.StorageConfig.TimespanConfig" - oneof :type do - optional :datastore_options, :message, 2, "google.privacy.dlp.v2.DatastoreOptions" - optional :cloud_storage_options, :message, 3, "google.privacy.dlp.v2.CloudStorageOptions" - optional :big_query_options, :message, 4, "google.privacy.dlp.v2.BigQueryOptions" - optional :hybrid_options, :message, 9, "google.privacy.dlp.v2.HybridOptions" - end - end - add_message "google.privacy.dlp.v2.StorageConfig.TimespanConfig" do - optional :start_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :timestamp_field, :message, 3, "google.privacy.dlp.v2.FieldId" - optional :enable_auto_population_of_timespan_config, :bool, 4 - end - add_message "google.privacy.dlp.v2.HybridOptions" do - optional :description, :string, 1 - repeated :required_finding_label_keys, :string, 2 - map :labels, :string, :string, 3 - optional :table_options, :message, 4, "google.privacy.dlp.v2.TableOptions" - end - add_message "google.privacy.dlp.v2.BigQueryKey" do - optional :table_reference, :message, 1, "google.privacy.dlp.v2.BigQueryTable" - optional :row_number, :int64, 2 - end - add_message "google.privacy.dlp.v2.DatastoreKey" do - optional :entity_key, :message, 1, "google.privacy.dlp.v2.Key" - end - add_message "google.privacy.dlp.v2.Key" do - optional :partition_id, :message, 1, "google.privacy.dlp.v2.PartitionId" - repeated :path, :message, 2, "google.privacy.dlp.v2.Key.PathElement" - end - add_message "google.privacy.dlp.v2.Key.PathElement" do - optional :kind, :string, 1 - oneof :id_type do - optional :id, :int64, 2 - optional :name, :string, 3 - end - end - add_message "google.privacy.dlp.v2.RecordKey" do - repeated :id_values, :string, 5 - oneof :type do - optional :datastore_key, :message, 2, "google.privacy.dlp.v2.DatastoreKey" - optional :big_query_key, :message, 3, "google.privacy.dlp.v2.BigQueryKey" - end - end - add_message "google.privacy.dlp.v2.BigQueryTable" do - optional :project_id, :string, 1 - optional :dataset_id, :string, 2 - optional :table_id, :string, 3 - end - add_message "google.privacy.dlp.v2.BigQueryField" do - optional :table, :message, 1, "google.privacy.dlp.v2.BigQueryTable" - optional :field, :message, 2, "google.privacy.dlp.v2.FieldId" - end - add_message "google.privacy.dlp.v2.EntityId" do - optional :field, :message, 1, "google.privacy.dlp.v2.FieldId" - end - add_message "google.privacy.dlp.v2.TableOptions" do - repeated :identifying_fields, :message, 1, "google.privacy.dlp.v2.FieldId" - end - add_enum "google.privacy.dlp.v2.Likelihood" do - value :LIKELIHOOD_UNSPECIFIED, 0 - value :VERY_UNLIKELY, 1 - value :UNLIKELY, 2 - value :POSSIBLE, 3 - value :LIKELY, 4 - value :VERY_LIKELY, 5 - end - add_enum "google.privacy.dlp.v2.FileType" do - value :FILE_TYPE_UNSPECIFIED, 0 - value :BINARY_FILE, 1 - value :TEXT_FILE, 2 - value :IMAGE, 3 - value :WORD, 5 - value :PDF, 6 - value :AVRO, 7 - value :CSV, 8 - value :TSV, 9 - value :POWERPOINT, 11 - value :EXCEL, 12 + +descriptor_data = "\n#google/privacy/dlp/v2/storage.proto\x12\x15google.privacy.dlp.v2\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\")\n\x08InfoType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"\xe1\x01\n\x10SensitivityScore\x12L\n\x05score\x18\x01 \x01(\x0e\x32=.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel\"\x7f\n\x15SensitivityScoreLevel\x12!\n\x1dSENSITIVITY_SCORE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSENSITIVITY_LOW\x10\n\x12\x18\n\x14SENSITIVITY_MODERATE\x10\x14\x12\x14\n\x10SENSITIVITY_HIGH\x10\x1e\"K\n\nStoredType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xc8\x0b\n\x0e\x43ustomInfoType\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x35\n\nlikelihood\x18\x06 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x46\n\ndictionary\x18\x02 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\n\x05regex\x18\x03 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12M\n\x0esurrogate_type\x18\x04 \x01(\x0b\x32\x33.google.privacy.dlp.v2.CustomInfoType.SurrogateTypeH\x00\x12\x38\n\x0bstored_type\x18\x05 \x01(\x0b\x32!.google.privacy.dlp.v2.StoredTypeH\x00\x12L\n\x0f\x64\x65tection_rules\x18\x07 \x03(\x0b\x32\x33.google.privacy.dlp.v2.CustomInfoType.DetectionRule\x12K\n\x0e\x65xclusion_type\x18\x08 \x01(\x0e\x32\x33.google.privacy.dlp.v2.CustomInfoType.ExclusionType\x1a\xc8\x01\n\nDictionary\x12N\n\tword_list\x18\x01 \x01(\x0b\x32\x39.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00\x12\x45\n\x12\x63loud_storage_path\x18\x03 \x01(\x0b\x32\'.google.privacy.dlp.v2.CloudStoragePathH\x00\x1a\x19\n\x08WordList\x12\r\n\x05words\x18\x01 \x03(\tB\x08\n\x06source\x1a/\n\x05Regex\x12\x0f\n\x07pattern\x18\x01 \x01(\t\x12\x15\n\rgroup_indexes\x18\x02 \x03(\x05\x1a\x0f\n\rSurrogateType\x1a\xbe\x04\n\rDetectionRule\x12W\n\x0chotword_rule\x18\x01 \x01(\x0b\x32?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x1a\x38\n\tProximity\x12\x15\n\rwindow_before\x18\x01 \x01(\x05\x12\x14\n\x0cwindow_after\x18\x02 \x01(\x05\x1a\x82\x01\n\x14LikelihoodAdjustment\x12=\n\x10\x66ixed_likelihood\x18\x01 \x01(\x0e\x32!.google.privacy.dlp.v2.LikelihoodH\x00\x12\x1d\n\x13relative_likelihood\x18\x02 \x01(\x05H\x00\x42\x0c\n\nadjustment\x1a\x8c\x02\n\x0bHotwordRule\x12\x42\n\rhotword_regex\x18\x01 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\n\tproximity\x18\x02 \x01(\x0b\x32=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\x12g\n\x15likelihood_adjustment\x18\x03 \x01(\x0b\x32H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x06\n\x04type\"K\n\rExclusionType\x12\x1e\n\x1a\x45XCLUSION_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x45XCLUSION_TYPE_EXCLUDE\x10\x01\x42\x06\n\x04type\"\x17\n\x07\x46ieldId\x12\x0c\n\x04name\x18\x01 \x01(\t\"7\n\x0bPartitionId\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\"\x1e\n\x0eKindExpression\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x81\x01\n\x10\x44\x61tastoreOptions\x12\x38\n\x0cpartition_id\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.PartitionId\x12\x33\n\x04kind\x18\x02 \x01(\x0b\x32%.google.privacy.dlp.v2.KindExpression\"]\n\x18\x43loudStorageRegexFileSet\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x15\n\rinclude_regex\x18\x02 \x03(\t\x12\x15\n\rexclude_regex\x18\x03 \x03(\t\"\xec\x03\n\x13\x43loudStorageOptions\x12\x44\n\x08\x66ile_set\x18\x01 \x01(\x0b\x32\x32.google.privacy.dlp.v2.CloudStorageOptions.FileSet\x12\x1c\n\x14\x62ytes_limit_per_file\x18\x04 \x01(\x03\x12$\n\x1c\x62ytes_limit_per_file_percent\x18\x08 \x01(\x05\x12\x33\n\nfile_types\x18\x05 \x03(\x0e\x32\x1f.google.privacy.dlp.v2.FileType\x12N\n\rsample_method\x18\x06 \x01(\x0e\x32\x37.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod\x12\x1b\n\x13\x66iles_limit_percent\x18\x07 \x01(\x05\x1a_\n\x07\x46ileSet\x12\x0b\n\x03url\x18\x01 \x01(\t\x12G\n\x0eregex_file_set\x18\x02 \x01(\x0b\x32/.google.privacy.dlp.v2.CloudStorageRegexFileSet\"H\n\x0cSampleMethod\x12\x1d\n\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\x10\n\x0cRANDOM_START\x10\x02\"\"\n\x13\x43loudStorageFileSet\x12\x0b\n\x03url\x18\x01 \x01(\t\" \n\x10\x43loudStoragePath\x12\x0c\n\x04path\x18\x01 \x01(\t\"\xc4\x03\n\x0f\x42igQueryOptions\x12=\n\x0ftable_reference\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12:\n\x12identifying_fields\x18\x02 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\nrows_limit\x18\x03 \x01(\x03\x12\x1a\n\x12rows_limit_percent\x18\x06 \x01(\x05\x12J\n\rsample_method\x18\x04 \x01(\x0e\x32\x33.google.privacy.dlp.v2.BigQueryOptions.SampleMethod\x12\x37\n\x0f\x65xcluded_fields\x18\x05 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x37\n\x0fincluded_fields\x18\x07 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\"H\n\x0cSampleMethod\x12\x1d\n\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\x10\n\x0cRANDOM_START\x10\x02\"\xda\x04\n\rStorageConfig\x12\x44\n\x11\x64\x61tastore_options\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DatastoreOptionsH\x00\x12K\n\x15\x63loud_storage_options\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.CloudStorageOptionsH\x00\x12\x43\n\x11\x62ig_query_options\x18\x04 \x01(\x0b\x32&.google.privacy.dlp.v2.BigQueryOptionsH\x00\x12>\n\x0ehybrid_options\x18\t \x01(\x0b\x32$.google.privacy.dlp.v2.HybridOptionsH\x00\x12L\n\x0ftimespan_config\x18\x06 \x01(\x0b\x32\x33.google.privacy.dlp.v2.StorageConfig.TimespanConfig\x1a\xda\x01\n\x0eTimespanConfig\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x0ftimestamp_field\x18\x03 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x31\n)enable_auto_population_of_timespan_config\x18\x04 \x01(\x08\x42\x06\n\x04type\"\xf6\x01\n\rHybridOptions\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12#\n\x1brequired_finding_label_keys\x18\x02 \x03(\t\x12@\n\x06labels\x18\x03 \x03(\x0b\x32\x30.google.privacy.dlp.v2.HybridOptions.LabelsEntry\x12:\n\rtable_options\x18\x04 \x01(\x0b\x32#.google.privacy.dlp.v2.TableOptions\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x0b\x42igQueryKey\x12=\n\x0ftable_reference\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12\x12\n\nrow_number\x18\x02 \x01(\x03\">\n\x0c\x44\x61tastoreKey\x12.\n\nentity_key\x18\x01 \x01(\x0b\x32\x1a.google.privacy.dlp.v2.Key\"\xbb\x01\n\x03Key\x12\x38\n\x0cpartition_id\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.PartitionId\x12\x34\n\x04path\x18\x02 \x03(\x0b\x32&.google.privacy.dlp.v2.Key.PathElement\x1a\x44\n\x0bPathElement\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x02id\x18\x02 \x01(\x03H\x00\x12\x0e\n\x04name\x18\x03 \x01(\tH\x00\x42\t\n\x07id_type\"\xa1\x01\n\tRecordKey\x12<\n\rdatastore_key\x18\x02 \x01(\x0b\x32#.google.privacy.dlp.v2.DatastoreKeyH\x00\x12;\n\rbig_query_key\x18\x03 \x01(\x0b\x32\".google.privacy.dlp.v2.BigQueryKeyH\x00\x12\x11\n\tid_values\x18\x05 \x03(\tB\x06\n\x04type\"I\n\rBigQueryTable\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\ndataset_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"s\n\rBigQueryField\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12-\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\"9\n\x08\x45ntityId\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\"J\n\x0cTableOptions\x12:\n\x12identifying_fields\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05*\x9a\x01\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x42INARY_FILE\x10\x01\x12\r\n\tTEXT_FILE\x10\x02\x12\t\n\x05IMAGE\x10\x03\x12\x08\n\x04WORD\x10\x05\x12\x07\n\x03PDF\x10\x06\x12\x08\n\x04\x41VRO\x10\x07\x12\x07\n\x03\x43SV\x10\x08\x12\x07\n\x03TSV\x10\t\x12\x0e\n\nPOWERPOINT\x10\x0b\x12\t\n\x05\x45XCEL\x10\x0c\x42\x99\x01\n\x19\x63om.google.privacy.dlp.v2B\nDlpStorageP\x01Z)cloud.google.com/go/dlp/apiv2/dlppb;dlppb\xaa\x02\x13Google.Cloud.Dlp.V2\xca\x02\x13Google\\Cloud\\Dlp\\V2\xea\x02\x16Google::Cloud::Dlp::V2b\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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-dlp-v2/proto_docs/google/protobuf/any.rb b/google-cloud-dlp-v2/proto_docs/google/protobuf/any.rb index 8774b7f4a815..68a54aef5a75 100644 --- a/google-cloud-dlp-v2/proto_docs/google/protobuf/any.rb +++ b/google-cloud-dlp-v2/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-dlp-v2/proto_docs/google/protobuf/timestamp.rb b/google-cloud-dlp-v2/proto_docs/google/protobuf/timestamp.rb index 7c4e206ac5fb..4891104f14b9 100644 --- a/google-cloud-dlp-v2/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-dlp-v2/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-document_ai-v1/google-cloud-document_ai-v1.gemspec b/google-cloud-document_ai-v1/google-cloud-document_ai-v1.gemspec index 9d1699ca395c..0c65e28665f8 100644 --- a/google-cloud-document_ai-v1/google-cloud-document_ai-v1.gemspec +++ b/google-cloud-document_ai-v1/google-cloud-document_ai-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-cloud-location", ">= 0.4", "< 2.a" diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/barcode_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/barcode_pb.rb index 8cce34bb687d..73ab6090cee6 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/barcode_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/barcode_pb.rb @@ -1,16 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/barcode.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/barcode.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.Barcode" do - optional :format, :string, 1 - optional :value_format, :string, 2 - optional :raw_value, :string, 3 + +descriptor_data = "\n(google/cloud/documentai/v1/barcode.proto\x12\x1agoogle.cloud.documentai.v1\"B\n\x07\x42\x61rcode\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x14\n\x0cvalue_format\x18\x02 \x01(\t\x12\x11\n\traw_value\x18\x03 \x01(\tB\xca\x01\n\x1e\x63om.google.cloud.documentai.v1B\x0c\x42\x61rcodeProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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 = [ + ] + 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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_io_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_io_pb.rb index acba97cfc66b..fd62db26faa2 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_io_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_io_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/document_io.proto @@ -5,43 +6,32 @@ require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/document_io.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.RawDocument" do - optional :content, :bytes, 1 - optional :mime_type, :string, 2 - end - add_message "google.cloud.documentai.v1.GcsDocument" do - optional :gcs_uri, :string, 1 - optional :mime_type, :string, 2 - end - add_message "google.cloud.documentai.v1.GcsDocuments" do - repeated :documents, :message, 1, "google.cloud.documentai.v1.GcsDocument" - end - add_message "google.cloud.documentai.v1.GcsPrefix" do - optional :gcs_uri_prefix, :string, 1 - end - add_message "google.cloud.documentai.v1.BatchDocumentsInputConfig" do - oneof :source do - optional :gcs_prefix, :message, 1, "google.cloud.documentai.v1.GcsPrefix" - optional :gcs_documents, :message, 2, "google.cloud.documentai.v1.GcsDocuments" - end - end - add_message "google.cloud.documentai.v1.DocumentOutputConfig" do - oneof :destination do - optional :gcs_output_config, :message, 1, "google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig" - end - end - add_message "google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig" do - optional :gcs_uri, :string, 1 - optional :field_mask, :message, 2, "google.protobuf.FieldMask" - optional :sharding_config, :message, 3, "google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig" - end - add_message "google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig" do - optional :pages_per_shard, :int32, 1 - optional :pages_overlap, :int32, 2 + +descriptor_data = "\n,google/cloud/documentai/v1/document_io.proto\x12\x1agoogle.cloud.documentai.v1\x1a google/protobuf/field_mask.proto\"1\n\x0bRawDocument\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\"1\n\x0bGcsDocument\x12\x0f\n\x07gcs_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\"J\n\x0cGcsDocuments\x12:\n\tdocuments\x18\x01 \x03(\x0b\x32\'.google.cloud.documentai.v1.GcsDocument\"#\n\tGcsPrefix\x12\x16\n\x0egcs_uri_prefix\x18\x01 \x01(\t\"\xa5\x01\n\x19\x42\x61tchDocumentsInputConfig\x12;\n\ngcs_prefix\x18\x01 \x01(\x0b\x32%.google.cloud.documentai.v1.GcsPrefixH\x00\x12\x41\n\rgcs_documents\x18\x02 \x01(\x0b\x32(.google.cloud.documentai.v1.GcsDocumentsH\x00\x42\x08\n\x06source\"\x85\x03\n\x14\x44ocumentOutputConfig\x12]\n\x11gcs_output_config\x18\x01 \x01(\x0b\x32@.google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfigH\x00\x1a\xfe\x01\n\x0fGcsOutputConfig\x12\x0f\n\x07gcs_uri\x18\x01 \x01(\t\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12h\n\x0fsharding_config\x18\x03 \x01(\x0b\x32O.google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig\x1a@\n\x0eShardingConfig\x12\x17\n\x0fpages_per_shard\x18\x01 \x01(\x05\x12\x15\n\rpages_overlap\x18\x02 \x01(\x05\x42\r\n\x0b\x64\x65stinationB\xcd\x01\n\x1e\x63om.google.cloud.documentai.v1B\x0f\x44ocumentIoProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_pb.rb index 5f9b2347045e..97fa2d747f99 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/document.proto @@ -14,273 +15,40 @@ require 'google/type/money_pb' require 'google/type/postal_address_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/document.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.Document" do - optional :mime_type, :string, 3 - optional :text, :string, 4 - repeated :text_styles, :message, 5, "google.cloud.documentai.v1.Document.Style" - repeated :pages, :message, 6, "google.cloud.documentai.v1.Document.Page" - repeated :entities, :message, 7, "google.cloud.documentai.v1.Document.Entity" - repeated :entity_relations, :message, 8, "google.cloud.documentai.v1.Document.EntityRelation" - repeated :text_changes, :message, 14, "google.cloud.documentai.v1.Document.TextChange" - optional :shard_info, :message, 9, "google.cloud.documentai.v1.Document.ShardInfo" - optional :error, :message, 10, "google.rpc.Status" - repeated :revisions, :message, 13, "google.cloud.documentai.v1.Document.Revision" - oneof :source do - optional :uri, :string, 1 - optional :content, :bytes, 2 - end - end - add_message "google.cloud.documentai.v1.Document.ShardInfo" do - optional :shard_index, :int64, 1 - optional :shard_count, :int64, 2 - optional :text_offset, :int64, 3 - end - add_message "google.cloud.documentai.v1.Document.Style" do - optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor" - optional :color, :message, 2, "google.type.Color" - optional :background_color, :message, 3, "google.type.Color" - optional :font_weight, :string, 4 - optional :text_style, :string, 5 - optional :text_decoration, :string, 6 - optional :font_size, :message, 7, "google.cloud.documentai.v1.Document.Style.FontSize" - optional :font_family, :string, 8 - end - add_message "google.cloud.documentai.v1.Document.Style.FontSize" do - optional :size, :float, 1 - optional :unit, :string, 2 - end - add_message "google.cloud.documentai.v1.Document.Page" do - optional :page_number, :int32, 1 - optional :image, :message, 13, "google.cloud.documentai.v1.Document.Page.Image" - repeated :transforms, :message, 14, "google.cloud.documentai.v1.Document.Page.Matrix" - optional :dimension, :message, 2, "google.cloud.documentai.v1.Document.Page.Dimension" - optional :layout, :message, 3, "google.cloud.documentai.v1.Document.Page.Layout" - repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - repeated :blocks, :message, 5, "google.cloud.documentai.v1.Document.Page.Block" - repeated :paragraphs, :message, 6, "google.cloud.documentai.v1.Document.Page.Paragraph" - repeated :lines, :message, 7, "google.cloud.documentai.v1.Document.Page.Line" - repeated :tokens, :message, 8, "google.cloud.documentai.v1.Document.Page.Token" - repeated :visual_elements, :message, 9, "google.cloud.documentai.v1.Document.Page.VisualElement" - repeated :tables, :message, 10, "google.cloud.documentai.v1.Document.Page.Table" - repeated :form_fields, :message, 11, "google.cloud.documentai.v1.Document.Page.FormField" - repeated :symbols, :message, 12, "google.cloud.documentai.v1.Document.Page.Symbol" - repeated :detected_barcodes, :message, 15, "google.cloud.documentai.v1.Document.Page.DetectedBarcode" - optional :image_quality_scores, :message, 17, "google.cloud.documentai.v1.Document.Page.ImageQualityScores" - optional :provenance, :message, 16, "google.cloud.documentai.v1.Document.Provenance" - end - add_message "google.cloud.documentai.v1.Document.Page.Dimension" do - optional :width, :float, 1 - optional :height, :float, 2 - optional :unit, :string, 3 - end - add_message "google.cloud.documentai.v1.Document.Page.Image" do - optional :content, :bytes, 1 - optional :mime_type, :string, 2 - optional :width, :int32, 3 - optional :height, :int32, 4 - end - add_message "google.cloud.documentai.v1.Document.Page.Matrix" do - optional :rows, :int32, 1 - optional :cols, :int32, 2 - optional :type, :int32, 3 - optional :data, :bytes, 4 - end - add_message "google.cloud.documentai.v1.Document.Page.Layout" do - optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor" - optional :confidence, :float, 2 - optional :bounding_poly, :message, 3, "google.cloud.documentai.v1.BoundingPoly" - optional :orientation, :enum, 4, "google.cloud.documentai.v1.Document.Page.Layout.Orientation" - end - add_enum "google.cloud.documentai.v1.Document.Page.Layout.Orientation" do - value :ORIENTATION_UNSPECIFIED, 0 - value :PAGE_UP, 1 - value :PAGE_RIGHT, 2 - value :PAGE_DOWN, 3 - value :PAGE_LEFT, 4 - end - add_message "google.cloud.documentai.v1.Document.Page.Block" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance" - end - add_message "google.cloud.documentai.v1.Document.Page.Paragraph" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance" - end - add_message "google.cloud.documentai.v1.Document.Page.Line" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance" - end - add_message "google.cloud.documentai.v1.Document.Page.Token" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - optional :detected_break, :message, 2, "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak" - repeated :detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - optional :provenance, :message, 4, "google.cloud.documentai.v1.Document.Provenance" - end - add_message "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak" do - optional :type, :enum, 1, "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type" - end - add_enum "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type" do - value :TYPE_UNSPECIFIED, 0 - value :SPACE, 1 - value :WIDE_SPACE, 2 - value :HYPHEN, 3 - end - add_message "google.cloud.documentai.v1.Document.Page.Symbol" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - end - add_message "google.cloud.documentai.v1.Document.Page.VisualElement" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - optional :type, :string, 2 - repeated :detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - end - add_message "google.cloud.documentai.v1.Document.Page.Table" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - repeated :header_rows, :message, 2, "google.cloud.documentai.v1.Document.Page.Table.TableRow" - repeated :body_rows, :message, 3, "google.cloud.documentai.v1.Document.Page.Table.TableRow" - repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - optional :provenance, :message, 5, "google.cloud.documentai.v1.Document.Provenance" - end - add_message "google.cloud.documentai.v1.Document.Page.Table.TableRow" do - repeated :cells, :message, 1, "google.cloud.documentai.v1.Document.Page.Table.TableCell" - end - add_message "google.cloud.documentai.v1.Document.Page.Table.TableCell" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - optional :row_span, :int32, 2 - optional :col_span, :int32, 3 - repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - end - add_message "google.cloud.documentai.v1.Document.Page.FormField" do - optional :field_name, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - optional :field_value, :message, 2, "google.cloud.documentai.v1.Document.Page.Layout" - repeated :name_detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - repeated :value_detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage" - optional :value_type, :string, 5 - optional :corrected_key_text, :string, 6 - optional :corrected_value_text, :string, 7 - optional :provenance, :message, 8, "google.cloud.documentai.v1.Document.Provenance" - end - add_message "google.cloud.documentai.v1.Document.Page.DetectedBarcode" do - optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout" - optional :barcode, :message, 2, "google.cloud.documentai.v1.Barcode" - end - add_message "google.cloud.documentai.v1.Document.Page.DetectedLanguage" do - optional :language_code, :string, 1 - optional :confidence, :float, 2 - end - add_message "google.cloud.documentai.v1.Document.Page.ImageQualityScores" do - optional :quality_score, :float, 1 - repeated :detected_defects, :message, 2, "google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect" - end - add_message "google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect" do - optional :type, :string, 1 - optional :confidence, :float, 2 - end - add_message "google.cloud.documentai.v1.Document.Entity" do - optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor" - optional :type, :string, 2 - optional :mention_text, :string, 3 - optional :mention_id, :string, 4 - optional :confidence, :float, 5 - optional :page_anchor, :message, 6, "google.cloud.documentai.v1.Document.PageAnchor" - optional :id, :string, 7 - optional :normalized_value, :message, 9, "google.cloud.documentai.v1.Document.Entity.NormalizedValue" - repeated :properties, :message, 10, "google.cloud.documentai.v1.Document.Entity" - optional :provenance, :message, 11, "google.cloud.documentai.v1.Document.Provenance" - optional :redacted, :bool, 12 - end - add_message "google.cloud.documentai.v1.Document.Entity.NormalizedValue" do - optional :text, :string, 1 - oneof :structured_value do - optional :money_value, :message, 2, "google.type.Money" - optional :date_value, :message, 3, "google.type.Date" - optional :datetime_value, :message, 4, "google.type.DateTime" - optional :address_value, :message, 5, "google.type.PostalAddress" - optional :boolean_value, :bool, 6 - optional :integer_value, :int32, 7 - optional :float_value, :float, 8 - end - end - add_message "google.cloud.documentai.v1.Document.EntityRelation" do - optional :subject_id, :string, 1 - optional :object_id, :string, 2 - optional :relation, :string, 3 - end - add_message "google.cloud.documentai.v1.Document.TextAnchor" do - repeated :text_segments, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor.TextSegment" - optional :content, :string, 2 - end - add_message "google.cloud.documentai.v1.Document.TextAnchor.TextSegment" do - optional :start_index, :int64, 1 - optional :end_index, :int64, 2 - end - add_message "google.cloud.documentai.v1.Document.PageAnchor" do - repeated :page_refs, :message, 1, "google.cloud.documentai.v1.Document.PageAnchor.PageRef" - end - add_message "google.cloud.documentai.v1.Document.PageAnchor.PageRef" do - optional :page, :int64, 1 - optional :layout_type, :enum, 2, "google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType" - optional :layout_id, :string, 3 - optional :bounding_poly, :message, 4, "google.cloud.documentai.v1.BoundingPoly" - optional :confidence, :float, 5 - end - add_enum "google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType" do - value :LAYOUT_TYPE_UNSPECIFIED, 0 - value :BLOCK, 1 - value :PARAGRAPH, 2 - value :LINE, 3 - value :TOKEN, 4 - value :VISUAL_ELEMENT, 5 - value :TABLE, 6 - value :FORM_FIELD, 7 - end - add_message "google.cloud.documentai.v1.Document.Provenance" do - optional :revision, :int32, 1 - optional :id, :int32, 2 - repeated :parents, :message, 3, "google.cloud.documentai.v1.Document.Provenance.Parent" - optional :type, :enum, 4, "google.cloud.documentai.v1.Document.Provenance.OperationType" - end - add_message "google.cloud.documentai.v1.Document.Provenance.Parent" do - optional :revision, :int32, 1 - optional :index, :int32, 3 - optional :id, :int32, 2 - end - add_enum "google.cloud.documentai.v1.Document.Provenance.OperationType" do - value :OPERATION_TYPE_UNSPECIFIED, 0 - value :ADD, 1 - value :REMOVE, 2 - value :UPDATE, 7 - value :REPLACE, 3 - value :EVAL_REQUESTED, 4 - value :EVAL_APPROVED, 5 - value :EVAL_SKIPPED, 6 - end - add_message "google.cloud.documentai.v1.Document.Revision" do - optional :id, :string, 1 - repeated :parent, :int32, 2 - repeated :parent_ids, :string, 7 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :human_review, :message, 6, "google.cloud.documentai.v1.Document.Revision.HumanReview" - oneof :source do - optional :agent, :string, 4 - optional :processor, :string, 5 - end - end - add_message "google.cloud.documentai.v1.Document.Revision.HumanReview" do - optional :state, :string, 1 - optional :state_message, :string, 2 - end - add_message "google.cloud.documentai.v1.Document.TextChange" do - optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor" - optional :changed_text, :string, 2 - repeated :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance" + +descriptor_data = "\n)google/cloud/documentai/v1/document.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/cloud/documentai/v1/barcode.proto\x1a)google/cloud/documentai/v1/geometry.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x16google/type/date.proto\x1a\x1agoogle/type/datetime.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\"\xcf\x41\n\x08\x44ocument\x12\x12\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\x07\x63ontent\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x11\n\x04text\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x43\n\x0btext_styles\x18\x05 \x03(\x0b\x32*.google.cloud.documentai.v1.Document.StyleB\x02\x18\x01\x12\x38\n\x05pages\x18\x06 \x03(\x0b\x32).google.cloud.documentai.v1.Document.Page\x12=\n\x08\x65ntities\x18\x07 \x03(\x0b\x32+.google.cloud.documentai.v1.Document.Entity\x12M\n\x10\x65ntity_relations\x18\x08 \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.EntityRelation\x12\x45\n\x0ctext_changes\x18\x0e \x03(\x0b\x32/.google.cloud.documentai.v1.Document.TextChange\x12\x42\n\nshard_info\x18\t \x01(\x0b\x32..google.cloud.documentai.v1.Document.ShardInfo\x12!\n\x05\x65rror\x18\n \x01(\x0b\x32\x12.google.rpc.Status\x12@\n\trevisions\x18\r \x03(\x0b\x32-.google.cloud.documentai.v1.Document.Revision\x1aJ\n\tShardInfo\x12\x13\n\x0bshard_index\x18\x01 \x01(\x03\x12\x13\n\x0bshard_count\x18\x02 \x01(\x03\x12\x13\n\x0btext_offset\x18\x03 \x01(\x03\x1a\xe5\x02\n\x05Style\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12!\n\x05\x63olor\x18\x02 \x01(\x0b\x32\x12.google.type.Color\x12,\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\x0b\x32\x12.google.type.Color\x12\x13\n\x0b\x66ont_weight\x18\x04 \x01(\t\x12\x12\n\ntext_style\x18\x05 \x01(\t\x12\x17\n\x0ftext_decoration\x18\x06 \x01(\t\x12\x46\n\tfont_size\x18\x07 \x01(\x0b\x32\x33.google.cloud.documentai.v1.Document.Style.FontSize\x12\x13\n\x0b\x66ont_family\x18\x08 \x01(\t\x1a&\n\x08\x46ontSize\x12\x0c\n\x04size\x18\x01 \x01(\x02\x12\x0c\n\x04unit\x18\x02 \x01(\t\x1a\x8a&\n\x04Page\x12\x13\n\x0bpage_number\x18\x01 \x01(\x05\x12>\n\x05image\x18\r \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Image\x12\x44\n\ntransforms\x18\x0e \x03(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Matrix\x12\x46\n\tdimension\x18\x02 \x01(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.Dimension\x12@\n\x06layout\x18\x03 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12?\n\x06\x62locks\x18\x05 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Block\x12G\n\nparagraphs\x18\x06 \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.Paragraph\x12=\n\x05lines\x18\x07 \x03(\x0b\x32..google.cloud.documentai.v1.Document.Page.Line\x12?\n\x06tokens\x18\x08 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Token\x12P\n\x0fvisual_elements\x18\t \x03(\x0b\x32\x37.google.cloud.documentai.v1.Document.Page.VisualElement\x12?\n\x06tables\x18\n \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Table\x12H\n\x0b\x66orm_fields\x18\x0b \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.FormField\x12\x41\n\x07symbols\x18\x0c \x03(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Symbol\x12T\n\x11\x64\x65tected_barcodes\x18\x0f \x03(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.DetectedBarcode\x12Z\n\x14image_quality_scores\x18\x11 \x01(\x0b\x32<.google.cloud.documentai.v1.Document.Page.ImageQualityScores\x12G\n\nprovenance\x18\x10 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\x38\n\tDimension\x12\r\n\x05width\x18\x01 \x01(\x02\x12\x0e\n\x06height\x18\x02 \x01(\x02\x12\x0c\n\x04unit\x18\x03 \x01(\t\x1aJ\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\x1a@\n\x06Matrix\x12\x0c\n\x04rows\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ols\x18\x02 \x01(\x05\x12\x0c\n\x04type\x18\x03 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a\xdd\x02\n\x06Layout\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12?\n\rbounding_poly\x18\x03 \x01(\x0b\x32(.google.cloud.documentai.v1.BoundingPoly\x12Q\n\x0borientation\x18\x04 \x01(\x0e\x32<.google.cloud.documentai.v1.Document.Page.Layout.Orientation\"e\n\x0bOrientation\x12\x1b\n\x17ORIENTATION_UNSPECIFIED\x10\x00\x12\x0b\n\x07PAGE_UP\x10\x01\x12\x0e\n\nPAGE_RIGHT\x10\x02\x12\r\n\tPAGE_DOWN\x10\x03\x12\r\n\tPAGE_LEFT\x10\x04\x1a\xea\x01\n\x05\x42lock\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xee\x01\n\tParagraph\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xe9\x01\n\x04Line\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xea\x03\n\x05Token\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12U\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32=.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak\x12V\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x04 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xa6\x01\n\rDetectedBreak\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type\"C\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nWIDE_SPACE\x10\x02\x12\n\n\x06HYPHEN\x10\x03\x1a\xa2\x01\n\x06Symbol\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xb7\x01\n\rVisualElement\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x0c\n\x04type\x18\x02 \x01(\t\x12V\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xa4\x05\n\x05Table\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12M\n\x0bheader_rows\x18\x02 \x03(\x0b\x32\x38.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12K\n\tbody_rows\x18\x03 \x03(\x0b\x32\x38.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\x43\n\nprovenance\x18\x05 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Provenance\x1aT\n\x08TableRow\x12H\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.Table.TableCell\x1a\xc9\x01\n\tTableCell\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xe6\x03\n\tFormField\x12\x44\n\nfield_name\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x45\n\x0b\x66ield_value\x18\x02 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12[\n\x17name_detected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\\\n\x18value_detected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\x12\n\nvalue_type\x18\x05 \x01(\t\x12\x1a\n\x12\x63orrected_key_text\x18\x06 \x01(\t\x12\x1c\n\x14\x63orrected_value_text\x18\x07 \x01(\t\x12\x43\n\nprovenance\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Provenance\x1a\x89\x01\n\x0f\x44\x65tectedBarcode\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x34\n\x07\x62\x61rcode\x18\x02 \x01(\x0b\x32#.google.cloud.documentai.v1.Barcode\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xc6\x01\n\x12ImageQualityScores\x12\x15\n\rquality_score\x18\x01 \x01(\x02\x12\x65\n\x10\x64\x65tected_defects\x18\x02 \x03(\x0b\x32K.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect\x1a\x32\n\x0e\x44\x65tectedDefect\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xd0\x06\n\x06\x45ntity\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchorB\x03\xe0\x41\x01\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cmention_text\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nmention_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\x12I\n\x0bpage_anchor\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.PageAnchorB\x03\xe0\x41\x01\x12\x0f\n\x02id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x10normalized_value\x18\t \x01(\x0b\x32;.google.cloud.documentai.v1.Document.Entity.NormalizedValueB\x03\xe0\x41\x01\x12\x44\n\nproperties\x18\n \x03(\x0b\x32+.google.cloud.documentai.v1.Document.EntityB\x03\xe0\x41\x01\x12H\n\nprovenance\x18\x0b \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x03\xe0\x41\x01\x12\x15\n\x08redacted\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x1a\xbb\x02\n\x0fNormalizedValue\x12)\n\x0bmoney_value\x18\x02 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12\'\n\ndate_value\x18\x03 \x01(\x0b\x32\x11.google.type.DateH\x00\x12/\n\x0e\x64\x61tetime_value\x18\x04 \x01(\x0b\x32\x15.google.type.DateTimeH\x00\x12\x33\n\raddress_value\x18\x05 \x01(\x0b\x32\x1a.google.type.PostalAddressH\x00\x12\x17\n\rboolean_value\x18\x06 \x01(\x08H\x00\x12\x17\n\rinteger_value\x18\x07 \x01(\x05H\x00\x12\x15\n\x0b\x66loat_value\x18\x08 \x01(\x02H\x00\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10structured_value\x1aI\n\x0e\x45ntityRelation\x12\x12\n\nsubject_id\x18\x01 \x01(\t\x12\x11\n\tobject_id\x18\x02 \x01(\t\x12\x10\n\x08relation\x18\x03 \x01(\t\x1a\xa8\x01\n\nTextAnchor\x12R\n\rtext_segments\x18\x01 \x03(\x0b\x32;.google.cloud.documentai.v1.Document.TextAnchor.TextSegment\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a\x35\n\x0bTextSegment\x12\x13\n\x0bstart_index\x18\x01 \x01(\x03\x12\x11\n\tend_index\x18\x02 \x01(\x03\x1a\xd8\x03\n\nPageAnchor\x12J\n\tpage_refs\x18\x01 \x03(\x0b\x32\x37.google.cloud.documentai.v1.Document.PageAnchor.PageRef\x1a\xfd\x02\n\x07PageRef\x12\x11\n\x04page\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\\\n\x0blayout_type\x18\x02 \x01(\x0e\x32\x42.google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutTypeB\x03\xe0\x41\x01\x12\x18\n\tlayout_id\x18\x03 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x44\n\rbounding_poly\x18\x04 \x01(\x0b\x32(.google.cloud.documentai.v1.BoundingPolyB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\"\x87\x01\n\nLayoutType\x12\x1b\n\x17LAYOUT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42LOCK\x10\x01\x12\r\n\tPARAGRAPH\x10\x02\x12\x08\n\x04LINE\x10\x03\x12\t\n\x05TOKEN\x10\x04\x12\x12\n\x0eVISUAL_ELEMENT\x10\x05\x12\t\n\x05TABLE\x10\x06\x12\x0e\n\nFORM_FIELD\x10\x07\x1a\xa8\x03\n\nProvenance\x12\x14\n\x08revision\x18\x01 \x01(\x05\x42\x02\x18\x01\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\x12G\n\x07parents\x18\x03 \x03(\x0b\x32\x36.google.cloud.documentai.v1.Document.Provenance.Parent\x12K\n\x04type\x18\x04 \x01(\x0e\x32=.google.cloud.documentai.v1.Document.Provenance.OperationType\x1a\x39\n\x06Parent\x12\x10\n\x08revision\x18\x01 \x01(\x05\x12\r\n\x05index\x18\x03 \x01(\x05\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\"\xa2\x01\n\rOperationType\x12\x1e\n\x1aOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x12\n\n\x06UPDATE\x10\x07\x12\x0b\n\x07REPLACE\x10\x03\x12\x16\n\x0e\x45VAL_REQUESTED\x10\x04\x1a\x02\x08\x01\x12\x15\n\rEVAL_APPROVED\x10\x05\x1a\x02\x08\x01\x12\x14\n\x0c\x45VAL_SKIPPED\x10\x06\x1a\x02\x08\x01\x1a\xa5\x02\n\x08Revision\x12\x0f\n\x05\x61gent\x18\x04 \x01(\tH\x00\x12\x13\n\tprocessor\x18\x05 \x01(\tH\x00\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\x06parent\x18\x02 \x03(\x05\x42\x02\x18\x01\x12\x12\n\nparent_ids\x18\x07 \x03(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x0chuman_review\x18\x06 \x01(\x0b\x32\x39.google.cloud.documentai.v1.Document.Revision.HumanReview\x1a\x33\n\x0bHumanReview\x12\r\n\x05state\x18\x01 \x01(\t\x12\x15\n\rstate_message\x18\x02 \x01(\tB\x08\n\x06source\x1a\xb1\x01\n\nTextChange\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12\x14\n\x0c\x63hanged_text\x18\x02 \x01(\t\x12G\n\nprovenance\x18\x03 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x42\x08\n\x06sourceB\xcb\x01\n\x1e\x63om.google.cloud.documentai.v1B\rDocumentProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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.rpc.Status", "google/rpc/status.proto"], + ["google.type.Color", "google/type/color.proto"], + ["google.cloud.documentai.v1.BoundingPoly", "google/cloud/documentai/v1/geometry.proto"], + ["google.cloud.documentai.v1.Barcode", "google/cloud/documentai/v1/barcode.proto"], + ["google.type.Money", "google/type/money.proto"], + ["google.type.Date", "google/type/date.proto"], + ["google.type.DateTime", "google/type/datetime.proto"], + ["google.type.PostalAddress", "google/type/postal_address.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_processor_service_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_processor_service_pb.rb index 8de135df01e9..b68d09985e3a 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_processor_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/document_processor_service.proto @@ -20,237 +21,41 @@ require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/document_processor_service.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.ProcessRequest" do - optional :name, :string, 1 - optional :skip_human_review, :bool, 3 - optional :field_mask, :message, 6, "google.protobuf.FieldMask" - oneof :source do - optional :inline_document, :message, 4, "google.cloud.documentai.v1.Document" - optional :raw_document, :message, 5, "google.cloud.documentai.v1.RawDocument" - end - end - add_message "google.cloud.documentai.v1.HumanReviewStatus" do - optional :state, :enum, 1, "google.cloud.documentai.v1.HumanReviewStatus.State" - optional :state_message, :string, 2 - optional :human_review_operation, :string, 3 - end - add_enum "google.cloud.documentai.v1.HumanReviewStatus.State" do - value :STATE_UNSPECIFIED, 0 - value :SKIPPED, 1 - value :VALIDATION_PASSED, 2 - value :IN_PROGRESS, 3 - value :ERROR, 4 - end - add_message "google.cloud.documentai.v1.ProcessResponse" do - optional :document, :message, 1, "google.cloud.documentai.v1.Document" - optional :human_review_status, :message, 3, "google.cloud.documentai.v1.HumanReviewStatus" - end - add_message "google.cloud.documentai.v1.BatchProcessRequest" do - optional :name, :string, 1 - optional :input_documents, :message, 5, "google.cloud.documentai.v1.BatchDocumentsInputConfig" - optional :document_output_config, :message, 6, "google.cloud.documentai.v1.DocumentOutputConfig" - optional :skip_human_review, :bool, 4 - end - add_message "google.cloud.documentai.v1.BatchProcessResponse" do - end - add_message "google.cloud.documentai.v1.BatchProcessMetadata" do - optional :state, :enum, 1, "google.cloud.documentai.v1.BatchProcessMetadata.State" - optional :state_message, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :update_time, :message, 4, "google.protobuf.Timestamp" - repeated :individual_process_statuses, :message, 5, "google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus" - end - add_message "google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus" do - optional :input_gcs_source, :string, 1 - optional :status, :message, 2, "google.rpc.Status" - optional :output_gcs_destination, :string, 3 - optional :human_review_status, :message, 5, "google.cloud.documentai.v1.HumanReviewStatus" - end - add_enum "google.cloud.documentai.v1.BatchProcessMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :WAITING, 1 - value :RUNNING, 2 - value :SUCCEEDED, 3 - value :CANCELLING, 4 - value :CANCELLED, 5 - value :FAILED, 6 - end - add_message "google.cloud.documentai.v1.FetchProcessorTypesRequest" do - optional :parent, :string, 1 - end - add_message "google.cloud.documentai.v1.FetchProcessorTypesResponse" do - repeated :processor_types, :message, 1, "google.cloud.documentai.v1.ProcessorType" - end - add_message "google.cloud.documentai.v1.ListProcessorTypesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.documentai.v1.ListProcessorTypesResponse" do - repeated :processor_types, :message, 1, "google.cloud.documentai.v1.ProcessorType" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.documentai.v1.ListProcessorsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.documentai.v1.ListProcessorsResponse" do - repeated :processors, :message, 1, "google.cloud.documentai.v1.Processor" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.documentai.v1.GetProcessorTypeRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.GetProcessorRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.GetProcessorVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.ListProcessorVersionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.documentai.v1.ListProcessorVersionsResponse" do - repeated :processor_versions, :message, 1, "google.cloud.documentai.v1.ProcessorVersion" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.documentai.v1.DeleteProcessorVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.DeleteProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1.DeployProcessorVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.DeployProcessorVersionResponse" do - end - add_message "google.cloud.documentai.v1.DeployProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1.UndeployProcessorVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.UndeployProcessorVersionResponse" do - end - add_message "google.cloud.documentai.v1.UndeployProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1.CreateProcessorRequest" do - optional :parent, :string, 1 - optional :processor, :message, 2, "google.cloud.documentai.v1.Processor" - end - add_message "google.cloud.documentai.v1.DeleteProcessorRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.DeleteProcessorMetadata" do - optional :common_metadata, :message, 5, "google.cloud.documentai.v1.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1.EnableProcessorRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.EnableProcessorResponse" do - end - add_message "google.cloud.documentai.v1.EnableProcessorMetadata" do - optional :common_metadata, :message, 5, "google.cloud.documentai.v1.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1.DisableProcessorRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.DisableProcessorResponse" do - end - add_message "google.cloud.documentai.v1.DisableProcessorMetadata" do - optional :common_metadata, :message, 5, "google.cloud.documentai.v1.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1.SetDefaultProcessorVersionRequest" do - optional :processor, :string, 1 - optional :default_processor_version, :string, 2 - end - add_message "google.cloud.documentai.v1.SetDefaultProcessorVersionResponse" do - end - add_message "google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1.TrainProcessorVersionRequest" do - optional :parent, :string, 1 - optional :processor_version, :message, 2, "google.cloud.documentai.v1.ProcessorVersion" - optional :document_schema, :message, 10, "google.cloud.documentai.v1.DocumentSchema" - optional :input_data, :message, 4, "google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData" - optional :base_processor_version, :string, 8 - end - add_message "google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData" do - optional :training_documents, :message, 3, "google.cloud.documentai.v1.BatchDocumentsInputConfig" - optional :test_documents, :message, 4, "google.cloud.documentai.v1.BatchDocumentsInputConfig" - end - add_message "google.cloud.documentai.v1.TrainProcessorVersionResponse" do - optional :processor_version, :string, 1 - end - add_message "google.cloud.documentai.v1.TrainProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata" - optional :training_dataset_validation, :message, 2, "google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation" - optional :test_dataset_validation, :message, 3, "google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation" - end - add_message "google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation" do - optional :document_error_count, :int32, 3 - optional :dataset_error_count, :int32, 4 - repeated :document_errors, :message, 1, "google.rpc.Status" - repeated :dataset_errors, :message, 2, "google.rpc.Status" - end - add_message "google.cloud.documentai.v1.ReviewDocumentRequest" do - optional :human_review_config, :string, 1 - optional :enable_schema_validation, :bool, 3 - optional :priority, :enum, 5, "google.cloud.documentai.v1.ReviewDocumentRequest.Priority" - optional :document_schema, :message, 6, "google.cloud.documentai.v1.DocumentSchema" - oneof :source do - optional :inline_document, :message, 4, "google.cloud.documentai.v1.Document" - end - end - add_enum "google.cloud.documentai.v1.ReviewDocumentRequest.Priority" do - value :DEFAULT, 0 - value :URGENT, 1 - end - add_message "google.cloud.documentai.v1.ReviewDocumentResponse" do - optional :gcs_destination, :string, 1 - optional :state, :enum, 2, "google.cloud.documentai.v1.ReviewDocumentResponse.State" - optional :rejection_reason, :string, 3 - end - add_enum "google.cloud.documentai.v1.ReviewDocumentResponse.State" do - value :STATE_UNSPECIFIED, 0 - value :REJECTED, 1 - value :SUCCEEDED, 2 - end - add_message "google.cloud.documentai.v1.ReviewDocumentOperationMetadata" do - optional :common_metadata, :message, 5, "google.cloud.documentai.v1.CommonOperationMetadata" - optional :question_id, :string, 6 - end - add_message "google.cloud.documentai.v1.EvaluateProcessorVersionRequest" do - optional :processor_version, :string, 1 - optional :evaluation_documents, :message, 3, "google.cloud.documentai.v1.BatchDocumentsInputConfig" - end - add_message "google.cloud.documentai.v1.EvaluateProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1.EvaluateProcessorVersionResponse" do - optional :evaluation, :string, 2 - end - add_message "google.cloud.documentai.v1.GetEvaluationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1.ListEvaluationsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.documentai.v1.ListEvaluationsResponse" do - repeated :evaluations, :message, 1, "google.cloud.documentai.v1.Evaluation" - optional :next_page_token, :string, 2 + +descriptor_data = "\n;google/cloud/documentai/v1/document_processor_service.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/documentai/v1/document.proto\x1a,google/cloud/documentai/v1/document_io.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x33google/cloud/documentai/v1/operation_metadata.proto\x1a*google/cloud/documentai/v1/processor.proto\x1a/google/cloud/documentai/v1/processor_type.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x80\x02\n\x0eProcessRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12?\n\x0craw_document\x18\x05 \x01(\x0b\x32\'.google.cloud.documentai.v1.RawDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x08\n\x06source\"\xee\x01\n\x11HumanReviewStatus\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32\x33.google.cloud.documentai.v1.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\x95\x01\n\x0fProcessResponse\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.documentai.v1.Document\x12J\n\x13human_review_status\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"\xeb\x01\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12N\n\x0finput_documents\x18\x05 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12P\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.documentai.v1.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\"\x16\n\x14\x42\x61tchProcessResponse\"\xff\x04\n\x14\x42\x61tchProcessMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12m\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32H.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus\x1a\xc3\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12J\n\x13human_review_status\x18\x05 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"a\n\x1b\x46\x65tchProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x1aListProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x16ListProcessorsResponse\x12\x39\n\nprocessors\x18\x01 \x03(\x0b\x32%.google.cloud.documentai.v1.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1dListProcessorVersionsResponse\x12H\n\x12processor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"n\n\x1e\x44\x65leteProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"n\n\x1e\x44\x65ployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"p\n UndeployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\x94\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12=\n\tprocessor\x18\x02 \x01(\x0b\x32%.google.cloud.documentai.v1.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"g\n\x17\x44\x65leteProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"g\n\x17\x45nableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"h\n\x18\x44isableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"r\n\"SetDefaultProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xa5\x04\n\x1cTrainProcessorVersionRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12L\n\x11processor_version\x18\x02 \x01(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersionB\x03\xe0\x41\x02\x12H\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x12[\n\ninput_data\x18\x04 \x01(\x0b\x32\x42.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xad\x01\n\tInputData\x12Q\n\x12training_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12M\n\x0etest_documents\x18\x04 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\xf7\x03\n\x1dTrainProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12p\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x12l\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x8e\x03\n\x15ReviewDocumentRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12L\n\x08priority\x18\x05 \x01(\x0e\x32:.google.cloud.documentai.v1.ReviewDocumentRequest.Priority\x12\x43\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd1\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12G\n\x05state\x18\x02 \x01(\x0e\x32\x38.google.cloud.documentai.v1.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\x84\x01\n\x1fReviewDocumentOperationMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"\xca\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12X\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"p\n EvaluateProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"o\n\x17ListEvaluationsResponse\x12;\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32&.google.cloud.documentai.v1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9c*\n\x18\x44ocumentProcessorService\x12\x87\x02\n\x0fProcessDocument\x12*.google.cloud.documentai.v1.ProcessRequest\x1a+.google.cloud.documentai.v1.ProcessResponse\"\x9a\x01\x82\xd3\xe4\x93\x02\x8c\x01\"6/v1/{name=projects/*/locations/*/processors/*}:process:\x01*ZO\"J/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\xda\x41\x04name\x12\xbd\x02\n\x15\x42\x61tchProcessDocuments\x12/.google.cloud.documentai.v1.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02\x96\x01\";/v1/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZT\"O/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\xda\x41\x04name\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\x12\xd0\x01\n\x13\x46\x65tchProcessorTypes\x12\x36.google.cloud.documentai.v1.FetchProcessorTypesRequest\x1a\x37.google.cloud.documentai.v1.FetchProcessorTypesResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}:fetchProcessorTypes\xda\x41\x06parent\x12\xc8\x01\n\x12ListProcessorTypes\x12\x35.google.cloud.documentai.v1.ListProcessorTypesRequest\x1a\x36.google.cloud.documentai.v1.ListProcessorTypesResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/processorTypes\xda\x41\x06parent\x12\xb5\x01\n\x10GetProcessorType\x12\x33.google.cloud.documentai.v1.GetProcessorTypeRequest\x1a).google.cloud.documentai.v1.ProcessorType\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/processorTypes/*}\xda\x41\x04name\x12\xb8\x01\n\x0eListProcessors\x12\x31.google.cloud.documentai.v1.ListProcessorsRequest\x1a\x32.google.cloud.documentai.v1.ListProcessorsResponse\"?\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/processors\xda\x41\x06parent\x12\xa5\x01\n\x0cGetProcessor\x12/.google.cloud.documentai.v1.GetProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"=\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\x12\xa2\x02\n\x15TrainProcessorVersion\x12\x38.google.cloud.documentai.v1.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\x82\xd3\xe4\x93\x02M\"H/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\xda\x41\x18parent,processor_version\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\x12\xce\x01\n\x13GetProcessorVersion\x12\x36.google.cloud.documentai.v1.GetProcessorVersionRequest\x1a,.google.cloud.documentai.v1.ProcessorVersion\"Q\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\x12\xe1\x01\n\x15ListProcessorVersions\x12\x38.google.cloud.documentai.v1.ListProcessorVersionsRequest\x1a\x39.google.cloud.documentai.v1.ListProcessorVersionsResponse\"S\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/processors/*}/processorVersions\xda\x41\x06parent\x12\x80\x02\n\x16\x44\x65leteProcessorVersion\x12\x39.google.cloud.documentai.v1.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\x12\x93\x02\n\x16\x44\x65ployProcessorVersion\x12\x39.google.cloud.documentai.v1.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\xda\x41\x04name\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\x12\x9d\x02\n\x18UndeployProcessorVersion\x12;.google.cloud.documentai.v1.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\xda\x41\x04name\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\x12\xc2\x01\n\x0f\x43reateProcessor\x12\x32.google.cloud.documentai.v1.CreateProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"T\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/processors:\tprocessor\xda\x41\x10parent,processor\x12\xd6\x01\n\x0f\x44\x65leteProcessor\x12\x32.google.cloud.documentai.v1.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\x12\xdb\x01\n\x0f\x45nableProcessor\x12\x32.google.cloud.documentai.v1.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/processors/*}:enable:\x01*\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x12\xe0\x01\n\x10\x44isableProcessor\x12\x33.google.cloud.documentai.v1.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/processors/*}:disable:\x01*\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x12\xa1\x02\n\x1aSetDefaultProcessorVersion\x12=.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02S\"N/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x12\xa0\x02\n\x0eReviewDocument\x12\x31.google.cloud.documentai.v1.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\x82\xd3\xe4\x93\x02\x63\"^/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\xda\x41\x13human_review_config\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\x12\xc7\x02\n\x18\x45valuateProcessorVersion\x12;.google.cloud.documentai.v1.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\x82\xd3\xe4\x93\x02m\"h/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\xda\x41\x11processor_version\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\x12\xca\x01\n\rGetEvaluation\x12\x30.google.cloud.documentai.v1.GetEvaluationRequest\x1a&.google.cloud.documentai.v1.Evaluation\"_\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\xda\x41\x04name\x12\xdd\x01\n\x0fListEvaluations\x12\x32.google.cloud.documentai.v1.ListEvaluationsRequest\x1a\x33.google.cloud.documentai.v1.ListEvaluationsResponse\"a\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\xda\x41\x06parent\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xaa\x03\n\x1e\x63om.google.cloud.documentai.v1B\x1a\x44ocumentAiProcessorServiceP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\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.documentai.v1.Document", "google/cloud/documentai/v1/document.proto"], + ["google.cloud.documentai.v1.RawDocument", "google/cloud/documentai/v1/document_io.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.cloud.documentai.v1.ProcessorType", "google/cloud/documentai/v1/processor_type.proto"], + ["google.cloud.documentai.v1.Processor", "google/cloud/documentai/v1/processor.proto"], + ["google.cloud.documentai.v1.CommonOperationMetadata", "google/cloud/documentai/v1/operation_metadata.proto"], + ["google.cloud.documentai.v1.DocumentSchema", "google/cloud/documentai/v1/document_schema.proto"], + ["google.cloud.documentai.v1.Evaluation", "google/cloud/documentai/v1/evaluation.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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_schema_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_schema_pb.rb index d66ad65b1d5b..2a003140a852 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_schema_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/document_schema_pb.rb @@ -1,47 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/document_schema.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/document_schema.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.DocumentSchema" do - optional :display_name, :string, 1 - optional :description, :string, 2 - repeated :entity_types, :message, 3, "google.cloud.documentai.v1.DocumentSchema.EntityType" - optional :metadata, :message, 4, "google.cloud.documentai.v1.DocumentSchema.Metadata" - end - add_message "google.cloud.documentai.v1.DocumentSchema.EntityType" do - optional :display_name, :string, 13 - optional :name, :string, 1 - repeated :base_types, :string, 2 - repeated :properties, :message, 6, "google.cloud.documentai.v1.DocumentSchema.EntityType.Property" - oneof :value_source do - optional :enum_values, :message, 14, "google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues" - end - end - add_message "google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues" do - repeated :values, :string, 1 - end - add_message "google.cloud.documentai.v1.DocumentSchema.EntityType.Property" do - optional :name, :string, 1 - optional :value_type, :string, 2 - optional :occurrence_type, :enum, 3, "google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType" - end - add_enum "google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType" do - value :OCCURRENCE_TYPE_UNSPECIFIED, 0 - value :OPTIONAL_ONCE, 1 - value :OPTIONAL_MULTIPLE, 2 - value :REQUIRED_ONCE, 3 - value :REQUIRED_MULTIPLE, 4 - end - add_message "google.cloud.documentai.v1.DocumentSchema.Metadata" do - optional :document_splitter, :bool, 1 - optional :document_allow_multiple_labels, :bool, 2 - optional :prefixed_naming_on_properties, :bool, 6 - optional :skip_naming_validation, :bool, 7 + +descriptor_data = "\n0google/cloud/documentai/v1/document_schema.proto\x12\x1agoogle.cloud.documentai.v1\"\xa7\x07\n\x0e\x44ocumentSchema\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12K\n\x0c\x65ntity_types\x18\x03 \x03(\x0b\x32\x35.google.cloud.documentai.v1.DocumentSchema.EntityType\x12\x45\n\x08metadata\x18\x04 \x01(\x0b\x32\x33.google.cloud.documentai.v1.DocumentSchema.Metadata\x1a\xbe\x04\n\nEntityType\x12W\n\x0b\x65num_values\x18\x0e \x01(\x0b\x32@.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValuesH\x00\x12\x14\n\x0c\x64isplay_name\x18\r \x01(\t\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nbase_types\x18\x02 \x03(\t\x12R\n\nproperties\x18\x06 \x03(\x0b\x32>.google.cloud.documentai.v1.DocumentSchema.EntityType.Property\x1a\x1c\n\nEnumValues\x12\x0e\n\x06values\x18\x01 \x03(\t\x1a\x9c\x02\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nvalue_type\x18\x02 \x01(\t\x12\x66\n\x0foccurrence_type\x18\x03 \x01(\x0e\x32M.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType\"\x85\x01\n\x0eOccurrenceType\x12\x1f\n\x1bOCCURRENCE_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rOPTIONAL_ONCE\x10\x01\x12\x15\n\x11OPTIONAL_MULTIPLE\x10\x02\x12\x11\n\rREQUIRED_ONCE\x10\x03\x12\x15\n\x11REQUIRED_MULTIPLE\x10\x04\x42\x0e\n\x0cvalue_source\x1a\x94\x01\n\x08Metadata\x12\x19\n\x11\x64ocument_splitter\x18\x01 \x01(\x08\x12&\n\x1e\x64ocument_allow_multiple_labels\x18\x02 \x01(\x08\x12%\n\x1dprefixed_naming_on_properties\x18\x06 \x01(\x08\x12\x1e\n\x16skip_naming_validation\x18\x07 \x01(\x08\x42\xd6\x01\n\x1e\x63om.google.cloud.documentai.v1B\x18\x44ocumentAiDocumentSchemaP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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 = [ + ] + 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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/evaluation_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/evaluation_pb.rb index 96b10b7baa52..d71687aaec46 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/evaluation_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/evaluation_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/evaluation.proto @@ -6,60 +7,32 @@ require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/evaluation.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.EvaluationReference" do - optional :operation, :string, 1 - optional :evaluation, :string, 2 - optional :aggregate_metrics, :message, 4, "google.cloud.documentai.v1.Evaluation.Metrics" - optional :aggregate_metrics_exact, :message, 5, "google.cloud.documentai.v1.Evaluation.Metrics" - end - add_message "google.cloud.documentai.v1.Evaluation" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :document_counters, :message, 5, "google.cloud.documentai.v1.Evaluation.Counters" - optional :all_entities_metrics, :message, 3, "google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics" - map :entity_metrics, :string, :message, 4, "google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics" - optional :kms_key_name, :string, 6 - optional :kms_key_version_name, :string, 7 - end - add_message "google.cloud.documentai.v1.Evaluation.Counters" do - optional :input_documents_count, :int32, 1 - optional :invalid_documents_count, :int32, 2 - optional :failed_documents_count, :int32, 3 - optional :evaluated_documents_count, :int32, 4 - end - add_message "google.cloud.documentai.v1.Evaluation.Metrics" do - optional :precision, :float, 1 - optional :recall, :float, 2 - optional :f1_score, :float, 3 - optional :predicted_occurrences_count, :int32, 4 - optional :ground_truth_occurrences_count, :int32, 5 - optional :predicted_document_count, :int32, 10 - optional :ground_truth_document_count, :int32, 11 - optional :true_positives_count, :int32, 6 - optional :false_positives_count, :int32, 7 - optional :false_negatives_count, :int32, 8 - optional :total_documents_count, :int32, 9 - end - add_message "google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics" do - optional :confidence_level, :float, 1 - optional :metrics, :message, 2, "google.cloud.documentai.v1.Evaluation.Metrics" - end - add_message "google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics" do - repeated :confidence_level_metrics, :message, 1, "google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics" - repeated :confidence_level_metrics_exact, :message, 4, "google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics" - optional :auprc, :float, 2 - optional :estimated_calibration_error, :float, 3 - optional :auprc_exact, :float, 5 - optional :estimated_calibration_error_exact, :float, 6 - optional :metrics_type, :enum, 7, "google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType" - end - add_enum "google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType" do - value :METRICS_TYPE_UNSPECIFIED, 0 - value :AGGREGATE, 1 + +descriptor_data = "\n+google/cloud/documentai/v1/evaluation.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x83\x02\n\x13\x45valuationReference\x12\x11\n\toperation\x18\x01 \x01(\t\x12=\n\nevaluation\x18\x02 \x01(\tB)\xfa\x41&\n$documentai.googleapis.com/Evaluation\x12I\n\x11\x61ggregate_metrics\x18\x04 \x01(\x0b\x32..google.cloud.documentai.v1.Evaluation.Metrics\x12O\n\x17\x61ggregate_metrics_exact\x18\x05 \x01(\x0b\x32..google.cloud.documentai.v1.Evaluation.Metrics\"\xe5\r\n\nEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12J\n\x11\x64ocument_counters\x18\x05 \x01(\x0b\x32/.google.cloud.documentai.v1.Evaluation.Counters\x12[\n\x14\x61ll_entities_metrics\x18\x03 \x01(\x0b\x32=.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics\x12Q\n\x0e\x65ntity_metrics\x18\x04 \x03(\x0b\x32\x39.google.cloud.documentai.v1.Evaluation.EntityMetricsEntry\x12\x14\n\x0ckms_key_name\x18\x06 \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\x07 \x01(\t\x1a\x8d\x01\n\x08\x43ounters\x12\x1d\n\x15input_documents_count\x18\x01 \x01(\x05\x12\x1f\n\x17invalid_documents_count\x18\x02 \x01(\x05\x12\x1e\n\x16\x66\x61iled_documents_count\x18\x03 \x01(\x05\x12!\n\x19\x65valuated_documents_count\x18\x04 \x01(\x05\x1a\xcd\x02\n\x07Metrics\x12\x11\n\tprecision\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x03 \x01(\x02\x12#\n\x1bpredicted_occurrences_count\x18\x04 \x01(\x05\x12&\n\x1eground_truth_occurrences_count\x18\x05 \x01(\x05\x12 \n\x18predicted_document_count\x18\n \x01(\x05\x12#\n\x1bground_truth_document_count\x18\x0b \x01(\x05\x12\x1c\n\x14true_positives_count\x18\x06 \x01(\x05\x12\x1d\n\x15\x66\x61lse_positives_count\x18\x07 \x01(\x05\x12\x1d\n\x15\x66\x61lse_negatives_count\x18\x08 \x01(\x05\x12\x1d\n\x15total_documents_count\x18\t \x01(\x05\x1as\n\x16\x43onfidenceLevelMetrics\x12\x18\n\x10\x63onfidence_level\x18\x01 \x01(\x02\x12?\n\x07metrics\x18\x02 \x01(\x0b\x32..google.cloud.documentai.v1.Evaluation.Metrics\x1a\xf1\x03\n\x16MultiConfidenceMetrics\x12_\n\x18\x63onfidence_level_metrics\x18\x01 \x03(\x0b\x32=.google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics\x12\x65\n\x1e\x63onfidence_level_metrics_exact\x18\x04 \x03(\x0b\x32=.google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics\x12\r\n\x05\x61uprc\x18\x02 \x01(\x02\x12#\n\x1b\x65stimated_calibration_error\x18\x03 \x01(\x02\x12\x13\n\x0b\x61uprc_exact\x18\x05 \x01(\x02\x12)\n!estimated_calibration_error_exact\x18\x06 \x01(\x02\x12_\n\x0cmetrics_type\x18\x07 \x01(\x0e\x32I.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType\":\n\x0bMetricsType\x12\x1c\n\x18METRICS_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tAGGREGATE\x10\x01\x1as\n\x12\x45ntityMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics:\x02\x38\x01:\xa9\x01\xea\x41\xa5\x01\n$documentai.googleapis.com/Evaluation\x12}projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}B\xd2\x01\n\x1e\x63om.google.cloud.documentai.v1B\x14\x44ocumentAiEvaluationP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/geometry_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/geometry_pb.rb index ac81390b742b..c55cfe6586ee 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/geometry_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/geometry_pb.rb @@ -1,23 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/geometry.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/geometry.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.Vertex" do - optional :x, :int32, 1 - optional :y, :int32, 2 - end - add_message "google.cloud.documentai.v1.NormalizedVertex" do - optional :x, :float, 1 - optional :y, :float, 2 - end - add_message "google.cloud.documentai.v1.BoundingPoly" do - repeated :vertices, :message, 1, "google.cloud.documentai.v1.Vertex" - repeated :normalized_vertices, :message, 2, "google.cloud.documentai.v1.NormalizedVertex" + +descriptor_data = "\n)google/cloud/documentai/v1/geometry.proto\x12\x1agoogle.cloud.documentai.v1\"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"\x8f\x01\n\x0c\x42oundingPoly\x12\x34\n\x08vertices\x18\x01 \x03(\x0b\x32\".google.cloud.documentai.v1.Vertex\x12I\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32,.google.cloud.documentai.v1.NormalizedVertexB\xcb\x01\n\x1e\x63om.google.cloud.documentai.v1B\rGeometryProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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 = [ + ] + 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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/operation_metadata_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/operation_metadata_pb.rb index 74971c1b7f4c..b512710a4352 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/operation_metadata_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/operation_metadata_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/operation_metadata.proto @@ -5,24 +6,32 @@ require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/operation_metadata.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.CommonOperationMetadata" do - optional :state, :enum, 1, "google.cloud.documentai.v1.CommonOperationMetadata.State" - optional :state_message, :string, 2 - optional :resource, :string, 5 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :update_time, :message, 4, "google.protobuf.Timestamp" - end - add_enum "google.cloud.documentai.v1.CommonOperationMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :CANCELLING, 2 - value :SUCCEEDED, 3 - value :FAILED, 4 - value :CANCELLED, 5 + +descriptor_data = "\n3google/cloud/documentai/v1/operation_metadata.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd5\x02\n\x17\x43ommonOperationMetadata\x12H\n\x05state\x18\x01 \x01(\x0e\x32\x39.google.cloud.documentai.v1.CommonOperationMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x10\n\x08resource\x18\x05 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x42\xd4\x01\n\x1e\x63om.google.cloud.documentai.v1B\x16OperationMetadataProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/processor_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/processor_pb.rb index df853eb6c7d0..b112c8ddac10 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/processor_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/processor_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/processor.proto @@ -9,55 +10,34 @@ require 'google/cloud/documentai/v1/evaluation_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/processor.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.ProcessorVersion" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :document_schema, :message, 12, "google.cloud.documentai.v1.DocumentSchema" - optional :state, :enum, 6, "google.cloud.documentai.v1.ProcessorVersion.State" - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :latest_evaluation, :message, 8, "google.cloud.documentai.v1.EvaluationReference" - optional :kms_key_name, :string, 9 - optional :kms_key_version_name, :string, 10 - optional :google_managed, :bool, 11 - optional :deprecation_info, :message, 13, "google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo" - end - add_message "google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo" do - optional :deprecation_time, :message, 1, "google.protobuf.Timestamp" - optional :replacement_processor_version, :string, 2 - end - add_enum "google.cloud.documentai.v1.ProcessorVersion.State" do - value :STATE_UNSPECIFIED, 0 - value :DEPLOYED, 1 - value :DEPLOYING, 2 - value :UNDEPLOYED, 3 - value :UNDEPLOYING, 4 - value :CREATING, 5 - value :DELETING, 6 - value :FAILED, 7 - end - add_message "google.cloud.documentai.v1.Processor" do - optional :name, :string, 1 - optional :type, :string, 2 - optional :display_name, :string, 3 - optional :state, :enum, 4, "google.cloud.documentai.v1.Processor.State" - optional :default_processor_version, :string, 9 - optional :process_endpoint, :string, 6 - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :kms_key_name, :string, 8 - end - add_enum "google.cloud.documentai.v1.Processor.State" do - value :STATE_UNSPECIFIED, 0 - value :ENABLED, 1 - value :DISABLED, 2 - value :ENABLING, 3 - value :DISABLING, 4 - value :CREATING, 5 - value :FAILED, 6 - value :DELETING, 7 + +descriptor_data = "\n*google/cloud/documentai/v1/processor.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa1\x07\n\x10ProcessorVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x43\n\x0f\x64ocument_schema\x18\x0c \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\x12\x41\n\x05state\x18\x06 \x01(\x0e\x32\x32.google.cloud.documentai.v1.ProcessorVersion.State\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12J\n\x11latest_evaluation\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1.EvaluationReference\x12\x14\n\x0ckms_key_name\x18\t \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\n \x01(\t\x12\x16\n\x0egoogle_managed\x18\x0b \x01(\x08\x12V\n\x10\x64\x65precation_info\x18\r \x01(\x0b\x32<.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo\x1a\x9f\x01\n\x0f\x44\x65precationInfo\x12\x34\n\x10\x64\x65precation_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x1dreplacement_processor_version\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x84\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45PLOYED\x10\x01\x12\r\n\tDEPLOYING\x10\x02\x12\x0e\n\nUNDEPLOYED\x10\x03\x12\x0f\n\x0bUNDEPLOYING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07:\x96\x01\xea\x41\x92\x01\n*documentai.googleapis.com/ProcessorVersion\x12\x64projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}\"\xad\x04\n\tProcessor\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12?\n\x05state\x18\x04 \x01(\x0e\x32+.google.cloud.documentai.v1.Processor.StateB\x03\xe0\x41\x03\x12R\n\x19\x64\x65\x66\x61ult_processor_version\x18\t \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12 \n\x10process_endpoint\x18\x06 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0ckms_key_name\x18\x08 \x01(\t\"~\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0c\n\x08\x45NABLING\x10\x03\x12\r\n\tDISABLING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08\x44\x45LETING\x10\x07:h\xea\x41\x65\n#documentai.googleapis.com/Processor\x12>projects/{project}/locations/{location}/processors/{processor}B\xd1\x01\n\x1e\x63om.google.cloud.documentai.v1B\x13\x44ocumentAiProcessorP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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.documentai.v1.DocumentSchema", "google/cloud/documentai/v1/document_schema.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.documentai.v1.EvaluationReference", "google/cloud/documentai/v1/evaluation.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 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 diff --git a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/processor_type_pb.rb b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/processor_type_pb.rb index 12007ebbde9c..f6e87f16c5a9 100644 --- a/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/processor_type_pb.rb +++ b/google-cloud-document_ai-v1/lib/google/cloud/documentai/v1/processor_type_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1/processor_type.proto @@ -6,21 +7,31 @@ require 'google/api/launch_stage_pb' require 'google/api/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1/processor_type.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1.ProcessorType" do - optional :name, :string, 1 - optional :type, :string, 2 - optional :category, :string, 3 - repeated :available_locations, :message, 4, "google.cloud.documentai.v1.ProcessorType.LocationInfo" - optional :allow_creation, :bool, 6 - optional :launch_stage, :enum, 8, "google.api.LaunchStage" - repeated :sample_document_uris, :string, 9 - end - add_message "google.cloud.documentai.v1.ProcessorType.LocationInfo" do - optional :location_id, :string, 1 + +descriptor_data = "\n/google/cloud/documentai/v1/processor_type.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\"\x93\x03\n\rProcessorType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x03 \x01(\t\x12S\n\x13\x61vailable_locations\x18\x04 \x03(\x0b\x32\x36.google.cloud.documentai.v1.ProcessorType.LocationInfo\x12\x16\n\x0e\x61llow_creation\x18\x06 \x01(\x08\x12-\n\x0claunch_stage\x18\x08 \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x1c\n\x14sample_document_uris\x18\t \x03(\t\x1a#\n\x0cLocationInfo\x12\x13\n\x0blocation_id\x18\x01 \x01(\t:u\xea\x41r\n\'documentai.googleapis.com/ProcessorType\x12Gprojects/{project}/locations/{location}/processorTypes/{processor_type}B\xd5\x01\n\x1e\x63om.google.cloud.documentai.v1B\x17\x44ocumentAiProcessorTypeP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::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 = [ + ] + 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 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 diff --git a/google-cloud-document_ai-v1/proto_docs/google/protobuf/any.rb b/google-cloud-document_ai-v1/proto_docs/google/protobuf/any.rb index 39618af2c75c..9f9367c74a8d 100644 --- a/google-cloud-document_ai-v1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-document_ai-v1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-document_ai-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-document_ai-v1/proto_docs/google/protobuf/timestamp.rb index fb9d03c73c8d..626cd5e0bf3a 100644 --- a/google-cloud-document_ai-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-document_ai-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-document_ai-v1beta3/google-cloud-document_ai-v1beta3.gemspec b/google-cloud-document_ai-v1beta3/google-cloud-document_ai-v1beta3.gemspec index 43cfbbd71356..e0fd46e683cf 100644 --- a/google-cloud-document_ai-v1beta3/google-cloud-document_ai-v1beta3.gemspec +++ b/google-cloud-document_ai-v1beta3/google-cloud-document_ai-v1beta3.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_dependency "google-cloud-location", ">= 0.4", "< 2.a" diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/barcode_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/barcode_pb.rb index acd8965b3081..8e86a0f1540c 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/barcode_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/barcode_pb.rb @@ -1,16 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/barcode.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/barcode.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.Barcode" do - optional :format, :string, 1 - optional :value_format, :string, 2 - optional :raw_value, :string, 3 + +descriptor_data = "\n-google/cloud/documentai/v1beta3/barcode.proto\x12\x1fgoogle.cloud.documentai.v1beta3\"B\n\x07\x42\x61rcode\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x14\n\x0cvalue_format\x18\x02 \x01(\t\x12\x11\n\traw_value\x18\x03 \x01(\tB\xe3\x01\n#com.google.cloud.documentai.v1beta3B\x0c\x42\x61rcodeProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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 = [ + ] + 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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_io_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_io_pb.rb index 0bdae7b3b0f9..e47e7ab61d9f 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_io_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_io_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/document_io.proto @@ -5,53 +6,32 @@ require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/document_io.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.RawDocument" do - optional :content, :bytes, 1 - optional :mime_type, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.GcsDocument" do - optional :gcs_uri, :string, 1 - optional :mime_type, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.GcsDocuments" do - repeated :documents, :message, 1, "google.cloud.documentai.v1beta3.GcsDocument" - end - add_message "google.cloud.documentai.v1beta3.GcsPrefix" do - optional :gcs_uri_prefix, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig" do - oneof :source do - optional :gcs_prefix, :message, 1, "google.cloud.documentai.v1beta3.GcsPrefix" - optional :gcs_documents, :message, 2, "google.cloud.documentai.v1beta3.GcsDocuments" - end - end - add_message "google.cloud.documentai.v1beta3.DocumentOutputConfig" do - oneof :destination do - optional :gcs_output_config, :message, 1, "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig" - end - end - add_message "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig" do - optional :gcs_uri, :string, 1 - optional :field_mask, :message, 2, "google.protobuf.FieldMask" - optional :sharding_config, :message, 3, "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig" - end - add_message "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig" do - optional :pages_per_shard, :int32, 1 - optional :pages_overlap, :int32, 2 - end - add_message "google.cloud.documentai.v1beta3.OcrConfig" do - optional :hints, :message, 2, "google.cloud.documentai.v1beta3.OcrConfig.Hints" - optional :enable_native_pdf_parsing, :bool, 3 - optional :enable_image_quality_scores, :bool, 4 - repeated :advanced_ocr_options, :string, 5 - optional :enable_symbol, :bool, 6 - end - add_message "google.cloud.documentai.v1beta3.OcrConfig.Hints" do - repeated :language_hints, :string, 1 + +descriptor_data = "\n1google/cloud/documentai/v1beta3/document_io.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a google/protobuf/field_mask.proto\"1\n\x0bRawDocument\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\"1\n\x0bGcsDocument\x12\x0f\n\x07gcs_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\"O\n\x0cGcsDocuments\x12?\n\tdocuments\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1beta3.GcsDocument\"#\n\tGcsPrefix\x12\x16\n\x0egcs_uri_prefix\x18\x01 \x01(\t\"\xaf\x01\n\x19\x42\x61tchDocumentsInputConfig\x12@\n\ngcs_prefix\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.GcsPrefixH\x00\x12\x46\n\rgcs_documents\x18\x02 \x01(\x0b\x32-.google.cloud.documentai.v1beta3.GcsDocumentsH\x00\x42\x08\n\x06source\"\x8f\x03\n\x14\x44ocumentOutputConfig\x12\x62\n\x11gcs_output_config\x18\x01 \x01(\x0b\x32\x45.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfigH\x00\x1a\x83\x02\n\x0fGcsOutputConfig\x12\x0f\n\x07gcs_uri\x18\x01 \x01(\t\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12m\n\x0fsharding_config\x18\x03 \x01(\x0b\x32T.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig\x1a@\n\x0eShardingConfig\x12\x17\n\x0fpages_per_shard\x18\x01 \x01(\x05\x12\x15\n\rpages_overlap\x18\x02 \x01(\x05\x42\r\n\x0b\x64\x65stination\"\xea\x01\n\tOcrConfig\x12?\n\x05hints\x18\x02 \x01(\x0b\x32\x30.google.cloud.documentai.v1beta3.OcrConfig.Hints\x12!\n\x19\x65nable_native_pdf_parsing\x18\x03 \x01(\x08\x12#\n\x1b\x65nable_image_quality_scores\x18\x04 \x01(\x08\x12\x1c\n\x14\x61\x64vanced_ocr_options\x18\x05 \x03(\t\x12\x15\n\renable_symbol\x18\x06 \x01(\x08\x1a\x1f\n\x05Hints\x12\x16\n\x0elanguage_hints\x18\x01 \x03(\tB\xe6\x01\n#com.google.cloud.documentai.v1beta3B\x0f\x44ocumentIoProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_pb.rb index 2f70f4c891df..bcc3f7e1abdf 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/document.proto @@ -14,273 +15,40 @@ require 'google/type/money_pb' require 'google/type/postal_address_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/document.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.Document" do - optional :mime_type, :string, 3 - optional :text, :string, 4 - repeated :text_styles, :message, 5, "google.cloud.documentai.v1beta3.Document.Style" - repeated :pages, :message, 6, "google.cloud.documentai.v1beta3.Document.Page" - repeated :entities, :message, 7, "google.cloud.documentai.v1beta3.Document.Entity" - repeated :entity_relations, :message, 8, "google.cloud.documentai.v1beta3.Document.EntityRelation" - repeated :text_changes, :message, 14, "google.cloud.documentai.v1beta3.Document.TextChange" - optional :shard_info, :message, 9, "google.cloud.documentai.v1beta3.Document.ShardInfo" - optional :error, :message, 10, "google.rpc.Status" - repeated :revisions, :message, 13, "google.cloud.documentai.v1beta3.Document.Revision" - oneof :source do - optional :uri, :string, 1 - optional :content, :bytes, 2 - end - end - add_message "google.cloud.documentai.v1beta3.Document.ShardInfo" do - optional :shard_index, :int64, 1 - optional :shard_count, :int64, 2 - optional :text_offset, :int64, 3 - end - add_message "google.cloud.documentai.v1beta3.Document.Style" do - optional :text_anchor, :message, 1, "google.cloud.documentai.v1beta3.Document.TextAnchor" - optional :color, :message, 2, "google.type.Color" - optional :background_color, :message, 3, "google.type.Color" - optional :font_weight, :string, 4 - optional :text_style, :string, 5 - optional :text_decoration, :string, 6 - optional :font_size, :message, 7, "google.cloud.documentai.v1beta3.Document.Style.FontSize" - optional :font_family, :string, 8 - end - add_message "google.cloud.documentai.v1beta3.Document.Style.FontSize" do - optional :size, :float, 1 - optional :unit, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.Document.Page" do - optional :page_number, :int32, 1 - optional :image, :message, 13, "google.cloud.documentai.v1beta3.Document.Page.Image" - repeated :transforms, :message, 14, "google.cloud.documentai.v1beta3.Document.Page.Matrix" - optional :dimension, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.Dimension" - optional :layout, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.Layout" - repeated :detected_languages, :message, 4, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - repeated :blocks, :message, 5, "google.cloud.documentai.v1beta3.Document.Page.Block" - repeated :paragraphs, :message, 6, "google.cloud.documentai.v1beta3.Document.Page.Paragraph" - repeated :lines, :message, 7, "google.cloud.documentai.v1beta3.Document.Page.Line" - repeated :tokens, :message, 8, "google.cloud.documentai.v1beta3.Document.Page.Token" - repeated :visual_elements, :message, 9, "google.cloud.documentai.v1beta3.Document.Page.VisualElement" - repeated :tables, :message, 10, "google.cloud.documentai.v1beta3.Document.Page.Table" - repeated :form_fields, :message, 11, "google.cloud.documentai.v1beta3.Document.Page.FormField" - repeated :symbols, :message, 12, "google.cloud.documentai.v1beta3.Document.Page.Symbol" - repeated :detected_barcodes, :message, 15, "google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode" - optional :image_quality_scores, :message, 17, "google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores" - optional :provenance, :message, 16, "google.cloud.documentai.v1beta3.Document.Provenance" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Dimension" do - optional :width, :float, 1 - optional :height, :float, 2 - optional :unit, :string, 3 - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Image" do - optional :content, :bytes, 1 - optional :mime_type, :string, 2 - optional :width, :int32, 3 - optional :height, :int32, 4 - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Matrix" do - optional :rows, :int32, 1 - optional :cols, :int32, 2 - optional :type, :int32, 3 - optional :data, :bytes, 4 - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Layout" do - optional :text_anchor, :message, 1, "google.cloud.documentai.v1beta3.Document.TextAnchor" - optional :confidence, :float, 2 - optional :bounding_poly, :message, 3, "google.cloud.documentai.v1beta3.BoundingPoly" - optional :orientation, :enum, 4, "google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation" - end - add_enum "google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation" do - value :ORIENTATION_UNSPECIFIED, 0 - value :PAGE_UP, 1 - value :PAGE_RIGHT, 2 - value :PAGE_DOWN, 3 - value :PAGE_LEFT, 4 - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Block" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - repeated :detected_languages, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - optional :provenance, :message, 3, "google.cloud.documentai.v1beta3.Document.Provenance" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Paragraph" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - repeated :detected_languages, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - optional :provenance, :message, 3, "google.cloud.documentai.v1beta3.Document.Provenance" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Line" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - repeated :detected_languages, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - optional :provenance, :message, 3, "google.cloud.documentai.v1beta3.Document.Provenance" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Token" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - optional :detected_break, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak" - repeated :detected_languages, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - optional :provenance, :message, 4, "google.cloud.documentai.v1beta3.Document.Provenance" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak" do - optional :type, :enum, 1, "google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type" - end - add_enum "google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type" do - value :TYPE_UNSPECIFIED, 0 - value :SPACE, 1 - value :WIDE_SPACE, 2 - value :HYPHEN, 3 - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Symbol" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - repeated :detected_languages, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.VisualElement" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - optional :type, :string, 2 - repeated :detected_languages, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Table" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - repeated :header_rows, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.Table.TableRow" - repeated :body_rows, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.Table.TableRow" - repeated :detected_languages, :message, 4, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - optional :provenance, :message, 5, "google.cloud.documentai.v1beta3.Document.Provenance" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Table.TableRow" do - repeated :cells, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Table.TableCell" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.Table.TableCell" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - optional :row_span, :int32, 2 - optional :col_span, :int32, 3 - repeated :detected_languages, :message, 4, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.FormField" do - optional :field_name, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - optional :field_value, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.Layout" - repeated :name_detected_languages, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - repeated :value_detected_languages, :message, 4, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" - optional :value_type, :string, 5 - optional :corrected_key_text, :string, 6 - optional :corrected_value_text, :string, 7 - optional :provenance, :message, 8, "google.cloud.documentai.v1beta3.Document.Provenance" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode" do - optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout" - optional :barcode, :message, 2, "google.cloud.documentai.v1beta3.Barcode" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" do - optional :language_code, :string, 1 - optional :confidence, :float, 2 - end - add_message "google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores" do - optional :quality_score, :float, 1 - repeated :detected_defects, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect" - end - add_message "google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect" do - optional :type, :string, 1 - optional :confidence, :float, 2 - end - add_message "google.cloud.documentai.v1beta3.Document.Entity" do - optional :text_anchor, :message, 1, "google.cloud.documentai.v1beta3.Document.TextAnchor" - optional :type, :string, 2 - optional :mention_text, :string, 3 - optional :mention_id, :string, 4 - optional :confidence, :float, 5 - optional :page_anchor, :message, 6, "google.cloud.documentai.v1beta3.Document.PageAnchor" - optional :id, :string, 7 - optional :normalized_value, :message, 9, "google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue" - repeated :properties, :message, 10, "google.cloud.documentai.v1beta3.Document.Entity" - optional :provenance, :message, 11, "google.cloud.documentai.v1beta3.Document.Provenance" - optional :redacted, :bool, 12 - end - add_message "google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue" do - optional :text, :string, 1 - oneof :structured_value do - optional :money_value, :message, 2, "google.type.Money" - optional :date_value, :message, 3, "google.type.Date" - optional :datetime_value, :message, 4, "google.type.DateTime" - optional :address_value, :message, 5, "google.type.PostalAddress" - optional :boolean_value, :bool, 6 - optional :integer_value, :int32, 7 - optional :float_value, :float, 8 - end - end - add_message "google.cloud.documentai.v1beta3.Document.EntityRelation" do - optional :subject_id, :string, 1 - optional :object_id, :string, 2 - optional :relation, :string, 3 - end - add_message "google.cloud.documentai.v1beta3.Document.TextAnchor" do - repeated :text_segments, :message, 1, "google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment" - optional :content, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment" do - optional :start_index, :int64, 1 - optional :end_index, :int64, 2 - end - add_message "google.cloud.documentai.v1beta3.Document.PageAnchor" do - repeated :page_refs, :message, 1, "google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef" - end - add_message "google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef" do - optional :page, :int64, 1 - optional :layout_type, :enum, 2, "google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutType" - optional :layout_id, :string, 3 - optional :bounding_poly, :message, 4, "google.cloud.documentai.v1beta3.BoundingPoly" - optional :confidence, :float, 5 - end - add_enum "google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutType" do - value :LAYOUT_TYPE_UNSPECIFIED, 0 - value :BLOCK, 1 - value :PARAGRAPH, 2 - value :LINE, 3 - value :TOKEN, 4 - value :VISUAL_ELEMENT, 5 - value :TABLE, 6 - value :FORM_FIELD, 7 - end - add_message "google.cloud.documentai.v1beta3.Document.Provenance" do - optional :revision, :int32, 1 - optional :id, :int32, 2 - repeated :parents, :message, 3, "google.cloud.documentai.v1beta3.Document.Provenance.Parent" - optional :type, :enum, 4, "google.cloud.documentai.v1beta3.Document.Provenance.OperationType" - end - add_message "google.cloud.documentai.v1beta3.Document.Provenance.Parent" do - optional :revision, :int32, 1 - optional :index, :int32, 3 - optional :id, :int32, 2 - end - add_enum "google.cloud.documentai.v1beta3.Document.Provenance.OperationType" do - value :OPERATION_TYPE_UNSPECIFIED, 0 - value :ADD, 1 - value :REMOVE, 2 - value :UPDATE, 7 - value :REPLACE, 3 - value :EVAL_REQUESTED, 4 - value :EVAL_APPROVED, 5 - value :EVAL_SKIPPED, 6 - end - add_message "google.cloud.documentai.v1beta3.Document.Revision" do - optional :id, :string, 1 - repeated :parent, :int32, 2 - repeated :parent_ids, :string, 7 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :human_review, :message, 6, "google.cloud.documentai.v1beta3.Document.Revision.HumanReview" - oneof :source do - optional :agent, :string, 4 - optional :processor, :string, 5 - end - end - add_message "google.cloud.documentai.v1beta3.Document.Revision.HumanReview" do - optional :state, :string, 1 - optional :state_message, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.Document.TextChange" do - optional :text_anchor, :message, 1, "google.cloud.documentai.v1beta3.Document.TextAnchor" - optional :changed_text, :string, 2 - repeated :provenance, :message, 3, "google.cloud.documentai.v1beta3.Document.Provenance" + +descriptor_data = "\n.google/cloud/documentai/v1beta3/document.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/cloud/documentai/v1beta3/barcode.proto\x1a.google/cloud/documentai/v1beta3/geometry.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x16google/type/date.proto\x1a\x1agoogle/type/datetime.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\"\xcf\x44\n\x08\x44ocument\x12\x12\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\x07\x63ontent\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x11\n\x04text\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12H\n\x0btext_styles\x18\x05 \x03(\x0b\x32/.google.cloud.documentai.v1beta3.Document.StyleB\x02\x18\x01\x12=\n\x05pages\x18\x06 \x03(\x0b\x32..google.cloud.documentai.v1beta3.Document.Page\x12\x42\n\x08\x65ntities\x18\x07 \x03(\x0b\x32\x30.google.cloud.documentai.v1beta3.Document.Entity\x12R\n\x10\x65ntity_relations\x18\x08 \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.EntityRelation\x12J\n\x0ctext_changes\x18\x0e \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextChange\x12G\n\nshard_info\x18\t \x01(\x0b\x32\x33.google.cloud.documentai.v1beta3.Document.ShardInfo\x12!\n\x05\x65rror\x18\n \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\trevisions\x18\r \x03(\x0b\x32\x32.google.cloud.documentai.v1beta3.Document.Revision\x1aJ\n\tShardInfo\x12\x13\n\x0bshard_index\x18\x01 \x01(\x03\x12\x13\n\x0bshard_count\x18\x02 \x01(\x03\x12\x13\n\x0btext_offset\x18\x03 \x01(\x03\x1a\xef\x02\n\x05Style\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12!\n\x05\x63olor\x18\x02 \x01(\x0b\x32\x12.google.type.Color\x12,\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\x0b\x32\x12.google.type.Color\x12\x13\n\x0b\x66ont_weight\x18\x04 \x01(\t\x12\x12\n\ntext_style\x18\x05 \x01(\t\x12\x17\n\x0ftext_decoration\x18\x06 \x01(\t\x12K\n\tfont_size\x18\x07 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Style.FontSize\x12\x13\n\x0b\x66ont_family\x18\x08 \x01(\t\x1a&\n\x08\x46ontSize\x12\x0c\n\x04size\x18\x01 \x01(\x02\x12\x0c\n\x04unit\x18\x02 \x01(\t\x1a\x93(\n\x04Page\x12\x13\n\x0bpage_number\x18\x01 \x01(\x05\x12\x43\n\x05image\x18\r \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Image\x12I\n\ntransforms\x18\x0e \x03(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Matrix\x12K\n\tdimension\x18\x02 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.Dimension\x12\x45\n\x06layout\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x44\n\x06\x62locks\x18\x05 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Block\x12L\n\nparagraphs\x18\x06 \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.Paragraph\x12\x42\n\x05lines\x18\x07 \x03(\x0b\x32\x33.google.cloud.documentai.v1beta3.Document.Page.Line\x12\x44\n\x06tokens\x18\x08 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Token\x12U\n\x0fvisual_elements\x18\t \x03(\x0b\x32<.google.cloud.documentai.v1beta3.Document.Page.VisualElement\x12\x44\n\x06tables\x18\n \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Table\x12M\n\x0b\x66orm_fields\x18\x0b \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.FormField\x12\x46\n\x07symbols\x18\x0c \x03(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Symbol\x12Y\n\x11\x64\x65tected_barcodes\x18\x0f \x03(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode\x12_\n\x14image_quality_scores\x18\x11 \x01(\x0b\x32\x41.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores\x12L\n\nprovenance\x18\x10 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\x38\n\tDimension\x12\r\n\x05width\x18\x01 \x01(\x02\x12\x0e\n\x06height\x18\x02 \x01(\x02\x12\x0c\n\x04unit\x18\x03 \x01(\t\x1aJ\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\x1a@\n\x06Matrix\x12\x0c\n\x04rows\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ols\x18\x02 \x01(\x05\x12\x0c\n\x04type\x18\x03 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a\xec\x02\n\x06Layout\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x44\n\rbounding_poly\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1beta3.BoundingPoly\x12V\n\x0borientation\x18\x04 \x01(\x0e\x32\x41.google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation\"e\n\x0bOrientation\x12\x1b\n\x17ORIENTATION_UNSPECIFIED\x10\x00\x12\x0b\n\x07PAGE_UP\x10\x01\x12\x0e\n\nPAGE_RIGHT\x10\x02\x12\r\n\tPAGE_DOWN\x10\x03\x12\r\n\tPAGE_LEFT\x10\x04\x1a\xf9\x01\n\x05\x42lock\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xfd\x01\n\tParagraph\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xf8\x01\n\x04Line\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\x83\x04\n\x05Token\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12Z\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x42.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak\x12[\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x04 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xab\x01\n\rDetectedBreak\x12U\n\x04type\x18\x01 \x01(\x0e\x32G.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type\"C\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nWIDE_SPACE\x10\x02\x12\n\n\x06HYPHEN\x10\x03\x1a\xac\x01\n\x06Symbol\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xc1\x01\n\rVisualElement\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x0c\n\x04type\x18\x02 \x01(\t\x12[\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xcc\x05\n\x05Table\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12R\n\x0bheader_rows\x18\x02 \x03(\x0b\x32=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\x12P\n\tbody_rows\x18\x03 \x03(\x0b\x32=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12H\n\nprovenance\x18\x05 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Provenance\x1aY\n\x08TableRow\x12M\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Page.Table.TableCell\x1a\xd3\x01\n\tTableCell\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xff\x03\n\tFormField\x12I\n\nfield_name\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12J\n\x0b\x66ield_value\x18\x02 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12`\n\x17name_detected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x61\n\x18value_detected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x12\n\nvalue_type\x18\x05 \x01(\t\x12\x1a\n\x12\x63orrected_key_text\x18\x06 \x01(\t\x12\x1c\n\x14\x63orrected_value_text\x18\x07 \x01(\t\x12H\n\nprovenance\x18\x08 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Provenance\x1a\x93\x01\n\x0f\x44\x65tectedBarcode\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x39\n\x07\x62\x61rcode\x18\x02 \x01(\x0b\x32(.google.cloud.documentai.v1beta3.Barcode\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xcb\x01\n\x12ImageQualityScores\x12\x15\n\rquality_score\x18\x01 \x01(\x02\x12j\n\x10\x64\x65tected_defects\x18\x02 \x03(\x0b\x32P.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect\x1a\x32\n\x0e\x44\x65tectedDefect\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xe9\x06\n\x06\x45ntity\x12N\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchorB\x03\xe0\x41\x01\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cmention_text\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nmention_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\x12N\n\x0bpage_anchor\x18\x06 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.PageAnchorB\x03\xe0\x41\x01\x12\x0f\n\x02id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12_\n\x10normalized_value\x18\t \x01(\x0b\x32@.google.cloud.documentai.v1beta3.Document.Entity.NormalizedValueB\x03\xe0\x41\x01\x12I\n\nproperties\x18\n \x03(\x0b\x32\x30.google.cloud.documentai.v1beta3.Document.EntityB\x03\xe0\x41\x01\x12M\n\nprovenance\x18\x0b \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x03\xe0\x41\x01\x12\x15\n\x08redacted\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x1a\xbb\x02\n\x0fNormalizedValue\x12)\n\x0bmoney_value\x18\x02 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12\'\n\ndate_value\x18\x03 \x01(\x0b\x32\x11.google.type.DateH\x00\x12/\n\x0e\x64\x61tetime_value\x18\x04 \x01(\x0b\x32\x15.google.type.DateTimeH\x00\x12\x33\n\raddress_value\x18\x05 \x01(\x0b\x32\x1a.google.type.PostalAddressH\x00\x12\x17\n\rboolean_value\x18\x06 \x01(\x08H\x00\x12\x17\n\rinteger_value\x18\x07 \x01(\x05H\x00\x12\x15\n\x0b\x66loat_value\x18\x08 \x01(\x02H\x00\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10structured_value\x1aI\n\x0e\x45ntityRelation\x12\x12\n\nsubject_id\x18\x01 \x01(\t\x12\x11\n\tobject_id\x18\x02 \x01(\t\x12\x10\n\x08relation\x18\x03 \x01(\t\x1a\xad\x01\n\nTextAnchor\x12W\n\rtext_segments\x18\x01 \x03(\x0b\x32@.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a\x35\n\x0bTextSegment\x12\x13\n\x0bstart_index\x18\x01 \x01(\x03\x12\x11\n\tend_index\x18\x02 \x01(\x03\x1a\xe7\x03\n\nPageAnchor\x12O\n\tpage_refs\x18\x01 \x03(\x0b\x32<.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef\x1a\x87\x03\n\x07PageRef\x12\x11\n\x04page\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x61\n\x0blayout_type\x18\x02 \x01(\x0e\x32G.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutTypeB\x03\xe0\x41\x01\x12\x18\n\tlayout_id\x18\x03 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12I\n\rbounding_poly\x18\x04 \x01(\x0b\x32-.google.cloud.documentai.v1beta3.BoundingPolyB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\"\x87\x01\n\nLayoutType\x12\x1b\n\x17LAYOUT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42LOCK\x10\x01\x12\r\n\tPARAGRAPH\x10\x02\x12\x08\n\x04LINE\x10\x03\x12\t\n\x05TOKEN\x10\x04\x12\x12\n\x0eVISUAL_ELEMENT\x10\x05\x12\t\n\x05TABLE\x10\x06\x12\x0e\n\nFORM_FIELD\x10\x07\x1a\xb6\x03\n\nProvenance\x12\x14\n\x08revision\x18\x01 \x01(\x05\x42\x02\x18\x01\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\x12L\n\x07parents\x18\x03 \x03(\x0b\x32;.google.cloud.documentai.v1beta3.Document.Provenance.Parent\x12P\n\x04type\x18\x04 \x01(\x0e\x32\x42.google.cloud.documentai.v1beta3.Document.Provenance.OperationType\x1a\x39\n\x06Parent\x12\x10\n\x08revision\x18\x01 \x01(\x05\x12\r\n\x05index\x18\x03 \x01(\x05\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\"\xa6\x01\n\rOperationType\x12\x1e\n\x1aOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x12\n\n\x06UPDATE\x10\x07\x12\x0f\n\x07REPLACE\x10\x03\x1a\x02\x08\x01\x12\x16\n\x0e\x45VAL_REQUESTED\x10\x04\x1a\x02\x08\x01\x12\x15\n\rEVAL_APPROVED\x10\x05\x1a\x02\x08\x01\x12\x14\n\x0c\x45VAL_SKIPPED\x10\x06\x1a\x02\x08\x01\x1a\xaa\x02\n\x08Revision\x12\x0f\n\x05\x61gent\x18\x04 \x01(\tH\x00\x12\x13\n\tprocessor\x18\x05 \x01(\tH\x00\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\x06parent\x18\x02 \x03(\x05\x42\x02\x18\x01\x12\x12\n\nparent_ids\x18\x07 \x03(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0chuman_review\x18\x06 \x01(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Revision.HumanReview\x1a\x33\n\x0bHumanReview\x12\r\n\x05state\x18\x01 \x01(\t\x12\x15\n\rstate_message\x18\x02 \x01(\tB\x08\n\x06source\x1a\xbb\x01\n\nTextChange\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12\x14\n\x0c\x63hanged_text\x18\x02 \x01(\t\x12L\n\nprovenance\x18\x03 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x42\x08\n\x06sourceB\xe4\x01\n#com.google.cloud.documentai.v1beta3B\rDocumentProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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.rpc.Status", "google/rpc/status.proto"], + ["google.type.Color", "google/type/color.proto"], + ["google.cloud.documentai.v1beta3.BoundingPoly", "google/cloud/documentai/v1beta3/geometry.proto"], + ["google.cloud.documentai.v1beta3.Barcode", "google/cloud/documentai/v1beta3/barcode.proto"], + ["google.type.Money", "google/type/money.proto"], + ["google.type.Date", "google/type/date.proto"], + ["google.type.DateTime", "google/type/datetime.proto"], + ["google.type.PostalAddress", "google/type/postal_address.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb index 0da226a6812e..76d078349bea 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/document_processor_service.proto @@ -19,279 +20,41 @@ require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/document_processor_service.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.ProcessOptions" do - optional :ocr_config, :message, 1, "google.cloud.documentai.v1beta3.OcrConfig" - end - add_message "google.cloud.documentai.v1beta3.ProcessRequest" do - optional :name, :string, 1 - optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document" - optional :skip_human_review, :bool, 3 - optional :field_mask, :message, 6, "google.protobuf.FieldMask" - optional :process_options, :message, 7, "google.cloud.documentai.v1beta3.ProcessOptions" - oneof :source do - optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document" - optional :raw_document, :message, 5, "google.cloud.documentai.v1beta3.RawDocument" - end - end - add_message "google.cloud.documentai.v1beta3.HumanReviewStatus" do - optional :state, :enum, 1, "google.cloud.documentai.v1beta3.HumanReviewStatus.State" - optional :state_message, :string, 2 - optional :human_review_operation, :string, 3 - end - add_enum "google.cloud.documentai.v1beta3.HumanReviewStatus.State" do - value :STATE_UNSPECIFIED, 0 - value :SKIPPED, 1 - value :VALIDATION_PASSED, 2 - value :IN_PROGRESS, 3 - value :ERROR, 4 - end - add_message "google.cloud.documentai.v1beta3.ProcessResponse" do - optional :document, :message, 1, "google.cloud.documentai.v1beta3.Document" - optional :human_review_operation, :string, 2 - optional :human_review_status, :message, 3, "google.cloud.documentai.v1beta3.HumanReviewStatus" - end - add_message "google.cloud.documentai.v1beta3.BatchProcessRequest" do - optional :name, :string, 1 - repeated :input_configs, :message, 2, "google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig" - optional :output_config, :message, 3, "google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig" - optional :input_documents, :message, 5, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig" - optional :document_output_config, :message, 6, "google.cloud.documentai.v1beta3.DocumentOutputConfig" - optional :skip_human_review, :bool, 4 - optional :process_options, :message, 7, "google.cloud.documentai.v1beta3.ProcessOptions" - end - add_message "google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig" do - optional :gcs_source, :string, 1 - optional :mime_type, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig" do - optional :gcs_destination, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.BatchProcessResponse" do - end - add_message "google.cloud.documentai.v1beta3.BatchProcessMetadata" do - optional :state, :enum, 1, "google.cloud.documentai.v1beta3.BatchProcessMetadata.State" - optional :state_message, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :update_time, :message, 4, "google.protobuf.Timestamp" - repeated :individual_process_statuses, :message, 5, "google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus" - end - add_message "google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus" do - optional :input_gcs_source, :string, 1 - optional :status, :message, 2, "google.rpc.Status" - optional :output_gcs_destination, :string, 3 - optional :human_review_operation, :string, 4 - optional :human_review_status, :message, 5, "google.cloud.documentai.v1beta3.HumanReviewStatus" - end - add_enum "google.cloud.documentai.v1beta3.BatchProcessMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :WAITING, 1 - value :RUNNING, 2 - value :SUCCEEDED, 3 - value :CANCELLING, 4 - value :CANCELLED, 5 - value :FAILED, 6 - end - add_message "google.cloud.documentai.v1beta3.FetchProcessorTypesRequest" do - optional :parent, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.FetchProcessorTypesResponse" do - repeated :processor_types, :message, 1, "google.cloud.documentai.v1beta3.ProcessorType" - end - add_message "google.cloud.documentai.v1beta3.ListProcessorTypesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.documentai.v1beta3.ListProcessorTypesResponse" do - repeated :processor_types, :message, 1, "google.cloud.documentai.v1beta3.ProcessorType" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.ListProcessorsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.documentai.v1beta3.ListProcessorsResponse" do - repeated :processors, :message, 1, "google.cloud.documentai.v1beta3.Processor" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.GetProcessorTypeRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.GetProcessorRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.GetProcessorVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.ListProcessorVersionsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.documentai.v1beta3.ListProcessorVersionsResponse" do - repeated :processor_versions, :message, 1, "google.cloud.documentai.v1beta3.ProcessorVersion" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionResponse" do - end - add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse" do - end - add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1beta3.CreateProcessorRequest" do - optional :parent, :string, 1 - optional :processor, :message, 2, "google.cloud.documentai.v1beta3.Processor" - end - add_message "google.cloud.documentai.v1beta3.DeleteProcessorRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.DeleteProcessorMetadata" do - optional :common_metadata, :message, 5, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1beta3.EnableProcessorRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.EnableProcessorResponse" do - end - add_message "google.cloud.documentai.v1beta3.EnableProcessorMetadata" do - optional :common_metadata, :message, 5, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1beta3.DisableProcessorRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.DisableProcessorResponse" do - end - add_message "google.cloud.documentai.v1beta3.DisableProcessorMetadata" do - optional :common_metadata, :message, 5, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest" do - optional :processor, :string, 1 - optional :default_processor_version, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse" do - end - add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionRequest" do - optional :parent, :string, 1 - optional :processor_version, :message, 2, "google.cloud.documentai.v1beta3.ProcessorVersion" - optional :document_schema, :message, 10, "google.cloud.documentai.v1beta3.DocumentSchema" - optional :input_data, :message, 4, "google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData" - optional :base_processor_version, :string, 8 - end - add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData" do - optional :training_documents, :message, 3, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig" - optional :test_documents, :message, 4, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig" - end - add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionResponse" do - optional :processor_version, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - optional :training_dataset_validation, :message, 2, "google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation" - optional :test_dataset_validation, :message, 3, "google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation" - end - add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation" do - optional :document_error_count, :int32, 3 - optional :dataset_error_count, :int32, 4 - repeated :document_errors, :message, 1, "google.rpc.Status" - repeated :dataset_errors, :message, 2, "google.rpc.Status" - end - add_message "google.cloud.documentai.v1beta3.ReviewDocumentRequest" do - optional :human_review_config, :string, 1 - optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document" - optional :enable_schema_validation, :bool, 3 - optional :priority, :enum, 5, "google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority" - optional :document_schema, :message, 6, "google.cloud.documentai.v1beta3.DocumentSchema" - oneof :source do - optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document" - end - end - add_enum "google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority" do - value :DEFAULT, 0 - value :URGENT, 1 - end - add_message "google.cloud.documentai.v1beta3.ReviewDocumentResponse" do - optional :gcs_destination, :string, 1 - optional :state, :enum, 2, "google.cloud.documentai.v1beta3.ReviewDocumentResponse.State" - optional :rejection_reason, :string, 3 - end - add_enum "google.cloud.documentai.v1beta3.ReviewDocumentResponse.State" do - value :STATE_UNSPECIFIED, 0 - value :REJECTED, 1 - value :SUCCEEDED, 2 - end - add_message "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata" do - optional :state, :enum, 1, "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State" - optional :state_message, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :update_time, :message, 4, "google.protobuf.Timestamp" - optional :common_metadata, :message, 5, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - optional :question_id, :string, 6 - end - add_enum "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :CANCELLING, 2 - value :SUCCEEDED, 3 - value :FAILED, 4 - value :CANCELLED, 5 - end - add_message "google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest" do - optional :processor_version, :string, 1 - optional :evaluation_documents, :message, 3, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig" - end - add_message "google.cloud.documentai.v1beta3.EvaluateProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata" - end - add_message "google.cloud.documentai.v1beta3.EvaluateProcessorVersionResponse" do - optional :evaluation, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.GetEvaluationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.ListEvaluationsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.documentai.v1beta3.ListEvaluationsResponse" do - repeated :evaluations, :message, 1, "google.cloud.documentai.v1beta3.Evaluation" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.documentai.v1beta3.ImportProcessorVersionRequest" do - optional :parent, :string, 1 - oneof :source do - optional :processor_version_source, :string, 2 - end - end - add_message "google.cloud.documentai.v1beta3.ImportProcessorVersionResponse" do - optional :processor_version, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.ImportProcessorVersionMetadata" do - optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata" + +descriptor_data = "\n@google/cloud/documentai/v1beta3/document_processor_service.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/documentai/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x38google/cloud/documentai/v1beta3/operation_metadata.proto\x1a/google/cloud/documentai/v1beta3/processor.proto\x1a\x34google/cloud/documentai/v1beta3/processor_type.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"P\n\x0eProcessOptions\x12>\n\nocr_config\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.OcrConfig\"\x95\x03\n\x0eProcessRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12\x44\n\x0craw_document\x18\x05 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.RawDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptionsB\x08\n\x06source\"\xf3\x01\n\x11HumanReviewStatus\x12G\n\x05state\x18\x01 \x01(\x0e\x32\x38.google.cloud.documentai.v1beta3.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\xc3\x01\n\x0fProcessResponse\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32).google.cloud.documentai.v1beta3.Document\x12\"\n\x16human_review_operation\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x03 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.HumanReviewStatus\"\xf5\x04\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12`\n\rinput_configs\x18\x02 \x03(\x0b\x32\x45.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigB\x02\x18\x01\x12\x61\n\routput_config\x18\x03 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigB\x02\x18\x01\x12S\n\x0finput_documents\x18\x05 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12U\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x1a=\n\x10\x42\x61tchInputConfig\x12\x12\n\ngcs_source\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t:\x02\x18\x01\x1a\x30\n\x11\x42\x61tchOutputConfig\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t:\x02\x18\x01\"\x16\n\x14\x42\x61tchProcessResponse\"\xb2\x05\n\x14\x42\x61tchProcessMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.documentai.v1beta3.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12r\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32M.google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus\x1a\xec\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12\"\n\x16human_review_operation\x18\x04 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x05 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"f\n\x1b\x46\x65tchProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"~\n\x1aListProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"q\n\x16ListProcessorsResponse\x12>\n\nprocessors\x18\x01 \x03(\x0b\x32*.google.cloud.documentai.v1beta3.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x87\x01\n\x1dListProcessorVersionsResponse\x12M\n\x12processor_versions\x18\x01 \x03(\x0b\x32\x31.google.cloud.documentai.v1beta3.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"s\n\x1e\x44\x65leteProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"s\n\x1e\x44\x65ployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"u\n UndeployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\x99\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x42\n\tprocessor\x18\x02 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"l\n\x17\x44\x65leteProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"l\n\x17\x45nableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"m\n\x18\x44isableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"w\n\"SetDefaultProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xbe\x04\n\x1cTrainProcessorVersionRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12Q\n\x11processor_version\x18\x02 \x01(\x0b\x32\x31.google.cloud.documentai.v1beta3.ProcessorVersionB\x03\xe0\x41\x02\x12M\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x12`\n\ninput_data\x18\x04 \x01(\x0b\x32G.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xb7\x01\n\tInputData\x12V\n\x12training_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12R\n\x0etest_documents\x18\x04 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\x86\x04\n\x1dTrainProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12u\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\x12q\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\xde\x03\n\x15ReviewDocumentRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12Q\n\x08priority\x18\x05 \x01(\x0e\x32?.google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority\x12H\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd6\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12L\n\x05state\x18\x02 \x01(\x0e\x32=.google.cloud.documentai.v1beta3.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\xc0\x03\n\x1fReviewDocumentOperationMetadata\x12U\n\x05state\x18\x01 \x01(\x0e\x32\x46.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELLED\x10\x05\"\xcf\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12]\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"u\n EvaluateProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x17ListEvaluationsResponse\x12@\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32+.google.cloud.documentai.v1beta3.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc2\x01\n\x1dImportProcessorVersionRequest\x12S\n\x18processor_version_source\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersionH\x00\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersionB\x08\n\x06source\"l\n\x1eImportProcessorVersionResponse\x12J\n\x11processor_version\x18\x01 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"s\n\x1eImportProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata2\xeb.\n\x18\x44ocumentProcessorService\x12\x9b\x02\n\x0fProcessDocument\x12/.google.cloud.documentai.v1beta3.ProcessRequest\x1a\x30.google.cloud.documentai.v1beta3.ProcessResponse\"\xa4\x01\x82\xd3\xe4\x93\x02\x96\x01\";/v1beta3/{name=projects/*/locations/*/processors/*}:process:\x01*ZT\"O/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\xda\x41\x04name\x12\xcc\x02\n\x15\x42\x61tchProcessDocuments\x12\x34.google.cloud.documentai.v1beta3.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\x82\xd3\xe4\x93\x02\xa0\x01\"@/v1beta3/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZY\"T/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\xda\x41\x04name\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\x12\xdf\x01\n\x13\x46\x65tchProcessorTypes\x12;.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest\x1a<.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse\"M\x82\xd3\xe4\x93\x02>\x12\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\x12\xdd\x01\n\x13GetProcessorVersion\x12;.google.cloud.documentai.v1beta3.GetProcessorVersionRequest\x1a\x31.google.cloud.documentai.v1beta3.ProcessorVersion\"V\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\x12\xf0\x01\n\x15ListProcessorVersions\x12=.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest\x1a>.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse\"X\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions\xda\x41\x06parent\x12\x8a\x02\n\x16\x44\x65leteProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\x82\xd3\xe4\x93\x02I*G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\x12\x9d\x02\n\x16\x44\x65ployProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\x82\xd3\xe4\x93\x02S\"N/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\xda\x41\x04name\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\x12\xa7\x02\n\x18UndeployProcessorVersion\x12@.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\x82\xd3\xe4\x93\x02U\"P/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\xda\x41\x04name\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\x12\xd1\x01\n\x0f\x43reateProcessor\x12\x37.google.cloud.documentai.v1beta3.CreateProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"Y\x82\xd3\xe4\x93\x02@\"3/v1beta3/{parent=projects/*/locations/*}/processors:\tprocessor\xda\x41\x10parent,processor\x12\xe0\x01\n\x0f\x44\x65leteProcessor\x12\x37.google.cloud.documentai.v1beta3.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02\x35*3/v1beta3/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\x12\xe5\x01\n\x0f\x45nableProcessor\x12\x37.google.cloud.documentai.v1beta3.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\x01*\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x12\xea\x01\n\x10\x44isableProcessor\x12\x38.google.cloud.documentai.v1beta3.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"}\x82\xd3\xe4\x93\x02@\";/v1beta3/{name=projects/*/locations/*/processors/*}:disable:\x01*\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x12\xab\x02\n\x1aSetDefaultProcessorVersion\x12\x42.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\x82\xd3\xe4\x93\x02X\"S/v1beta3/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x12\xaa\x02\n\x0eReviewDocument\x12\x36.google.cloud.documentai.v1beta3.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xc0\x01\x82\xd3\xe4\x93\x02h\"c/v1beta3/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\xda\x41\x13human_review_config\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\x12\xd1\x02\n\x18\x45valuateProcessorVersion\x12@.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02r\"m/v1beta3/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\xda\x41\x11processor_version\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\x12\xd9\x01\n\rGetEvaluation\x12\x35.google.cloud.documentai.v1beta3.GetEvaluationRequest\x1a+.google.cloud.documentai.v1beta3.Evaluation\"d\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\xda\x41\x04name\x12\xec\x01\n\x0fListEvaluations\x12\x37.google.cloud.documentai.v1beta3.ListEvaluationsRequest\x1a\x38.google.cloud.documentai.v1beta3.ListEvaluationsResponse\"f\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\xda\x41\x06parent\x12\xaf\x02\n\x16ImportProcessorVersion\x12>.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\x82\xd3\xe4\x93\x02\x63\"^/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:importProcessorVersion:\x01*\xda\x41\x06parent\xca\x41@\n\x1eImportProcessorVersionResponse\x12\x1eImportProcessorVersionMetadata\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc3\x03\n#com.google.cloud.documentai.v1beta3B\x1a\x44ocumentAiProcessorServiceP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\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.documentai.v1beta3.OcrConfig", "google/cloud/documentai/v1beta3/document_io.proto"], + ["google.cloud.documentai.v1beta3.Document", "google/cloud/documentai/v1beta3/document.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.cloud.documentai.v1beta3.ProcessorType", "google/cloud/documentai/v1beta3/processor_type.proto"], + ["google.cloud.documentai.v1beta3.Processor", "google/cloud/documentai/v1beta3/processor.proto"], + ["google.cloud.documentai.v1beta3.CommonOperationMetadata", "google/cloud/documentai/v1beta3/operation_metadata.proto"], + ["google.cloud.documentai.v1beta3.DocumentSchema", "google/cloud/documentai/v1beta3/document_schema.proto"], + ["google.cloud.documentai.v1beta3.Evaluation", "google/cloud/documentai/v1beta3/evaluation.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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_schema_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_schema_pb.rb index 0c49482c6eb2..7b10a5b7735c 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_schema_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/document_schema_pb.rb @@ -1,47 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/document_schema.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/document_schema.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.DocumentSchema" do - optional :display_name, :string, 1 - optional :description, :string, 2 - repeated :entity_types, :message, 3, "google.cloud.documentai.v1beta3.DocumentSchema.EntityType" - optional :metadata, :message, 4, "google.cloud.documentai.v1beta3.DocumentSchema.Metadata" - end - add_message "google.cloud.documentai.v1beta3.DocumentSchema.EntityType" do - optional :display_name, :string, 13 - optional :name, :string, 1 - repeated :base_types, :string, 2 - repeated :properties, :message, 6, "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property" - oneof :value_source do - optional :enum_values, :message, 14, "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues" - end - end - add_message "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues" do - repeated :values, :string, 1 - end - add_message "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property" do - optional :name, :string, 1 - optional :value_type, :string, 2 - optional :occurrence_type, :enum, 3, "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType" - end - add_enum "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType" do - value :OCCURRENCE_TYPE_UNSPECIFIED, 0 - value :OPTIONAL_ONCE, 1 - value :OPTIONAL_MULTIPLE, 2 - value :REQUIRED_ONCE, 3 - value :REQUIRED_MULTIPLE, 4 - end - add_message "google.cloud.documentai.v1beta3.DocumentSchema.Metadata" do - optional :document_splitter, :bool, 1 - optional :document_allow_multiple_labels, :bool, 2 - optional :prefixed_naming_on_properties, :bool, 6 - optional :skip_naming_validation, :bool, 7 + +descriptor_data = "\n5google/cloud/documentai/v1beta3/document_schema.proto\x12\x1fgoogle.cloud.documentai.v1beta3\"\xc0\x07\n\x0e\x44ocumentSchema\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12P\n\x0c\x65ntity_types\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1beta3.DocumentSchema.EntityType\x12J\n\x08metadata\x18\x04 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.DocumentSchema.Metadata\x1a\xcd\x04\n\nEntityType\x12\\\n\x0b\x65num_values\x18\x0e \x01(\x0b\x32\x45.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValuesH\x00\x12\x14\n\x0c\x64isplay_name\x18\r \x01(\t\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nbase_types\x18\x02 \x03(\t\x12W\n\nproperties\x18\x06 \x03(\x0b\x32\x43.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property\x1a\x1c\n\nEnumValues\x12\x0e\n\x06values\x18\x01 \x03(\t\x1a\xa1\x02\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nvalue_type\x18\x02 \x01(\t\x12k\n\x0foccurrence_type\x18\x03 \x01(\x0e\x32R.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType\"\x85\x01\n\x0eOccurrenceType\x12\x1f\n\x1bOCCURRENCE_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rOPTIONAL_ONCE\x10\x01\x12\x15\n\x11OPTIONAL_MULTIPLE\x10\x02\x12\x11\n\rREQUIRED_ONCE\x10\x03\x12\x15\n\x11REQUIRED_MULTIPLE\x10\x04\x42\x0e\n\x0cvalue_source\x1a\x94\x01\n\x08Metadata\x12\x19\n\x11\x64ocument_splitter\x18\x01 \x01(\x08\x12&\n\x1e\x64ocument_allow_multiple_labels\x18\x02 \x01(\x08\x12%\n\x1dprefixed_naming_on_properties\x18\x06 \x01(\x08\x12\x1e\n\x16skip_naming_validation\x18\x07 \x01(\x08\x42\xef\x01\n#com.google.cloud.documentai.v1beta3B\x18\x44ocumentAiDocumentSchemaP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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 = [ + ] + 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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/evaluation_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/evaluation_pb.rb index 05e6947bd03f..cb06ac86b892 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/evaluation_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/evaluation_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/evaluation.proto @@ -6,60 +7,32 @@ require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/evaluation.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.EvaluationReference" do - optional :operation, :string, 1 - optional :evaluation, :string, 2 - optional :aggregate_metrics, :message, 4, "google.cloud.documentai.v1beta3.Evaluation.Metrics" - optional :aggregate_metrics_exact, :message, 5, "google.cloud.documentai.v1beta3.Evaluation.Metrics" - end - add_message "google.cloud.documentai.v1beta3.Evaluation" do - optional :name, :string, 1 - optional :create_time, :message, 2, "google.protobuf.Timestamp" - optional :document_counters, :message, 5, "google.cloud.documentai.v1beta3.Evaluation.Counters" - optional :all_entities_metrics, :message, 3, "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics" - map :entity_metrics, :string, :message, 4, "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics" - optional :kms_key_name, :string, 6 - optional :kms_key_version_name, :string, 7 - end - add_message "google.cloud.documentai.v1beta3.Evaluation.Counters" do - optional :input_documents_count, :int32, 1 - optional :invalid_documents_count, :int32, 2 - optional :failed_documents_count, :int32, 3 - optional :evaluated_documents_count, :int32, 4 - end - add_message "google.cloud.documentai.v1beta3.Evaluation.Metrics" do - optional :precision, :float, 1 - optional :recall, :float, 2 - optional :f1_score, :float, 3 - optional :predicted_occurrences_count, :int32, 4 - optional :ground_truth_occurrences_count, :int32, 5 - optional :predicted_document_count, :int32, 10 - optional :ground_truth_document_count, :int32, 11 - optional :true_positives_count, :int32, 6 - optional :false_positives_count, :int32, 7 - optional :false_negatives_count, :int32, 8 - optional :total_documents_count, :int32, 9 - end - add_message "google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics" do - optional :confidence_level, :float, 1 - optional :metrics, :message, 2, "google.cloud.documentai.v1beta3.Evaluation.Metrics" - end - add_message "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics" do - repeated :confidence_level_metrics, :message, 1, "google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics" - repeated :confidence_level_metrics_exact, :message, 4, "google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics" - optional :auprc, :float, 2 - optional :estimated_calibration_error, :float, 3 - optional :auprc_exact, :float, 5 - optional :estimated_calibration_error_exact, :float, 6 - optional :metrics_type, :enum, 7, "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType" - end - add_enum "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType" do - value :METRICS_TYPE_UNSPECIFIED, 0 - value :AGGREGATE, 1 + +descriptor_data = "\n0google/cloud/documentai/v1beta3/evaluation.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\x02\n\x13\x45valuationReference\x12\x11\n\toperation\x18\x01 \x01(\t\x12=\n\nevaluation\x18\x02 \x01(\tB)\xfa\x41&\n$documentai.googleapis.com/Evaluation\x12N\n\x11\x61ggregate_metrics\x18\x04 \x01(\x0b\x32\x33.google.cloud.documentai.v1beta3.Evaluation.Metrics\x12T\n\x17\x61ggregate_metrics_exact\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1beta3.Evaluation.Metrics\"\x8d\x0e\n\nEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x11\x64ocument_counters\x18\x05 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Evaluation.Counters\x12`\n\x14\x61ll_entities_metrics\x18\x03 \x01(\x0b\x32\x42.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics\x12V\n\x0e\x65ntity_metrics\x18\x04 \x03(\x0b\x32>.google.cloud.documentai.v1beta3.Evaluation.EntityMetricsEntry\x12\x14\n\x0ckms_key_name\x18\x06 \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\x07 \x01(\t\x1a\x8d\x01\n\x08\x43ounters\x12\x1d\n\x15input_documents_count\x18\x01 \x01(\x05\x12\x1f\n\x17invalid_documents_count\x18\x02 \x01(\x05\x12\x1e\n\x16\x66\x61iled_documents_count\x18\x03 \x01(\x05\x12!\n\x19\x65valuated_documents_count\x18\x04 \x01(\x05\x1a\xcd\x02\n\x07Metrics\x12\x11\n\tprecision\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x03 \x01(\x02\x12#\n\x1bpredicted_occurrences_count\x18\x04 \x01(\x05\x12&\n\x1eground_truth_occurrences_count\x18\x05 \x01(\x05\x12 \n\x18predicted_document_count\x18\n \x01(\x05\x12#\n\x1bground_truth_document_count\x18\x0b \x01(\x05\x12\x1c\n\x14true_positives_count\x18\x06 \x01(\x05\x12\x1d\n\x15\x66\x61lse_positives_count\x18\x07 \x01(\x05\x12\x1d\n\x15\x66\x61lse_negatives_count\x18\x08 \x01(\x05\x12\x1d\n\x15total_documents_count\x18\t \x01(\x05\x1ax\n\x16\x43onfidenceLevelMetrics\x12\x18\n\x10\x63onfidence_level\x18\x01 \x01(\x02\x12\x44\n\x07metrics\x18\x02 \x01(\x0b\x32\x33.google.cloud.documentai.v1beta3.Evaluation.Metrics\x1a\x80\x04\n\x16MultiConfidenceMetrics\x12\x64\n\x18\x63onfidence_level_metrics\x18\x01 \x03(\x0b\x32\x42.google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics\x12j\n\x1e\x63onfidence_level_metrics_exact\x18\x04 \x03(\x0b\x32\x42.google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics\x12\r\n\x05\x61uprc\x18\x02 \x01(\x02\x12#\n\x1b\x65stimated_calibration_error\x18\x03 \x01(\x02\x12\x13\n\x0b\x61uprc_exact\x18\x05 \x01(\x02\x12)\n!estimated_calibration_error_exact\x18\x06 \x01(\x02\x12\x64\n\x0cmetrics_type\x18\x07 \x01(\x0e\x32N.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType\":\n\x0bMetricsType\x12\x1c\n\x18METRICS_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tAGGREGATE\x10\x01\x1ax\n\x12\x45ntityMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12Q\n\x05value\x18\x02 \x01(\x0b\x32\x42.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics:\x02\x38\x01:\xa9\x01\xea\x41\xa5\x01\n$documentai.googleapis.com/Evaluation\x12}projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}B\xeb\x01\n#com.google.cloud.documentai.v1beta3B\x14\x44ocumentAiEvaluationP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/geometry_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/geometry_pb.rb index 8f0daac3bc3d..a220e24f987e 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/geometry_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/geometry_pb.rb @@ -1,23 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/geometry.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/geometry.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.Vertex" do - optional :x, :int32, 1 - optional :y, :int32, 2 - end - add_message "google.cloud.documentai.v1beta3.NormalizedVertex" do - optional :x, :float, 1 - optional :y, :float, 2 - end - add_message "google.cloud.documentai.v1beta3.BoundingPoly" do - repeated :vertices, :message, 1, "google.cloud.documentai.v1beta3.Vertex" - repeated :normalized_vertices, :message, 2, "google.cloud.documentai.v1beta3.NormalizedVertex" + +descriptor_data = "\n.google/cloud/documentai/v1beta3/geometry.proto\x12\x1fgoogle.cloud.documentai.v1beta3\"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"\x99\x01\n\x0c\x42oundingPoly\x12\x39\n\x08vertices\x18\x01 \x03(\x0b\x32\'.google.cloud.documentai.v1beta3.Vertex\x12N\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32\x31.google.cloud.documentai.v1beta3.NormalizedVertexB\xe4\x01\n#com.google.cloud.documentai.v1beta3B\rGeometryProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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 = [ + ] + 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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb index d63483a7c733..3f89fcba9e65 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/operation_metadata.proto @@ -5,24 +6,32 @@ require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/operation_metadata.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.CommonOperationMetadata" do - optional :state, :enum, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata.State" - optional :state_message, :string, 2 - optional :resource, :string, 5 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :update_time, :message, 4, "google.protobuf.Timestamp" - end - add_enum "google.cloud.documentai.v1beta3.CommonOperationMetadata.State" do - value :STATE_UNSPECIFIED, 0 - value :RUNNING, 1 - value :CANCELLING, 2 - value :SUCCEEDED, 3 - value :FAILED, 4 - value :CANCELLED, 5 + +descriptor_data = "\n8google/cloud/documentai/v1beta3/operation_metadata.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x02\n\x17\x43ommonOperationMetadata\x12M\n\x05state\x18\x01 \x01(\x0e\x32>.google.cloud.documentai.v1beta3.CommonOperationMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x10\n\x08resource\x18\x05 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x42\xed\x01\n#com.google.cloud.documentai.v1beta3B\x16OperationMetadataProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/processor_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/processor_pb.rb index 55cc504918e4..b3887990b56c 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/processor_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/processor_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/processor.proto @@ -9,55 +10,34 @@ require 'google/cloud/documentai/v1beta3/evaluation_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/processor.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.ProcessorVersion" do - optional :name, :string, 1 - optional :display_name, :string, 2 - optional :document_schema, :message, 12, "google.cloud.documentai.v1beta3.DocumentSchema" - optional :state, :enum, 6, "google.cloud.documentai.v1beta3.ProcessorVersion.State" - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :latest_evaluation, :message, 8, "google.cloud.documentai.v1beta3.EvaluationReference" - optional :kms_key_name, :string, 9 - optional :kms_key_version_name, :string, 10 - optional :google_managed, :bool, 11 - optional :deprecation_info, :message, 13, "google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo" - end - add_message "google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo" do - optional :deprecation_time, :message, 1, "google.protobuf.Timestamp" - optional :replacement_processor_version, :string, 2 - end - add_enum "google.cloud.documentai.v1beta3.ProcessorVersion.State" do - value :STATE_UNSPECIFIED, 0 - value :DEPLOYED, 1 - value :DEPLOYING, 2 - value :UNDEPLOYED, 3 - value :UNDEPLOYING, 4 - value :CREATING, 5 - value :DELETING, 6 - value :FAILED, 7 - end - add_message "google.cloud.documentai.v1beta3.Processor" do - optional :name, :string, 1 - optional :type, :string, 2 - optional :display_name, :string, 3 - optional :state, :enum, 4, "google.cloud.documentai.v1beta3.Processor.State" - optional :default_processor_version, :string, 9 - optional :process_endpoint, :string, 6 - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :kms_key_name, :string, 8 - end - add_enum "google.cloud.documentai.v1beta3.Processor.State" do - value :STATE_UNSPECIFIED, 0 - value :ENABLED, 1 - value :DISABLED, 2 - value :ENABLING, 3 - value :DISABLING, 4 - value :CREATING, 5 - value :FAILED, 6 - value :DELETING, 7 + +descriptor_data = "\n/google/cloud/documentai/v1beta3/processor.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb5\x07\n\x10ProcessorVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12H\n\x0f\x64ocument_schema\x18\x0c \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\x12\x46\n\x05state\x18\x06 \x01(\x0e\x32\x37.google.cloud.documentai.v1beta3.ProcessorVersion.State\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x11latest_evaluation\x18\x08 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.EvaluationReference\x12\x14\n\x0ckms_key_name\x18\t \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\n \x01(\t\x12\x16\n\x0egoogle_managed\x18\x0b \x01(\x08\x12[\n\x10\x64\x65precation_info\x18\r \x01(\x0b\x32\x41.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo\x1a\x9f\x01\n\x0f\x44\x65precationInfo\x12\x34\n\x10\x64\x65precation_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x1dreplacement_processor_version\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x84\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45PLOYED\x10\x01\x12\r\n\tDEPLOYING\x10\x02\x12\x0e\n\nUNDEPLOYED\x10\x03\x12\x0f\n\x0bUNDEPLOYING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07:\x96\x01\xea\x41\x92\x01\n*documentai.googleapis.com/ProcessorVersion\x12\x64projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}\"\xb2\x04\n\tProcessor\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x44\n\x05state\x18\x04 \x01(\x0e\x32\x30.google.cloud.documentai.v1beta3.Processor.StateB\x03\xe0\x41\x03\x12R\n\x19\x64\x65\x66\x61ult_processor_version\x18\t \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12 \n\x10process_endpoint\x18\x06 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0ckms_key_name\x18\x08 \x01(\t\"~\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0c\n\x08\x45NABLING\x10\x03\x12\r\n\tDISABLING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08\x44\x45LETING\x10\x07:h\xea\x41\x65\n#documentai.googleapis.com/Processor\x12>projects/{project}/locations/{location}/processors/{processor}B\xea\x01\n#com.google.cloud.documentai.v1beta3B\x13\x44ocumentAiProcessorP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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.documentai.v1beta3.DocumentSchema", "google/cloud/documentai/v1beta3/document_schema.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.documentai.v1beta3.EvaluationReference", "google/cloud/documentai/v1beta3/evaluation.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 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 diff --git a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb index abeaa4eb4964..10180e3ecd4a 100644 --- a/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb +++ b/google-cloud-document_ai-v1beta3/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/processor_type.proto @@ -6,21 +7,31 @@ require 'google/api/launch_stage_pb' require 'google/api/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/documentai/v1beta3/processor_type.proto", :syntax => :proto3) do - add_message "google.cloud.documentai.v1beta3.ProcessorType" do - optional :name, :string, 1 - optional :type, :string, 2 - optional :category, :string, 3 - repeated :available_locations, :message, 4, "google.cloud.documentai.v1beta3.ProcessorType.LocationInfo" - optional :allow_creation, :bool, 6 - optional :launch_stage, :enum, 8, "google.api.LaunchStage" - repeated :sample_document_uris, :string, 9 - end - add_message "google.cloud.documentai.v1beta3.ProcessorType.LocationInfo" do - optional :location_id, :string, 1 + +descriptor_data = "\n4google/cloud/documentai/v1beta3/processor_type.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\"\x98\x03\n\rProcessorType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x03 \x01(\t\x12X\n\x13\x61vailable_locations\x18\x04 \x03(\x0b\x32;.google.cloud.documentai.v1beta3.ProcessorType.LocationInfo\x12\x16\n\x0e\x61llow_creation\x18\x06 \x01(\x08\x12-\n\x0claunch_stage\x18\x08 \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x1c\n\x14sample_document_uris\x18\t \x03(\t\x1a#\n\x0cLocationInfo\x12\x13\n\x0blocation_id\x18\x01 \x01(\t:u\xea\x41r\n\'documentai.googleapis.com/ProcessorType\x12Gprojects/{project}/locations/{location}/processorTypes/{processor_type}B\xee\x01\n#com.google.cloud.documentai.v1beta3B\x17\x44ocumentAiProcessorTypeP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\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 = [ + ] + 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 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 diff --git a/google-cloud-document_ai-v1beta3/proto_docs/google/protobuf/any.rb b/google-cloud-document_ai-v1beta3/proto_docs/google/protobuf/any.rb index 8774b7f4a815..68a54aef5a75 100644 --- a/google-cloud-document_ai-v1beta3/proto_docs/google/protobuf/any.rb +++ b/google-cloud-document_ai-v1beta3/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-document_ai-v1beta3/proto_docs/google/protobuf/timestamp.rb b/google-cloud-document_ai-v1beta3/proto_docs/google/protobuf/timestamp.rb index 7c4e206ac5fb..4891104f14b9 100644 --- a/google-cloud-document_ai-v1beta3/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-document_ai-v1beta3/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-domains-v1/google-cloud-domains-v1.gemspec b/google-cloud-domains-v1/google-cloud-domains-v1.gemspec index ea2d77c3b0cc..60e3014db154 100644 --- a/google-cloud-domains-v1/google-cloud-domains-v1.gemspec +++ b/google-cloud-domains-v1/google-cloud-domains-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-domains-v1/lib/google/cloud/domains/v1/domains_pb.rb b/google-cloud-domains-v1/lib/google/cloud/domains/v1/domains_pb.rb index ef4f504e1302..673a4eedd778 100644 --- a/google-cloud-domains-v1/lib/google/cloud/domains/v1/domains_pb.rb +++ b/google-cloud-domains-v1/lib/google/cloud/domains/v1/domains_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/domains/v1/domains.proto @@ -13,254 +14,35 @@ require 'google/type/money_pb' require 'google/type/postal_address_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/domains/v1/domains.proto", :syntax => :proto3) do - add_message "google.cloud.domains.v1.Registration" do - optional :name, :string, 1 - optional :domain_name, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :expire_time, :message, 6, "google.protobuf.Timestamp" - optional :state, :enum, 7, "google.cloud.domains.v1.Registration.State" - repeated :issues, :enum, 8, "google.cloud.domains.v1.Registration.Issue" - map :labels, :string, :string, 9 - optional :management_settings, :message, 10, "google.cloud.domains.v1.ManagementSettings" - optional :dns_settings, :message, 11, "google.cloud.domains.v1.DnsSettings" - optional :contact_settings, :message, 12, "google.cloud.domains.v1.ContactSettings" - optional :pending_contact_settings, :message, 13, "google.cloud.domains.v1.ContactSettings" - repeated :supported_privacy, :enum, 14, "google.cloud.domains.v1.ContactPrivacy" - end - add_enum "google.cloud.domains.v1.Registration.State" do - value :STATE_UNSPECIFIED, 0 - value :REGISTRATION_PENDING, 1 - value :REGISTRATION_FAILED, 2 - value :TRANSFER_PENDING, 3 - value :TRANSFER_FAILED, 4 - value :ACTIVE, 6 - value :SUSPENDED, 7 - value :EXPORTED, 8 - end - add_enum "google.cloud.domains.v1.Registration.Issue" do - value :ISSUE_UNSPECIFIED, 0 - value :CONTACT_SUPPORT, 1 - value :UNVERIFIED_EMAIL, 2 - end - add_message "google.cloud.domains.v1.ManagementSettings" do - optional :renewal_method, :enum, 3, "google.cloud.domains.v1.ManagementSettings.RenewalMethod" - optional :transfer_lock_state, :enum, 4, "google.cloud.domains.v1.TransferLockState" - end - add_enum "google.cloud.domains.v1.ManagementSettings.RenewalMethod" do - value :RENEWAL_METHOD_UNSPECIFIED, 0 - value :AUTOMATIC_RENEWAL, 1 - value :MANUAL_RENEWAL, 2 - end - add_message "google.cloud.domains.v1.DnsSettings" do - repeated :glue_records, :message, 4, "google.cloud.domains.v1.DnsSettings.GlueRecord" - oneof :dns_provider do - optional :custom_dns, :message, 1, "google.cloud.domains.v1.DnsSettings.CustomDns" - optional :google_domains_dns, :message, 2, "google.cloud.domains.v1.DnsSettings.GoogleDomainsDns" - end - end - add_message "google.cloud.domains.v1.DnsSettings.CustomDns" do - repeated :name_servers, :string, 1 - repeated :ds_records, :message, 2, "google.cloud.domains.v1.DnsSettings.DsRecord" - end - add_message "google.cloud.domains.v1.DnsSettings.GoogleDomainsDns" do - repeated :name_servers, :string, 1 - optional :ds_state, :enum, 2, "google.cloud.domains.v1.DnsSettings.DsState" - repeated :ds_records, :message, 3, "google.cloud.domains.v1.DnsSettings.DsRecord" - end - add_message "google.cloud.domains.v1.DnsSettings.DsRecord" do - optional :key_tag, :int32, 1 - optional :algorithm, :enum, 2, "google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm" - optional :digest_type, :enum, 3, "google.cloud.domains.v1.DnsSettings.DsRecord.DigestType" - optional :digest, :string, 4 - end - add_enum "google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm" do - value :ALGORITHM_UNSPECIFIED, 0 - value :RSAMD5, 1 - value :DH, 2 - value :DSA, 3 - value :ECC, 4 - value :RSASHA1, 5 - value :DSANSEC3SHA1, 6 - value :RSASHA1NSEC3SHA1, 7 - value :RSASHA256, 8 - value :RSASHA512, 10 - value :ECCGOST, 12 - value :ECDSAP256SHA256, 13 - value :ECDSAP384SHA384, 14 - value :ED25519, 15 - value :ED448, 16 - value :INDIRECT, 252 - value :PRIVATEDNS, 253 - value :PRIVATEOID, 254 - end - add_enum "google.cloud.domains.v1.DnsSettings.DsRecord.DigestType" do - value :DIGEST_TYPE_UNSPECIFIED, 0 - value :SHA1, 1 - value :SHA256, 2 - value :GOST3411, 3 - value :SHA384, 4 - end - add_message "google.cloud.domains.v1.DnsSettings.GlueRecord" do - optional :host_name, :string, 1 - repeated :ipv4_addresses, :string, 2 - repeated :ipv6_addresses, :string, 3 - end - add_enum "google.cloud.domains.v1.DnsSettings.DsState" do - value :DS_STATE_UNSPECIFIED, 0 - value :DS_RECORDS_UNPUBLISHED, 1 - value :DS_RECORDS_PUBLISHED, 2 - end - add_message "google.cloud.domains.v1.ContactSettings" do - optional :privacy, :enum, 1, "google.cloud.domains.v1.ContactPrivacy" - optional :registrant_contact, :message, 2, "google.cloud.domains.v1.ContactSettings.Contact" - optional :admin_contact, :message, 3, "google.cloud.domains.v1.ContactSettings.Contact" - optional :technical_contact, :message, 4, "google.cloud.domains.v1.ContactSettings.Contact" - end - add_message "google.cloud.domains.v1.ContactSettings.Contact" do - optional :postal_address, :message, 1, "google.type.PostalAddress" - optional :email, :string, 2 - optional :phone_number, :string, 3 - optional :fax_number, :string, 4 - end - add_message "google.cloud.domains.v1.SearchDomainsRequest" do - optional :query, :string, 1 - optional :location, :string, 2 - end - add_message "google.cloud.domains.v1.SearchDomainsResponse" do - repeated :register_parameters, :message, 1, "google.cloud.domains.v1.RegisterParameters" - end - add_message "google.cloud.domains.v1.RetrieveRegisterParametersRequest" do - optional :domain_name, :string, 1 - optional :location, :string, 2 - end - add_message "google.cloud.domains.v1.RetrieveRegisterParametersResponse" do - optional :register_parameters, :message, 1, "google.cloud.domains.v1.RegisterParameters" - end - add_message "google.cloud.domains.v1.RegisterDomainRequest" do - optional :parent, :string, 1 - optional :registration, :message, 2, "google.cloud.domains.v1.Registration" - repeated :domain_notices, :enum, 3, "google.cloud.domains.v1.DomainNotice" - repeated :contact_notices, :enum, 4, "google.cloud.domains.v1.ContactNotice" - optional :yearly_price, :message, 5, "google.type.Money" - optional :validate_only, :bool, 6 - end - add_message "google.cloud.domains.v1.RetrieveTransferParametersRequest" do - optional :domain_name, :string, 1 - optional :location, :string, 2 - end - add_message "google.cloud.domains.v1.RetrieveTransferParametersResponse" do - optional :transfer_parameters, :message, 1, "google.cloud.domains.v1.TransferParameters" - end - add_message "google.cloud.domains.v1.TransferDomainRequest" do - optional :parent, :string, 1 - optional :registration, :message, 2, "google.cloud.domains.v1.Registration" - repeated :contact_notices, :enum, 3, "google.cloud.domains.v1.ContactNotice" - optional :yearly_price, :message, 4, "google.type.Money" - optional :authorization_code, :message, 5, "google.cloud.domains.v1.AuthorizationCode" - optional :validate_only, :bool, 6 - end - add_message "google.cloud.domains.v1.ListRegistrationsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.domains.v1.ListRegistrationsResponse" do - repeated :registrations, :message, 1, "google.cloud.domains.v1.Registration" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.domains.v1.GetRegistrationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.domains.v1.UpdateRegistrationRequest" do - optional :registration, :message, 1, "google.cloud.domains.v1.Registration" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.domains.v1.ConfigureManagementSettingsRequest" do - optional :registration, :string, 1 - optional :management_settings, :message, 2, "google.cloud.domains.v1.ManagementSettings" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.cloud.domains.v1.ConfigureDnsSettingsRequest" do - optional :registration, :string, 1 - optional :dns_settings, :message, 2, "google.cloud.domains.v1.DnsSettings" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.domains.v1.ConfigureContactSettingsRequest" do - optional :registration, :string, 1 - optional :contact_settings, :message, 2, "google.cloud.domains.v1.ContactSettings" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - repeated :contact_notices, :enum, 4, "google.cloud.domains.v1.ContactNotice" - optional :validate_only, :bool, 5 - end - add_message "google.cloud.domains.v1.ExportRegistrationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.domains.v1.DeleteRegistrationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.domains.v1.RetrieveAuthorizationCodeRequest" do - optional :registration, :string, 1 - end - add_message "google.cloud.domains.v1.ResetAuthorizationCodeRequest" do - optional :registration, :string, 1 - end - add_message "google.cloud.domains.v1.RegisterParameters" do - optional :domain_name, :string, 1 - optional :availability, :enum, 2, "google.cloud.domains.v1.RegisterParameters.Availability" - repeated :supported_privacy, :enum, 3, "google.cloud.domains.v1.ContactPrivacy" - repeated :domain_notices, :enum, 4, "google.cloud.domains.v1.DomainNotice" - optional :yearly_price, :message, 5, "google.type.Money" - end - add_enum "google.cloud.domains.v1.RegisterParameters.Availability" do - value :AVAILABILITY_UNSPECIFIED, 0 - value :AVAILABLE, 1 - value :UNAVAILABLE, 2 - value :UNSUPPORTED, 3 - value :UNKNOWN, 4 - end - add_message "google.cloud.domains.v1.TransferParameters" do - optional :domain_name, :string, 1 - optional :current_registrar, :string, 2 - repeated :name_servers, :string, 3 - optional :transfer_lock_state, :enum, 4, "google.cloud.domains.v1.TransferLockState" - repeated :supported_privacy, :enum, 5, "google.cloud.domains.v1.ContactPrivacy" - optional :yearly_price, :message, 6, "google.type.Money" - end - add_message "google.cloud.domains.v1.AuthorizationCode" do - optional :code, :string, 1 - end - add_message "google.cloud.domains.v1.OperationMetadata" do - optional :create_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :target, :string, 3 - optional :verb, :string, 4 - optional :status_detail, :string, 5 - optional :api_version, :string, 6 - end - add_enum "google.cloud.domains.v1.ContactPrivacy" do - value :CONTACT_PRIVACY_UNSPECIFIED, 0 - value :PUBLIC_CONTACT_DATA, 1 - value :PRIVATE_CONTACT_DATA, 2 - value :REDACTED_CONTACT_DATA, 3 - end - add_enum "google.cloud.domains.v1.DomainNotice" do - value :DOMAIN_NOTICE_UNSPECIFIED, 0 - value :HSTS_PRELOADED, 1 - end - add_enum "google.cloud.domains.v1.ContactNotice" do - value :CONTACT_NOTICE_UNSPECIFIED, 0 - value :PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT, 1 - end - add_enum "google.cloud.domains.v1.TransferLockState" do - value :TRANSFER_LOCK_STATE_UNSPECIFIED, 0 - value :UNLOCKED, 1 - value :LOCKED, 2 + +descriptor_data = "\n%google/cloud/domains/v1/domains.proto\x12\x17google.cloud.domains.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\"\xeb\x08\n\x0cRegistration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0b\x64omain_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x05state\x18\x07 \x01(\x0e\x32+.google.cloud.domains.v1.Registration.StateB\x03\xe0\x41\x03\x12@\n\x06issues\x18\x08 \x03(\x0e\x32+.google.cloud.domains.v1.Registration.IssueB\x03\xe0\x41\x03\x12\x41\n\x06labels\x18\t \x03(\x0b\x32\x31.google.cloud.domains.v1.Registration.LabelsEntry\x12H\n\x13management_settings\x18\n \x01(\x0b\x32+.google.cloud.domains.v1.ManagementSettings\x12:\n\x0c\x64ns_settings\x18\x0b \x01(\x0b\x32$.google.cloud.domains.v1.DnsSettings\x12G\n\x10\x63ontact_settings\x18\x0c \x01(\x0b\x32(.google.cloud.domains.v1.ContactSettingsB\x03\xe0\x41\x02\x12O\n\x18pending_contact_settings\x18\r \x01(\x0b\x32(.google.cloud.domains.v1.ContactSettingsB\x03\xe0\x41\x03\x12G\n\x11supported_privacy\x18\x0e \x03(\x0e\x32\'.google.cloud.domains.v1.ContactPrivacyB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa5\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x18\n\x14REGISTRATION_PENDING\x10\x01\x12\x17\n\x13REGISTRATION_FAILED\x10\x02\x12\x14\n\x10TRANSFER_PENDING\x10\x03\x12\x13\n\x0fTRANSFER_FAILED\x10\x04\x12\n\n\x06\x41\x43TIVE\x10\x06\x12\r\n\tSUSPENDED\x10\x07\x12\x0c\n\x08\x45XPORTED\x10\x08\"I\n\x05Issue\x12\x15\n\x11ISSUE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43ONTACT_SUPPORT\x10\x01\x12\x14\n\x10UNVERIFIED_EMAIL\x10\x02:n\xea\x41k\n#domains.googleapis.com/Registration\x12\x44projects/{project}/locations/{location}/registrations/{registration}\"\x91\x02\n\x12ManagementSettings\x12V\n\x0erenewal_method\x18\x03 \x01(\x0e\x32\x39.google.cloud.domains.v1.ManagementSettings.RenewalMethodB\x03\xe0\x41\x03\x12G\n\x13transfer_lock_state\x18\x04 \x01(\x0e\x32*.google.cloud.domains.v1.TransferLockState\"Z\n\rRenewalMethod\x12\x1e\n\x1aRENEWAL_METHOD_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41UTOMATIC_RENEWAL\x10\x01\x12\x12\n\x0eMANUAL_RENEWAL\x10\x02\"\x9e\n\n\x0b\x44nsSettings\x12\x44\n\ncustom_dns\x18\x01 \x01(\x0b\x32..google.cloud.domains.v1.DnsSettings.CustomDnsH\x00\x12S\n\x12google_domains_dns\x18\x02 \x01(\x0b\x32\x35.google.cloud.domains.v1.DnsSettings.GoogleDomainsDnsH\x00\x12\x45\n\x0cglue_records\x18\x04 \x03(\x0b\x32/.google.cloud.domains.v1.DnsSettings.GlueRecord\x1ai\n\tCustomDns\x12\x19\n\x0cname_servers\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x41\n\nds_records\x18\x02 \x03(\x0b\x32-.google.cloud.domains.v1.DnsSettings.DsRecord\x1a\xba\x01\n\x10GoogleDomainsDns\x12\x19\n\x0cname_servers\x18\x01 \x03(\tB\x03\xe0\x41\x03\x12\x43\n\x08\x64s_state\x18\x02 \x01(\x0e\x32,.google.cloud.domains.v1.DnsSettings.DsStateB\x03\xe0\x41\x02\x12\x46\n\nds_records\x18\x03 \x03(\x0b\x32-.google.cloud.domains.v1.DnsSettings.DsRecordB\x03\xe0\x41\x03\x1a\xc3\x04\n\x08\x44sRecord\x12\x0f\n\x07key_tag\x18\x01 \x01(\x05\x12J\n\talgorithm\x18\x02 \x01(\x0e\x32\x37.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm\x12M\n\x0b\x64igest_type\x18\x03 \x01(\x0e\x32\x38.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType\x12\x0e\n\x06\x64igest\x18\x04 \x01(\t\"\x9f\x02\n\tAlgorithm\x12\x19\n\x15\x41LGORITHM_UNSPECIFIED\x10\x00\x12\n\n\x06RSAMD5\x10\x01\x12\x06\n\x02\x44H\x10\x02\x12\x07\n\x03\x44SA\x10\x03\x12\x07\n\x03\x45\x43\x43\x10\x04\x12\x0b\n\x07RSASHA1\x10\x05\x12\x10\n\x0c\x44SANSEC3SHA1\x10\x06\x12\x14\n\x10RSASHA1NSEC3SHA1\x10\x07\x12\r\n\tRSASHA256\x10\x08\x12\r\n\tRSASHA512\x10\n\x12\x0b\n\x07\x45\x43\x43GOST\x10\x0c\x12\x13\n\x0f\x45\x43\x44SAP256SHA256\x10\r\x12\x13\n\x0f\x45\x43\x44SAP384SHA384\x10\x0e\x12\x0b\n\x07\x45\x44\x32\x35\x35\x31\x39\x10\x0f\x12\t\n\x05\x45\x44\x34\x34\x38\x10\x10\x12\r\n\x08INDIRECT\x10\xfc\x01\x12\x0f\n\nPRIVATEDNS\x10\xfd\x01\x12\x0f\n\nPRIVATEOID\x10\xfe\x01\"Y\n\nDigestType\x12\x1b\n\x17\x44IGEST_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04SHA1\x10\x01\x12\n\n\x06SHA256\x10\x02\x12\x0c\n\x08GOST3411\x10\x03\x12\n\n\x06SHA384\x10\x04\x1aT\n\nGlueRecord\x12\x16\n\thost_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0eipv4_addresses\x18\x02 \x03(\t\x12\x16\n\x0eipv6_addresses\x18\x03 \x03(\t\"Y\n\x07\x44sState\x12\x18\n\x14\x44S_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x44S_RECORDS_UNPUBLISHED\x10\x01\x12\x18\n\x14\x44S_RECORDS_PUBLISHED\x10\x02\x42\x0e\n\x0c\x64ns_provider\"\xcb\x03\n\x0f\x43ontactSettings\x12=\n\x07privacy\x18\x01 \x01(\x0e\x32\'.google.cloud.domains.v1.ContactPrivacyB\x03\xe0\x41\x02\x12Q\n\x12registrant_contact\x18\x02 \x01(\x0b\x32\x30.google.cloud.domains.v1.ContactSettings.ContactB\x03\xe0\x41\x02\x12L\n\radmin_contact\x18\x03 \x01(\x0b\x32\x30.google.cloud.domains.v1.ContactSettings.ContactB\x03\xe0\x41\x02\x12P\n\x11technical_contact\x18\x04 \x01(\x0b\x32\x30.google.cloud.domains.v1.ContactSettings.ContactB\x03\xe0\x41\x02\x1a\x85\x01\n\x07\x43ontact\x12\x37\n\x0epostal_address\x18\x01 \x01(\x0b\x32\x1a.google.type.PostalAddressB\x03\xe0\x41\x02\x12\x12\n\x05\x65mail\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cphone_number\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nfax_number\x18\x04 \x01(\t\"g\n\x14SearchDomainsRequest\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"a\n\x15SearchDomainsResponse\x12H\n\x13register_parameters\x18\x01 \x03(\x0b\x32+.google.cloud.domains.v1.RegisterParameters\"z\n!RetrieveRegisterParametersRequest\x12\x18\n\x0b\x64omain_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"n\n\"RetrieveRegisterParametersResponse\x12H\n\x13register_parameters\x18\x01 \x01(\x0b\x32+.google.cloud.domains.v1.RegisterParameters\"\xda\x02\n\x15RegisterDomainRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12@\n\x0cregistration\x18\x02 \x01(\x0b\x32%.google.cloud.domains.v1.RegistrationB\x03\xe0\x41\x02\x12=\n\x0e\x64omain_notices\x18\x03 \x03(\x0e\x32%.google.cloud.domains.v1.DomainNotice\x12?\n\x0f\x63ontact_notices\x18\x04 \x03(\x0e\x32&.google.cloud.domains.v1.ContactNotice\x12-\n\x0cyearly_price\x18\x05 \x01(\x0b\x32\x12.google.type.MoneyB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x06 \x01(\x08\"z\n!RetrieveTransferParametersRequest\x12\x18\n\x0b\x64omain_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"n\n\"RetrieveTransferParametersResponse\x12H\n\x13transfer_parameters\x18\x01 \x01(\x0b\x32+.google.cloud.domains.v1.TransferParameters\"\xe3\x02\n\x15TransferDomainRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12@\n\x0cregistration\x18\x02 \x01(\x0b\x32%.google.cloud.domains.v1.RegistrationB\x03\xe0\x41\x02\x12?\n\x0f\x63ontact_notices\x18\x03 \x03(\x0e\x32&.google.cloud.domains.v1.ContactNotice\x12-\n\x0cyearly_price\x18\x04 \x01(\x0b\x32\x12.google.type.MoneyB\x03\xe0\x41\x02\x12\x46\n\x12\x61uthorization_code\x18\x05 \x01(\x0b\x32*.google.cloud.domains.v1.AuthorizationCode\x12\x15\n\rvalidate_only\x18\x06 \x01(\x08\"\x8c\x01\n\x18ListRegistrationsRequest\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\"r\n\x19ListRegistrationsResponse\x12<\n\rregistrations\x18\x01 \x03(\x0b\x32%.google.cloud.domains.v1.Registration\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x16GetRegistrationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"\x8e\x01\n\x19UpdateRegistrationRequest\x12;\n\x0cregistration\x18\x01 \x01(\x0b\x32%.google.cloud.domains.v1.Registration\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xe7\x01\n\"ConfigureManagementSettingsRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\x12H\n\x13management_settings\x18\x02 \x01(\x0b\x32+.google.cloud.domains.v1.ManagementSettings\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xe9\x01\n\x1b\x43onfigureDnsSettingsRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\x12:\n\x0c\x64ns_settings\x18\x02 \x01(\x0b\x32$.google.cloud.domains.v1.DnsSettings\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb6\x02\n\x1f\x43onfigureContactSettingsRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\x12\x42\n\x10\x63ontact_settings\x18\x02 \x01(\x0b\x32(.google.cloud.domains.v1.ContactSettings\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12?\n\x0f\x63ontact_notices\x18\x04 \x03(\x0e\x32&.google.cloud.domains.v1.ContactNotice\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\"V\n\x19\x45xportRegistrationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"V\n\x19\x44\x65leteRegistrationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"e\n RetrieveAuthorizationCodeRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"b\n\x1dResetAuthorizationCodeRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"\x92\x03\n\x12RegisterParameters\x12\x13\n\x0b\x64omain_name\x18\x01 \x01(\t\x12N\n\x0c\x61vailability\x18\x02 \x01(\x0e\x32\x38.google.cloud.domains.v1.RegisterParameters.Availability\x12\x42\n\x11supported_privacy\x18\x03 \x03(\x0e\x32\'.google.cloud.domains.v1.ContactPrivacy\x12=\n\x0e\x64omain_notices\x18\x04 \x03(\x0e\x32%.google.cloud.domains.v1.DomainNotice\x12(\n\x0cyearly_price\x18\x05 \x01(\x0b\x32\x12.google.type.Money\"j\n\x0c\x41vailability\x12\x1c\n\x18\x41VAILABILITY_UNSPECIFIED\x10\x00\x12\r\n\tAVAILABLE\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x0f\n\x0bUNSUPPORTED\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x91\x02\n\x12TransferParameters\x12\x13\n\x0b\x64omain_name\x18\x01 \x01(\t\x12\x19\n\x11\x63urrent_registrar\x18\x02 \x01(\t\x12\x14\n\x0cname_servers\x18\x03 \x03(\t\x12G\n\x13transfer_lock_state\x18\x04 \x01(\x0e\x32*.google.cloud.domains.v1.TransferLockState\x12\x42\n\x11supported_privacy\x18\x05 \x03(\x0e\x32\'.google.cloud.domains.v1.ContactPrivacy\x12(\n\x0cyearly_price\x18\x06 \x01(\x0b\x32\x12.google.type.Money\"!\n\x11\x41uthorizationCode\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\"\xbc\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x13\n\x0b\x61pi_version\x18\x06 \x01(\t*\x7f\n\x0e\x43ontactPrivacy\x12\x1f\n\x1b\x43ONTACT_PRIVACY_UNSPECIFIED\x10\x00\x12\x17\n\x13PUBLIC_CONTACT_DATA\x10\x01\x12\x18\n\x14PRIVATE_CONTACT_DATA\x10\x02\x12\x19\n\x15REDACTED_CONTACT_DATA\x10\x03*A\n\x0c\x44omainNotice\x12\x1d\n\x19\x44OMAIN_NOTICE_UNSPECIFIED\x10\x00\x12\x12\n\x0eHSTS_PRELOADED\x10\x01*X\n\rContactNotice\x12\x1e\n\x1a\x43ONTACT_NOTICE_UNSPECIFIED\x10\x00\x12\'\n#PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT\x10\x01*R\n\x11TransferLockState\x12#\n\x1fTRANSFER_LOCK_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08UNLOCKED\x10\x01\x12\n\n\x06LOCKED\x10\x02\x32\x91\x1d\n\x07\x44omains\x12\xca\x01\n\rSearchDomains\x12-.google.cloud.domains.v1.SearchDomainsRequest\x1a..google.cloud.domains.v1.SearchDomainsResponse\"Z\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{location=projects/*/locations/*}/registrations:searchDomains\xda\x41\x0elocation,query\x12\x84\x02\n\x1aRetrieveRegisterParameters\x12:.google.cloud.domains.v1.RetrieveRegisterParametersRequest\x1a;.google.cloud.domains.v1.RetrieveRegisterParametersResponse\"m\x82\xd3\xe4\x93\x02P\x12N/v1/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters\xda\x41\x14location,domain_name\x12\xee\x01\n\x0eRegisterDomain\x12..google.cloud.domains.v1.RegisterDomainRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\x82\xd3\xe4\x93\x02?\":/v1/{parent=projects/*/locations/*}/registrations:register:\x01*\xda\x41 parent,registration,yearly_price\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\x84\x02\n\x1aRetrieveTransferParameters\x12:.google.cloud.domains.v1.RetrieveTransferParametersRequest\x1a;.google.cloud.domains.v1.RetrieveTransferParametersResponse\"m\x82\xd3\xe4\x93\x02P\x12N/v1/{location=projects/*/locations/*}/registrations:retrieveTransferParameters\xda\x41\x14location,domain_name\x12\x81\x02\n\x0eTransferDomain\x12..google.cloud.domains.v1.TransferDomainRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02?\":/v1/{parent=projects/*/locations/*}/registrations:transfer:\x01*\xda\x41\x33parent,registration,yearly_price,authorization_code\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xbe\x01\n\x11ListRegistrations\x12\x31.google.cloud.domains.v1.ListRegistrationsRequest\x1a\x32.google.cloud.domains.v1.ListRegistrationsResponse\"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{parent=projects/*/locations/*}/registrations\xda\x41\x06parent\x12\xab\x01\n\x0fGetRegistration\x12/.google.cloud.domains.v1.GetRegistrationRequest\x1a%.google.cloud.domains.v1.Registration\"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{name=projects/*/locations/*/registrations/*}\xda\x41\x04name\x12\xfd\x01\n\x12UpdateRegistration\x12\x32.google.cloud.domains.v1.UpdateRegistrationRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\x82\xd3\xe4\x93\x02N2>/v1/{registration.name=projects/*/locations/*/registrations/*}:\x0cregistration\xda\x41\x18registration,update_mask\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xaf\x02\n\x1b\x43onfigureManagementSettings\x12;.google.cloud.domains.v1.ConfigureManagementSettingsRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\x82\xd3\xe4\x93\x02Z\"U/v1/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings:\x01*\xda\x41,registration,management_settings,update_mask\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\x93\x02\n\x14\x43onfigureDnsSettings\x12\x34.google.cloud.domains.v1.ConfigureDnsSettingsRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\x82\xd3\xe4\x93\x02S\"N/v1/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings:\x01*\xda\x41%registration,dns_settings,update_mask\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xa3\x02\n\x18\x43onfigureContactSettings\x12\x38.google.cloud.domains.v1.ConfigureContactSettingsRequest\x1a\x1d.google.longrunning.Operation\"\xad\x01\x82\xd3\xe4\x93\x02W\"R/v1/{registration=projects/*/locations/*/registrations/*}:configureContactSettings:\x01*\xda\x41)registration,contact_settings,update_mask\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xd7\x01\n\x12\x45xportRegistration\x12\x32.google.cloud.domains.v1.ExportRegistrationRequest\x1a\x1d.google.longrunning.Operation\"n\x82\xd3\xe4\x93\x02=\"8/v1/{name=projects/*/locations/*/registrations/*}:export:\x01*\xda\x41\x04name\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xd6\x01\n\x12\x44\x65leteRegistration\x12\x32.google.cloud.domains.v1.DeleteRegistrationRequest\x1a\x1d.google.longrunning.Operation\"m\x82\xd3\xe4\x93\x02\x33*1/v1/{name=projects/*/locations/*/registrations/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xee\x01\n\x19RetrieveAuthorizationCode\x12\x39.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest\x1a*.google.cloud.domains.v1.AuthorizationCode\"j\x82\xd3\xe4\x93\x02U\x12S/v1/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode\xda\x41\x0cregistration\x12\xe8\x01\n\x16ResetAuthorizationCode\x12\x36.google.cloud.domains.v1.ResetAuthorizationCodeRequest\x1a*.google.cloud.domains.v1.AuthorizationCode\"j\x82\xd3\xe4\x93\x02U\"P/v1/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode:\x01*\xda\x41\x0cregistration\x1aJ\xca\x41\x16\x64omains.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBd\n\x1b\x63om.google.cloud.domains.v1B\x0c\x44omainsProtoP\x01Z5cloud.google.com/go/domains/apiv1/domainspb;domainspbb\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.type.PostalAddress", "google/type/postal_address.proto"], + ["google.type.Money", "google/type/money.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-domains-v1/proto_docs/google/protobuf/any.rb b/google-cloud-domains-v1/proto_docs/google/protobuf/any.rb index 578d374b9bf9..aa8fa7123d39 100644 --- a/google-cloud-domains-v1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-domains-v1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-domains-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-domains-v1/proto_docs/google/protobuf/timestamp.rb index 3ef501e6ca93..dc016e2c9eca 100644 --- a/google-cloud-domains-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-domains-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-domains-v1beta1/google-cloud-domains-v1beta1.gemspec b/google-cloud-domains-v1beta1/google-cloud-domains-v1beta1.gemspec index 1737711e3bba..e168687faf34 100644 --- a/google-cloud-domains-v1beta1/google-cloud-domains-v1beta1.gemspec +++ b/google-cloud-domains-v1beta1/google-cloud-domains-v1beta1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-domains-v1beta1/lib/google/cloud/domains/v1beta1/domains_pb.rb b/google-cloud-domains-v1beta1/lib/google/cloud/domains/v1beta1/domains_pb.rb index 73a247a9aa74..36930d674f84 100644 --- a/google-cloud-domains-v1beta1/lib/google/cloud/domains/v1beta1/domains_pb.rb +++ b/google-cloud-domains-v1beta1/lib/google/cloud/domains/v1beta1/domains_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/domains/v1beta1/domains.proto @@ -13,254 +14,35 @@ require 'google/type/money_pb' require 'google/type/postal_address_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/domains/v1beta1/domains.proto", :syntax => :proto3) do - add_message "google.cloud.domains.v1beta1.Registration" do - optional :name, :string, 1 - optional :domain_name, :string, 2 - optional :create_time, :message, 3, "google.protobuf.Timestamp" - optional :expire_time, :message, 6, "google.protobuf.Timestamp" - optional :state, :enum, 7, "google.cloud.domains.v1beta1.Registration.State" - repeated :issues, :enum, 8, "google.cloud.domains.v1beta1.Registration.Issue" - map :labels, :string, :string, 9 - optional :management_settings, :message, 10, "google.cloud.domains.v1beta1.ManagementSettings" - optional :dns_settings, :message, 11, "google.cloud.domains.v1beta1.DnsSettings" - optional :contact_settings, :message, 12, "google.cloud.domains.v1beta1.ContactSettings" - optional :pending_contact_settings, :message, 13, "google.cloud.domains.v1beta1.ContactSettings" - repeated :supported_privacy, :enum, 14, "google.cloud.domains.v1beta1.ContactPrivacy" - end - add_enum "google.cloud.domains.v1beta1.Registration.State" do - value :STATE_UNSPECIFIED, 0 - value :REGISTRATION_PENDING, 1 - value :REGISTRATION_FAILED, 2 - value :TRANSFER_PENDING, 3 - value :TRANSFER_FAILED, 4 - value :ACTIVE, 6 - value :SUSPENDED, 7 - value :EXPORTED, 8 - end - add_enum "google.cloud.domains.v1beta1.Registration.Issue" do - value :ISSUE_UNSPECIFIED, 0 - value :CONTACT_SUPPORT, 1 - value :UNVERIFIED_EMAIL, 2 - end - add_message "google.cloud.domains.v1beta1.ManagementSettings" do - optional :renewal_method, :enum, 3, "google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod" - optional :transfer_lock_state, :enum, 4, "google.cloud.domains.v1beta1.TransferLockState" - end - add_enum "google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod" do - value :RENEWAL_METHOD_UNSPECIFIED, 0 - value :AUTOMATIC_RENEWAL, 1 - value :MANUAL_RENEWAL, 2 - end - add_message "google.cloud.domains.v1beta1.DnsSettings" do - repeated :glue_records, :message, 4, "google.cloud.domains.v1beta1.DnsSettings.GlueRecord" - oneof :dns_provider do - optional :custom_dns, :message, 1, "google.cloud.domains.v1beta1.DnsSettings.CustomDns" - optional :google_domains_dns, :message, 2, "google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns" - end - end - add_message "google.cloud.domains.v1beta1.DnsSettings.CustomDns" do - repeated :name_servers, :string, 1 - repeated :ds_records, :message, 2, "google.cloud.domains.v1beta1.DnsSettings.DsRecord" - end - add_message "google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns" do - repeated :name_servers, :string, 1 - optional :ds_state, :enum, 2, "google.cloud.domains.v1beta1.DnsSettings.DsState" - repeated :ds_records, :message, 3, "google.cloud.domains.v1beta1.DnsSettings.DsRecord" - end - add_message "google.cloud.domains.v1beta1.DnsSettings.DsRecord" do - optional :key_tag, :int32, 1 - optional :algorithm, :enum, 2, "google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm" - optional :digest_type, :enum, 3, "google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType" - optional :digest, :string, 4 - end - add_enum "google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm" do - value :ALGORITHM_UNSPECIFIED, 0 - value :RSAMD5, 1 - value :DH, 2 - value :DSA, 3 - value :ECC, 4 - value :RSASHA1, 5 - value :DSANSEC3SHA1, 6 - value :RSASHA1NSEC3SHA1, 7 - value :RSASHA256, 8 - value :RSASHA512, 10 - value :ECCGOST, 12 - value :ECDSAP256SHA256, 13 - value :ECDSAP384SHA384, 14 - value :ED25519, 15 - value :ED448, 16 - value :INDIRECT, 252 - value :PRIVATEDNS, 253 - value :PRIVATEOID, 254 - end - add_enum "google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType" do - value :DIGEST_TYPE_UNSPECIFIED, 0 - value :SHA1, 1 - value :SHA256, 2 - value :GOST3411, 3 - value :SHA384, 4 - end - add_message "google.cloud.domains.v1beta1.DnsSettings.GlueRecord" do - optional :host_name, :string, 1 - repeated :ipv4_addresses, :string, 2 - repeated :ipv6_addresses, :string, 3 - end - add_enum "google.cloud.domains.v1beta1.DnsSettings.DsState" do - value :DS_STATE_UNSPECIFIED, 0 - value :DS_RECORDS_UNPUBLISHED, 1 - value :DS_RECORDS_PUBLISHED, 2 - end - add_message "google.cloud.domains.v1beta1.ContactSettings" do - optional :privacy, :enum, 1, "google.cloud.domains.v1beta1.ContactPrivacy" - optional :registrant_contact, :message, 2, "google.cloud.domains.v1beta1.ContactSettings.Contact" - optional :admin_contact, :message, 3, "google.cloud.domains.v1beta1.ContactSettings.Contact" - optional :technical_contact, :message, 4, "google.cloud.domains.v1beta1.ContactSettings.Contact" - end - add_message "google.cloud.domains.v1beta1.ContactSettings.Contact" do - optional :postal_address, :message, 1, "google.type.PostalAddress" - optional :email, :string, 2 - optional :phone_number, :string, 3 - optional :fax_number, :string, 4 - end - add_message "google.cloud.domains.v1beta1.SearchDomainsRequest" do - optional :query, :string, 1 - optional :location, :string, 2 - end - add_message "google.cloud.domains.v1beta1.SearchDomainsResponse" do - repeated :register_parameters, :message, 1, "google.cloud.domains.v1beta1.RegisterParameters" - end - add_message "google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest" do - optional :domain_name, :string, 1 - optional :location, :string, 2 - end - add_message "google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse" do - optional :register_parameters, :message, 1, "google.cloud.domains.v1beta1.RegisterParameters" - end - add_message "google.cloud.domains.v1beta1.RegisterDomainRequest" do - optional :parent, :string, 1 - optional :registration, :message, 2, "google.cloud.domains.v1beta1.Registration" - repeated :domain_notices, :enum, 3, "google.cloud.domains.v1beta1.DomainNotice" - repeated :contact_notices, :enum, 4, "google.cloud.domains.v1beta1.ContactNotice" - optional :yearly_price, :message, 5, "google.type.Money" - optional :validate_only, :bool, 6 - end - add_message "google.cloud.domains.v1beta1.RetrieveTransferParametersRequest" do - optional :domain_name, :string, 1 - optional :location, :string, 2 - end - add_message "google.cloud.domains.v1beta1.RetrieveTransferParametersResponse" do - optional :transfer_parameters, :message, 1, "google.cloud.domains.v1beta1.TransferParameters" - end - add_message "google.cloud.domains.v1beta1.TransferDomainRequest" do - optional :parent, :string, 1 - optional :registration, :message, 2, "google.cloud.domains.v1beta1.Registration" - repeated :contact_notices, :enum, 3, "google.cloud.domains.v1beta1.ContactNotice" - optional :yearly_price, :message, 4, "google.type.Money" - optional :authorization_code, :message, 5, "google.cloud.domains.v1beta1.AuthorizationCode" - optional :validate_only, :bool, 6 - end - add_message "google.cloud.domains.v1beta1.ListRegistrationsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.domains.v1beta1.ListRegistrationsResponse" do - repeated :registrations, :message, 1, "google.cloud.domains.v1beta1.Registration" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.domains.v1beta1.GetRegistrationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.domains.v1beta1.UpdateRegistrationRequest" do - optional :registration, :message, 1, "google.cloud.domains.v1beta1.Registration" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest" do - optional :registration, :string, 1 - optional :management_settings, :message, 2, "google.cloud.domains.v1beta1.ManagementSettings" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest" do - optional :registration, :string, 1 - optional :dns_settings, :message, 2, "google.cloud.domains.v1beta1.DnsSettings" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - optional :validate_only, :bool, 4 - end - add_message "google.cloud.domains.v1beta1.ConfigureContactSettingsRequest" do - optional :registration, :string, 1 - optional :contact_settings, :message, 2, "google.cloud.domains.v1beta1.ContactSettings" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - repeated :contact_notices, :enum, 4, "google.cloud.domains.v1beta1.ContactNotice" - optional :validate_only, :bool, 5 - end - add_message "google.cloud.domains.v1beta1.ExportRegistrationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.domains.v1beta1.DeleteRegistrationRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest" do - optional :registration, :string, 1 - end - add_message "google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest" do - optional :registration, :string, 1 - end - add_message "google.cloud.domains.v1beta1.RegisterParameters" do - optional :domain_name, :string, 1 - optional :availability, :enum, 2, "google.cloud.domains.v1beta1.RegisterParameters.Availability" - repeated :supported_privacy, :enum, 3, "google.cloud.domains.v1beta1.ContactPrivacy" - repeated :domain_notices, :enum, 4, "google.cloud.domains.v1beta1.DomainNotice" - optional :yearly_price, :message, 5, "google.type.Money" - end - add_enum "google.cloud.domains.v1beta1.RegisterParameters.Availability" do - value :AVAILABILITY_UNSPECIFIED, 0 - value :AVAILABLE, 1 - value :UNAVAILABLE, 2 - value :UNSUPPORTED, 3 - value :UNKNOWN, 4 - end - add_message "google.cloud.domains.v1beta1.TransferParameters" do - optional :domain_name, :string, 1 - optional :current_registrar, :string, 2 - repeated :name_servers, :string, 3 - optional :transfer_lock_state, :enum, 4, "google.cloud.domains.v1beta1.TransferLockState" - repeated :supported_privacy, :enum, 5, "google.cloud.domains.v1beta1.ContactPrivacy" - optional :yearly_price, :message, 6, "google.type.Money" - end - add_message "google.cloud.domains.v1beta1.AuthorizationCode" do - optional :code, :string, 1 - end - add_message "google.cloud.domains.v1beta1.OperationMetadata" do - optional :create_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :target, :string, 3 - optional :verb, :string, 4 - optional :status_detail, :string, 5 - optional :api_version, :string, 6 - end - add_enum "google.cloud.domains.v1beta1.ContactPrivacy" do - value :CONTACT_PRIVACY_UNSPECIFIED, 0 - value :PUBLIC_CONTACT_DATA, 1 - value :PRIVATE_CONTACT_DATA, 2 - value :REDACTED_CONTACT_DATA, 3 - end - add_enum "google.cloud.domains.v1beta1.DomainNotice" do - value :DOMAIN_NOTICE_UNSPECIFIED, 0 - value :HSTS_PRELOADED, 1 - end - add_enum "google.cloud.domains.v1beta1.ContactNotice" do - value :CONTACT_NOTICE_UNSPECIFIED, 0 - value :PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT, 1 - end - add_enum "google.cloud.domains.v1beta1.TransferLockState" do - value :TRANSFER_LOCK_STATE_UNSPECIFIED, 0 - value :UNLOCKED, 1 - value :LOCKED, 2 + +descriptor_data = "\n*google/cloud/domains/v1beta1/domains.proto\x12\x1cgoogle.cloud.domains.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\"\x93\t\n\x0cRegistration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0b\x64omain_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\x05state\x18\x07 \x01(\x0e\x32\x30.google.cloud.domains.v1beta1.Registration.StateB\x03\xe0\x41\x03\x12\x45\n\x06issues\x18\x08 \x03(\x0e\x32\x30.google.cloud.domains.v1beta1.Registration.IssueB\x03\xe0\x41\x03\x12\x46\n\x06labels\x18\t \x03(\x0b\x32\x36.google.cloud.domains.v1beta1.Registration.LabelsEntry\x12M\n\x13management_settings\x18\n \x01(\x0b\x32\x30.google.cloud.domains.v1beta1.ManagementSettings\x12?\n\x0c\x64ns_settings\x18\x0b \x01(\x0b\x32).google.cloud.domains.v1beta1.DnsSettings\x12L\n\x10\x63ontact_settings\x18\x0c \x01(\x0b\x32-.google.cloud.domains.v1beta1.ContactSettingsB\x03\xe0\x41\x02\x12T\n\x18pending_contact_settings\x18\r \x01(\x0b\x32-.google.cloud.domains.v1beta1.ContactSettingsB\x03\xe0\x41\x03\x12L\n\x11supported_privacy\x18\x0e \x03(\x0e\x32,.google.cloud.domains.v1beta1.ContactPrivacyB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa5\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x18\n\x14REGISTRATION_PENDING\x10\x01\x12\x17\n\x13REGISTRATION_FAILED\x10\x02\x12\x14\n\x10TRANSFER_PENDING\x10\x03\x12\x13\n\x0fTRANSFER_FAILED\x10\x04\x12\n\n\x06\x41\x43TIVE\x10\x06\x12\r\n\tSUSPENDED\x10\x07\x12\x0c\n\x08\x45XPORTED\x10\x08\"I\n\x05Issue\x12\x15\n\x11ISSUE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43ONTACT_SUPPORT\x10\x01\x12\x14\n\x10UNVERIFIED_EMAIL\x10\x02:n\xea\x41k\n#domains.googleapis.com/Registration\x12\x44projects/{project}/locations/{location}/registrations/{registration}\"\x9b\x02\n\x12ManagementSettings\x12[\n\x0erenewal_method\x18\x03 \x01(\x0e\x32>.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethodB\x03\xe0\x41\x03\x12L\n\x13transfer_lock_state\x18\x04 \x01(\x0e\x32/.google.cloud.domains.v1beta1.TransferLockState\"Z\n\rRenewalMethod\x12\x1e\n\x1aRENEWAL_METHOD_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41UTOMATIC_RENEWAL\x10\x01\x12\x12\n\x0eMANUAL_RENEWAL\x10\x02\"\xc6\n\n\x0b\x44nsSettings\x12I\n\ncustom_dns\x18\x01 \x01(\x0b\x32\x33.google.cloud.domains.v1beta1.DnsSettings.CustomDnsH\x00\x12X\n\x12google_domains_dns\x18\x02 \x01(\x0b\x32:.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDnsH\x00\x12J\n\x0cglue_records\x18\x04 \x03(\x0b\x32\x34.google.cloud.domains.v1beta1.DnsSettings.GlueRecord\x1an\n\tCustomDns\x12\x19\n\x0cname_servers\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x46\n\nds_records\x18\x02 \x03(\x0b\x32\x32.google.cloud.domains.v1beta1.DnsSettings.DsRecord\x1a\xc4\x01\n\x10GoogleDomainsDns\x12\x19\n\x0cname_servers\x18\x01 \x03(\tB\x03\xe0\x41\x03\x12H\n\x08\x64s_state\x18\x02 \x01(\x0e\x32\x31.google.cloud.domains.v1beta1.DnsSettings.DsStateB\x03\xe0\x41\x02\x12K\n\nds_records\x18\x03 \x03(\x0b\x32\x32.google.cloud.domains.v1beta1.DnsSettings.DsRecordB\x03\xe0\x41\x03\x1a\xcd\x04\n\x08\x44sRecord\x12\x0f\n\x07key_tag\x18\x01 \x01(\x05\x12O\n\talgorithm\x18\x02 \x01(\x0e\x32<.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm\x12R\n\x0b\x64igest_type\x18\x03 \x01(\x0e\x32=.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType\x12\x0e\n\x06\x64igest\x18\x04 \x01(\t\"\x9f\x02\n\tAlgorithm\x12\x19\n\x15\x41LGORITHM_UNSPECIFIED\x10\x00\x12\n\n\x06RSAMD5\x10\x01\x12\x06\n\x02\x44H\x10\x02\x12\x07\n\x03\x44SA\x10\x03\x12\x07\n\x03\x45\x43\x43\x10\x04\x12\x0b\n\x07RSASHA1\x10\x05\x12\x10\n\x0c\x44SANSEC3SHA1\x10\x06\x12\x14\n\x10RSASHA1NSEC3SHA1\x10\x07\x12\r\n\tRSASHA256\x10\x08\x12\r\n\tRSASHA512\x10\n\x12\x0b\n\x07\x45\x43\x43GOST\x10\x0c\x12\x13\n\x0f\x45\x43\x44SAP256SHA256\x10\r\x12\x13\n\x0f\x45\x43\x44SAP384SHA384\x10\x0e\x12\x0b\n\x07\x45\x44\x32\x35\x35\x31\x39\x10\x0f\x12\t\n\x05\x45\x44\x34\x34\x38\x10\x10\x12\r\n\x08INDIRECT\x10\xfc\x01\x12\x0f\n\nPRIVATEDNS\x10\xfd\x01\x12\x0f\n\nPRIVATEOID\x10\xfe\x01\"Y\n\nDigestType\x12\x1b\n\x17\x44IGEST_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04SHA1\x10\x01\x12\n\n\x06SHA256\x10\x02\x12\x0c\n\x08GOST3411\x10\x03\x12\n\n\x06SHA384\x10\x04\x1aT\n\nGlueRecord\x12\x16\n\thost_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0eipv4_addresses\x18\x02 \x03(\t\x12\x16\n\x0eipv6_addresses\x18\x03 \x03(\t\"Y\n\x07\x44sState\x12\x18\n\x14\x44S_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x44S_RECORDS_UNPUBLISHED\x10\x01\x12\x18\n\x14\x44S_RECORDS_PUBLISHED\x10\x02\x42\x0e\n\x0c\x64ns_provider\"\xdf\x03\n\x0f\x43ontactSettings\x12\x42\n\x07privacy\x18\x01 \x01(\x0e\x32,.google.cloud.domains.v1beta1.ContactPrivacyB\x03\xe0\x41\x02\x12V\n\x12registrant_contact\x18\x02 \x01(\x0b\x32\x35.google.cloud.domains.v1beta1.ContactSettings.ContactB\x03\xe0\x41\x02\x12Q\n\radmin_contact\x18\x03 \x01(\x0b\x32\x35.google.cloud.domains.v1beta1.ContactSettings.ContactB\x03\xe0\x41\x02\x12U\n\x11technical_contact\x18\x04 \x01(\x0b\x32\x35.google.cloud.domains.v1beta1.ContactSettings.ContactB\x03\xe0\x41\x02\x1a\x85\x01\n\x07\x43ontact\x12\x37\n\x0epostal_address\x18\x01 \x01(\x0b\x32\x1a.google.type.PostalAddressB\x03\xe0\x41\x02\x12\x12\n\x05\x65mail\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cphone_number\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nfax_number\x18\x04 \x01(\t\"g\n\x14SearchDomainsRequest\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"f\n\x15SearchDomainsResponse\x12M\n\x13register_parameters\x18\x01 \x03(\x0b\x32\x30.google.cloud.domains.v1beta1.RegisterParameters\"z\n!RetrieveRegisterParametersRequest\x12\x18\n\x0b\x64omain_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"s\n\"RetrieveRegisterParametersResponse\x12M\n\x13register_parameters\x18\x01 \x01(\x0b\x32\x30.google.cloud.domains.v1beta1.RegisterParameters\"\xe9\x02\n\x15RegisterDomainRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x45\n\x0cregistration\x18\x02 \x01(\x0b\x32*.google.cloud.domains.v1beta1.RegistrationB\x03\xe0\x41\x02\x12\x42\n\x0e\x64omain_notices\x18\x03 \x03(\x0e\x32*.google.cloud.domains.v1beta1.DomainNotice\x12\x44\n\x0f\x63ontact_notices\x18\x04 \x03(\x0e\x32+.google.cloud.domains.v1beta1.ContactNotice\x12-\n\x0cyearly_price\x18\x05 \x01(\x0b\x32\x12.google.type.MoneyB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x06 \x01(\x08\"z\n!RetrieveTransferParametersRequest\x12\x18\n\x0b\x64omain_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"s\n\"RetrieveTransferParametersResponse\x12M\n\x13transfer_parameters\x18\x01 \x01(\x0b\x32\x30.google.cloud.domains.v1beta1.TransferParameters\"\xf2\x02\n\x15TransferDomainRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x45\n\x0cregistration\x18\x02 \x01(\x0b\x32*.google.cloud.domains.v1beta1.RegistrationB\x03\xe0\x41\x02\x12\x44\n\x0f\x63ontact_notices\x18\x03 \x03(\x0e\x32+.google.cloud.domains.v1beta1.ContactNotice\x12-\n\x0cyearly_price\x18\x04 \x01(\x0b\x32\x12.google.type.MoneyB\x03\xe0\x41\x02\x12K\n\x12\x61uthorization_code\x18\x05 \x01(\x0b\x32/.google.cloud.domains.v1beta1.AuthorizationCode\x12\x15\n\rvalidate_only\x18\x06 \x01(\x08\"\x8c\x01\n\x18ListRegistrationsRequest\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\"w\n\x19ListRegistrationsResponse\x12\x41\n\rregistrations\x18\x01 \x03(\x0b\x32*.google.cloud.domains.v1beta1.Registration\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x16GetRegistrationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"\x93\x01\n\x19UpdateRegistrationRequest\x12@\n\x0cregistration\x18\x01 \x01(\x0b\x32*.google.cloud.domains.v1beta1.Registration\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xec\x01\n\"ConfigureManagementSettingsRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\x12M\n\x13management_settings\x18\x02 \x01(\x0b\x32\x30.google.cloud.domains.v1beta1.ManagementSettings\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xee\x01\n\x1b\x43onfigureDnsSettingsRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\x12?\n\x0c\x64ns_settings\x18\x02 \x01(\x0b\x32).google.cloud.domains.v1beta1.DnsSettings\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xc0\x02\n\x1f\x43onfigureContactSettingsRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\x12G\n\x10\x63ontact_settings\x18\x02 \x01(\x0b\x32-.google.cloud.domains.v1beta1.ContactSettings\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x44\n\x0f\x63ontact_notices\x18\x04 \x03(\x0e\x32+.google.cloud.domains.v1beta1.ContactNotice\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\"V\n\x19\x45xportRegistrationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"V\n\x19\x44\x65leteRegistrationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"e\n RetrieveAuthorizationCodeRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"b\n\x1dResetAuthorizationCodeRequest\x12\x41\n\x0cregistration\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#domains.googleapis.com/Registration\"\xa1\x03\n\x12RegisterParameters\x12\x13\n\x0b\x64omain_name\x18\x01 \x01(\t\x12S\n\x0c\x61vailability\x18\x02 \x01(\x0e\x32=.google.cloud.domains.v1beta1.RegisterParameters.Availability\x12G\n\x11supported_privacy\x18\x03 \x03(\x0e\x32,.google.cloud.domains.v1beta1.ContactPrivacy\x12\x42\n\x0e\x64omain_notices\x18\x04 \x03(\x0e\x32*.google.cloud.domains.v1beta1.DomainNotice\x12(\n\x0cyearly_price\x18\x05 \x01(\x0b\x32\x12.google.type.Money\"j\n\x0c\x41vailability\x12\x1c\n\x18\x41VAILABILITY_UNSPECIFIED\x10\x00\x12\r\n\tAVAILABLE\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x0f\n\x0bUNSUPPORTED\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x9b\x02\n\x12TransferParameters\x12\x13\n\x0b\x64omain_name\x18\x01 \x01(\t\x12\x19\n\x11\x63urrent_registrar\x18\x02 \x01(\t\x12\x14\n\x0cname_servers\x18\x03 \x03(\t\x12L\n\x13transfer_lock_state\x18\x04 \x01(\x0e\x32/.google.cloud.domains.v1beta1.TransferLockState\x12G\n\x11supported_privacy\x18\x05 \x03(\x0e\x32,.google.cloud.domains.v1beta1.ContactPrivacy\x12(\n\x0cyearly_price\x18\x06 \x01(\x0b\x32\x12.google.type.Money\"!\n\x11\x41uthorizationCode\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\"\xbc\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x13\n\x0b\x61pi_version\x18\x06 \x01(\t*\x7f\n\x0e\x43ontactPrivacy\x12\x1f\n\x1b\x43ONTACT_PRIVACY_UNSPECIFIED\x10\x00\x12\x17\n\x13PUBLIC_CONTACT_DATA\x10\x01\x12\x18\n\x14PRIVATE_CONTACT_DATA\x10\x02\x12\x19\n\x15REDACTED_CONTACT_DATA\x10\x03*A\n\x0c\x44omainNotice\x12\x1d\n\x19\x44OMAIN_NOTICE_UNSPECIFIED\x10\x00\x12\x12\n\x0eHSTS_PRELOADED\x10\x01*X\n\rContactNotice\x12\x1e\n\x1a\x43ONTACT_NOTICE_UNSPECIFIED\x10\x00\x12\'\n#PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT\x10\x01*R\n\x11TransferLockState\x12#\n\x1fTRANSFER_LOCK_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08UNLOCKED\x10\x01\x12\n\n\x06LOCKED\x10\x02\x32\xca\x1e\n\x07\x44omains\x12\xd9\x01\n\rSearchDomains\x12\x32.google.cloud.domains.v1beta1.SearchDomainsRequest\x1a\x33.google.cloud.domains.v1beta1.SearchDomainsResponse\"_\x82\xd3\xe4\x93\x02H\x12\x46/v1beta1/{location=projects/*/locations/*}/registrations:searchDomains\xda\x41\x0elocation,query\x12\x93\x02\n\x1aRetrieveRegisterParameters\x12?.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest\x1a@.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse\"r\x82\xd3\xe4\x93\x02U\x12S/v1beta1/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters\xda\x41\x14location,domain_name\x12\xf8\x01\n\x0eRegisterDomain\x12\x33.google.cloud.domains.v1beta1.RegisterDomainRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\x82\xd3\xe4\x93\x02\x44\"?/v1beta1/{parent=projects/*/locations/*}/registrations:register:\x01*\xda\x41 parent,registration,yearly_price\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\x93\x02\n\x1aRetrieveTransferParameters\x12?.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest\x1a@.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse\"r\x82\xd3\xe4\x93\x02U\x12S/v1beta1/{location=projects/*/locations/*}/registrations:retrieveTransferParameters\xda\x41\x14location,domain_name\x12\x8b\x02\n\x0eTransferDomain\x12\x33.google.cloud.domains.v1beta1.TransferDomainRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02\x44\"?/v1beta1/{parent=projects/*/locations/*}/registrations:transfer:\x01*\xda\x41\x33parent,registration,yearly_price,authorization_code\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xcd\x01\n\x11ListRegistrations\x12\x36.google.cloud.domains.v1beta1.ListRegistrationsRequest\x1a\x37.google.cloud.domains.v1beta1.ListRegistrationsResponse\"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1beta1/{parent=projects/*/locations/*}/registrations\xda\x41\x06parent\x12\xba\x01\n\x0fGetRegistration\x12\x34.google.cloud.domains.v1beta1.GetRegistrationRequest\x1a*.google.cloud.domains.v1beta1.Registration\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1beta1/{name=projects/*/locations/*/registrations/*}\xda\x41\x04name\x12\x87\x02\n\x12UpdateRegistration\x12\x37.google.cloud.domains.v1beta1.UpdateRegistrationRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02S2C/v1beta1/{registration.name=projects/*/locations/*/registrations/*}:\x0cregistration\xda\x41\x18registration,update_mask\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xb9\x02\n\x1b\x43onfigureManagementSettings\x12@.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest\x1a\x1d.google.longrunning.Operation\"\xb8\x01\x82\xd3\xe4\x93\x02_\"Z/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings:\x01*\xda\x41,registration,management_settings,update_mask\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\x9d\x02\n\x14\x43onfigureDnsSettings\x12\x39.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest\x1a\x1d.google.longrunning.Operation\"\xaa\x01\x82\xd3\xe4\x93\x02X\"S/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings:\x01*\xda\x41%registration,dns_settings,update_mask\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xad\x02\n\x18\x43onfigureContactSettings\x12=.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\x82\xd3\xe4\x93\x02\\\"W/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureContactSettings:\x01*\xda\x41)registration,contact_settings,update_mask\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xe1\x01\n\x12\x45xportRegistration\x12\x37.google.cloud.domains.v1beta1.ExportRegistrationRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02\x42\"=/v1beta1/{name=projects/*/locations/*/registrations/*}:export:\x01*\xda\x41\x04name\xca\x41!\n\x0cRegistration\x12\x11OperationMetadata\x12\xe0\x01\n\x12\x44\x65leteRegistration\x12\x37.google.cloud.domains.v1beta1.DeleteRegistrationRequest\x1a\x1d.google.longrunning.Operation\"r\x82\xd3\xe4\x93\x02\x38*6/v1beta1/{name=projects/*/locations/*/registrations/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xfd\x01\n\x19RetrieveAuthorizationCode\x12>.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest\x1a/.google.cloud.domains.v1beta1.AuthorizationCode\"o\x82\xd3\xe4\x93\x02Z\x12X/v1beta1/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode\xda\x41\x0cregistration\x12\xf7\x01\n\x16ResetAuthorizationCode\x12;.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest\x1a/.google.cloud.domains.v1beta1.AuthorizationCode\"o\x82\xd3\xe4\x93\x02Z\"U/v1beta1/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode:\x01*\xda\x41\x0cregistration\x1aJ\xca\x41\x16\x64omains.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBn\n com.google.cloud.domains.v1beta1B\x0c\x44omainsProtoP\x01Z:cloud.google.com/go/domains/apiv1beta1/domainspb;domainspbb\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.type.PostalAddress", "google/type/postal_address.proto"], + ["google.type.Money", "google/type/money.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-domains-v1beta1/proto_docs/google/protobuf/any.rb b/google-cloud-domains-v1beta1/proto_docs/google/protobuf/any.rb index 39618af2c75c..9f9367c74a8d 100644 --- a/google-cloud-domains-v1beta1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-domains-v1beta1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: diff --git a/google-cloud-domains-v1beta1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-domains-v1beta1/proto_docs/google/protobuf/timestamp.rb index fb9d03c73c8d..626cd5e0bf3a 100644 --- a/google-cloud-domains-v1beta1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-domains-v1beta1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-error_reporting-v1beta1/google-cloud-error_reporting-v1beta1.gemspec b/google-cloud-error_reporting-v1beta1/google-cloud-error_reporting-v1beta1.gemspec index f8e5be424646..e485a31aaa86 100644 --- a/google-cloud-error_reporting-v1beta1/google-cloud-error_reporting-v1beta1.gemspec +++ b/google-cloud-error_reporting-v1beta1/google-cloud-error_reporting-v1beta1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb b/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb index 3e497b452e5e..3f97d451ec50 100644 --- a/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +++ b/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/clouderrorreporting/v1beta1/common.proto @@ -6,54 +7,32 @@ require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/devtools/clouderrorreporting/v1beta1/common.proto", :syntax => :proto3) do - add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" do - optional :name, :string, 1 - optional :group_id, :string, 2 - repeated :tracking_issues, :message, 3, "google.devtools.clouderrorreporting.v1beta1.TrackingIssue" - optional :resolution_status, :enum, 5, "google.devtools.clouderrorreporting.v1beta1.ResolutionStatus" - end - add_message "google.devtools.clouderrorreporting.v1beta1.TrackingIssue" do - optional :url, :string, 1 - end - add_message "google.devtools.clouderrorreporting.v1beta1.ErrorEvent" do - optional :event_time, :message, 1, "google.protobuf.Timestamp" - optional :service_context, :message, 2, "google.devtools.clouderrorreporting.v1beta1.ServiceContext" - optional :message, :string, 3 - optional :context, :message, 5, "google.devtools.clouderrorreporting.v1beta1.ErrorContext" - end - add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContext" do - optional :service, :string, 2 - optional :version, :string, 3 - optional :resource_type, :string, 4 - end - add_message "google.devtools.clouderrorreporting.v1beta1.ErrorContext" do - optional :http_request, :message, 1, "google.devtools.clouderrorreporting.v1beta1.HttpRequestContext" - optional :user, :string, 2 - optional :report_location, :message, 3, "google.devtools.clouderrorreporting.v1beta1.SourceLocation" - end - add_message "google.devtools.clouderrorreporting.v1beta1.HttpRequestContext" do - optional :method, :string, 1 - optional :url, :string, 2 - optional :user_agent, :string, 3 - optional :referrer, :string, 4 - optional :response_status_code, :int32, 5 - optional :remote_ip, :string, 6 - end - add_message "google.devtools.clouderrorreporting.v1beta1.SourceLocation" do - optional :file_path, :string, 1 - optional :line_number, :int32, 2 - optional :function_name, :string, 4 - end - add_enum "google.devtools.clouderrorreporting.v1beta1.ResolutionStatus" do - value :RESOLUTION_STATUS_UNSPECIFIED, 0 - value :OPEN, 1 - value :ACKNOWLEDGED, 2 - value :RESOLVED, 3 - value :MUTED, 4 + +descriptor_data = "\n8google/devtools/clouderrorreporting/v1beta1/common.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x02\n\nErrorGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12S\n\x0ftracking_issues\x18\x03 \x03(\x0b\x32:.google.devtools.clouderrorreporting.v1beta1.TrackingIssue\x12X\n\x11resolution_status\x18\x05 \x01(\x0e\x32=.google.devtools.clouderrorreporting.v1beta1.ResolutionStatus:U\xea\x41R\n-clouderrorreporting.googleapis.com/ErrorGroup\x12!projects/{project}/groups/{group}\"\x1c\n\rTrackingIssue\x12\x0b\n\x03url\x18\x01 \x01(\t\"\xef\x01\n\nErrorEvent\x12.\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0fservice_context\x18\x02 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x0f\n\x07message\x18\x03 \x01(\t\x12J\n\x07\x63ontext\x18\x05 \x01(\x0b\x32\x39.google.devtools.clouderrorreporting.v1beta1.ErrorContext\"I\n\x0eServiceContext\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\"\xc9\x01\n\x0c\x45rrorContext\x12U\n\x0chttp_request\x18\x01 \x01(\x0b\x32?.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext\x12\x0c\n\x04user\x18\x02 \x01(\t\x12T\n\x0freport_location\x18\x03 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.SourceLocation\"\x88\x01\n\x12HttpRequestContext\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x12\n\nuser_agent\x18\x03 \x01(\t\x12\x10\n\x08referrer\x18\x04 \x01(\t\x12\x1c\n\x14response_status_code\x18\x05 \x01(\x05\x12\x11\n\tremote_ip\x18\x06 \x01(\t\"O\n\x0eSourceLocation\x12\x11\n\tfile_path\x18\x01 \x01(\t\x12\x13\n\x0bline_number\x18\x02 \x01(\x05\x12\x15\n\rfunction_name\x18\x04 \x01(\t*j\n\x10ResolutionStatus\x12!\n\x1dRESOLUTION_STATUS_UNSPECIFIED\x10\x00\x12\x08\n\x04OPEN\x10\x01\x12\x10\n\x0c\x41\x43KNOWLEDGED\x10\x02\x12\x0c\n\x08RESOLVED\x10\x03\x12\t\n\x05MUTED\x10\x04\x42\x89\x02\n/com.google.devtools.clouderrorreporting.v1beta1B\x0b\x43ommonProtoP\x01ZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb\xf8\x01\x01\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1\xea\x02&Google::Cloud::ErrorReporting::V1beta1b\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.protobuf.Timestamp", "google/protobuf/timestamp.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 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 diff --git a/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb b/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb index 93f25e44c5d2..df0c83fdaf91 100644 --- a/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +++ b/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto @@ -9,15 +10,32 @@ require 'google/api/resource_pb' require 'google/devtools/clouderrorreporting/v1beta1/common_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", :syntax => :proto3) do - add_message "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest" do - optional :group_name, :string, 1 - end - add_message "google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest" do - optional :group, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" + +descriptor_data = "\nEgoogle/devtools/clouderrorreporting/v1beta1/error_group_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/devtools/clouderrorreporting/v1beta1/common.proto\"\\\n\x0fGetGroupRequest\x12I\n\ngroup_name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-clouderrorreporting.googleapis.com/ErrorGroup\"a\n\x12UpdateGroupRequest\x12K\n\x05group\x18\x01 \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroupB\x03\xe0\x41\x02\x32\xfb\x03\n\x11\x45rrorGroupService\x12\xc1\x01\n\x08GetGroup\x12<.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest\x1a\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\">\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{group_name=projects/*/groups/*}\xda\x41\ngroup_name\x12\xc9\x01\n\x0bUpdateGroup\x12?.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest\x1a\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\"@\x82\xd3\xe4\x93\x02\x32\x1a)/v1beta1/{group.name=projects/*/groups/*}:\x05group\xda\x41\x05group\x1aV\xca\x41\"clouderrorreporting.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x94\x02\n/com.google.devtools.clouderrorreporting.v1beta1B\x16\x45rrorGroupServiceProtoP\x01ZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb\xf8\x01\x01\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1\xea\x02&Google::Cloud::ErrorReporting::V1beta1b\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.devtools.clouderrorreporting.v1beta1.ErrorGroup", "google/devtools/clouderrorreporting/v1beta1/common.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 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 diff --git a/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb b/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb index 9e910adf3372..d3cb56d4553a 100644 --- a/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +++ b/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto @@ -11,88 +12,34 @@ require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto", :syntax => :proto3) do - add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest" do - optional :project_name, :string, 1 - repeated :group_id, :string, 2 - optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter" - optional :time_range, :message, 5, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange" - optional :timed_count_duration, :message, 6, "google.protobuf.Duration" - optional :alignment, :enum, 7, "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment" - optional :alignment_time, :message, 8, "google.protobuf.Timestamp" - optional :order, :enum, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder" - optional :page_size, :int32, 11 - optional :page_token, :string, 12 - end - add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse" do - repeated :error_group_stats, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats" - optional :next_page_token, :string, 2 - optional :time_range_begin, :message, 4, "google.protobuf.Timestamp" - end - add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats" do - optional :group, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" - optional :count, :int64, 2 - optional :affected_users_count, :int64, 3 - repeated :timed_counts, :message, 4, "google.devtools.clouderrorreporting.v1beta1.TimedCount" - optional :first_seen_time, :message, 5, "google.protobuf.Timestamp" - optional :last_seen_time, :message, 6, "google.protobuf.Timestamp" - repeated :affected_services, :message, 7, "google.devtools.clouderrorreporting.v1beta1.ServiceContext" - optional :num_affected_services, :int32, 8 - optional :representative, :message, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent" - end - add_message "google.devtools.clouderrorreporting.v1beta1.TimedCount" do - optional :count, :int64, 1 - optional :start_time, :message, 2, "google.protobuf.Timestamp" - optional :end_time, :message, 3, "google.protobuf.Timestamp" - end - add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsRequest" do - optional :project_name, :string, 1 - optional :group_id, :string, 2 - optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter" - optional :time_range, :message, 4, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange" - optional :page_size, :int32, 6 - optional :page_token, :string, 7 - end - add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsResponse" do - repeated :error_events, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent" - optional :next_page_token, :string, 2 - optional :time_range_begin, :message, 4, "google.protobuf.Timestamp" - end - add_message "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange" do - optional :period, :enum, 1, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period" - end - add_enum "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period" do - value :PERIOD_UNSPECIFIED, 0 - value :PERIOD_1_HOUR, 1 - value :PERIOD_6_HOURS, 2 - value :PERIOD_1_DAY, 3 - value :PERIOD_1_WEEK, 4 - value :PERIOD_30_DAYS, 5 - end - add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter" do - optional :service, :string, 2 - optional :version, :string, 3 - optional :resource_type, :string, 4 - end - add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest" do - optional :project_name, :string, 1 - end - add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse" do - end - add_enum "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment" do - value :ERROR_COUNT_ALIGNMENT_UNSPECIFIED, 0 - value :ALIGNMENT_EQUAL_ROUNDED, 1 - value :ALIGNMENT_EQUAL_AT_END, 2 - end - add_enum "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder" do - value :GROUP_ORDER_UNSPECIFIED, 0 - value :COUNT_DESC, 1 - value :LAST_SEEN_DESC, 2 - value :CREATED_DESC, 3 - value :AFFECTED_USERS_DESC, 4 + +descriptor_data = "\nEgoogle/devtools/clouderrorreporting/v1beta1/error_stats_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/devtools/clouderrorreporting/v1beta1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x83\x05\n\x15ListGroupStatsRequest\x12I\n\x0cproject_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x15\n\x08group_id\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12^\n\x0eservice_filter\x18\x03 \x01(\x0b\x32\x41.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterB\x03\xe0\x41\x01\x12T\n\ntime_range\x18\x05 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeB\x03\xe0\x41\x01\x12<\n\x14timed_count_duration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12X\n\talignment\x18\x07 \x01(\x0e\x32@.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignmentB\x03\xe0\x41\x01\x12\x37\n\x0e\x61lignment_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12P\n\x05order\x18\t \x01(\x0e\x32<.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrderB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x0b \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x0c \x01(\tB\x03\xe0\x41\x01\"\xc0\x01\n\x16ListGroupStatsResponse\x12W\n\x11\x65rror_group_stats\x18\x01 \x03(\x0b\x32<.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x34\n\x10time_range_begin\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x86\x04\n\x0f\x45rrorGroupStats\x12\x46\n\x05group\x18\x01 \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\x1c\n\x14\x61\x66\x66\x65\x63ted_users_count\x18\x03 \x01(\x03\x12M\n\x0ctimed_counts\x18\x04 \x03(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.TimedCount\x12\x33\n\x0f\x66irst_seen_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0elast_seen_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x11\x61\x66\x66\x65\x63ted_services\x18\x07 \x03(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x1d\n\x15num_affected_services\x18\x08 \x01(\x05\x12O\n\x0erepresentative\x18\t \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorEvent\"y\n\nTimedCount\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x02\n\x11ListEventsRequest\x12I\n\x0cproject_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x15\n\x08group_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12^\n\x0eservice_filter\x18\x03 \x01(\x0b\x32\x41.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterB\x03\xe0\x41\x01\x12T\n\ntime_range\x18\x04 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xb2\x01\n\x12ListEventsResponse\x12M\n\x0c\x65rror_events\x18\x01 \x03(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x34\n\x10time_range_begin\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe7\x01\n\x0eQueryTimeRange\x12R\n\x06period\x18\x01 \x01(\x0e\x32\x42.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period\"\x80\x01\n\x06Period\x12\x16\n\x12PERIOD_UNSPECIFIED\x10\x00\x12\x11\n\rPERIOD_1_HOUR\x10\x01\x12\x12\n\x0ePERIOD_6_HOURS\x10\x02\x12\x10\n\x0cPERIOD_1_DAY\x10\x03\x12\x11\n\rPERIOD_1_WEEK\x10\x04\x12\x12\n\x0ePERIOD_30_DAYS\x10\x05\"^\n\x14ServiceContextFilter\x12\x14\n\x07service\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rresource_type\x18\x04 \x01(\tB\x03\xe0\x41\x01\"`\n\x13\x44\x65leteEventsRequest\x12I\n\x0cproject_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\"\x16\n\x14\x44\x65leteEventsResponse*u\n\x13TimedCountAlignment\x12%\n!ERROR_COUNT_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x41LIGNMENT_EQUAL_ROUNDED\x10\x01\x12\x1a\n\x16\x41LIGNMENT_EQUAL_AT_END\x10\x02*}\n\x0f\x45rrorGroupOrder\x12\x1b\n\x17GROUP_ORDER_UNSPECIFIED\x10\x00\x12\x0e\n\nCOUNT_DESC\x10\x01\x12\x12\n\x0eLAST_SEEN_DESC\x10\x02\x12\x10\n\x0c\x43REATED_DESC\x10\x03\x12\x17\n\x13\x41\x46\x46\x45\x43TED_USERS_DESC\x10\x04\x32\x8b\x06\n\x11\x45rrorStatsService\x12\xea\x01\n\x0eListGroupStats\x12\x42.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest\x1a\x43.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse\"O\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{project_name=projects/*}/groupStats\xda\x41\x17project_name,time_range\x12\xd8\x01\n\nListEvents\x12>.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest\x1a?.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse\"I\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{project_name=projects/*}/events\xda\x41\x15project_name,group_id\x12\xd5\x01\n\x0c\x44\x65leteEvents\x12@.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest\x1a\x41.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse\"@\x82\xd3\xe4\x93\x02+*)/v1beta1/{project_name=projects/*}/events\xda\x41\x0cproject_name\x1aV\xca\x41\"clouderrorreporting.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x94\x02\n/com.google.devtools.clouderrorreporting.v1beta1B\x16\x45rrorStatsServiceProtoP\x01ZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb\xf8\x01\x01\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1\xea\x02&Google::Cloud::ErrorReporting::V1beta1b\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.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.devtools.clouderrorreporting.v1beta1.ErrorGroup", "google/devtools/clouderrorreporting/v1beta1/common.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 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 diff --git a/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb b/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb index 1cd559f4f6cc..347b5c203437 100644 --- a/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +++ b/google-cloud-error_reporting-v1beta1/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto @@ -10,21 +11,33 @@ require 'google/devtools/clouderrorreporting/v1beta1/common_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto", :syntax => :proto3) do - add_message "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest" do - optional :project_name, :string, 1 - optional :event, :message, 2, "google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent" - end - add_message "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse" do - end - add_message "google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent" do - optional :event_time, :message, 1, "google.protobuf.Timestamp" - optional :service_context, :message, 2, "google.devtools.clouderrorreporting.v1beta1.ServiceContext" - optional :message, :string, 3 - optional :context, :message, 4, "google.devtools.clouderrorreporting.v1beta1.ErrorContext" + +descriptor_data = "\nGgoogle/devtools/clouderrorreporting/v1beta1/report_errors_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/devtools/clouderrorreporting/v1beta1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb9\x01\n\x17ReportErrorEventRequest\x12I\n\x0cproject_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12S\n\x05\x65vent\x18\x02 \x01(\x0b\x32?.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEventB\x03\xe0\x41\x02\"\x1a\n\x18ReportErrorEventResponse\"\x8b\x02\n\x12ReportedErrorEvent\x12\x33\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12Y\n\x0fservice_context\x18\x02 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContextB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12O\n\x07\x63ontext\x18\x04 \x01(\x0b\x32\x39.google.devtools.clouderrorreporting.v1beta1.ErrorContextB\x03\xe0\x41\x01\x32\xe5\x02\n\x13ReportErrorsService\x12\xf5\x01\n\x10ReportErrorEvent\x12\x44.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest\x1a\x45.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse\"T\x82\xd3\xe4\x93\x02\x39\"0/v1beta1/{project_name=projects/*}/events:report:\x05\x65vent\xda\x41\x12project_name,event\x1aV\xca\x41\"clouderrorreporting.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x96\x02\n/com.google.devtools.clouderrorreporting.v1beta1B\x18ReportErrorsServiceProtoP\x01ZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb\xf8\x01\x01\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1\xea\x02&Google::Cloud::ErrorReporting::V1beta1b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.devtools.clouderrorreporting.v1beta1.ServiceContext", "google/devtools/clouderrorreporting/v1beta1/common.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 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 diff --git a/google-cloud-error_reporting-v1beta1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-error_reporting-v1beta1/proto_docs/google/protobuf/timestamp.rb index 7c4e206ac5fb..4891104f14b9 100644 --- a/google-cloud-error_reporting-v1beta1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-error_reporting-v1beta1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-essential_contacts-v1/google-cloud-essential_contacts-v1.gemspec b/google-cloud-essential_contacts-v1/google-cloud-essential_contacts-v1.gemspec index aff06ee40bf8..edf025d7952d 100644 --- a/google-cloud-essential_contacts-v1/google-cloud-essential_contacts-v1.gemspec +++ b/google-cloud-essential_contacts-v1/google-cloud-essential_contacts-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-essential_contacts-v1/lib/google/cloud/essentialcontacts/v1/enums_pb.rb b/google-cloud-essential_contacts-v1/lib/google/cloud/essentialcontacts/v1/enums_pb.rb index f89a1ced35ad..ca08a3d36c10 100644 --- a/google-cloud-essential_contacts-v1/lib/google/cloud/essentialcontacts/v1/enums_pb.rb +++ b/google-cloud-essential_contacts-v1/lib/google/cloud/essentialcontacts/v1/enums_pb.rb @@ -1,27 +1,34 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/essentialcontacts/v1/enums.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/essentialcontacts/v1/enums.proto", :syntax => :proto3) do - add_enum "google.cloud.essentialcontacts.v1.NotificationCategory" do - value :NOTIFICATION_CATEGORY_UNSPECIFIED, 0 - value :ALL, 2 - value :SUSPENSION, 3 - value :SECURITY, 5 - value :TECHNICAL, 6 - value :BILLING, 7 - value :LEGAL, 8 - value :PRODUCT_UPDATES, 9 - value :TECHNICAL_INCIDENTS, 10 - end - add_enum "google.cloud.essentialcontacts.v1.ValidationState" do - value :VALIDATION_STATE_UNSPECIFIED, 0 - value :VALID, 1 - value :INVALID, 2 + +descriptor_data = "\n-google/cloud/essentialcontacts/v1/enums.proto\x12!google.cloud.essentialcontacts.v1*\xb9\x01\n\x14NotificationCategory\x12%\n!NOTIFICATION_CATEGORY_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x0e\n\nSUSPENSION\x10\x03\x12\x0c\n\x08SECURITY\x10\x05\x12\r\n\tTECHNICAL\x10\x06\x12\x0b\n\x07\x42ILLING\x10\x07\x12\t\n\x05LEGAL\x10\x08\x12\x13\n\x0fPRODUCT_UPDATES\x10\t\x12\x17\n\x13TECHNICAL_INCIDENTS\x10\n*K\n\x0fValidationState\x12 \n\x1cVALIDATION_STATE_UNSPECIFIED\x10\x00\x12\t\n\x05VALID\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x42\xf9\x01\n%com.google.cloud.essentialcontacts.v1B\nEnumsProtoP\x01ZScloud.google.com/go/essentialcontacts/apiv1/essentialcontactspb;essentialcontactspb\xaa\x02!Google.Cloud.EssentialContacts.V1\xca\x02!Google\\Cloud\\EssentialContacts\\V1\xea\x02$Google::Cloud::EssentialContacts::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 = [ + ] + 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 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 diff --git a/google-cloud-essential_contacts-v1/lib/google/cloud/essentialcontacts/v1/service_pb.rb b/google-cloud-essential_contacts-v1/lib/google/cloud/essentialcontacts/v1/service_pb.rb index b2df82d8c3a3..5b2f5d894893 100644 --- a/google-cloud-essential_contacts-v1/lib/google/cloud/essentialcontacts/v1/service_pb.rb +++ b/google-cloud-essential_contacts-v1/lib/google/cloud/essentialcontacts/v1/service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/essentialcontacts/v1/service.proto @@ -12,55 +13,33 @@ require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/essentialcontacts/v1/service.proto", :syntax => :proto3) do - add_message "google.cloud.essentialcontacts.v1.Contact" do - optional :name, :string, 1 - optional :email, :string, 2 - repeated :notification_category_subscriptions, :enum, 3, "google.cloud.essentialcontacts.v1.NotificationCategory" - optional :language_tag, :string, 4 - optional :validation_state, :enum, 8, "google.cloud.essentialcontacts.v1.ValidationState" - optional :validate_time, :message, 9, "google.protobuf.Timestamp" - end - add_message "google.cloud.essentialcontacts.v1.ListContactsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.essentialcontacts.v1.ListContactsResponse" do - repeated :contacts, :message, 1, "google.cloud.essentialcontacts.v1.Contact" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.essentialcontacts.v1.GetContactRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.essentialcontacts.v1.DeleteContactRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.essentialcontacts.v1.CreateContactRequest" do - optional :parent, :string, 1 - optional :contact, :message, 2, "google.cloud.essentialcontacts.v1.Contact" - end - add_message "google.cloud.essentialcontacts.v1.UpdateContactRequest" do - optional :contact, :message, 2, "google.cloud.essentialcontacts.v1.Contact" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.cloud.essentialcontacts.v1.ComputeContactsRequest" do - optional :parent, :string, 1 - repeated :notification_categories, :enum, 6, "google.cloud.essentialcontacts.v1.NotificationCategory" - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - end - add_message "google.cloud.essentialcontacts.v1.ComputeContactsResponse" do - repeated :contacts, :message, 1, "google.cloud.essentialcontacts.v1.Contact" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.essentialcontacts.v1.SendTestMessageRequest" do - repeated :contacts, :string, 1 - optional :resource, :string, 2 - optional :notification_category, :enum, 3, "google.cloud.essentialcontacts.v1.NotificationCategory" + +descriptor_data = "\n/google/cloud/essentialcontacts/v1/service.proto\x12!google.cloud.essentialcontacts.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/essentialcontacts/v1/enums.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd1\x03\n\x07\x43ontact\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x64\n#notification_category_subscriptions\x18\x03 \x03(\x0e\x32\x37.google.cloud.essentialcontacts.v1.NotificationCategory\x12\x14\n\x0clanguage_tag\x18\x04 \x01(\t\x12L\n\x10validation_state\x18\x08 \x01(\x0e\x32\x32.google.cloud.essentialcontacts.v1.ValidationState\x12\x31\n\rvalidate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\xab\x01\xea\x41\xa7\x01\n(essentialcontacts.googleapis.com/Contact\x12%projects/{project}/contacts/{contact}\x12#folders/{folder}/contacts/{contact}\x12/organizations/{organization}/contacts/{contact}\"\x88\x01\n\x13ListContactsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(essentialcontacts.googleapis.com/Contact\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"m\n\x14ListContactsResponse\x12<\n\x08\x63ontacts\x18\x01 \x03(\x0b\x32*.google.cloud.essentialcontacts.v1.Contact\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x11GetContactRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(essentialcontacts.googleapis.com/Contact\"V\n\x14\x44\x65leteContactRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(essentialcontacts.googleapis.com/Contact\"\x9a\x01\n\x14\x43reateContactRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(essentialcontacts.googleapis.com/Contact\x12@\n\x07\x63ontact\x18\x02 \x01(\x0b\x32*.google.cloud.essentialcontacts.v1.ContactB\x03\xe0\x41\x02\"\x8e\x01\n\x14UpdateContactRequest\x12@\n\x07\x63ontact\x18\x02 \x01(\x0b\x32*.google.cloud.essentialcontacts.v1.ContactB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xe5\x01\n\x16\x43omputeContactsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(essentialcontacts.googleapis.com/Contact\x12X\n\x17notification_categories\x18\x06 \x03(\x0e\x32\x37.google.cloud.essentialcontacts.v1.NotificationCategory\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"p\n\x17\x43omputeContactsResponse\x12<\n\x08\x63ontacts\x18\x01 \x03(\x0b\x32*.google.cloud.essentialcontacts.v1.Contact\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xfd\x01\n\x16SendTestMessageRequest\x12\x42\n\x08\x63ontacts\x18\x01 \x03(\tB0\xe0\x41\x02\xfa\x41*\n(essentialcontacts.googleapis.com/Contact\x12\x42\n\x08resource\x18\x02 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(essentialcontacts.googleapis.com/Contact\x12[\n\x15notification_category\x18\x03 \x01(\x0e\x32\x37.google.cloud.essentialcontacts.v1.NotificationCategoryB\x03\xe0\x41\x02\x32\xcb\x0f\n\x18\x45ssentialContactsService\x12\x98\x02\n\rCreateContact\x12\x37.google.cloud.essentialcontacts.v1.CreateContactRequest\x1a*.google.cloud.essentialcontacts.v1.Contact\"\xa1\x01\x82\xd3\xe4\x93\x02\x89\x01\" /v1/{parent=projects/*}/contacts:\x07\x63ontactZ*\"\x1f/v1/{parent=folders/*}/contacts:\x07\x63ontactZ0\"%/v1/{parent=organizations/*}/contacts:\x07\x63ontact\xda\x41\x0eparent,contact\x12\xb5\x02\n\rUpdateContact\x12\x37.google.cloud.essentialcontacts.v1.UpdateContactRequest\x1a*.google.cloud.essentialcontacts.v1.Contact\"\xbe\x01\x82\xd3\xe4\x93\x02\xa1\x01\x32(/v1/{contact.name=projects/*/contacts/*}:\x07\x63ontactZ22\'/v1/{contact.name=folders/*/contacts/*}:\x07\x63ontactZ82-/v1/{contact.name=organizations/*/contacts/*}:\x07\x63ontact\xda\x41\x13\x63ontact,update_mask\x12\xfe\x01\n\x0cListContacts\x12\x36.google.cloud.essentialcontacts.v1.ListContactsRequest\x1a\x37.google.cloud.essentialcontacts.v1.ListContactsResponse\"}\x82\xd3\xe4\x93\x02n\x12 /v1/{parent=projects/*}/contactsZ!\x12\x1f/v1/{parent=folders/*}/contactsZ\'\x12%/v1/{parent=organizations/*}/contacts\xda\x41\x06parent\x12\xeb\x01\n\nGetContact\x12\x34.google.cloud.essentialcontacts.v1.GetContactRequest\x1a*.google.cloud.essentialcontacts.v1.Contact\"{\x82\xd3\xe4\x93\x02n\x12 /v1/{name=projects/*/contacts/*}Z!\x12\x1f/v1/{name=folders/*/contacts/*}Z\'\x12%/v1/{name=organizations/*/contacts/*}\xda\x41\x04name\x12\xdd\x01\n\rDeleteContact\x12\x37.google.cloud.essentialcontacts.v1.DeleteContactRequest\x1a\x16.google.protobuf.Empty\"{\x82\xd3\xe4\x93\x02n* /v1/{name=projects/*/contacts/*}Z!*\x1f/v1/{name=folders/*/contacts/*}Z\'*%/v1/{name=organizations/*/contacts/*}\xda\x41\x04name\x12\x98\x02\n\x0f\x43omputeContacts\x12\x39.google.cloud.essentialcontacts.v1.ComputeContactsRequest\x1a:.google.cloud.essentialcontacts.v1.ComputeContactsResponse\"\x8d\x01\x82\xd3\xe4\x93\x02\x86\x01\x12(/v1/{parent=projects/*}/contacts:computeZ)\x12\'/v1/{parent=folders/*}/contacts:computeZ/\x12-/v1/{parent=organizations/*}/contacts:compute\x12\x9b\x02\n\x0fSendTestMessage\x12\x39.google.cloud.essentialcontacts.v1.SendTestMessageRequest\x1a\x16.google.protobuf.Empty\"\xb4\x01\x82\xd3\xe4\x93\x02\xad\x01\"2/v1/{resource=projects/*}/contacts:sendTestMessage:\x01*Z6\"1/v1/{resource=folders/*}/contacts:sendTestMessage:\x01*Z<\"7/v1/{resource=organizations/*}/contacts:sendTestMessage:\x01*\x1aT\xca\x41 essentialcontacts.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xed\x01\n%com.google.cloud.essentialcontacts.v1P\x01ZScloud.google.com/go/essentialcontacts/apiv1/essentialcontactspb;essentialcontactspb\xaa\x02!Google.Cloud.EssentialContacts.V1\xca\x02!Google\\Cloud\\EssentialContacts\\V1\xea\x02$Google::Cloud::EssentialContacts::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.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 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 diff --git a/google-cloud-essential_contacts-v1/proto_docs/google/protobuf/timestamp.rb b/google-cloud-essential_contacts-v1/proto_docs/google/protobuf/timestamp.rb index fb9d03c73c8d..626cd5e0bf3a 100644 --- a/google-cloud-essential_contacts-v1/proto_docs/google/protobuf/timestamp.rb +++ b/google-cloud-essential_contacts-v1/proto_docs/google/protobuf/timestamp.rb @@ -69,7 +69,6 @@ module Protobuf # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) # .setNanos((int) ((millis % 1000) * 1000000)).build(); # - # # Example 5: Compute Timestamp from Java `Instant.now()`. # # Instant now = Instant.now(); @@ -78,7 +77,6 @@ module Protobuf # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) # .setNanos(now.getNano()).build(); # - # # Example 6: Compute Timestamp from current time in Python. # # timestamp = Timestamp() @@ -108,7 +106,7 @@ module Protobuf # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() # ) to obtain a formatter capable of generating timestamps in this format. # @!attribute [rw] seconds # @return [::Integer] diff --git a/google-cloud-eventarc-publishing-v1/google-cloud-eventarc-publishing-v1.gemspec b/google-cloud-eventarc-publishing-v1/google-cloud-eventarc-publishing-v1.gemspec index 52a4cc9e75e9..88bac42c9486 100644 --- a/google-cloud-eventarc-publishing-v1/google-cloud-eventarc-publishing-v1.gemspec +++ b/google-cloud-eventarc-publishing-v1/google-cloud-eventarc-publishing-v1.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.6" - gem.add_dependency "gapic-common", ">= 0.18.0", "< 2.a" + gem.add_dependency "gapic-common", ">= 0.19.0", "< 2.a" gem.add_dependency "google-cloud-errors", "~> 1.0" gem.add_development_dependency "google-style", "~> 1.26.3" diff --git a/google-cloud-eventarc-publishing-v1/lib/google/cloud/eventarc/publishing/v1/publisher_pb.rb b/google-cloud-eventarc-publishing-v1/lib/google/cloud/eventarc/publishing/v1/publisher_pb.rb index 9a14c2105a48..4060a14c15ea 100644 --- a/google-cloud-eventarc-publishing-v1/lib/google/cloud/eventarc/publishing/v1/publisher_pb.rb +++ b/google-cloud-eventarc-publishing-v1/lib/google/cloud/eventarc/publishing/v1/publisher_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/eventarc/publishing/v1/publisher.proto @@ -7,23 +8,32 @@ require 'google/api/client_pb' require 'google/protobuf/any_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/eventarc/publishing/v1/publisher.proto", :syntax => :proto3) do - add_message "google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest" do - optional :channel_connection, :string, 1 - repeated :events, :message, 2, "google.protobuf.Any" - repeated :text_events, :string, 3 - end - add_message "google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse" do - end - add_message "google.cloud.eventarc.publishing.v1.PublishEventsRequest" do - optional :channel, :string, 1 - repeated :events, :message, 2, "google.protobuf.Any" - repeated :text_events, :string, 3 - end - add_message "google.cloud.eventarc.publishing.v1.PublishEventsResponse" do + +descriptor_data = "\n3google/cloud/eventarc/publishing/v1/publisher.proto\x12#google.cloud.eventarc.publishing.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x19google/protobuf/any.proto\"~\n%PublishChannelConnectionEventsRequest\x12\x1a\n\x12\x63hannel_connection\x18\x01 \x01(\t\x12$\n\x06\x65vents\x18\x02 \x03(\x0b\x32\x14.google.protobuf.Any\x12\x13\n\x0btext_events\x18\x03 \x03(\t\"(\n&PublishChannelConnectionEventsResponse\"b\n\x14PublishEventsRequest\x12\x0f\n\x07\x63hannel\x18\x01 \x01(\t\x12$\n\x06\x65vents\x18\x02 \x03(\x0b\x32\x14.google.protobuf.Any\x12\x13\n\x0btext_events\x18\x03 \x03(\t\"\x17\n\x15PublishEventsResponse2\xd0\x04\n\tPublisher\x12\x98\x02\n\x1ePublishChannelConnectionEvents\x12J.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest\x1aK.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{channel_connection=projects/*/locations/*/channelConnections/*}:publishEvents:\x01*\x12\xd0\x01\n\rPublishEvents\x12\x39.google.cloud.eventarc.publishing.v1.PublishEventsRequest\x1a:.google.cloud.eventarc.publishing.v1.PublishEventsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{channel=projects/*/locations/*/channels/*}:publishEvents:\x01*\x1aU\xca\x41!eventarcpublishing.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfa\x01\n\'com.google.cloud.eventarc.publishing.v1B\x0ePublisherProtoP\x01ZGcloud.google.com/go/eventarc/publishing/apiv1/publishingpb;publishingpb\xaa\x02#Google.Cloud.Eventarc.Publishing.V1\xca\x02#Google\\Cloud\\Eventarc\\Publishing\\V1\xea\x02\'Google::Cloud::Eventarc::Publishing::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.protobuf.Any", "google/protobuf/any.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 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 diff --git a/google-cloud-eventarc-publishing-v1/proto_docs/google/protobuf/any.rb b/google-cloud-eventarc-publishing-v1/proto_docs/google/protobuf/any.rb index 578d374b9bf9..aa8fa7123d39 100644 --- a/google-cloud-eventarc-publishing-v1/proto_docs/google/protobuf/any.rb +++ b/google-cloud-eventarc-publishing-v1/proto_docs/google/protobuf/any.rb @@ -43,8 +43,12 @@ module Protobuf # if (any.is(Foo.class)) { # foo = any.unpack(Foo.class); # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } # - # Example 3: Pack and unpack a message in Python. + # Example 3: Pack and unpack a message in Python. # # foo = Foo(...) # any = Any() @@ -54,7 +58,7 @@ module Protobuf # any.Unpack(foo) # ... # - # Example 4: Pack and unpack a message in Go + # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} # any, err := anypb.New(foo) @@ -73,9 +77,8 @@ module Protobuf # in the type URL, for example "foo.bar.com/x/y.z" will yield type # name "y.z". # - # # JSON - # + # ==== # The JSON representation of an `Any` value uses the regular # representation of the deserialized, embedded message, with an # additional field `@type` which contains the type URL. Example: