lib/google/cloud/run/v2/k8s.min_pb.rb in google-cloud-run-v2-0.8.0 vs lib/google/cloud/run/v2/k8s.min_pb.rb in google-cloud-run-v2-0.9.0

- old
+ new

@@ -1,102 +1,38 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/run/v2/k8s.min.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/run/v2/k8s.min.proto", :syntax => :proto3) do - add_message "google.cloud.run.v2.Container" do - optional :name, :string, 1 - optional :image, :string, 2 - repeated :command, :string, 3 - repeated :args, :string, 4 - repeated :env, :message, 5, "google.cloud.run.v2.EnvVar" - optional :resources, :message, 6, "google.cloud.run.v2.ResourceRequirements" - repeated :ports, :message, 7, "google.cloud.run.v2.ContainerPort" - repeated :volume_mounts, :message, 8, "google.cloud.run.v2.VolumeMount" - optional :working_dir, :string, 9 - optional :liveness_probe, :message, 10, "google.cloud.run.v2.Probe" - optional :startup_probe, :message, 11, "google.cloud.run.v2.Probe" + +descriptor_data = "\n!google/cloud/run/v2/k8s.min.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x03\n\tContainer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\x05image\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63ommand\x18\x03 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x04 \x03(\t\x12(\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12<\n\tresources\x18\x06 \x01(\x0b\x32).google.cloud.run.v2.ResourceRequirements\x12\x31\n\x05ports\x18\x07 \x03(\x0b\x32\".google.cloud.run.v2.ContainerPort\x12\x37\n\rvolume_mounts\x18\x08 \x03(\x0b\x32 .google.cloud.run.v2.VolumeMount\x12\x13\n\x0bworking_dir\x18\t \x01(\t\x12\x32\n\x0eliveness_probe\x18\n \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x31\n\rstartup_probe\x18\x0b \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\"\xb9\x01\n\x14ResourceRequirements\x12\x45\n\x06limits\x18\x01 \x03(\x0b\x32\x35.google.cloud.run.v2.ResourceRequirements.LimitsEntry\x12\x10\n\x08\x63pu_idle\x18\x02 \x01(\x08\x12\x19\n\x11startup_cpu_boost\x18\x03 \x01(\x08\x1a-\n\x0bLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06\x45nvVar\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x05value\x18\x02 \x01(\tH\x00\x12\x39\n\x0cvalue_source\x18\x03 \x01(\x0b\x32!.google.cloud.run.v2.EnvVarSourceH\x00\x42\x08\n\x06values\"N\n\x0c\x45nvVarSource\x12>\n\x0esecret_key_ref\x18\x01 \x01(\x0b\x32&.google.cloud.run.v2.SecretKeySelector\"\x92\x01\n\x11SecretKeySelector\x12;\n\x06secret\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#secretmanager.googleapis.com/Secret\x12@\n\x07version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\"5\n\rContainerPort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontainer_port\x18\x03 \x01(\x05\"9\n\x0bVolumeMount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nmount_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xaa\x01\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x06secret\x18\x02 \x01(\x0b\x32\'.google.cloud.run.v2.SecretVolumeSourceH\x00\x12\x43\n\x12\x63loud_sql_instance\x18\x03 \x01(\x0b\x32%.google.cloud.run.v2.CloudSqlInstanceH\x00\x42\r\n\x0bvolume_type\"r\n\x12SecretVolumeSource\x12\x13\n\x06secret\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.cloud.run.v2.VersionToPath\x12\x14\n\x0c\x64\x65\x66\x61ult_mode\x18\x03 \x01(\x05\"A\n\rVersionToPath\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\x05\"%\n\x10\x43loudSqlInstance\x12\x11\n\tinstances\x18\x01 \x03(\t\"\xa5\x02\n\x05Probe\x12\x1d\n\x15initial_delay_seconds\x18\x01 \x01(\x05\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x16\n\x0eperiod_seconds\x18\x03 \x01(\x05\x12\x19\n\x11\x66\x61ilure_threshold\x18\x04 \x01(\x05\x12\x36\n\x08http_get\x18\x05 \x01(\x0b\x32\".google.cloud.run.v2.HTTPGetActionH\x00\x12:\n\ntcp_socket\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.TCPSocketActionH\x00\x12/\n\x04grpc\x18\x07 \x01(\x0b\x32\x1f.google.cloud.run.v2.GRPCActionH\x00\x42\x0c\n\nprobe_type\"b\n\rHTTPGetAction\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x35\n\x0chttp_headers\x18\x04 \x03(\x0b\x32\x1f.google.cloud.run.v2.HTTPHeader\x12\x0c\n\x04port\x18\x05 \x01(\x05\".\n\nHTTPHeader\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05value\x18\x02 \x01(\t\"\x1f\n\x0fTCPSocketAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\"+\n\nGRPCAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\x12\x0f\n\x07service\x18\x02 \x01(\tB\xe9\x03\n\x17\x63om.google.cloud.run.v2B\x0bK8sMinProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41J\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}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 = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_message "google.cloud.run.v2.ResourceRequirements" do - map :limits, :string, :string, 1 - optional :cpu_idle, :bool, 2 - optional :startup_cpu_boost, :bool, 3 - end - add_message "google.cloud.run.v2.EnvVar" do - optional :name, :string, 1 - oneof :values do - optional :value, :string, 2 - optional :value_source, :message, 3, "google.cloud.run.v2.EnvVarSource" - end - end - add_message "google.cloud.run.v2.EnvVarSource" do - optional :secret_key_ref, :message, 1, "google.cloud.run.v2.SecretKeySelector" - end - add_message "google.cloud.run.v2.SecretKeySelector" do - optional :secret, :string, 1 - optional :version, :string, 2 - end - add_message "google.cloud.run.v2.ContainerPort" do - optional :name, :string, 1 - optional :container_port, :int32, 3 - end - add_message "google.cloud.run.v2.VolumeMount" do - optional :name, :string, 1 - optional :mount_path, :string, 3 - end - add_message "google.cloud.run.v2.Volume" do - optional :name, :string, 1 - oneof :volume_type do - optional :secret, :message, 2, "google.cloud.run.v2.SecretVolumeSource" - optional :cloud_sql_instance, :message, 3, "google.cloud.run.v2.CloudSqlInstance" - end - end - add_message "google.cloud.run.v2.SecretVolumeSource" do - optional :secret, :string, 1 - repeated :items, :message, 2, "google.cloud.run.v2.VersionToPath" - optional :default_mode, :int32, 3 - end - add_message "google.cloud.run.v2.VersionToPath" do - optional :path, :string, 1 - optional :version, :string, 2 - optional :mode, :int32, 3 - end - add_message "google.cloud.run.v2.CloudSqlInstance" do - repeated :instances, :string, 1 - end - add_message "google.cloud.run.v2.Probe" do - optional :initial_delay_seconds, :int32, 1 - optional :timeout_seconds, :int32, 2 - optional :period_seconds, :int32, 3 - optional :failure_threshold, :int32, 4 - oneof :probe_type do - optional :http_get, :message, 5, "google.cloud.run.v2.HTTPGetAction" - optional :tcp_socket, :message, 6, "google.cloud.run.v2.TCPSocketAction" - optional :grpc, :message, 7, "google.cloud.run.v2.GRPCAction" - end - end - add_message "google.cloud.run.v2.HTTPGetAction" do - optional :path, :string, 1 - repeated :http_headers, :message, 4, "google.cloud.run.v2.HTTPHeader" - optional :port, :int32, 5 - end - add_message "google.cloud.run.v2.HTTPHeader" do - optional :name, :string, 1 - optional :value, :string, 2 - end - add_message "google.cloud.run.v2.TCPSocketAction" do - optional :port, :int32, 1 - end - add_message "google.cloud.run.v2.GRPCAction" do - optional :port, :int32, 1 - optional :service, :string, 2 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module Run