lib/google/appengine/v1/version_pb.rb in google-cloud-app_engine-v1-0.6.1 vs lib/google/appengine/v1/version_pb.rb in google-cloud-app_engine-v1-0.7.0

- old
+ new

@@ -1,169 +1,44 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/appengine/v1/version.proto require 'google/protobuf' require 'google/appengine/v1/app_yaml_pb' require 'google/appengine/v1/deploy_pb' require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/appengine/v1/version.proto", :syntax => :proto3) do - add_message "google.appengine.v1.Version" do - optional :name, :string, 1 - optional :id, :string, 2 - repeated :inbound_services, :enum, 6, "google.appengine.v1.InboundServiceType" - optional :instance_class, :string, 7 - optional :network, :message, 8, "google.appengine.v1.Network" - repeated :zones, :string, 118 - optional :resources, :message, 9, "google.appengine.v1.Resources" - optional :runtime, :string, 10 - optional :runtime_channel, :string, 117 - optional :threadsafe, :bool, 11 - optional :vm, :bool, 12 - optional :app_engine_apis, :bool, 128 - map :beta_settings, :string, :string, 13 - optional :env, :string, 14 - optional :serving_status, :enum, 15, "google.appengine.v1.ServingStatus" - optional :created_by, :string, 16 - optional :create_time, :message, 17, "google.protobuf.Timestamp" - optional :disk_usage_bytes, :int64, 18 - optional :runtime_api_version, :string, 21 - optional :runtime_main_executable_path, :string, 22 - optional :service_account, :string, 127 - repeated :handlers, :message, 100, "google.appengine.v1.UrlMap" - repeated :error_handlers, :message, 101, "google.appengine.v1.ErrorHandler" - repeated :libraries, :message, 102, "google.appengine.v1.Library" - optional :api_config, :message, 103, "google.appengine.v1.ApiConfigHandler" - map :env_variables, :string, :string, 104 - map :build_env_variables, :string, :string, 125 - optional :default_expiration, :message, 105, "google.protobuf.Duration" - optional :health_check, :message, 106, "google.appengine.v1.HealthCheck" - optional :readiness_check, :message, 112, "google.appengine.v1.ReadinessCheck" - optional :liveness_check, :message, 113, "google.appengine.v1.LivenessCheck" - optional :nobuild_files_regex, :string, 107 - optional :deployment, :message, 108, "google.appengine.v1.Deployment" - optional :version_url, :string, 109 - optional :endpoints_api_service, :message, 110, "google.appengine.v1.EndpointsApiService" - optional :entrypoint, :message, 122, "google.appengine.v1.Entrypoint" - optional :vpc_access_connector, :message, 121, "google.appengine.v1.VpcAccessConnector" - oneof :scaling do - optional :automatic_scaling, :message, 3, "google.appengine.v1.AutomaticScaling" - optional :basic_scaling, :message, 4, "google.appengine.v1.BasicScaling" - optional :manual_scaling, :message, 5, "google.appengine.v1.ManualScaling" - end + +descriptor_data = "\n!google/appengine/v1/version.proto\x12\x13google.appengine.v1\x1a\"google/appengine/v1/app_yaml.proto\x1a google/appengine/v1/deploy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x0f\n\x07Version\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x42\n\x11\x61utomatic_scaling\x18\x03 \x01(\x0b\x32%.google.appengine.v1.AutomaticScalingH\x00\x12:\n\rbasic_scaling\x18\x04 \x01(\x0b\x32!.google.appengine.v1.BasicScalingH\x00\x12<\n\x0emanual_scaling\x18\x05 \x01(\x0b\x32\".google.appengine.v1.ManualScalingH\x00\x12\x41\n\x10inbound_services\x18\x06 \x03(\x0e\x32\'.google.appengine.v1.InboundServiceType\x12\x16\n\x0einstance_class\x18\x07 \x01(\t\x12-\n\x07network\x18\x08 \x01(\x0b\x32\x1c.google.appengine.v1.Network\x12\r\n\x05zones\x18v \x03(\t\x12\x31\n\tresources\x18\t \x01(\x0b\x32\x1e.google.appengine.v1.Resources\x12\x0f\n\x07runtime\x18\n \x01(\t\x12\x17\n\x0fruntime_channel\x18u \x01(\t\x12\x12\n\nthreadsafe\x18\x0b \x01(\x08\x12\n\n\x02vm\x18\x0c \x01(\x08\x12\x18\n\x0f\x61pp_engine_apis\x18\x80\x01 \x01(\x08\x12\x45\n\rbeta_settings\x18\r \x03(\x0b\x32..google.appengine.v1.Version.BetaSettingsEntry\x12\x0b\n\x03\x65nv\x18\x0e \x01(\t\x12:\n\x0eserving_status\x18\x0f \x01(\x0e\x32\".google.appengine.v1.ServingStatus\x12\x12\n\ncreated_by\x18\x10 \x01(\t\x12/\n\x0b\x63reate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x64isk_usage_bytes\x18\x12 \x01(\x03\x12\x1b\n\x13runtime_api_version\x18\x15 \x01(\t\x12$\n\x1cruntime_main_executable_path\x18\x16 \x01(\t\x12\x17\n\x0fservice_account\x18\x7f \x01(\t\x12-\n\x08handlers\x18\x64 \x03(\x0b\x32\x1b.google.appengine.v1.UrlMap\x12\x39\n\x0e\x65rror_handlers\x18\x65 \x03(\x0b\x32!.google.appengine.v1.ErrorHandler\x12/\n\tlibraries\x18\x66 \x03(\x0b\x32\x1c.google.appengine.v1.Library\x12\x39\n\napi_config\x18g \x01(\x0b\x32%.google.appengine.v1.ApiConfigHandler\x12\x45\n\renv_variables\x18h \x03(\x0b\x32..google.appengine.v1.Version.EnvVariablesEntry\x12P\n\x13\x62uild_env_variables\x18} \x03(\x0b\x32\x33.google.appengine.v1.Version.BuildEnvVariablesEntry\x12\x35\n\x12\x64\x65\x66\x61ult_expiration\x18i \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x0chealth_check\x18j \x01(\x0b\x32 .google.appengine.v1.HealthCheck\x12<\n\x0freadiness_check\x18p \x01(\x0b\x32#.google.appengine.v1.ReadinessCheck\x12:\n\x0eliveness_check\x18q \x01(\x0b\x32\".google.appengine.v1.LivenessCheck\x12\x1b\n\x13nobuild_files_regex\x18k \x01(\t\x12\x33\n\ndeployment\x18l \x01(\x0b\x32\x1f.google.appengine.v1.Deployment\x12\x13\n\x0bversion_url\x18m \x01(\t\x12G\n\x15\x65ndpoints_api_service\x18n \x01(\x0b\x32(.google.appengine.v1.EndpointsApiService\x12\x33\n\nentrypoint\x18z \x01(\x0b\x32\x1f.google.appengine.v1.Entrypoint\x12\x45\n\x14vpc_access_connector\x18y \x01(\x0b\x32\'.google.appengine.v1.VpcAccessConnector\x1a\x33\n\x11\x42\x65taSettingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11\x45nvVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x38\n\x16\x42uildEnvVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07scaling\"\xf7\x01\n\x13\x45ndpointsApiService\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tconfig_id\x18\x02 \x01(\t\x12R\n\x10rollout_strategy\x18\x03 \x01(\x0e\x32\x38.google.appengine.v1.EndpointsApiService.RolloutStrategy\x12\x1e\n\x16\x64isable_trace_sampling\x18\x04 \x01(\x08\"K\n\x0fRolloutStrategy\x12 \n\x1cUNSPECIFIED_ROLLOUT_STRATEGY\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x0b\n\x07MANAGED\x10\x02\"\xa9\x05\n\x10\x41utomaticScaling\x12\x33\n\x10\x63ool_down_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x0f\x63pu_utilization\x18\x02 \x01(\x0b\x32#.google.appengine.v1.CpuUtilization\x12\x1f\n\x17max_concurrent_requests\x18\x03 \x01(\x05\x12\x1a\n\x12max_idle_instances\x18\x04 \x01(\x05\x12\x1b\n\x13max_total_instances\x18\x05 \x01(\x05\x12\x36\n\x13max_pending_latency\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\x12min_idle_instances\x18\x07 \x01(\x05\x12\x1b\n\x13min_total_instances\x18\x08 \x01(\x05\x12\x36\n\x13min_pending_latency\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x13request_utilization\x18\n \x01(\x0b\x32\'.google.appengine.v1.RequestUtilization\x12>\n\x10\x64isk_utilization\x18\x0b \x01(\x0b\x32$.google.appengine.v1.DiskUtilization\x12\x44\n\x13network_utilization\x18\x0c \x01(\x0b\x32\'.google.appengine.v1.NetworkUtilization\x12S\n\x1bstandard_scheduler_settings\x18\x14 \x01(\x0b\x32..google.appengine.v1.StandardSchedulerSettings\"V\n\x0c\x42\x61sicScaling\x12/\n\x0cidle_timeout\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_instances\x18\x02 \x01(\x05\"\"\n\rManualScaling\x12\x11\n\tinstances\x18\x01 \x01(\x05\"j\n\x0e\x43puUtilization\x12<\n\x19\x61ggregation_window_length\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\x12target_utilization\x18\x02 \x01(\x01\"a\n\x12RequestUtilization\x12\'\n\x1ftarget_request_count_per_second\x18\x01 \x01(\x05\x12\"\n\x1atarget_concurrent_requests\x18\x02 \x01(\x05\"\xa7\x01\n\x0f\x44iskUtilization\x12%\n\x1dtarget_write_bytes_per_second\x18\x0e \x01(\x05\x12#\n\x1btarget_write_ops_per_second\x18\x0f \x01(\x05\x12$\n\x1ctarget_read_bytes_per_second\x18\x10 \x01(\x05\x12\"\n\x1atarget_read_ops_per_second\x18\x11 \x01(\x05\"\xb8\x01\n\x12NetworkUtilization\x12$\n\x1ctarget_sent_bytes_per_second\x18\x01 \x01(\x05\x12&\n\x1etarget_sent_packets_per_second\x18\x0b \x01(\x05\x12(\n target_received_bytes_per_second\x18\x0c \x01(\x05\x12*\n\"target_received_packets_per_second\x18\r \x01(\x05\"\x90\x01\n\x19StandardSchedulerSettings\x12\x1e\n\x16target_cpu_utilization\x18\x01 \x01(\x01\x12%\n\x1dtarget_throughput_utilization\x18\x02 \x01(\x01\x12\x15\n\rmin_instances\x18\x03 \x01(\x05\x12\x15\n\rmax_instances\x18\x04 \x01(\x05\"y\n\x07Network\x12\x17\n\x0f\x66orwarded_ports\x18\x01 \x03(\t\x12\x14\n\x0cinstance_tag\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x17\n\x0fsubnetwork_name\x18\x04 \x01(\t\x12\x18\n\x10session_affinity\x18\x05 \x01(\x08\"<\n\x06Volume\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0bvolume_type\x18\x02 \x01(\t\x12\x0f\n\x07size_gb\x18\x03 \x01(\x01\"\x85\x01\n\tResources\x12\x0b\n\x03\x63pu\x18\x01 \x01(\x01\x12\x0f\n\x07\x64isk_gb\x18\x02 \x01(\x01\x12\x11\n\tmemory_gb\x18\x03 \x01(\x01\x12,\n\x07volumes\x18\x04 \x03(\x0b\x32\x1b.google.appengine.v1.Volume\x12\x19\n\x11kms_key_reference\x18\x05 \x01(\t\"\xca\x01\n\x12VpcAccessConnector\x12\x0c\n\x04name\x18\x01 \x01(\t\x12M\n\x0e\x65gress_setting\x18\x02 \x01(\x0e\x32\x35.google.appengine.v1.VpcAccessConnector.EgressSetting\"W\n\rEgressSetting\x12\x1e\n\x1a\x45GRESS_SETTING_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x01\x12\x15\n\x11PRIVATE_IP_RANGES\x10\x02\"(\n\nEntrypoint\x12\x0f\n\x05shell\x18\x01 \x01(\tH\x00\x42\t\n\x07\x63ommand*\xbb\x02\n\x12InboundServiceType\x12\x1f\n\x1bINBOUND_SERVICE_UNSPECIFIED\x10\x00\x12\x18\n\x14INBOUND_SERVICE_MAIL\x10\x01\x12\x1f\n\x1bINBOUND_SERVICE_MAIL_BOUNCE\x10\x02\x12\x1e\n\x1aINBOUND_SERVICE_XMPP_ERROR\x10\x03\x12 \n\x1cINBOUND_SERVICE_XMPP_MESSAGE\x10\x04\x12\"\n\x1eINBOUND_SERVICE_XMPP_SUBSCRIBE\x10\x05\x12!\n\x1dINBOUND_SERVICE_XMPP_PRESENCE\x10\x06\x12$\n INBOUND_SERVICE_CHANNEL_PRESENCE\x10\x07\x12\x1a\n\x16INBOUND_SERVICE_WARMUP\x10\t*I\n\rServingStatus\x12\x1e\n\x1aSERVING_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07SERVING\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x42\xbd\x01\n\x17\x63om.google.appengine.v1B\x0cVersionProtoP\x01Z;cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb\xaa\x02\x19Google.Cloud.AppEngine.V1\xca\x02\x19Google\\Cloud\\AppEngine\\V1\xea\x02\x1cGoogle::Cloud::AppEngine::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.appengine.v1.UrlMap", "google/appengine/v1/app_yaml.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.appengine.v1.Deployment", "google/appengine/v1/deploy.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_message "google.appengine.v1.EndpointsApiService" do - optional :name, :string, 1 - optional :config_id, :string, 2 - optional :rollout_strategy, :enum, 3, "google.appengine.v1.EndpointsApiService.RolloutStrategy" - optional :disable_trace_sampling, :bool, 4 - end - add_enum "google.appengine.v1.EndpointsApiService.RolloutStrategy" do - value :UNSPECIFIED_ROLLOUT_STRATEGY, 0 - value :FIXED, 1 - value :MANAGED, 2 - end - add_message "google.appengine.v1.AutomaticScaling" do - optional :cool_down_period, :message, 1, "google.protobuf.Duration" - optional :cpu_utilization, :message, 2, "google.appengine.v1.CpuUtilization" - optional :max_concurrent_requests, :int32, 3 - optional :max_idle_instances, :int32, 4 - optional :max_total_instances, :int32, 5 - optional :max_pending_latency, :message, 6, "google.protobuf.Duration" - optional :min_idle_instances, :int32, 7 - optional :min_total_instances, :int32, 8 - optional :min_pending_latency, :message, 9, "google.protobuf.Duration" - optional :request_utilization, :message, 10, "google.appengine.v1.RequestUtilization" - optional :disk_utilization, :message, 11, "google.appengine.v1.DiskUtilization" - optional :network_utilization, :message, 12, "google.appengine.v1.NetworkUtilization" - optional :standard_scheduler_settings, :message, 20, "google.appengine.v1.StandardSchedulerSettings" - end - add_message "google.appengine.v1.BasicScaling" do - optional :idle_timeout, :message, 1, "google.protobuf.Duration" - optional :max_instances, :int32, 2 - end - add_message "google.appengine.v1.ManualScaling" do - optional :instances, :int32, 1 - end - add_message "google.appengine.v1.CpuUtilization" do - optional :aggregation_window_length, :message, 1, "google.protobuf.Duration" - optional :target_utilization, :double, 2 - end - add_message "google.appengine.v1.RequestUtilization" do - optional :target_request_count_per_second, :int32, 1 - optional :target_concurrent_requests, :int32, 2 - end - add_message "google.appengine.v1.DiskUtilization" do - optional :target_write_bytes_per_second, :int32, 14 - optional :target_write_ops_per_second, :int32, 15 - optional :target_read_bytes_per_second, :int32, 16 - optional :target_read_ops_per_second, :int32, 17 - end - add_message "google.appengine.v1.NetworkUtilization" do - optional :target_sent_bytes_per_second, :int32, 1 - optional :target_sent_packets_per_second, :int32, 11 - optional :target_received_bytes_per_second, :int32, 12 - optional :target_received_packets_per_second, :int32, 13 - end - add_message "google.appengine.v1.StandardSchedulerSettings" do - optional :target_cpu_utilization, :double, 1 - optional :target_throughput_utilization, :double, 2 - optional :min_instances, :int32, 3 - optional :max_instances, :int32, 4 - end - add_message "google.appengine.v1.Network" do - repeated :forwarded_ports, :string, 1 - optional :instance_tag, :string, 2 - optional :name, :string, 3 - optional :subnetwork_name, :string, 4 - optional :session_affinity, :bool, 5 - end - add_message "google.appengine.v1.Volume" do - optional :name, :string, 1 - optional :volume_type, :string, 2 - optional :size_gb, :double, 3 - end - add_message "google.appengine.v1.Resources" do - optional :cpu, :double, 1 - optional :disk_gb, :double, 2 - optional :memory_gb, :double, 3 - repeated :volumes, :message, 4, "google.appengine.v1.Volume" - optional :kms_key_reference, :string, 5 - end - add_message "google.appengine.v1.VpcAccessConnector" do - optional :name, :string, 1 - optional :egress_setting, :enum, 2, "google.appengine.v1.VpcAccessConnector.EgressSetting" - end - add_enum "google.appengine.v1.VpcAccessConnector.EgressSetting" do - value :EGRESS_SETTING_UNSPECIFIED, 0 - value :ALL_TRAFFIC, 1 - value :PRIVATE_IP_RANGES, 2 - end - add_message "google.appengine.v1.Entrypoint" do - oneof :command do - optional :shell, :string, 1 - end - end - add_enum "google.appengine.v1.InboundServiceType" do - value :INBOUND_SERVICE_UNSPECIFIED, 0 - value :INBOUND_SERVICE_MAIL, 1 - value :INBOUND_SERVICE_MAIL_BOUNCE, 2 - value :INBOUND_SERVICE_XMPP_ERROR, 3 - value :INBOUND_SERVICE_XMPP_MESSAGE, 4 - value :INBOUND_SERVICE_XMPP_SUBSCRIBE, 5 - value :INBOUND_SERVICE_XMPP_PRESENCE, 6 - value :INBOUND_SERVICE_CHANNEL_PRESENCE, 7 - value :INBOUND_SERVICE_WARMUP, 9 - end - add_enum "google.appengine.v1.ServingStatus" do - value :SERVING_STATUS_UNSPECIFIED, 0 - value :SERVING, 1 - value :STOPPED, 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 AppEngine