google-cloud-notebooks-v1 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/notebooks/v1/managed_service.proto
3
4
 
@@ -14,76 +15,36 @@ require 'google/longrunning/operations_pb'
14
15
  require 'google/protobuf/field_mask_pb'
15
16
  require 'google/protobuf/timestamp_pb'
16
17
 
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_file("google/cloud/notebooks/v1/managed_service.proto", :syntax => :proto3) do
19
- add_message "google.cloud.notebooks.v1.ListRuntimesRequest" do
20
- optional :parent, :string, 1
21
- optional :page_size, :int32, 2
22
- optional :page_token, :string, 3
23
- end
24
- add_message "google.cloud.notebooks.v1.ListRuntimesResponse" do
25
- repeated :runtimes, :message, 1, "google.cloud.notebooks.v1.Runtime"
26
- optional :next_page_token, :string, 2
27
- repeated :unreachable, :string, 3
28
- end
29
- add_message "google.cloud.notebooks.v1.GetRuntimeRequest" do
30
- optional :name, :string, 1
31
- end
32
- add_message "google.cloud.notebooks.v1.CreateRuntimeRequest" do
33
- optional :parent, :string, 1
34
- optional :runtime_id, :string, 2
35
- optional :runtime, :message, 3, "google.cloud.notebooks.v1.Runtime"
36
- optional :request_id, :string, 4
37
- end
38
- add_message "google.cloud.notebooks.v1.DeleteRuntimeRequest" do
39
- optional :name, :string, 1
40
- optional :request_id, :string, 2
41
- end
42
- add_message "google.cloud.notebooks.v1.StartRuntimeRequest" do
43
- optional :name, :string, 1
44
- optional :request_id, :string, 2
45
- end
46
- add_message "google.cloud.notebooks.v1.StopRuntimeRequest" do
47
- optional :name, :string, 1
48
- optional :request_id, :string, 2
49
- end
50
- add_message "google.cloud.notebooks.v1.SwitchRuntimeRequest" do
51
- optional :name, :string, 1
52
- optional :machine_type, :string, 2
53
- optional :accelerator_config, :message, 3, "google.cloud.notebooks.v1.RuntimeAcceleratorConfig"
54
- optional :request_id, :string, 4
55
- end
56
- add_message "google.cloud.notebooks.v1.ResetRuntimeRequest" do
57
- optional :name, :string, 1
58
- optional :request_id, :string, 2
59
- end
60
- add_message "google.cloud.notebooks.v1.UpgradeRuntimeRequest" do
61
- optional :name, :string, 1
62
- optional :request_id, :string, 2
63
- end
64
- add_message "google.cloud.notebooks.v1.ReportRuntimeEventRequest" do
65
- optional :name, :string, 1
66
- optional :vm_id, :string, 2
67
- optional :event, :message, 3, "google.cloud.notebooks.v1.Event"
68
- end
69
- add_message "google.cloud.notebooks.v1.UpdateRuntimeRequest" do
70
- optional :runtime, :message, 1, "google.cloud.notebooks.v1.Runtime"
71
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
72
- optional :request_id, :string, 3
73
- end
74
- add_message "google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest" do
75
- optional :name, :string, 1
76
- optional :vm_id, :string, 2
77
- end
78
- add_message "google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse" do
79
- optional :access_token, :string, 1
80
- optional :expire_time, :message, 2, "google.protobuf.Timestamp"
81
- end
82
- add_message "google.cloud.notebooks.v1.DiagnoseRuntimeRequest" do
83
- optional :name, :string, 1
84
- optional :diagnostic_config, :message, 2, "google.cloud.notebooks.v1.DiagnosticConfig"
18
+
19
+ descriptor_data = "\n/google/cloud/notebooks/v1/managed_service.proto\x12\x19google.cloud.notebooks.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/notebooks/v1/diagnostic_config.proto\x1a%google/cloud/notebooks/v1/event.proto\x1a\'google/cloud/notebooks/v1/runtime.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"v\n\x13ListRuntimesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 notebooks.googleapis.com/Runtime\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x14ListRuntimesResponse\x12\x34\n\x08runtimes\x18\x01 \x03(\x0b\x32\".google.cloud.notebooks.v1.Runtime\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"K\n\x11GetRuntimeRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\"\xb7\x01\n\x14\x43reateRuntimeRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12\x17\n\nruntime_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\x07runtime\x18\x03 \x01(\x0b\x32\".google.cloud.notebooks.v1.RuntimeB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"b\n\x14\x44\x65leteRuntimeRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"<\n\x13StartRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x02 \x01(\t\";\n\x12StopRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"\xa4\x01\n\x14SwitchRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0cmachine_type\x18\x02 \x01(\t\x12O\n\x12\x61\x63\x63\x65lerator_config\x18\x03 \x01(\x0b\x32\x33.google.cloud.notebooks.v1.RuntimeAcceleratorConfig\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"<\n\x13ResetRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x02 \x01(\t\">\n\x15UpgradeRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"\x9d\x01\n\x19ReportRuntimeEventRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12\x12\n\x05vm_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x05\x65vent\x18\x03 \x01(\x0b\x32 .google.cloud.notebooks.v1.EventB\x03\xe0\x41\x02\"\x9a\x01\n\x14UpdateRuntimeRequest\x12\x38\n\x07runtime\x18\x01 \x01(\x0b\x32\".google.cloud.notebooks.v1.RuntimeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x03 \x01(\t\"p\n\"RefreshRuntimeTokenInternalRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12\x12\n\x05vm_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"q\n#RefreshRuntimeTokenInternalResponse\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\t\x12\x34\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x9d\x01\n\x16\x44iagnoseRuntimeRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12K\n\x11\x64iagnostic_config\x18\x02 \x01(\x0b\x32+.google.cloud.notebooks.v1.DiagnosticConfigB\x03\xe0\x41\x02\x32\xd2\x15\n\x16ManagedNotebookService\x12\xae\x01\n\x0cListRuntimes\x12..google.cloud.notebooks.v1.ListRuntimesRequest\x1a/.google.cloud.notebooks.v1.ListRuntimesResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/runtimes\xda\x41\x06parent\x12\x9b\x01\n\nGetRuntime\x12,.google.cloud.notebooks.v1.GetRuntimeRequest\x1a\".google.cloud.notebooks.v1.Runtime\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/runtimes/*}\xda\x41\x04name\x12\xd9\x01\n\rCreateRuntime\x12/.google.cloud.notebooks.v1.CreateRuntimeRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/runtimes:\x07runtime\xda\x41\x19parent,runtime_id,runtime\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xdb\x01\n\rUpdateRuntime\x12/.google.cloud.notebooks.v1.UpdateRuntimeRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02?24/v1/{runtime.name=projects/*/locations/*/runtimes/*}:\x07runtime\xda\x41\x13runtime,update_mask\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xc9\x01\n\rDeleteRuntime\x12/.google.cloud.notebooks.v1.DeleteRuntimeRequest\x1a\x1d.google.longrunning.Operation\"h\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/runtimes/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xc2\x01\n\x0cStartRuntime\x12..google.cloud.notebooks.v1.StartRuntimeRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/runtimes/*}:start:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xbf\x01\n\x0bStopRuntime\x12-.google.cloud.notebooks.v1.StopRuntimeRequest\x1a\x1d.google.longrunning.Operation\"b\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/locations/*/runtimes/*}:stop:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xc5\x01\n\rSwitchRuntime\x12/.google.cloud.notebooks.v1.SwitchRuntimeRequest\x1a\x1d.google.longrunning.Operation\"d\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/runtimes/*}:switch:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xc2\x01\n\x0cResetRuntime\x12..google.cloud.notebooks.v1.ResetRuntimeRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/runtimes/*}:reset:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xc8\x01\n\x0eUpgradeRuntime\x12\x30.google.cloud.notebooks.v1.UpgradeRuntimeRequest\x1a\x1d.google.longrunning.Operation\"e\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/locations/*/runtimes/*}:upgrade:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xd4\x01\n\x12ReportRuntimeEvent\x12\x34.google.cloud.notebooks.v1.ReportRuntimeEventRequest\x1a\x1d.google.longrunning.Operation\"i\x82\xd3\xe4\x93\x02=\"8/v1/{name=projects/*/locations/*/runtimes/*}:reportEvent:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xfe\x01\n\x1bRefreshRuntimeTokenInternal\x12=.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest\x1a>.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse\"`\x82\xd3\xe4\x93\x02M\"H/v1/{name=projects/*/locations/*/runtimes/*}:refreshRuntimeTokenInternal:\x01*\xda\x41\nname,vm_id\x12\xdd\x01\n\x0f\x44iagnoseRuntime\x12\x31.google.cloud.notebooks.v1.DiagnoseRuntimeRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/runtimes/*}:diagnose:\x01*\xda\x41\x16name,diagnostic_config\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x1aL\xca\x41\x18notebooks.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcc\x01\n\x1d\x63om.google.cloud.notebooks.v1B\x15ManagedNotebooksProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb\xaa\x02\x19Google.Cloud.Notebooks.V1\xca\x02\x19Google\\Cloud\\Notebooks\\V1\xea\x02\x1cGoogle::Cloud::Notebooks::V1b\x06proto3"
20
+
21
+ pool = Google::Protobuf::DescriptorPool.generated_pool
22
+
23
+ begin
24
+ pool.add_serialized_file(descriptor_data)
25
+ rescue TypeError => e
26
+ # Compatibility code: will be removed in the next major version.
27
+ require 'google/protobuf/descriptor_pb'
28
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
29
+ parsed.clear_dependency
30
+ serialized = parsed.class.encode(parsed)
31
+ file = pool.add_serialized_file(serialized)
32
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
33
+ imports = [
34
+ ["google.cloud.notebooks.v1.Runtime", "google/cloud/notebooks/v1/runtime.proto"],
35
+ ["google.cloud.notebooks.v1.Event", "google/cloud/notebooks/v1/event.proto"],
36
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
37
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
38
+ ["google.cloud.notebooks.v1.DiagnosticConfig", "google/cloud/notebooks/v1/diagnostic_config.proto"],
39
+ ]
40
+ imports.each do |type_name, expected_filename|
41
+ import_file = pool.lookup(type_name).file_descriptor
42
+ if import_file.name != expected_filename
43
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
85
44
  end
86
45
  end
46
+ warn "Each proto file must use a consistent fully-qualified name."
47
+ warn "This will become an error in the next major version."
87
48
  end
88
49
 
89
50
  module Google
@@ -3521,9 +3521,9 @@ module Google
3521
3521
  # * (`String`) The path to a service account key file in JSON format
3522
3522
  # * (`Hash`) A service account key as a Hash
3523
3523
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3524
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3524
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3525
3525
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3526
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3526
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3527
3527
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3528
3528
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3529
3529
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -2551,9 +2551,9 @@ module Google
2551
2551
  # * (`String`) The path to a service account key file in JSON format
2552
2552
  # * (`Hash`) A service account key as a Hash
2553
2553
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2554
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2554
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2555
2555
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2556
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2556
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2557
2557
  # * (`nil`) indicating no credentials
2558
2558
  # @return [::Object]
2559
2559
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/notebooks/v1/runtime.proto
3
4
 
@@ -8,160 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/notebooks/v1/environment_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/notebooks/v1/runtime.proto", :syntax => :proto3) do
13
- add_message "google.cloud.notebooks.v1.Runtime" do
14
- optional :name, :string, 1
15
- optional :state, :enum, 3, "google.cloud.notebooks.v1.Runtime.State"
16
- optional :health_state, :enum, 4, "google.cloud.notebooks.v1.Runtime.HealthState"
17
- optional :access_config, :message, 5, "google.cloud.notebooks.v1.RuntimeAccessConfig"
18
- optional :software_config, :message, 6, "google.cloud.notebooks.v1.RuntimeSoftwareConfig"
19
- optional :metrics, :message, 7, "google.cloud.notebooks.v1.RuntimeMetrics"
20
- optional :create_time, :message, 20, "google.protobuf.Timestamp"
21
- optional :update_time, :message, 21, "google.protobuf.Timestamp"
22
- oneof :runtime_type do
23
- optional :virtual_machine, :message, 2, "google.cloud.notebooks.v1.VirtualMachine"
24
- end
25
- end
26
- add_enum "google.cloud.notebooks.v1.Runtime.State" do
27
- value :STATE_UNSPECIFIED, 0
28
- value :STARTING, 1
29
- value :PROVISIONING, 2
30
- value :ACTIVE, 3
31
- value :STOPPING, 4
32
- value :STOPPED, 5
33
- value :DELETING, 6
34
- value :UPGRADING, 7
35
- value :INITIALIZING, 8
36
- end
37
- add_enum "google.cloud.notebooks.v1.Runtime.HealthState" do
38
- value :HEALTH_STATE_UNSPECIFIED, 0
39
- value :HEALTHY, 1
40
- value :UNHEALTHY, 2
41
- value :AGENT_NOT_INSTALLED, 3
42
- value :AGENT_NOT_RUNNING, 4
43
- end
44
- add_message "google.cloud.notebooks.v1.RuntimeAcceleratorConfig" do
45
- optional :type, :enum, 1, "google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType"
46
- optional :core_count, :int64, 2
47
- end
48
- add_enum "google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType" do
49
- value :ACCELERATOR_TYPE_UNSPECIFIED, 0
50
- value :NVIDIA_TESLA_K80, 1
51
- value :NVIDIA_TESLA_P100, 2
52
- value :NVIDIA_TESLA_V100, 3
53
- value :NVIDIA_TESLA_P4, 4
54
- value :NVIDIA_TESLA_T4, 5
55
- value :NVIDIA_TESLA_A100, 6
56
- value :TPU_V2, 7
57
- value :TPU_V3, 8
58
- value :NVIDIA_TESLA_T4_VWS, 9
59
- value :NVIDIA_TESLA_P100_VWS, 10
60
- value :NVIDIA_TESLA_P4_VWS, 11
61
- end
62
- add_message "google.cloud.notebooks.v1.EncryptionConfig" do
63
- optional :kms_key, :string, 1
64
- end
65
- add_message "google.cloud.notebooks.v1.LocalDisk" do
66
- optional :auto_delete, :bool, 1
67
- optional :boot, :bool, 2
68
- optional :device_name, :string, 3
69
- repeated :guest_os_features, :message, 4, "google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature"
70
- optional :index, :int32, 5
71
- optional :initialize_params, :message, 6, "google.cloud.notebooks.v1.LocalDiskInitializeParams"
72
- optional :interface, :string, 7
73
- optional :kind, :string, 8
74
- repeated :licenses, :string, 9
75
- optional :mode, :string, 10
76
- optional :source, :string, 11
77
- optional :type, :string, 12
78
- end
79
- add_message "google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature" do
80
- optional :type, :string, 1
81
- end
82
- add_message "google.cloud.notebooks.v1.LocalDiskInitializeParams" do
83
- optional :description, :string, 1
84
- optional :disk_name, :string, 2
85
- optional :disk_size_gb, :int64, 3
86
- optional :disk_type, :enum, 4, "google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType"
87
- map :labels, :string, :string, 5
88
- end
89
- add_enum "google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType" do
90
- value :DISK_TYPE_UNSPECIFIED, 0
91
- value :PD_STANDARD, 1
92
- value :PD_SSD, 2
93
- value :PD_BALANCED, 3
94
- value :PD_EXTREME, 4
95
- end
96
- add_message "google.cloud.notebooks.v1.RuntimeAccessConfig" do
97
- optional :access_type, :enum, 1, "google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType"
98
- optional :runtime_owner, :string, 2
99
- optional :proxy_uri, :string, 3
100
- end
101
- add_enum "google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType" do
102
- value :RUNTIME_ACCESS_TYPE_UNSPECIFIED, 0
103
- value :SINGLE_USER, 1
104
- value :SERVICE_ACCOUNT, 2
105
- end
106
- add_message "google.cloud.notebooks.v1.RuntimeSoftwareConfig" do
107
- optional :notebook_upgrade_schedule, :string, 1
108
- proto3_optional :enable_health_monitoring, :bool, 2
109
- proto3_optional :idle_shutdown, :bool, 3
110
- optional :idle_shutdown_timeout, :int32, 4
111
- optional :install_gpu_driver, :bool, 5
112
- optional :custom_gpu_driver_path, :string, 6
113
- optional :post_startup_script, :string, 7
114
- repeated :kernels, :message, 8, "google.cloud.notebooks.v1.ContainerImage"
115
- proto3_optional :upgradeable, :bool, 9
116
- optional :post_startup_script_behavior, :enum, 10, "google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior"
117
- proto3_optional :disable_terminal, :bool, 11
118
- proto3_optional :version, :string, 12
119
- end
120
- add_enum "google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior" do
121
- value :POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED, 0
122
- value :RUN_EVERY_START, 1
123
- value :DOWNLOAD_AND_RUN_EVERY_START, 2
124
- end
125
- add_message "google.cloud.notebooks.v1.RuntimeMetrics" do
126
- map :system_metrics, :string, :string, 1
127
- end
128
- add_message "google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig" do
129
- optional :enable_secure_boot, :bool, 1
130
- optional :enable_vtpm, :bool, 2
131
- optional :enable_integrity_monitoring, :bool, 3
132
- end
133
- add_message "google.cloud.notebooks.v1.VirtualMachine" do
134
- optional :instance_name, :string, 1
135
- optional :instance_id, :string, 2
136
- optional :virtual_machine_config, :message, 3, "google.cloud.notebooks.v1.VirtualMachineConfig"
137
- end
138
- add_message "google.cloud.notebooks.v1.VirtualMachineConfig" do
139
- optional :zone, :string, 1
140
- optional :machine_type, :string, 2
141
- repeated :container_images, :message, 3, "google.cloud.notebooks.v1.ContainerImage"
142
- optional :data_disk, :message, 4, "google.cloud.notebooks.v1.LocalDisk"
143
- optional :encryption_config, :message, 5, "google.cloud.notebooks.v1.EncryptionConfig"
144
- optional :shielded_instance_config, :message, 6, "google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig"
145
- optional :accelerator_config, :message, 7, "google.cloud.notebooks.v1.RuntimeAcceleratorConfig"
146
- optional :network, :string, 8
147
- optional :subnet, :string, 9
148
- optional :internal_ip_only, :bool, 10
149
- repeated :tags, :string, 13
150
- map :guest_attributes, :string, :string, 14
151
- map :metadata, :string, :string, 15
152
- map :labels, :string, :string, 16
153
- optional :nic_type, :enum, 17, "google.cloud.notebooks.v1.VirtualMachineConfig.NicType"
154
- optional :reserved_ip_range, :string, 18
155
- optional :boot_image, :message, 19, "google.cloud.notebooks.v1.VirtualMachineConfig.BootImage"
156
- end
157
- add_message "google.cloud.notebooks.v1.VirtualMachineConfig.BootImage" do
158
- end
159
- add_enum "google.cloud.notebooks.v1.VirtualMachineConfig.NicType" do
160
- value :UNSPECIFIED_NIC_TYPE, 0
161
- value :VIRTIO_NET, 1
162
- value :GVNIC, 2
12
+
13
+ descriptor_data = "\n\'google/cloud/notebooks/v1/runtime.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/notebooks/v1/environment.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x07\n\x07Runtime\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x0fvirtual_machine\x18\x02 \x01(\x0b\x32).google.cloud.notebooks.v1.VirtualMachineH\x00\x12<\n\x05state\x18\x03 \x01(\x0e\x32(.google.cloud.notebooks.v1.Runtime.StateB\x03\xe0\x41\x03\x12I\n\x0chealth_state\x18\x04 \x01(\x0e\x32..google.cloud.notebooks.v1.Runtime.HealthStateB\x03\xe0\x41\x03\x12\x45\n\raccess_config\x18\x05 \x01(\x0b\x32..google.cloud.notebooks.v1.RuntimeAccessConfig\x12I\n\x0fsoftware_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.notebooks.v1.RuntimeSoftwareConfig\x12?\n\x07metrics\x18\x07 \x01(\x0b\x32).google.cloud.notebooks.v1.RuntimeMetricsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x94\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STARTING\x10\x01\x12\x10\n\x0cPROVISIONING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\r\n\tUPGRADING\x10\x07\x12\x10\n\x0cINITIALIZING\x10\x08\"w\n\x0bHealthState\x12\x1c\n\x18HEALTH_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\r\n\tUNHEALTHY\x10\x02\x12\x17\n\x13\x41GENT_NOT_INSTALLED\x10\x03\x12\x15\n\x11\x41GENT_NOT_RUNNING\x10\x04:a\xea\x41^\n notebooks.googleapis.com/Runtime\x12:projects/{project}/locations/{location}/runtimes/{runtime}B\x0e\n\x0cruntime_type\"\xa5\x03\n\x18RuntimeAcceleratorConfig\x12Q\n\x04type\x18\x01 \x01(\x0e\x32\x43.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType\x12\x12\n\ncore_count\x18\x02 \x01(\x03\"\xa1\x02\n\x0f\x41\x63\x63\x65leratorType\x12 \n\x1c\x41\x43\x43\x45LERATOR_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x10NVIDIA_TESLA_K80\x10\x01\x1a\x02\x08\x01\x12\x15\n\x11NVIDIA_TESLA_P100\x10\x02\x12\x15\n\x11NVIDIA_TESLA_V100\x10\x03\x12\x13\n\x0fNVIDIA_TESLA_P4\x10\x04\x12\x13\n\x0fNVIDIA_TESLA_T4\x10\x05\x12\x15\n\x11NVIDIA_TESLA_A100\x10\x06\x12\n\n\x06TPU_V2\x10\x07\x12\n\n\x06TPU_V3\x10\x08\x12\x17\n\x13NVIDIA_TESLA_T4_VWS\x10\t\x12\x19\n\x15NVIDIA_TESLA_P100_VWS\x10\n\x12\x17\n\x13NVIDIA_TESLA_P4_VWS\x10\x0b\"#\n\x10\x45ncryptionConfig\x12\x0f\n\x07kms_key\x18\x01 \x01(\t\"\xa8\x03\n\tLocalDisk\x12\x18\n\x0b\x61uto_delete\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x62oot\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65vice_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x11guest_os_features\x18\x04 \x03(\x0b\x32:.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureB\x03\xe0\x41\x03\x12\x12\n\x05index\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12T\n\x11initialize_params\x18\x06 \x01(\x0b\x32\x34.google.cloud.notebooks.v1.LocalDiskInitializeParamsB\x03\xe0\x41\x04\x12\x11\n\tinterface\x18\x07 \x01(\t\x12\x11\n\x04kind\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08licenses\x18\t \x03(\tB\x03\xe0\x41\x03\x12\x0c\n\x04mode\x18\n \x01(\t\x12\x0e\n\x06source\x18\x0b \x01(\t\x12\x0c\n\x04type\x18\x0c \x01(\t\x1a%\n\x15RuntimeGuestOsFeature\x12\x0c\n\x04type\x18\x01 \x01(\t\"\xaa\x03\n\x19LocalDiskInitializeParams\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tdisk_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isk_size_gb\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12U\n\tdisk_type\x18\x04 \x01(\x0e\x32=.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskTypeB\x03\xe0\x41\x04\x12U\n\x06labels\x18\x05 \x03(\x0b\x32@.google.cloud.notebooks.v1.LocalDiskInitializeParams.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\"c\n\x08\x44iskType\x12\x19\n\x15\x44ISK_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPD_STANDARD\x10\x01\x12\n\n\x06PD_SSD\x10\x02\x12\x0f\n\x0bPD_BALANCED\x10\x03\x12\x0e\n\nPD_EXTREME\x10\x04\"\xfb\x01\n\x13RuntimeAccessConfig\x12U\n\x0b\x61\x63\x63\x65ss_type\x18\x01 \x01(\x0e\x32@.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType\x12\x15\n\rruntime_owner\x18\x02 \x01(\t\x12\x16\n\tproxy_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"^\n\x11RuntimeAccessType\x12#\n\x1fRUNTIME_ACCESS_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSINGLE_USER\x10\x01\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x02\"\xe4\x05\n\x15RuntimeSoftwareConfig\x12!\n\x19notebook_upgrade_schedule\x18\x01 \x01(\t\x12%\n\x18\x65nable_health_monitoring\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x1a\n\ridle_shutdown\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x1d\n\x15idle_shutdown_timeout\x18\x04 \x01(\x05\x12\x1a\n\x12install_gpu_driver\x18\x05 \x01(\x08\x12\x1e\n\x16\x63ustom_gpu_driver_path\x18\x06 \x01(\t\x12\x1b\n\x13post_startup_script\x18\x07 \x01(\t\x12?\n\x07kernels\x18\x08 \x03(\x0b\x32).google.cloud.notebooks.v1.ContainerImageB\x03\xe0\x41\x01\x12\x1d\n\x0bupgradeable\x18\t \x01(\x08\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12p\n\x1cpost_startup_script_behavior\x18\n \x01(\x0e\x32J.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior\x12\x1d\n\x10\x64isable_terminal\x18\x0b \x01(\x08H\x03\x88\x01\x01\x12\x19\n\x07version\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\"\x80\x01\n\x19PostStartupScriptBehavior\x12,\n(POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x13\n\x0fRUN_EVERY_START\x10\x01\x12 \n\x1c\x44OWNLOAD_AND_RUN_EVERY_START\x10\x02\x42\x1b\n\x19_enable_health_monitoringB\x10\n\x0e_idle_shutdownB\x0e\n\x0c_upgradeableB\x13\n\x11_disable_terminalB\n\n\x08_version\"\xa1\x01\n\x0eRuntimeMetrics\x12Y\n\x0esystem_metrics\x18\x01 \x03(\x0b\x32<.google.cloud.notebooks.v1.RuntimeMetrics.SystemMetricsEntryB\x03\xe0\x41\x03\x1a\x34\n\x12SystemMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1dRuntimeShieldedInstanceConfig\x12\x1a\n\x12\x65nable_secure_boot\x18\x01 \x01(\x08\x12\x13\n\x0b\x65nable_vtpm\x18\x02 \x01(\x08\x12#\n\x1b\x65nable_integrity_monitoring\x18\x03 \x01(\x08\"\x97\x01\n\x0eVirtualMachine\x12\x1a\n\rinstance_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12O\n\x16virtual_machine_config\x18\x03 \x01(\x0b\x32/.google.cloud.notebooks.v1.VirtualMachineConfig\"\xe3\t\n\x14VirtualMachineConfig\x12\x11\n\x04zone\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cmachine_type\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x10\x63ontainer_images\x18\x03 \x03(\x0b\x32).google.cloud.notebooks.v1.ContainerImageB\x03\xe0\x41\x01\x12<\n\tdata_disk\x18\x04 \x01(\x0b\x32$.google.cloud.notebooks.v1.LocalDiskB\x03\xe0\x41\x02\x12K\n\x11\x65ncryption_config\x18\x05 \x01(\x0b\x32+.google.cloud.notebooks.v1.EncryptionConfigB\x03\xe0\x41\x01\x12_\n\x18shielded_instance_config\x18\x06 \x01(\x0b\x32\x38.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigB\x03\xe0\x41\x01\x12T\n\x12\x61\x63\x63\x65lerator_config\x18\x07 \x01(\x0b\x32\x33.google.cloud.notebooks.v1.RuntimeAcceleratorConfigB\x03\xe0\x41\x01\x12\x14\n\x07network\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06subnet\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10internal_ip_only\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x63\n\x10guest_attributes\x18\x0e \x03(\x0b\x32\x44.google.cloud.notebooks.v1.VirtualMachineConfig.GuestAttributesEntryB\x03\xe0\x41\x03\x12T\n\x08metadata\x18\x0f \x03(\x0b\x32=.google.cloud.notebooks.v1.VirtualMachineConfig.MetadataEntryB\x03\xe0\x41\x01\x12P\n\x06labels\x18\x10 \x03(\x0b\x32;.google.cloud.notebooks.v1.VirtualMachineConfig.LabelsEntryB\x03\xe0\x41\x01\x12N\n\x08nic_type\x18\x11 \x01(\x0e\x32\x37.google.cloud.notebooks.v1.VirtualMachineConfig.NicTypeB\x03\xe0\x41\x01\x12\x1e\n\x11reserved_ip_range\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12R\n\nboot_image\x18\x13 \x01(\x0b\x32\x39.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageB\x03\xe0\x41\x01\x1a\x0b\n\tBootImage\x1a\x36\n\x14GuestAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a/\n\rMetadataEntry\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\x07NicType\x12\x18\n\x14UNSPECIFIED_NIC_TYPE\x10\x00\x12\x0e\n\nVIRTIO_NET\x10\x01\x12\t\n\x05GVNIC\x10\x02\x42\xc3\x01\n\x1d\x63om.google.cloud.notebooks.v1B\x0cRuntimeProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb\xaa\x02\x19Google.Cloud.Notebooks.V1\xca\x02\x19Google\\Cloud\\Notebooks\\V1\xea\x02\x1cGoogle::Cloud::Notebooks::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.cloud.notebooks.v1.ContainerImage", "google/cloud/notebooks/v1/environment.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
163
35
  end
164
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
165
39
  end
166
40
 
167
41
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/notebooks/v1/schedule.proto
3
4
 
@@ -8,30 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/notebooks/v1/execution_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/notebooks/v1/schedule.proto", :syntax => :proto3) do
13
- add_message "google.cloud.notebooks.v1.Schedule" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :description, :string, 3
17
- optional :state, :enum, 4, "google.cloud.notebooks.v1.Schedule.State"
18
- optional :cron_schedule, :string, 5
19
- optional :time_zone, :string, 6
20
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
21
- optional :update_time, :message, 8, "google.protobuf.Timestamp"
22
- optional :execution_template, :message, 9, "google.cloud.notebooks.v1.ExecutionTemplate"
23
- repeated :recent_executions, :message, 10, "google.cloud.notebooks.v1.Execution"
24
- end
25
- add_enum "google.cloud.notebooks.v1.Schedule.State" do
26
- value :STATE_UNSPECIFIED, 0
27
- value :ENABLED, 1
28
- value :PAUSED, 2
29
- value :DISABLED, 3
30
- value :UPDATE_FAILED, 4
31
- value :INITIALIZING, 5
32
- value :DELETING, 6
12
+
13
+ descriptor_data = "\n(google/cloud/notebooks/v1/schedule.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/notebooks/v1/execution.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\x05\n\x08Schedule\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\x03\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x38\n\x05state\x18\x04 \x01(\x0e\x32).google.cloud.notebooks.v1.Schedule.State\x12\x15\n\rcron_schedule\x18\x05 \x01(\t\x12\x11\n\ttime_zone\x18\x06 \x01(\t\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\x12H\n\x12\x65xecution_template\x18\t \x01(\x0b\x32,.google.cloud.notebooks.v1.ExecutionTemplate\x12\x44\n\x11recent_executions\x18\n \x03(\x0b\x32$.google.cloud.notebooks.v1.ExecutionB\x03\xe0\x41\x03\"x\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\x11\n\rUPDATE_FAILED\x10\x04\x12\x10\n\x0cINITIALIZING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06:c\xea\x41`\n!notebooks.googleapis.com/Schedule\x12;projects/{project}/location/{location}/schedules/{schedule}Bm\n\x1d\x63om.google.cloud.notebooks.v1B\rScheduleProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspbb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.cloud.notebooks.v1.ExecutionTemplate", "google/cloud/notebooks/v1/execution.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
35
  end
34
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
35
39
  end
36
40
 
37
41
  module Google