lib/google/cloud/dataproc/v1/sessions_pb.rb in google-cloud-dataproc-v1-0.24.0 vs lib/google/cloud/dataproc/v1/sessions_pb.rb in google-cloud-dataproc-v1-0.24.1
- old
+ new
@@ -11,16 +11,16 @@
require 'google/cloud/dataproc/v1/shared_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/timestamp_pb'
-descriptor_data = "\n\'google/cloud/dataproc/v1/sessions.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\x1fgoogle/protobuf/timestamp.proto\"\xba\x01\n\x14\x43reateSessionRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x37\n\x07session\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x02\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"J\n\x11GetSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\"\x94\x01\n\x13ListSessionsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\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\"i\n\x14ListSessionsResponse\x12\x38\n\x08sessions\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x17TerminateSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"f\n\x14\x44\x65leteSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xd3\t\n\x07Session\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\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\x12G\n\x0fjupyter_session\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JupyterConfigB\x03\xe0\x41\x01H\x00\x12@\n\x0cruntime_info\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xe0\x41\x03\x12;\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x06labels\x18\x0b \x03(\x0b\x32-.google.cloud.dataproc.v1.Session.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x0c \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\r \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x11\n\x04user\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12Q\n\rstate_history\x18\x0f \x03(\x0b\x32\x35.google.cloud.dataproc.v1.Session.SessionStateHistoryB\x03\xe0\x41\x03\x12I\n\x10session_template\x18\x10 \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\x1a\xa9\x01\n\x13SessionStateHistory\x12;\n\x05state\x18\x01 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.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\"e\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\x0f\n\x0bTERMINATING\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05:`\xea\x41]\n\x1f\x64\x61taproc.googleapis.com/Session\x12:projects/{project}/locations/{location}/sessions/{session}B\x10\n\x0esession_config\"\xa8\x01\n\rJupyterConfig\x12\x43\n\x06kernel\x18\x01 \x01(\x0e\x32..google.cloud.dataproc.v1.JupyterConfig.KernelB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"7\n\x06Kernel\x12\x16\n\x12KERNEL_UNSPECIFIED\x10\x00\x12\n\n\x06PYTHON\x10\x01\x12\t\n\x05SCALA\x10\x02\x32\xf5\x08\n\x11SessionController\x12\xf9\x01\n\rCreateSession\x12..google.cloud.dataproc.v1.CreateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/sessions:\x07session\xda\x41\x19parent,session,session_id\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\x12\x99\x01\n\nGetSession\x12+.google.cloud.dataproc.v1.GetSessionRequest\x1a!.google.cloud.dataproc.v1.Session\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/sessions/*}\xda\x41\x04name\x12\xac\x01\n\x0cListSessions\x12-.google.cloud.dataproc.v1.ListSessionsRequest\x1a..google.cloud.dataproc.v1.ListSessionsResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/sessions\xda\x41\x06parent\x12\xee\x01\n\x10TerminateSession\x12\x31.google.cloud.dataproc.v1.TerminateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/sessions/*}:terminate:\x01*\xda\x41\x04name\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\x12\xda\x01\n\rDeleteSession\x12..google.cloud.dataproc.v1.DeleteSessionRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/sessions/*}\xda\x41\x04name\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBl\n\x1c\x63om.google.cloud.dataproc.v1B\rSessionsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
+descriptor_data = "\n\'google/cloud/dataproc/v1/sessions.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\x1fgoogle/protobuf/timestamp.proto\"\xbe\x01\n\x14\x43reateSessionRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x38\n\x07session\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x04\xe2\x41\x01\x02\x12\x18\n\nsession_id\x18\x03 \x01(\tB\x04\xe2\x41\x01\x02\x12\x18\n\nrequest_id\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\"K\n\x11GetSessionRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\"\x98\x01\n\x13ListSessionsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\"j\n\x14ListSessionsResponse\x12\x39\n\x08sessions\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x04\xe2\x41\x01\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"k\n\x17TerminateSessionRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x18\n\nrequest_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"h\n\x14\x44\x65leteSessionRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x18\n\nrequest_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\xe5\t\n\x07Session\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x12\n\x04uuid\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12H\n\x0fjupyter_session\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JupyterConfigB\x04\xe2\x41\x01\x01H\x00\x12\x41\n\x0cruntime_info\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x04\xe2\x41\x01\x03\x12<\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.StateB\x04\xe2\x41\x01\x03\x12\x1b\n\rstate_message\x18\x08 \x01(\tB\x04\xe2\x41\x01\x03\x12\x34\n\nstate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x15\n\x07\x63reator\x18\n \x01(\tB\x04\xe2\x41\x01\x03\x12\x43\n\x06labels\x18\x0b \x03(\x0b\x32-.google.cloud.dataproc.v1.Session.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x45\n\x0eruntime_config\x18\x0c \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x04\xe2\x41\x01\x01\x12M\n\x12\x65nvironment_config\x18\r \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x04\xe2\x41\x01\x01\x12\x12\n\x04user\x18\x0e \x01(\tB\x04\xe2\x41\x01\x01\x12R\n\rstate_history\x18\x0f \x03(\x0b\x32\x35.google.cloud.dataproc.v1.Session.SessionStateHistoryB\x04\xe2\x41\x01\x03\x12J\n\x10session_template\x18\x10 \x01(\tB0\xe2\x41\x01\x01\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\x1a\xac\x01\n\x13SessionStateHistory\x12<\n\x05state\x18\x01 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.StateB\x04\xe2\x41\x01\x03\x12\x1b\n\rstate_message\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12:\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\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\n\n\x06\x41\x43TIVE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05:`\xea\x41]\n\x1f\x64\x61taproc.googleapis.com/Session\x12:projects/{project}/locations/{location}/sessions/{session}B\x10\n\x0esession_config\"\xaa\x01\n\rJupyterConfig\x12\x44\n\x06kernel\x18\x01 \x01(\x0e\x32..google.cloud.dataproc.v1.JupyterConfig.KernelB\x04\xe2\x41\x01\x01\x12\x1a\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"7\n\x06Kernel\x12\x16\n\x12KERNEL_UNSPECIFIED\x10\x00\x12\n\n\x06PYTHON\x10\x01\x12\t\n\x05SCALA\x10\x02\x32\xf5\x08\n\x11SessionController\x12\xf9\x01\n\rCreateSession\x12..google.cloud.dataproc.v1.CreateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x19parent,session,session_id\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/sessions:\x07session\x12\x99\x01\n\nGetSession\x12+.google.cloud.dataproc.v1.GetSessionRequest\x1a!.google.cloud.dataproc.v1.Session\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/sessions/*}\x12\xac\x01\n\x0cListSessions\x12-.google.cloud.dataproc.v1.ListSessionsRequest\x1a..google.cloud.dataproc.v1.ListSessionsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/sessions\x12\xee\x01\n\x10TerminateSession\x12\x31.google.cloud.dataproc.v1.TerminateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/sessions/*}:terminate:\x01*\x12\xda\x01\n\rDeleteSession\x12..google.cloud.dataproc.v1.DeleteSessionRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/sessions/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBl\n\x1c\x63om.google.cloud.dataproc.v1B\rSessionsProtoP\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
+rescue TypeError
# 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)