1"""Generated message classes for fusiontables version v1. 2 3API for working with Fusion Tables data. 4""" 5# NOTE: This file is autogenerated and should not be edited by hand. 6 7from apitools.base.protorpclite import messages as _messages 8from apitools.base.py import extra_types 9 10 11package = 'fusiontables' 12 13 14class Bucket(_messages.Message): 15 """Specifies the minimum and maximum values, the color, opacity, icon and 16 weight of a bucket within a StyleSetting. 17 18 Fields: 19 color: Color of line or the interior of a polygon in #RRGGBB format. 20 icon: Icon name used for a point. 21 max: Maximum value in the selected column for a row to be styled according 22 to the bucket color, opacity, icon, or weight. 23 min: Minimum value in the selected column for a row to be styled according 24 to the bucket color, opacity, icon, or weight. 25 opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque). 26 weight: Width of a line (in pixels). 27 """ 28 29 color = _messages.StringField(1) 30 icon = _messages.StringField(2) 31 max = _messages.FloatField(3) 32 min = _messages.FloatField(4) 33 opacity = _messages.FloatField(5) 34 weight = _messages.IntegerField(6, variant=_messages.Variant.INT32) 35 36 37class Column(_messages.Message): 38 """Specifies the id, name and type of a column in a table. 39 40 Messages: 41 BaseColumnValue: Optional identifier of the base column. If present, this 42 column is derived from the specified base column. 43 44 Fields: 45 baseColumn: Optional identifier of the base column. If present, this 46 column is derived from the specified base column. 47 columnId: Identifier for the column. 48 description: Optional column description. 49 graph_predicate: Optional column predicate. Used to map table to graph 50 data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC- 51 rdf11-concepts-20140225/#data-model 52 kind: Type name: a template for an individual column. 53 name: Required name of the column. 54 type: Required type of the column. 55 """ 56 57 class BaseColumnValue(_messages.Message): 58 """Optional identifier of the base column. If present, this column is 59 derived from the specified base column. 60 61 Fields: 62 columnId: The id of the column in the base table from which this column 63 is derived. 64 tableIndex: Offset to the entry in the list of base tables in the table 65 definition. 66 """ 67 68 columnId = _messages.IntegerField(1, variant=_messages.Variant.INT32) 69 tableIndex = _messages.IntegerField(2, variant=_messages.Variant.INT32) 70 71 baseColumn = _messages.MessageField('BaseColumnValue', 1) 72 columnId = _messages.IntegerField(2, variant=_messages.Variant.INT32) 73 description = _messages.StringField(3) 74 graph_predicate = _messages.StringField(4) 75 kind = _messages.StringField(5, default=u'fusiontables#column') 76 name = _messages.StringField(6) 77 type = _messages.StringField(7) 78 79 80class ColumnList(_messages.Message): 81 """Represents a list of columns in a table. 82 83 Fields: 84 items: List of all requested columns. 85 kind: Type name: a list of all columns. 86 nextPageToken: Token used to access the next page of this result. No token 87 is displayed if there are no more pages left. 88 totalItems: Total number of columns for the table. 89 """ 90 91 items = _messages.MessageField('Column', 1, repeated=True) 92 kind = _messages.StringField(2, default=u'fusiontables#columnList') 93 nextPageToken = _messages.StringField(3) 94 totalItems = _messages.IntegerField(4, variant=_messages.Variant.INT32) 95 96 97class FusiontablesColumnDeleteRequest(_messages.Message): 98 """A FusiontablesColumnDeleteRequest object. 99 100 Fields: 101 columnId: Name or identifier for the column being deleted. 102 tableId: Table from which the column is being deleted. 103 """ 104 105 columnId = _messages.StringField(1, required=True) 106 tableId = _messages.StringField(2, required=True) 107 108 109class FusiontablesColumnDeleteResponse(_messages.Message): 110 """An empty FusiontablesColumnDelete response.""" 111 112 113class FusiontablesColumnGetRequest(_messages.Message): 114 """A FusiontablesColumnGetRequest object. 115 116 Fields: 117 columnId: Name or identifier for the column that is being requested. 118 tableId: Table to which the column belongs. 119 """ 120 121 columnId = _messages.StringField(1, required=True) 122 tableId = _messages.StringField(2, required=True) 123 124 125class FusiontablesColumnInsertRequest(_messages.Message): 126 """A FusiontablesColumnInsertRequest object. 127 128 Fields: 129 column: A Column resource to be passed as the request body. 130 tableId: Table for which a new column is being added. 131 """ 132 133 column = _messages.MessageField('Column', 1) 134 tableId = _messages.StringField(2, required=True) 135 136 137class FusiontablesColumnListRequest(_messages.Message): 138 """A FusiontablesColumnListRequest object. 139 140 Fields: 141 maxResults: Maximum number of columns to return. Optional. Default is 5. 142 pageToken: Continuation token specifying which result page to return. 143 Optional. 144 tableId: Table whose columns are being listed. 145 """ 146 147 maxResults = _messages.IntegerField(1, variant=_messages.Variant.UINT32) 148 pageToken = _messages.StringField(2) 149 tableId = _messages.StringField(3, required=True) 150 151 152class FusiontablesColumnPatchRequest(_messages.Message): 153 """A FusiontablesColumnPatchRequest object. 154 155 Fields: 156 column: A Column resource to be passed as the request body. 157 columnId: Name or identifier for the column that is being updated. 158 tableId: Table for which the column is being updated. 159 """ 160 161 column = _messages.MessageField('Column', 1) 162 columnId = _messages.StringField(2, required=True) 163 tableId = _messages.StringField(3, required=True) 164 165 166class FusiontablesColumnUpdateRequest(_messages.Message): 167 """A FusiontablesColumnUpdateRequest object. 168 169 Fields: 170 column: A Column resource to be passed as the request body. 171 columnId: Name or identifier for the column that is being updated. 172 tableId: Table for which the column is being updated. 173 """ 174 175 column = _messages.MessageField('Column', 1) 176 columnId = _messages.StringField(2, required=True) 177 tableId = _messages.StringField(3, required=True) 178 179 180class FusiontablesQuerySqlGetRequest(_messages.Message): 181 """A FusiontablesQuerySqlGetRequest object. 182 183 Fields: 184 hdrs: Should column names be included (in the first row)?. Default is 185 true. 186 sql: An SQL SELECT/SHOW/DESCRIBE statement. 187 typed: Should typed values be returned in the (JSON) response -- numbers 188 for numeric values and parsed geometries for KML values? Default is 189 true. 190 """ 191 192 hdrs = _messages.BooleanField(1) 193 sql = _messages.StringField(2, required=True) 194 typed = _messages.BooleanField(3) 195 196 197class FusiontablesQuerySqlRequest(_messages.Message): 198 """A FusiontablesQuerySqlRequest object. 199 200 Fields: 201 hdrs: Should column names be included (in the first row)?. Default is 202 true. 203 sql: An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement. 204 typed: Should typed values be returned in the (JSON) response -- numbers 205 for numeric values and parsed geometries for KML values? Default is 206 true. 207 """ 208 209 hdrs = _messages.BooleanField(1) 210 sql = _messages.StringField(2, required=True) 211 typed = _messages.BooleanField(3) 212 213 214class FusiontablesStyleDeleteRequest(_messages.Message): 215 """A FusiontablesStyleDeleteRequest object. 216 217 Fields: 218 styleId: Identifier (within a table) for the style being deleted 219 tableId: Table from which the style is being deleted 220 """ 221 222 styleId = _messages.IntegerField(1, required=True, variant=_messages.Variant.INT32) 223 tableId = _messages.StringField(2, required=True) 224 225 226class FusiontablesStyleDeleteResponse(_messages.Message): 227 """An empty FusiontablesStyleDelete response.""" 228 229 230class FusiontablesStyleGetRequest(_messages.Message): 231 """A FusiontablesStyleGetRequest object. 232 233 Fields: 234 styleId: Identifier (integer) for a specific style in a table 235 tableId: Table to which the requested style belongs 236 """ 237 238 styleId = _messages.IntegerField(1, required=True, variant=_messages.Variant.INT32) 239 tableId = _messages.StringField(2, required=True) 240 241 242class FusiontablesStyleListRequest(_messages.Message): 243 """A FusiontablesStyleListRequest object. 244 245 Fields: 246 maxResults: Maximum number of styles to return. Optional. Default is 5. 247 pageToken: Continuation token specifying which result page to return. 248 Optional. 249 tableId: Table whose styles are being listed 250 """ 251 252 maxResults = _messages.IntegerField(1, variant=_messages.Variant.UINT32) 253 pageToken = _messages.StringField(2) 254 tableId = _messages.StringField(3, required=True) 255 256 257class FusiontablesTableCopyRequest(_messages.Message): 258 """A FusiontablesTableCopyRequest object. 259 260 Fields: 261 copyPresentation: Whether to also copy tabs, styles, and templates. 262 Default is false. 263 tableId: ID of the table that is being copied. 264 """ 265 266 copyPresentation = _messages.BooleanField(1) 267 tableId = _messages.StringField(2, required=True) 268 269 270class FusiontablesTableDeleteRequest(_messages.Message): 271 """A FusiontablesTableDeleteRequest object. 272 273 Fields: 274 tableId: ID of the table that is being deleted. 275 """ 276 277 tableId = _messages.StringField(1, required=True) 278 279 280class FusiontablesTableDeleteResponse(_messages.Message): 281 """An empty FusiontablesTableDelete response.""" 282 283 284class FusiontablesTableGetRequest(_messages.Message): 285 """A FusiontablesTableGetRequest object. 286 287 Fields: 288 tableId: Identifier(ID) for the table being requested. 289 """ 290 291 tableId = _messages.StringField(1, required=True) 292 293 294class FusiontablesTableImportRowsRequest(_messages.Message): 295 """A FusiontablesTableImportRowsRequest object. 296 297 Fields: 298 delimiter: The delimiter used to separate cell values. This can only 299 consist of a single character. Default is ','. 300 encoding: The encoding of the content. Default is UTF-8. Use 'auto-detect' 301 if you are unsure of the encoding. 302 endLine: The index of the last line from which to start importing, 303 exclusive. Thus, the number of imported lines is endLine - startLine. If 304 this parameter is not provided, the file will be imported until the last 305 line of the file. If endLine is negative, then the imported content will 306 exclude the last endLine lines. That is, if endline is negative, no line 307 will be imported whose index is greater than N + endLine where N is the 308 number of lines in the file, and the number of imported lines will be N 309 + endLine - startLine. 310 isStrict: Whether the CSV must have the same number of values for each 311 row. If false, rows with fewer values will be padded with empty values. 312 Default is true. 313 startLine: The index of the first line from which to start importing, 314 inclusive. Default is 0. 315 tableId: The table into which new rows are being imported. 316 """ 317 318 delimiter = _messages.StringField(1) 319 encoding = _messages.StringField(2) 320 endLine = _messages.IntegerField(3, variant=_messages.Variant.INT32) 321 isStrict = _messages.BooleanField(4) 322 startLine = _messages.IntegerField(5, variant=_messages.Variant.INT32) 323 tableId = _messages.StringField(6, required=True) 324 325 326class FusiontablesTableImportTableRequest(_messages.Message): 327 """A FusiontablesTableImportTableRequest object. 328 329 Fields: 330 delimiter: The delimiter used to separate cell values. This can only 331 consist of a single character. Default is ','. 332 encoding: The encoding of the content. Default is UTF-8. Use 'auto-detect' 333 if you are unsure of the encoding. 334 name: The name to be assigned to the new table. 335 """ 336 337 delimiter = _messages.StringField(1) 338 encoding = _messages.StringField(2) 339 name = _messages.StringField(3, required=True) 340 341 342class FusiontablesTableListRequest(_messages.Message): 343 """A FusiontablesTableListRequest object. 344 345 Fields: 346 maxResults: Maximum number of styles to return. Optional. Default is 5. 347 pageToken: Continuation token specifying which result page to return. 348 Optional. 349 """ 350 351 maxResults = _messages.IntegerField(1, variant=_messages.Variant.UINT32) 352 pageToken = _messages.StringField(2) 353 354 355class FusiontablesTablePatchRequest(_messages.Message): 356 """A FusiontablesTablePatchRequest object. 357 358 Fields: 359 replaceViewDefinition: Should the view definition also be updated? The 360 specified view definition replaces the existing one. Only a view can be 361 updated with a new definition. 362 table: A Table resource to be passed as the request body. 363 tableId: ID of the table that is being updated. 364 """ 365 366 replaceViewDefinition = _messages.BooleanField(1) 367 table = _messages.MessageField('Table', 2) 368 tableId = _messages.StringField(3, required=True) 369 370 371class FusiontablesTableUpdateRequest(_messages.Message): 372 """A FusiontablesTableUpdateRequest object. 373 374 Fields: 375 replaceViewDefinition: Should the view definition also be updated? The 376 specified view definition replaces the existing one. Only a view can be 377 updated with a new definition. 378 table: A Table resource to be passed as the request body. 379 tableId: ID of the table that is being updated. 380 """ 381 382 replaceViewDefinition = _messages.BooleanField(1) 383 table = _messages.MessageField('Table', 2) 384 tableId = _messages.StringField(3, required=True) 385 386 387class FusiontablesTaskDeleteRequest(_messages.Message): 388 """A FusiontablesTaskDeleteRequest object. 389 390 Fields: 391 tableId: Table from which the task is being deleted. 392 taskId: A string attribute. 393 """ 394 395 tableId = _messages.StringField(1, required=True) 396 taskId = _messages.StringField(2, required=True) 397 398 399class FusiontablesTaskDeleteResponse(_messages.Message): 400 """An empty FusiontablesTaskDelete response.""" 401 402 403class FusiontablesTaskGetRequest(_messages.Message): 404 """A FusiontablesTaskGetRequest object. 405 406 Fields: 407 tableId: Table to which the task belongs. 408 taskId: A string attribute. 409 """ 410 411 tableId = _messages.StringField(1, required=True) 412 taskId = _messages.StringField(2, required=True) 413 414 415class FusiontablesTaskListRequest(_messages.Message): 416 """A FusiontablesTaskListRequest object. 417 418 Fields: 419 maxResults: Maximum number of columns to return. Optional. Default is 5. 420 pageToken: A string attribute. 421 startIndex: A integer attribute. 422 tableId: Table whose tasks are being listed. 423 """ 424 425 maxResults = _messages.IntegerField(1, variant=_messages.Variant.UINT32) 426 pageToken = _messages.StringField(2) 427 startIndex = _messages.IntegerField(3, variant=_messages.Variant.UINT32) 428 tableId = _messages.StringField(4, required=True) 429 430 431class FusiontablesTemplateDeleteRequest(_messages.Message): 432 """A FusiontablesTemplateDeleteRequest object. 433 434 Fields: 435 tableId: Table from which the template is being deleted 436 templateId: Identifier for the template which is being deleted 437 """ 438 439 tableId = _messages.StringField(1, required=True) 440 templateId = _messages.IntegerField(2, required=True, variant=_messages.Variant.INT32) 441 442 443class FusiontablesTemplateDeleteResponse(_messages.Message): 444 """An empty FusiontablesTemplateDelete response.""" 445 446 447class FusiontablesTemplateGetRequest(_messages.Message): 448 """A FusiontablesTemplateGetRequest object. 449 450 Fields: 451 tableId: Table to which the template belongs 452 templateId: Identifier for the template that is being requested 453 """ 454 455 tableId = _messages.StringField(1, required=True) 456 templateId = _messages.IntegerField(2, required=True, variant=_messages.Variant.INT32) 457 458 459class FusiontablesTemplateListRequest(_messages.Message): 460 """A FusiontablesTemplateListRequest object. 461 462 Fields: 463 maxResults: Maximum number of templates to return. Optional. Default is 5. 464 pageToken: Continuation token specifying which results page to return. 465 Optional. 466 tableId: Identifier for the table whose templates are being requested 467 """ 468 469 maxResults = _messages.IntegerField(1, variant=_messages.Variant.UINT32) 470 pageToken = _messages.StringField(2) 471 tableId = _messages.StringField(3, required=True) 472 473 474class Geometry(_messages.Message): 475 """Represents a Geometry object. 476 477 Fields: 478 geometries: The list of geometries in this geometry collection. 479 geometry: A extra_types.JsonValue attribute. 480 type: Type: A collection of geometries. 481 """ 482 483 geometries = _messages.MessageField('extra_types.JsonValue', 1, repeated=True) 484 geometry = _messages.MessageField('extra_types.JsonValue', 2) 485 type = _messages.StringField(3, default=u'GeometryCollection') 486 487 488class Import(_messages.Message): 489 """Represents an import request. 490 491 Fields: 492 kind: Type name: a template for an import request. 493 numRowsReceived: The number of rows received from the import request. 494 """ 495 496 kind = _messages.StringField(1, default=u'fusiontables#import') 497 numRowsReceived = _messages.IntegerField(2) 498 499 500class Line(_messages.Message): 501 """Represents a line geometry. 502 503 Messages: 504 CoordinatesValueListEntry: Single entry in a CoordinatesValue. 505 506 Fields: 507 coordinates: The coordinates that define the line. 508 type: Type: A line geometry. 509 """ 510 511 class CoordinatesValueListEntry(_messages.Message): 512 """Single entry in a CoordinatesValue. 513 514 Fields: 515 entry: A number attribute. 516 """ 517 518 entry = _messages.FloatField(1, repeated=True) 519 520 coordinates = _messages.MessageField('CoordinatesValueListEntry', 1, repeated=True) 521 type = _messages.StringField(2, default=u'LineString') 522 523 524class LineStyle(_messages.Message): 525 """Represents a LineStyle within a StyleSetting 526 527 Fields: 528 strokeColor: Color of the line in #RRGGBB format. 529 strokeColorStyler: Column-value, gradient or buckets styler that is used 530 to determine the line color and opacity. 531 strokeOpacity: Opacity of the line : 0.0 (transparent) to 1.0 (opaque). 532 strokeWeight: Width of the line in pixels. 533 strokeWeightStyler: Column-value or bucket styler that is used to 534 determine the width of the line. 535 """ 536 537 strokeColor = _messages.StringField(1) 538 strokeColorStyler = _messages.MessageField('StyleFunction', 2) 539 strokeOpacity = _messages.FloatField(3) 540 strokeWeight = _messages.IntegerField(4, variant=_messages.Variant.INT32) 541 strokeWeightStyler = _messages.MessageField('StyleFunction', 5) 542 543 544class Point(_messages.Message): 545 """Represents a point object. 546 547 Fields: 548 coordinates: The coordinates that define the point. 549 type: Point: A point geometry. 550 """ 551 552 coordinates = _messages.FloatField(1, repeated=True) 553 type = _messages.StringField(2, default=u'Point') 554 555 556class PointStyle(_messages.Message): 557 """Represents a PointStyle within a StyleSetting 558 559 Fields: 560 iconName: Name of the icon. Use values defined in 561 http://www.google.com/fusiontables/DataSource?dsrcid=308519 562 iconStyler: Column or a bucket value from which the icon name is to be 563 determined. 564 """ 565 566 iconName = _messages.StringField(1) 567 iconStyler = _messages.MessageField('StyleFunction', 2) 568 569 570class Polygon(_messages.Message): 571 """Represents a polygon object. 572 573 Messages: 574 CoordinatesValueListEntry: Single entry in a CoordinatesValue. 575 576 Fields: 577 coordinates: The coordinates that define the polygon. 578 type: Type: A polygon geometry. 579 """ 580 581 class CoordinatesValueListEntry(_messages.Message): 582 """Single entry in a CoordinatesValue. 583 584 Messages: 585 EntryValueListEntry: Single entry in a EntryValue. 586 587 Fields: 588 entry: A EntryValueListEntry attribute. 589 """ 590 591 class EntryValueListEntry(_messages.Message): 592 """Single entry in a EntryValue. 593 594 Fields: 595 entry: A number attribute. 596 """ 597 598 entry = _messages.FloatField(1, repeated=True) 599 600 entry = _messages.MessageField('EntryValueListEntry', 1, repeated=True) 601 602 coordinates = _messages.MessageField('CoordinatesValueListEntry', 1, repeated=True) 603 type = _messages.StringField(2, default=u'Polygon') 604 605 606class PolygonStyle(_messages.Message): 607 """Represents a PolygonStyle within a StyleSetting 608 609 Fields: 610 fillColor: Color of the interior of the polygon in #RRGGBB format. 611 fillColorStyler: Column-value, gradient, or bucket styler that is used to 612 determine the interior color and opacity of the polygon. 613 fillOpacity: Opacity of the interior of the polygon: 0.0 (transparent) to 614 1.0 (opaque). 615 strokeColor: Color of the polygon border in #RRGGBB format. 616 strokeColorStyler: Column-value, gradient or buckets styler that is used 617 to determine the border color and opacity. 618 strokeOpacity: Opacity of the polygon border: 0.0 (transparent) to 1.0 619 (opaque). 620 strokeWeight: Width of the polyon border in pixels. 621 strokeWeightStyler: Column-value or bucket styler that is used to 622 determine the width of the polygon border. 623 """ 624 625 fillColor = _messages.StringField(1) 626 fillColorStyler = _messages.MessageField('StyleFunction', 2) 627 fillOpacity = _messages.FloatField(3) 628 strokeColor = _messages.StringField(4) 629 strokeColorStyler = _messages.MessageField('StyleFunction', 5) 630 strokeOpacity = _messages.FloatField(6) 631 strokeWeight = _messages.IntegerField(7, variant=_messages.Variant.INT32) 632 strokeWeightStyler = _messages.MessageField('StyleFunction', 8) 633 634 635class Sqlresponse(_messages.Message): 636 """Represents a response to an sql statement. 637 638 Messages: 639 RowsValueListEntry: Single entry in a RowsValue. 640 641 Fields: 642 columns: Columns in the table. 643 kind: Type name: a template for an individual table. 644 rows: The rows in the table. For each cell we print out whatever cell 645 value (e.g., numeric, string) exists. Thus it is important that each 646 cell contains only one value. 647 """ 648 649 class RowsValueListEntry(_messages.Message): 650 """Single entry in a RowsValue. 651 652 Fields: 653 entry: A extra_types.JsonValue attribute. 654 """ 655 656 entry = _messages.MessageField('extra_types.JsonValue', 1, repeated=True) 657 658 columns = _messages.StringField(1, repeated=True) 659 kind = _messages.StringField(2, default=u'fusiontables#sqlresponse') 660 rows = _messages.MessageField('RowsValueListEntry', 3, repeated=True) 661 662 663class StandardQueryParameters(_messages.Message): 664 """Query parameters accepted by all methods. 665 666 Enums: 667 AltValueValuesEnum: Data format for the response. 668 669 Fields: 670 alt: Data format for the response. 671 fields: Selector specifying which fields to include in a partial response. 672 key: API key. Your API key identifies your project and provides you with 673 API access, quota, and reports. Required unless you provide an OAuth 2.0 674 token. 675 oauth_token: OAuth 2.0 token for the current user. 676 prettyPrint: Returns response with indentations and line breaks. 677 quotaUser: Available to use for quota purposes for server-side 678 applications. Can be any arbitrary string assigned to a user, but should 679 not exceed 40 characters. Overrides userIp if both are provided. 680 trace: A tracing token of the form "token:<tokenid>" to include in api 681 requests. 682 userIp: IP address of the site where the request originates. Use this if 683 you want to enforce per-user limits. 684 """ 685 686 class AltValueValuesEnum(_messages.Enum): 687 """Data format for the response. 688 689 Values: 690 csv: Responses with Content-Type of text/csv 691 json: Responses with Content-Type of application/json 692 """ 693 csv = 0 694 json = 1 695 696 alt = _messages.EnumField('AltValueValuesEnum', 1, default=u'json') 697 fields = _messages.StringField(2) 698 key = _messages.StringField(3) 699 oauth_token = _messages.StringField(4) 700 prettyPrint = _messages.BooleanField(5, default=True) 701 quotaUser = _messages.StringField(6) 702 trace = _messages.StringField(7) 703 userIp = _messages.StringField(8) 704 705 706class StyleFunction(_messages.Message): 707 """Represents a StyleFunction within a StyleSetting 708 709 Messages: 710 GradientValue: Gradient function that interpolates a range of colors based 711 on column value. 712 713 Fields: 714 buckets: Bucket function that assigns a style based on the range a column 715 value falls into. 716 columnName: Name of the column whose value is used in the style. 717 gradient: Gradient function that interpolates a range of colors based on 718 column value. 719 kind: Stylers can be one of three kinds: "fusiontables#fromColumn" if the 720 column value is to be used as is, i.e., the column values can have 721 colors in #RRGGBBAA format or integer line widths or icon names; 722 "fusiontables#gradient" if the styling of the row is to be based on 723 applying the gradient function on the column value; or 724 "fusiontables#buckets" if the styling is to based on the bucket into 725 which the the column value falls. 726 """ 727 728 class GradientValue(_messages.Message): 729 """Gradient function that interpolates a range of colors based on column 730 value. 731 732 Messages: 733 ColorsValueListEntry: A ColorsValueListEntry object. 734 735 Fields: 736 colors: Array with two or more colors. 737 max: Higher-end of the interpolation range: rows with this value will be 738 assigned to colors[n-1]. 739 min: Lower-end of the interpolation range: rows with this value will be 740 assigned to colors[0]. 741 """ 742 743 class ColorsValueListEntry(_messages.Message): 744 """A ColorsValueListEntry object. 745 746 Fields: 747 color: Color in #RRGGBB format. 748 opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque). 749 """ 750 751 color = _messages.StringField(1) 752 opacity = _messages.FloatField(2) 753 754 colors = _messages.MessageField('ColorsValueListEntry', 1, repeated=True) 755 max = _messages.FloatField(2) 756 min = _messages.FloatField(3) 757 758 buckets = _messages.MessageField('Bucket', 1, repeated=True) 759 columnName = _messages.StringField(2) 760 gradient = _messages.MessageField('GradientValue', 3) 761 kind = _messages.StringField(4) 762 763 764class StyleSetting(_messages.Message): 765 """Represents a complete StyleSettings object. The primary key is a 766 combination of the tableId and a styleId. 767 768 Fields: 769 kind: Type name: an individual style setting. A StyleSetting contains the 770 style defintions for points, lines, and polygons in a table. Since a 771 table can have any one or all of them, a style definition can have 772 point, line and polygon style definitions. 773 markerOptions: Style definition for points in the table. 774 name: Optional name for the style setting. 775 polygonOptions: Style definition for polygons in the table. 776 polylineOptions: Style definition for lines in the table. 777 styleId: Identifier for the style setting (unique only within tables). 778 tableId: Identifier for the table. 779 """ 780 781 kind = _messages.StringField(1, default=u'fusiontables#styleSetting') 782 markerOptions = _messages.MessageField('PointStyle', 2) 783 name = _messages.StringField(3) 784 polygonOptions = _messages.MessageField('PolygonStyle', 4) 785 polylineOptions = _messages.MessageField('LineStyle', 5) 786 styleId = _messages.IntegerField(6, variant=_messages.Variant.INT32) 787 tableId = _messages.StringField(7) 788 789 790class StyleSettingList(_messages.Message): 791 """Represents a list of styles for a given table. 792 793 Fields: 794 items: All requested style settings. 795 kind: Type name: in this case, a list of style settings. 796 nextPageToken: Token used to access the next page of this result. No token 797 is displayed if there are no more pages left. 798 totalItems: Total number of styles for the table. 799 """ 800 801 items = _messages.MessageField('StyleSetting', 1, repeated=True) 802 kind = _messages.StringField(2, default=u'fusiontables#styleSettingList') 803 nextPageToken = _messages.StringField(3) 804 totalItems = _messages.IntegerField(4, variant=_messages.Variant.INT32) 805 806 807class Table(_messages.Message): 808 """Represents a table. Specifies the name, whether it is exportable, 809 description, attribution, and attribution link. 810 811 Fields: 812 attribution: Optional attribution assigned to the table. 813 attributionLink: Optional link for attribution. 814 baseTableIds: Optional base table identifier if this table is a view or 815 merged table. 816 columns: Columns in the table. 817 description: Optional description assigned to the table. 818 isExportable: Variable for whether table is exportable. 819 kind: Type name: a template for an individual table. 820 name: Name assigned to a table. 821 sql: Optional sql that encodes the table definition for derived tables. 822 tableId: Encrypted unique alphanumeric identifier for the table. 823 """ 824 825 attribution = _messages.StringField(1) 826 attributionLink = _messages.StringField(2) 827 baseTableIds = _messages.StringField(3, repeated=True) 828 columns = _messages.MessageField('Column', 4, repeated=True) 829 description = _messages.StringField(5) 830 isExportable = _messages.BooleanField(6) 831 kind = _messages.StringField(7, default=u'fusiontables#table') 832 name = _messages.StringField(8) 833 sql = _messages.StringField(9) 834 tableId = _messages.StringField(10) 835 836 837class TableList(_messages.Message): 838 """Represents a list of tables. 839 840 Fields: 841 items: List of all requested tables. 842 kind: Type name: a list of all tables. 843 nextPageToken: Token used to access the next page of this result. No token 844 is displayed if there are no more pages left. 845 """ 846 847 items = _messages.MessageField('Table', 1, repeated=True) 848 kind = _messages.StringField(2, default=u'fusiontables#tableList') 849 nextPageToken = _messages.StringField(3) 850 851 852class Task(_messages.Message): 853 """Specifies the identifier, name, and type of a task in a table. 854 855 Fields: 856 kind: Type of the resource. This is always "fusiontables#task". 857 progress: An indication of task progress. 858 started: false while the table is busy with some other task. true if this 859 background task is currently running. 860 taskId: Identifier for the task. 861 type: Type of background task. One of DELETE_ROWS Deletes one or more 862 rows from the table. ADD_ROWS "Adds one or more rows to a table. 863 Includes importing data into a new table and importing more rows into an 864 existing table. ADD_COLUMN Adds a new column to the table. CHANGE_TYPE 865 Changes the type of a column. 866 """ 867 868 kind = _messages.StringField(1, default=u'fusiontables#task') 869 progress = _messages.StringField(2) 870 started = _messages.BooleanField(3) 871 taskId = _messages.IntegerField(4) 872 type = _messages.StringField(5) 873 874 875class TaskList(_messages.Message): 876 """Represents a list of tasks for a table. 877 878 Fields: 879 items: List of all requested tasks. 880 kind: Type of the resource. This is always "fusiontables#taskList". 881 nextPageToken: Token used to access the next page of this result. No token 882 is displayed if there are no more pages left. 883 totalItems: Total number of tasks for the table. 884 """ 885 886 items = _messages.MessageField('Task', 1, repeated=True) 887 kind = _messages.StringField(2, default=u'fusiontables#taskList') 888 nextPageToken = _messages.StringField(3) 889 totalItems = _messages.IntegerField(4, variant=_messages.Variant.INT32) 890 891 892class Template(_messages.Message): 893 """Represents the contents of InfoWindow templates. 894 895 Fields: 896 automaticColumnNames: List of columns from which the template is to be 897 automatically constructed. Only one of body or automaticColumns can be 898 specified. 899 body: Body of the template. It contains HTML with {column_name} to insert 900 values from a particular column. The body is sanitized to remove certain 901 tags, e.g., script. Only one of body or automaticColumns can be 902 specified. 903 kind: Type name: a template for the info window contents. The template can 904 either include an HTML body or a list of columns from which the template 905 is computed automatically. 906 name: Optional name assigned to a template. 907 tableId: Identifier for the table for which the template is defined. 908 templateId: Identifier for the template, unique within the context of a 909 particular table. 910 """ 911 912 automaticColumnNames = _messages.StringField(1, repeated=True) 913 body = _messages.StringField(2) 914 kind = _messages.StringField(3, default=u'fusiontables#template') 915 name = _messages.StringField(4) 916 tableId = _messages.StringField(5) 917 templateId = _messages.IntegerField(6, variant=_messages.Variant.INT32) 918 919 920class TemplateList(_messages.Message): 921 """Represents a list of templates for a given table. 922 923 Fields: 924 items: List of all requested templates. 925 kind: Type name: a list of all templates. 926 nextPageToken: Token used to access the next page of this result. No token 927 is displayed if there are no more pages left. 928 totalItems: Total number of templates for the table. 929 """ 930 931 items = _messages.MessageField('Template', 1, repeated=True) 932 kind = _messages.StringField(2, default=u'fusiontables#templateList') 933 nextPageToken = _messages.StringField(3) 934 totalItems = _messages.IntegerField(4, variant=_messages.Variant.INT32) 935 936 937