lib/google/cloud/notebooks/v1beta1/service_pb.rb in google-cloud-notebooks-v1beta1-0.6.1 vs lib/google/cloud/notebooks/v1beta1/service_pb.rb in google-cloud-notebooks-v1beta1-0.7.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/notebooks/v1beta1/service.proto
require 'google/protobuf'
@@ -9,111 +10,37 @@
require 'google/cloud/notebooks/v1beta1/environment_pb'
require 'google/cloud/notebooks/v1beta1/instance_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/timestamp_pb'
-Google::Protobuf::DescriptorPool.generated_pool.build do
- add_file("google/cloud/notebooks/v1beta1/service.proto", :syntax => :proto3) do
- add_message "google.cloud.notebooks.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_message, :string, 5
- optional :requested_cancellation, :bool, 6
- optional :api_version, :string, 7
- optional :endpoint, :string, 8
+
+descriptor_data = "\n,google/cloud/notebooks/v1beta1/service.proto\x12\x1egoogle.cloud.notebooks.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x30google/cloud/notebooks/v1beta1/environment.proto\x1a-google/cloud/notebooks/v1beta1/instance.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xef\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\x16\n\x0estatus_message\x18\x05 \x01(\t\x12\x1e\n\x16requested_cancellation\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x08 \x01(\t\"R\n\x14ListInstancesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x15ListInstancesResponse\x12;\n\tinstances\x18\x01 \x03(\x0b\x32(.google.cloud.notebooks.v1beta1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\'\n\x12GetInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x87\x01\n\x15\x43reateInstanceRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08instance\x18\x03 \x01(\x0b\x32(.google.cloud.notebooks.v1beta1.InstanceB\x03\xe0\x41\x02\"H\n\x17RegisterInstanceRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1dSetInstanceAcceleratorRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x04type\x18\x02 \x01(\x0e\x32\x38.google.cloud.notebooks.v1beta1.Instance.AcceleratorTypeB\x03\xe0\x41\x02\x12\x17\n\ncore_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02\"M\n\x1dSetInstanceMachineTypeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cmachine_type\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xb2\x01\n\x18SetInstanceLabelsRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\x06labels\x18\x02 \x03(\x0b\x32\x44.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"*\n\x15\x44\x65leteInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\")\n\x14StartInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"(\n\x13StopInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\")\n\x14ResetInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xce\x01\n\x19ReportInstanceInfoRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05vm_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x08metadata\x18\x03 \x03(\x0b\x32G.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\">\n\x1cIsInstanceUpgradeableRequest\x12\x1e\n\x11notebook_instance\x18\x01 \x01(\tB\x03\xe0\x41\x02\"z\n\x1dIsInstanceUpgradeableResponse\x12\x13\n\x0bupgradeable\x18\x01 \x01(\x08\x12\x17\n\x0fupgrade_version\x18\x02 \x01(\t\x12\x14\n\x0cupgrade_info\x18\x03 \x01(\t\x12\x15\n\rupgrade_image\x18\x04 \x01(\t\"+\n\x16UpgradeInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"G\n\x1eUpgradeInstanceInternalRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05vm_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"U\n\x17ListEnvironmentsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8b\x01\n\x18ListEnvironmentsResponse\x12\x41\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32+.google.cloud.notebooks.v1beta1.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"*\n\x15GetEnvironmentRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x93\x01\n\x18\x43reateEnvironmentRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x65nvironment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32+.google.cloud.notebooks.v1beta1.EnvironmentB\x03\xe0\x41\x02\"-\n\x18\x44\x65leteEnvironmentRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x32\x81 \n\x0fNotebookService\x12\xb8\x01\n\rListInstances\x12\x34.google.cloud.notebooks.v1beta1.ListInstancesRequest\x1a\x35.google.cloud.notebooks.v1beta1.ListInstancesResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{parent=projects/*/locations/*}/instances\x12\xa7\x01\n\x0bGetInstance\x12\x32.google.cloud.notebooks.v1beta1.GetInstanceRequest\x1a(.google.cloud.notebooks.v1beta1.Instance\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{name=projects/*/locations/*/instances/*}\x12\xcc\x01\n\x0e\x43reateInstance\x12\x35.google.cloud.notebooks.v1beta1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"d\x82\xd3\xe4\x93\x02>\"2/v1beta1/{parent=projects/*/locations/*}/instances:\x08instance\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xd2\x01\n\x10RegisterInstance\x12\x37.google.cloud.notebooks.v1beta1.RegisterInstanceRequest\x1a\x1d.google.longrunning.Operation\"f\x82\xd3\xe4\x93\x02@\";/v1beta1/{parent=projects/*/locations/*}/instances:register:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xe4\x01\n\x16SetInstanceAccelerator\x12=.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02\x46\x32\x41/v1beta1/{name=projects/*/locations/*/instances/*}:setAccelerator:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xe4\x01\n\x16SetInstanceMachineType\x12=.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02\x46\x32\x41/v1beta1/{name=projects/*/locations/*/instances/*}:setMachineType:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xd5\x01\n\x11SetInstanceLabels\x12\x38.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest\x1a\x1d.google.longrunning.Operation\"g\x82\xd3\xe4\x93\x02\x41\x32</v1beta1/{name=projects/*/locations/*/instances/*}:setLabels:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xcf\x01\n\x0e\x44\x65leteInstance\x12\x35.google.cloud.notebooks.v1beta1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"g\x82\xd3\xe4\x93\x02\x34*2/v1beta1/{name=projects/*/locations/*/instances/*}\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xc9\x01\n\rStartInstance\x12\x34.google.cloud.notebooks.v1beta1.StartInstanceRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02=\"8/v1beta1/{name=projects/*/locations/*/instances/*}:start:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xc6\x01\n\x0cStopInstance\x12\x33.google.cloud.notebooks.v1beta1.StopInstanceRequest\x1a\x1d.google.longrunning.Operation\"b\x82\xd3\xe4\x93\x02<\"7/v1beta1/{name=projects/*/locations/*/instances/*}:stop:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xc9\x01\n\rResetInstance\x12\x34.google.cloud.notebooks.v1beta1.ResetInstanceRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02=\"8/v1beta1/{name=projects/*/locations/*/instances/*}:reset:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xd4\x01\n\x12ReportInstanceInfo\x12\x39.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest\x1a\x1d.google.longrunning.Operation\"d\x82\xd3\xe4\x93\x02>\"9/v1beta1/{name=projects/*/locations/*/instances/*}:report:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xee\x01\n\x15IsInstanceUpgradeable\x12<.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest\x1a=.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse\"X\x88\x02\x01\x82\xd3\xe4\x93\x02O\x12M/v1beta1/{notebook_instance=projects/*/locations/*/instances/*}:isUpgradeable\x12\xd2\x01\n\x0fUpgradeInstance\x12\x36.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest\x1a\x1d.google.longrunning.Operation\"h\x88\x02\x01\x82\xd3\xe4\x93\x02?\":/v1beta1/{name=projects/*/locations/*/instances/*}:upgrade:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xea\x01\n\x17UpgradeInstanceInternal\x12>.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest\x1a\x1d.google.longrunning.Operation\"p\x88\x02\x01\x82\xd3\xe4\x93\x02G\"B/v1beta1/{name=projects/*/locations/*/instances/*}:upgradeInternal:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xc4\x01\n\x10ListEnvironments\x12\x37.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest\x1a\x38.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{parent=projects/*/locations/*}/environments\x12\xb3\x01\n\x0eGetEnvironment\x12\x35.google.cloud.notebooks.v1beta1.GetEnvironmentRequest\x1a+.google.cloud.notebooks.v1beta1.Environment\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{name=projects/*/locations/*/environments/*}\x12\xdb\x01\n\x11\x43reateEnvironment\x12\x38.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"m\x82\xd3\xe4\x93\x02\x44\"5/v1beta1/{parent=projects/*/locations/*}/environments:\x0b\x65nvironment\xca\x41 \n\x0b\x45nvironment\x12\x11OperationMetadata\x12\xd8\x01\n\x11\x44\x65leteEnvironment\x12\x38.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"j\x82\xd3\xe4\x93\x02\x37*5/v1beta1/{name=projects/*/locations/*/environments/*}\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x1aL\xca\x41\x18notebooks.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xde\x01\n\"com.google.cloud.notebooks.v1beta1B\x0eNotebooksProtoP\x01Z@cloud.google.com/go/notebooks/apiv1beta1/notebookspb;notebookspb\xaa\x02\x1eGoogle.Cloud.Notebooks.V1Beta1\xca\x02\x1eGoogle\\Cloud\\Notebooks\\V1beta1\xea\x02!Google::Cloud::Notebooks::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.cloud.notebooks.v1beta1.Instance", "google/cloud/notebooks/v1beta1/instance.proto"],
+ ["google.cloud.notebooks.v1beta1.Environment", "google/cloud/notebooks/v1beta1/environment.proto"],
+ ]
+ imports.each do |type_name, expected_filename|
+ import_file = pool.lookup(type_name).file_descriptor
+ if import_file.name != expected_filename
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
end
- add_message "google.cloud.notebooks.v1beta1.ListInstancesRequest" do
- optional :parent, :string, 1
- optional :page_size, :int32, 2
- optional :page_token, :string, 3
- end
- add_message "google.cloud.notebooks.v1beta1.ListInstancesResponse" do
- repeated :instances, :message, 1, "google.cloud.notebooks.v1beta1.Instance"
- optional :next_page_token, :string, 2
- repeated :unreachable, :string, 3
- end
- add_message "google.cloud.notebooks.v1beta1.GetInstanceRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.notebooks.v1beta1.CreateInstanceRequest" do
- optional :parent, :string, 1
- optional :instance_id, :string, 2
- optional :instance, :message, 3, "google.cloud.notebooks.v1beta1.Instance"
- end
- add_message "google.cloud.notebooks.v1beta1.RegisterInstanceRequest" do
- optional :parent, :string, 1
- optional :instance_id, :string, 2
- end
- add_message "google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest" do
- optional :name, :string, 1
- optional :type, :enum, 2, "google.cloud.notebooks.v1beta1.Instance.AcceleratorType"
- optional :core_count, :int64, 3
- end
- add_message "google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest" do
- optional :name, :string, 1
- optional :machine_type, :string, 2
- end
- add_message "google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest" do
- optional :name, :string, 1
- map :labels, :string, :string, 2
- end
- add_message "google.cloud.notebooks.v1beta1.DeleteInstanceRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.notebooks.v1beta1.StartInstanceRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.notebooks.v1beta1.StopInstanceRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.notebooks.v1beta1.ResetInstanceRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest" do
- optional :name, :string, 1
- optional :vm_id, :string, 2
- map :metadata, :string, :string, 3
- end
- add_message "google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest" do
- optional :notebook_instance, :string, 1
- end
- add_message "google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse" do
- optional :upgradeable, :bool, 1
- optional :upgrade_version, :string, 2
- optional :upgrade_info, :string, 3
- optional :upgrade_image, :string, 4
- end
- add_message "google.cloud.notebooks.v1beta1.UpgradeInstanceRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest" do
- optional :name, :string, 1
- optional :vm_id, :string, 2
- end
- add_message "google.cloud.notebooks.v1beta1.ListEnvironmentsRequest" do
- optional :parent, :string, 1
- optional :page_size, :int32, 2
- optional :page_token, :string, 3
- end
- add_message "google.cloud.notebooks.v1beta1.ListEnvironmentsResponse" do
- repeated :environments, :message, 1, "google.cloud.notebooks.v1beta1.Environment"
- optional :next_page_token, :string, 2
- repeated :unreachable, :string, 3
- end
- add_message "google.cloud.notebooks.v1beta1.GetEnvironmentRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.notebooks.v1beta1.CreateEnvironmentRequest" do
- optional :parent, :string, 1
- optional :environment_id, :string, 2
- optional :environment, :message, 3, "google.cloud.notebooks.v1beta1.Environment"
- end
- add_message "google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest" do
- optional :name, :string, 1
- 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 Notebooks