lib/google/area120/tables/v1alpha1/tables_pb.rb in google-area120-tables-v1alpha1-0.4.0 vs lib/google/area120/tables/v1alpha1/tables_pb.rb in google-area120-tables-v1alpha1-0.5.0

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/area120/tables/v1alpha1/tables.proto require 'google/protobuf' @@ -9,117 +10,36 @@ require 'google/api/resource_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' require 'google/protobuf/struct_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/area120/tables/v1alpha1/tables.proto", :syntax => :proto3) do - add_message "google.area120.tables.v1alpha1.GetTableRequest" do - optional :name, :string, 1 + +descriptor_data = "\n+google/area120/tables/v1alpha1/tables.proto\x12\x1egoogle.area120.tables.v1alpha1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"K\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"area120tables.googleapis.com/Table\":\n\x11ListTablesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"d\n\x12ListTablesResponse\x12\x35\n\x06tables\x18\x01 \x03(\x0b\x32%.google.area120.tables.v1alpha1.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x13GetWorkspaceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&area120tables.googleapis.com/Workspace\">\n\x15ListWorkspacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"p\n\x16ListWorkspacesResponse\x12=\n\nworkspaces\x18\x01 \x03(\x0b\x32).google.area120.tables.v1alpha1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x80\x01\n\rGetRowRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n area120tables.googleapis.com/Row\x12\x37\n\x04view\x18\x02 \x01(\x0e\x32$.google.area120.tables.v1alpha1.ViewB\x03\xe0\x41\x01\"\x9b\x01\n\x0fListRowsRequest\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\x12\x37\n\x04view\x18\x04 \x01(\x0e\x32$.google.area120.tables.v1alpha1.ViewB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"^\n\x10ListRowsResponse\x12\x31\n\x04rows\x18\x01 \x03(\x0b\x32#.google.area120.tables.v1alpha1.Row\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x10\x43reateRowRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x03row\x18\x02 \x01(\x0b\x32#.google.area120.tables.v1alpha1.RowB\x03\xe0\x41\x02\x12\x37\n\x04view\x18\x03 \x01(\x0e\x32$.google.area120.tables.v1alpha1.ViewB\x03\xe0\x41\x01\"v\n\x16\x42\x61tchCreateRowsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12G\n\x08requests\x18\x02 \x03(\x0b\x32\x30.google.area120.tables.v1alpha1.CreateRowRequestB\x03\xe0\x41\x02\"L\n\x17\x42\x61tchCreateRowsResponse\x12\x31\n\x04rows\x18\x01 \x03(\x0b\x32#.google.area120.tables.v1alpha1.Row\"\xb3\x01\n\x10UpdateRowRequest\x12\x35\n\x03row\x18\x01 \x01(\x0b\x32#.google.area120.tables.v1alpha1.RowB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x37\n\x04view\x18\x03 \x01(\x0e\x32$.google.area120.tables.v1alpha1.ViewB\x03\xe0\x41\x01\"v\n\x16\x42\x61tchUpdateRowsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12G\n\x08requests\x18\x02 \x03(\x0b\x32\x30.google.area120.tables.v1alpha1.UpdateRowRequestB\x03\xe0\x41\x02\"L\n\x17\x42\x61tchUpdateRowsResponse\x12\x31\n\x04rows\x18\x01 \x03(\x0b\x32#.google.area120.tables.v1alpha1.Row\"J\n\x10\x44\x65leteRowRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n area120tables.googleapis.com/Row\"\x8d\x01\n\x16\x42\x61tchDeleteRowsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"area120tables.googleapis.com/Table\x12\x37\n\x05names\x18\x02 \x03(\tB(\xe0\x41\x02\xfa\x41\"\n area120tables.googleapis.com/Row\"\xa8\x01\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x42\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x31.google.area120.tables.v1alpha1.ColumnDescription:7\xea\x41\x34\n\"area120tables.googleapis.com/Table\x12\x0etables/{table}\"\xa6\x02\n\x11\x43olumnDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12@\n\x06labels\x18\x04 \x03(\x0b\x32+.google.area120.tables.v1alpha1.LabeledItemB\x03\xe0\x41\x01\x12V\n\x14relationship_details\x18\x05 \x01(\x0b\x32\x33.google.area120.tables.v1alpha1.RelationshipDetailsB\x03\xe0\x41\x01\x12J\n\x0elookup_details\x18\x06 \x01(\x0b\x32-.google.area120.tables.v1alpha1.LookupDetailsB\x03\xe0\x41\x01\"\'\n\x0bLabeledItem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"+\n\x13RelationshipDetails\x12\x14\n\x0clinked_table\x18\x01 \x01(\t\"L\n\rLookupDetails\x12\x1b\n\x13relationship_column\x18\x01 \x01(\t\x12\x1e\n\x16relationship_column_id\x18\x02 \x01(\t\"\xdd\x01\n\x03Row\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x06values\x18\x02 \x03(\x0b\x32/.google.area120.tables.v1alpha1.Row.ValuesEntry\x1a\x45\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01:@\xea\x41=\n area120tables.googleapis.com/Row\x12\x19tables/{table}/rows/{row}\"\xab\x01\n\tWorkspace\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x35\n\x06tables\x18\x03 \x03(\x0b\x32%.google.area120.tables.v1alpha1.Table:C\xea\x41@\n&area120tables.googleapis.com/Workspace\x12\x16workspaces/{workspace}*0\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43OLUMN_ID_VIEW\x10\x01\x32\xbc\x11\n\rTablesService\x12\x8c\x01\n\x08GetTable\x12/.google.area120.tables.v1alpha1.GetTableRequest\x1a%.google.area120.tables.v1alpha1.Table\"(\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1alpha1/{name=tables/*}\xda\x41\x04name\x12\x8d\x01\n\nListTables\x12\x31.google.area120.tables.v1alpha1.ListTablesRequest\x1a\x32.google.area120.tables.v1alpha1.ListTablesResponse\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/v1alpha1/tables\x12\x9c\x01\n\x0cGetWorkspace\x12\x33.google.area120.tables.v1alpha1.GetWorkspaceRequest\x1a).google.area120.tables.v1alpha1.Workspace\",\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1alpha1/{name=workspaces/*}\xda\x41\x04name\x12\x9d\x01\n\x0eListWorkspaces\x12\x35.google.area120.tables.v1alpha1.ListWorkspacesRequest\x1a\x36.google.area120.tables.v1alpha1.ListWorkspacesResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/v1alpha1/workspaces\x12\x8d\x01\n\x06GetRow\x12-.google.area120.tables.v1alpha1.GetRowRequest\x1a#.google.area120.tables.v1alpha1.Row\"/\x82\xd3\xe4\x93\x02\"\x12 /v1alpha1/{name=tables/*/rows/*}\xda\x41\x04name\x12\xa0\x01\n\x08ListRows\x12/.google.area120.tables.v1alpha1.ListRowsRequest\x1a\x30.google.area120.tables.v1alpha1.ListRowsResponse\"1\x82\xd3\xe4\x93\x02\"\x12 /v1alpha1/{parent=tables/*}/rows\xda\x41\x06parent\x12\x9e\x01\n\tCreateRow\x12\x30.google.area120.tables.v1alpha1.CreateRowRequest\x1a#.google.area120.tables.v1alpha1.Row\":\x82\xd3\xe4\x93\x02\'\" /v1alpha1/{parent=tables/*}/rows:\x03row\xda\x41\nparent,row\x12\xbb\x01\n\x0f\x42\x61tchCreateRows\x12\x36.google.area120.tables.v1alpha1.BatchCreateRowsRequest\x1a\x37.google.area120.tables.v1alpha1.BatchCreateRowsResponse\"7\x82\xd3\xe4\x93\x02\x31\",/v1alpha1/{parent=tables/*}/rows:batchCreate:\x01*\x12\xa7\x01\n\tUpdateRow\x12\x30.google.area120.tables.v1alpha1.UpdateRowRequest\x1a#.google.area120.tables.v1alpha1.Row\"C\x82\xd3\xe4\x93\x02+2$/v1alpha1/{row.name=tables/*/rows/*}:\x03row\xda\x41\x0frow,update_mask\x12\xbb\x01\n\x0f\x42\x61tchUpdateRows\x12\x36.google.area120.tables.v1alpha1.BatchUpdateRowsRequest\x1a\x37.google.area120.tables.v1alpha1.BatchUpdateRowsResponse\"7\x82\xd3\xe4\x93\x02\x31\",/v1alpha1/{parent=tables/*}/rows:batchUpdate:\x01*\x12\x86\x01\n\tDeleteRow\x12\x30.google.area120.tables.v1alpha1.DeleteRowRequest\x1a\x16.google.protobuf.Empty\"/\x82\xd3\xe4\x93\x02\"* /v1alpha1/{name=tables/*/rows/*}\xda\x41\x04name\x12\x9a\x01\n\x0f\x42\x61tchDeleteRows\x12\x36.google.area120.tables.v1alpha1.BatchDeleteRowsRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\x93\x02\x31\",/v1alpha1/{parent=tables/*}/rows:batchDelete:\x01*\x1a\xac\x02\xca\x41\x1c\x61rea120tables.googleapis.com\xd2\x41\x89\x02https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/drive.file,https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/spreadsheets.readonly,https://www.googleapis.com/auth/tablesBu\n\"com.google.area120.tables.v1alpha1B\x0bTablesProtoP\x01Z@cloud.google.com/go/area120/tables/apiv1alpha1/tablespb;tablespbb\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.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Value", "google/protobuf/struct.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.area120.tables.v1alpha1.ListTablesRequest" do - optional :page_size, :int32, 1 - optional :page_token, :string, 2 - end - add_message "google.area120.tables.v1alpha1.ListTablesResponse" do - repeated :tables, :message, 1, "google.area120.tables.v1alpha1.Table" - optional :next_page_token, :string, 2 - end - add_message "google.area120.tables.v1alpha1.GetWorkspaceRequest" do - optional :name, :string, 1 - end - add_message "google.area120.tables.v1alpha1.ListWorkspacesRequest" do - optional :page_size, :int32, 1 - optional :page_token, :string, 2 - end - add_message "google.area120.tables.v1alpha1.ListWorkspacesResponse" do - repeated :workspaces, :message, 1, "google.area120.tables.v1alpha1.Workspace" - optional :next_page_token, :string, 2 - end - add_message "google.area120.tables.v1alpha1.GetRowRequest" do - optional :name, :string, 1 - optional :view, :enum, 2, "google.area120.tables.v1alpha1.View" - end - add_message "google.area120.tables.v1alpha1.ListRowsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :view, :enum, 4, "google.area120.tables.v1alpha1.View" - optional :filter, :string, 5 - end - add_message "google.area120.tables.v1alpha1.ListRowsResponse" do - repeated :rows, :message, 1, "google.area120.tables.v1alpha1.Row" - optional :next_page_token, :string, 2 - end - add_message "google.area120.tables.v1alpha1.CreateRowRequest" do - optional :parent, :string, 1 - optional :row, :message, 2, "google.area120.tables.v1alpha1.Row" - optional :view, :enum, 3, "google.area120.tables.v1alpha1.View" - end - add_message "google.area120.tables.v1alpha1.BatchCreateRowsRequest" do - optional :parent, :string, 1 - repeated :requests, :message, 2, "google.area120.tables.v1alpha1.CreateRowRequest" - end - add_message "google.area120.tables.v1alpha1.BatchCreateRowsResponse" do - repeated :rows, :message, 1, "google.area120.tables.v1alpha1.Row" - end - add_message "google.area120.tables.v1alpha1.UpdateRowRequest" do - optional :row, :message, 1, "google.area120.tables.v1alpha1.Row" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - optional :view, :enum, 3, "google.area120.tables.v1alpha1.View" - end - add_message "google.area120.tables.v1alpha1.BatchUpdateRowsRequest" do - optional :parent, :string, 1 - repeated :requests, :message, 2, "google.area120.tables.v1alpha1.UpdateRowRequest" - end - add_message "google.area120.tables.v1alpha1.BatchUpdateRowsResponse" do - repeated :rows, :message, 1, "google.area120.tables.v1alpha1.Row" - end - add_message "google.area120.tables.v1alpha1.DeleteRowRequest" do - optional :name, :string, 1 - end - add_message "google.area120.tables.v1alpha1.BatchDeleteRowsRequest" do - optional :parent, :string, 1 - repeated :names, :string, 2 - end - add_message "google.area120.tables.v1alpha1.Table" do - optional :name, :string, 1 - optional :display_name, :string, 2 - repeated :columns, :message, 3, "google.area120.tables.v1alpha1.ColumnDescription" - end - add_message "google.area120.tables.v1alpha1.ColumnDescription" do - optional :name, :string, 1 - optional :data_type, :string, 2 - optional :id, :string, 3 - repeated :labels, :message, 4, "google.area120.tables.v1alpha1.LabeledItem" - optional :relationship_details, :message, 5, "google.area120.tables.v1alpha1.RelationshipDetails" - optional :lookup_details, :message, 6, "google.area120.tables.v1alpha1.LookupDetails" - end - add_message "google.area120.tables.v1alpha1.LabeledItem" do - optional :name, :string, 1 - optional :id, :string, 2 - end - add_message "google.area120.tables.v1alpha1.RelationshipDetails" do - optional :linked_table, :string, 1 - end - add_message "google.area120.tables.v1alpha1.LookupDetails" do - optional :relationship_column, :string, 1 - optional :relationship_column_id, :string, 2 - end - add_message "google.area120.tables.v1alpha1.Row" do - optional :name, :string, 1 - map :values, :string, :message, 2, "google.protobuf.Value" - end - add_message "google.area120.tables.v1alpha1.Workspace" do - optional :name, :string, 1 - optional :display_name, :string, 2 - repeated :tables, :message, 3, "google.area120.tables.v1alpha1.Table" - end - add_enum "google.area120.tables.v1alpha1.View" do - value :VIEW_UNSPECIFIED, 0 - value :COLUMN_ID_VIEW, 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 Area120 module Tables