You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

8509 lines
338 KiB

  1. // Package slides provides access to the Google Slides API.
  2. //
  3. // See https://developers.google.com/slides/
  4. //
  5. // Usage example:
  6. //
  7. // import "google.golang.org/api/slides/v1"
  8. // ...
  9. // slidesService, err := slides.New(oauthHttpClient)
  10. package slides // import "google.golang.org/api/slides/v1"
  11. import (
  12. "bytes"
  13. "encoding/json"
  14. "errors"
  15. "fmt"
  16. context "golang.org/x/net/context"
  17. ctxhttp "golang.org/x/net/context/ctxhttp"
  18. gensupport "google.golang.org/api/gensupport"
  19. googleapi "google.golang.org/api/googleapi"
  20. "io"
  21. "net/http"
  22. "net/url"
  23. "strconv"
  24. "strings"
  25. )
  26. // Always reference these packages, just in case the auto-generated code
  27. // below doesn't.
  28. var _ = bytes.NewBuffer
  29. var _ = strconv.Itoa
  30. var _ = fmt.Sprintf
  31. var _ = json.NewDecoder
  32. var _ = io.Copy
  33. var _ = url.Parse
  34. var _ = gensupport.MarshalJSON
  35. var _ = googleapi.Version
  36. var _ = errors.New
  37. var _ = strings.Replace
  38. var _ = context.Canceled
  39. var _ = ctxhttp.Do
  40. const apiId = "slides:v1"
  41. const apiName = "slides"
  42. const apiVersion = "v1"
  43. const basePath = "https://slides.googleapis.com/"
  44. // OAuth2 scopes used by this API.
  45. const (
  46. // View and manage the files in your Google Drive
  47. DriveScope = "https://www.googleapis.com/auth/drive"
  48. // View and manage Google Drive files and folders that you have opened
  49. // or created with this app
  50. DriveFileScope = "https://www.googleapis.com/auth/drive.file"
  51. // View the files in your Google Drive
  52. DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
  53. // View and manage your Google Slides presentations
  54. PresentationsScope = "https://www.googleapis.com/auth/presentations"
  55. // View your Google Slides presentations
  56. PresentationsReadonlyScope = "https://www.googleapis.com/auth/presentations.readonly"
  57. // View and manage your spreadsheets in Google Drive
  58. SpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets"
  59. // View your Google Spreadsheets
  60. SpreadsheetsReadonlyScope = "https://www.googleapis.com/auth/spreadsheets.readonly"
  61. )
  62. func New(client *http.Client) (*Service, error) {
  63. if client == nil {
  64. return nil, errors.New("client is nil")
  65. }
  66. s := &Service{client: client, BasePath: basePath}
  67. s.Presentations = NewPresentationsService(s)
  68. return s, nil
  69. }
  70. type Service struct {
  71. client *http.Client
  72. BasePath string // API endpoint base URL
  73. UserAgent string // optional additional User-Agent fragment
  74. Presentations *PresentationsService
  75. }
  76. func (s *Service) userAgent() string {
  77. if s.UserAgent == "" {
  78. return googleapi.UserAgent
  79. }
  80. return googleapi.UserAgent + " " + s.UserAgent
  81. }
  82. func NewPresentationsService(s *Service) *PresentationsService {
  83. rs := &PresentationsService{s: s}
  84. rs.Pages = NewPresentationsPagesService(s)
  85. return rs
  86. }
  87. type PresentationsService struct {
  88. s *Service
  89. Pages *PresentationsPagesService
  90. }
  91. func NewPresentationsPagesService(s *Service) *PresentationsPagesService {
  92. rs := &PresentationsPagesService{s: s}
  93. return rs
  94. }
  95. type PresentationsPagesService struct {
  96. s *Service
  97. }
  98. // AffineTransform: AffineTransform uses a 3x3 matrix with an implied
  99. // last row of [ 0 0 1 ]
  100. // to transform source coordinates (x,y) into destination coordinates
  101. // (x', y')
  102. // according to:
  103. //
  104. // x' x = shear_y scale_y translate_y
  105. // 1 [ 1 ]
  106. //
  107. // After transformation,
  108. //
  109. // x' = scale_x * x + shear_x * y + translate_x;
  110. // y' = scale_y * y + shear_y * x + translate_y;
  111. //
  112. // This message is therefore composed of these six matrix elements.
  113. type AffineTransform struct {
  114. // ScaleX: The X coordinate scaling element.
  115. ScaleX float64 `json:"scaleX,omitempty"`
  116. // ScaleY: The Y coordinate scaling element.
  117. ScaleY float64 `json:"scaleY,omitempty"`
  118. // ShearX: The X coordinate shearing element.
  119. ShearX float64 `json:"shearX,omitempty"`
  120. // ShearY: The Y coordinate shearing element.
  121. ShearY float64 `json:"shearY,omitempty"`
  122. // TranslateX: The X coordinate translation element.
  123. TranslateX float64 `json:"translateX,omitempty"`
  124. // TranslateY: The Y coordinate translation element.
  125. TranslateY float64 `json:"translateY,omitempty"`
  126. // Unit: The units for translate elements.
  127. //
  128. // Possible values:
  129. // "UNIT_UNSPECIFIED" - The units are unknown.
  130. // "EMU" - An English Metric Unit (EMU) is defined as 1/360,000 of a
  131. // centimeter
  132. // and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.
  133. // "PT" - A point, 1/72 of an inch.
  134. Unit string `json:"unit,omitempty"`
  135. // ForceSendFields is a list of field names (e.g. "ScaleX") to
  136. // unconditionally include in API requests. By default, fields with
  137. // empty values are omitted from API requests. However, any non-pointer,
  138. // non-interface field appearing in ForceSendFields will be sent to the
  139. // server regardless of whether the field is empty or not. This may be
  140. // used to include empty fields in Patch requests.
  141. ForceSendFields []string `json:"-"`
  142. // NullFields is a list of field names (e.g. "ScaleX") to include in API
  143. // requests with the JSON null value. By default, fields with empty
  144. // values are omitted from API requests. However, any field with an
  145. // empty value appearing in NullFields will be sent to the server as
  146. // null. It is an error if a field in this list has a non-empty value.
  147. // This may be used to include null fields in Patch requests.
  148. NullFields []string `json:"-"`
  149. }
  150. func (s *AffineTransform) MarshalJSON() ([]byte, error) {
  151. type NoMethod AffineTransform
  152. raw := NoMethod(*s)
  153. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  154. }
  155. func (s *AffineTransform) UnmarshalJSON(data []byte) error {
  156. type NoMethod AffineTransform
  157. var s1 struct {
  158. ScaleX gensupport.JSONFloat64 `json:"scaleX"`
  159. ScaleY gensupport.JSONFloat64 `json:"scaleY"`
  160. ShearX gensupport.JSONFloat64 `json:"shearX"`
  161. ShearY gensupport.JSONFloat64 `json:"shearY"`
  162. TranslateX gensupport.JSONFloat64 `json:"translateX"`
  163. TranslateY gensupport.JSONFloat64 `json:"translateY"`
  164. *NoMethod
  165. }
  166. s1.NoMethod = (*NoMethod)(s)
  167. if err := json.Unmarshal(data, &s1); err != nil {
  168. return err
  169. }
  170. s.ScaleX = float64(s1.ScaleX)
  171. s.ScaleY = float64(s1.ScaleY)
  172. s.ShearX = float64(s1.ShearX)
  173. s.ShearY = float64(s1.ShearY)
  174. s.TranslateX = float64(s1.TranslateX)
  175. s.TranslateY = float64(s1.TranslateY)
  176. return nil
  177. }
  178. // AutoText: A TextElement kind that represents auto text.
  179. type AutoText struct {
  180. // Content: The rendered content of this auto text, if available.
  181. Content string `json:"content,omitempty"`
  182. // Style: The styling applied to this auto text.
  183. Style *TextStyle `json:"style,omitempty"`
  184. // Type: The type of this auto text.
  185. //
  186. // Possible values:
  187. // "TYPE_UNSPECIFIED" - An unspecified autotext type.
  188. // "SLIDE_NUMBER" - Type for autotext that represents the current
  189. // slide number.
  190. Type string `json:"type,omitempty"`
  191. // ForceSendFields is a list of field names (e.g. "Content") to
  192. // unconditionally include in API requests. By default, fields with
  193. // empty values are omitted from API requests. However, any non-pointer,
  194. // non-interface field appearing in ForceSendFields will be sent to the
  195. // server regardless of whether the field is empty or not. This may be
  196. // used to include empty fields in Patch requests.
  197. ForceSendFields []string `json:"-"`
  198. // NullFields is a list of field names (e.g. "Content") to include in
  199. // API requests with the JSON null value. By default, fields with empty
  200. // values are omitted from API requests. However, any field with an
  201. // empty value appearing in NullFields will be sent to the server as
  202. // null. It is an error if a field in this list has a non-empty value.
  203. // This may be used to include null fields in Patch requests.
  204. NullFields []string `json:"-"`
  205. }
  206. func (s *AutoText) MarshalJSON() ([]byte, error) {
  207. type NoMethod AutoText
  208. raw := NoMethod(*s)
  209. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  210. }
  211. // BatchUpdatePresentationRequest: Request message for
  212. // PresentationsService.BatchUpdatePresentation.
  213. type BatchUpdatePresentationRequest struct {
  214. // Requests: A list of updates to apply to the presentation.
  215. Requests []*Request `json:"requests,omitempty"`
  216. // WriteControl: Provides control over how write requests are executed.
  217. WriteControl *WriteControl `json:"writeControl,omitempty"`
  218. // ForceSendFields is a list of field names (e.g. "Requests") to
  219. // unconditionally include in API requests. By default, fields with
  220. // empty values are omitted from API requests. However, any non-pointer,
  221. // non-interface field appearing in ForceSendFields will be sent to the
  222. // server regardless of whether the field is empty or not. This may be
  223. // used to include empty fields in Patch requests.
  224. ForceSendFields []string `json:"-"`
  225. // NullFields is a list of field names (e.g. "Requests") to include in
  226. // API requests with the JSON null value. By default, fields with empty
  227. // values are omitted from API requests. However, any field with an
  228. // empty value appearing in NullFields will be sent to the server as
  229. // null. It is an error if a field in this list has a non-empty value.
  230. // This may be used to include null fields in Patch requests.
  231. NullFields []string `json:"-"`
  232. }
  233. func (s *BatchUpdatePresentationRequest) MarshalJSON() ([]byte, error) {
  234. type NoMethod BatchUpdatePresentationRequest
  235. raw := NoMethod(*s)
  236. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  237. }
  238. // BatchUpdatePresentationResponse: Response message from a batch
  239. // update.
  240. type BatchUpdatePresentationResponse struct {
  241. // PresentationId: The presentation the updates were applied to.
  242. PresentationId string `json:"presentationId,omitempty"`
  243. // Replies: The reply of the updates. This maps 1:1 with the updates,
  244. // although
  245. // replies to some requests may be empty.
  246. Replies []*Response `json:"replies,omitempty"`
  247. // WriteControl: The updated write control after applying the request.
  248. WriteControl *WriteControl `json:"writeControl,omitempty"`
  249. // ServerResponse contains the HTTP response code and headers from the
  250. // server.
  251. googleapi.ServerResponse `json:"-"`
  252. // ForceSendFields is a list of field names (e.g. "PresentationId") to
  253. // unconditionally include in API requests. By default, fields with
  254. // empty values are omitted from API requests. However, any non-pointer,
  255. // non-interface field appearing in ForceSendFields will be sent to the
  256. // server regardless of whether the field is empty or not. This may be
  257. // used to include empty fields in Patch requests.
  258. ForceSendFields []string `json:"-"`
  259. // NullFields is a list of field names (e.g. "PresentationId") to
  260. // include in API requests with the JSON null value. By default, fields
  261. // with empty values are omitted from API requests. However, any field
  262. // with an empty value appearing in NullFields will be sent to the
  263. // server as null. It is an error if a field in this list has a
  264. // non-empty value. This may be used to include null fields in Patch
  265. // requests.
  266. NullFields []string `json:"-"`
  267. }
  268. func (s *BatchUpdatePresentationResponse) MarshalJSON() ([]byte, error) {
  269. type NoMethod BatchUpdatePresentationResponse
  270. raw := NoMethod(*s)
  271. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  272. }
  273. // Bullet: Describes the bullet of a paragraph.
  274. type Bullet struct {
  275. // BulletStyle: The paragraph specific text style applied to this
  276. // bullet.
  277. BulletStyle *TextStyle `json:"bulletStyle,omitempty"`
  278. // Glyph: The rendered bullet glyph for this paragraph.
  279. Glyph string `json:"glyph,omitempty"`
  280. // ListId: The ID of the list this paragraph belongs to.
  281. ListId string `json:"listId,omitempty"`
  282. // NestingLevel: The nesting level of this paragraph in the list.
  283. NestingLevel int64 `json:"nestingLevel,omitempty"`
  284. // ForceSendFields is a list of field names (e.g. "BulletStyle") to
  285. // unconditionally include in API requests. By default, fields with
  286. // empty values are omitted from API requests. However, any non-pointer,
  287. // non-interface field appearing in ForceSendFields will be sent to the
  288. // server regardless of whether the field is empty or not. This may be
  289. // used to include empty fields in Patch requests.
  290. ForceSendFields []string `json:"-"`
  291. // NullFields is a list of field names (e.g. "BulletStyle") to include
  292. // in API requests with the JSON null value. By default, fields with
  293. // empty values are omitted from API requests. However, any field with
  294. // an empty value appearing in NullFields will be sent to the server as
  295. // null. It is an error if a field in this list has a non-empty value.
  296. // This may be used to include null fields in Patch requests.
  297. NullFields []string `json:"-"`
  298. }
  299. func (s *Bullet) MarshalJSON() ([]byte, error) {
  300. type NoMethod Bullet
  301. raw := NoMethod(*s)
  302. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  303. }
  304. // ColorScheme: The palette of predefined colors for a page.
  305. type ColorScheme struct {
  306. // Colors: The ThemeColorType and corresponding concrete color pairs.
  307. Colors []*ThemeColorPair `json:"colors,omitempty"`
  308. // ForceSendFields is a list of field names (e.g. "Colors") to
  309. // unconditionally include in API requests. By default, fields with
  310. // empty values are omitted from API requests. However, any non-pointer,
  311. // non-interface field appearing in ForceSendFields will be sent to the
  312. // server regardless of whether the field is empty or not. This may be
  313. // used to include empty fields in Patch requests.
  314. ForceSendFields []string `json:"-"`
  315. // NullFields is a list of field names (e.g. "Colors") to include in API
  316. // requests with the JSON null value. By default, fields with empty
  317. // values are omitted from API requests. However, any field with an
  318. // empty value appearing in NullFields will be sent to the server as
  319. // null. It is an error if a field in this list has a non-empty value.
  320. // This may be used to include null fields in Patch requests.
  321. NullFields []string `json:"-"`
  322. }
  323. func (s *ColorScheme) MarshalJSON() ([]byte, error) {
  324. type NoMethod ColorScheme
  325. raw := NoMethod(*s)
  326. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  327. }
  328. // ColorStop: A color and position in a gradient band.
  329. type ColorStop struct {
  330. // Alpha: The alpha value of this color in the gradient band. Defaults
  331. // to 1.0,
  332. // fully opaque.
  333. Alpha float64 `json:"alpha,omitempty"`
  334. // Color: The color of the gradient stop.
  335. Color *OpaqueColor `json:"color,omitempty"`
  336. // Position: The relative position of the color stop in the gradient
  337. // band measured
  338. // in percentage. The value should be in the interval [0.0, 1.0].
  339. Position float64 `json:"position,omitempty"`
  340. // ForceSendFields is a list of field names (e.g. "Alpha") to
  341. // unconditionally include in API requests. By default, fields with
  342. // empty values are omitted from API requests. However, any non-pointer,
  343. // non-interface field appearing in ForceSendFields will be sent to the
  344. // server regardless of whether the field is empty or not. This may be
  345. // used to include empty fields in Patch requests.
  346. ForceSendFields []string `json:"-"`
  347. // NullFields is a list of field names (e.g. "Alpha") to include in API
  348. // requests with the JSON null value. By default, fields with empty
  349. // values are omitted from API requests. However, any field with an
  350. // empty value appearing in NullFields will be sent to the server as
  351. // null. It is an error if a field in this list has a non-empty value.
  352. // This may be used to include null fields in Patch requests.
  353. NullFields []string `json:"-"`
  354. }
  355. func (s *ColorStop) MarshalJSON() ([]byte, error) {
  356. type NoMethod ColorStop
  357. raw := NoMethod(*s)
  358. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  359. }
  360. func (s *ColorStop) UnmarshalJSON(data []byte) error {
  361. type NoMethod ColorStop
  362. var s1 struct {
  363. Alpha gensupport.JSONFloat64 `json:"alpha"`
  364. Position gensupport.JSONFloat64 `json:"position"`
  365. *NoMethod
  366. }
  367. s1.NoMethod = (*NoMethod)(s)
  368. if err := json.Unmarshal(data, &s1); err != nil {
  369. return err
  370. }
  371. s.Alpha = float64(s1.Alpha)
  372. s.Position = float64(s1.Position)
  373. return nil
  374. }
  375. // CreateImageRequest: Creates an image.
  376. type CreateImageRequest struct {
  377. // ElementProperties: The element properties for the image.
  378. //
  379. // When the aspect ratio of the provided size does not match the image
  380. // aspect
  381. // ratio, the image is scaled and centered with respect to the size in
  382. // order
  383. // to maintain aspect ratio. The provided transform is applied after
  384. // this
  385. // operation.
  386. //
  387. // The PageElementProperties.size property is
  388. // optional. If you don't specify the size, the default size of the
  389. // image is
  390. // used.
  391. //
  392. // The PageElementProperties.transform property is
  393. // optional. If you don't specify a transform, the image will be placed
  394. // at the
  395. // top left corner of the page.
  396. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  397. // ObjectId: A user-supplied object ID.
  398. //
  399. // If you specify an ID, it must be unique among all pages and page
  400. // elements
  401. // in the presentation. The ID must start with an alphanumeric character
  402. // or an
  403. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  404. // may include those as well as a hyphen or colon (matches
  405. // regex
  406. // `[a-zA-Z0-9_-:]`).
  407. // The length of the ID must not be less than 5 or greater than 50.
  408. //
  409. // If you don't specify an ID, a unique one is generated.
  410. ObjectId string `json:"objectId,omitempty"`
  411. // Url: The image URL.
  412. //
  413. // The image is fetched once at insertion time and a copy is stored
  414. // for
  415. // display inside the presentation. Images must be less than 50MB in
  416. // size,
  417. // cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
  418. // GIF
  419. // format.
  420. //
  421. // The provided URL can be at most 2 kB in length. The URL itself is
  422. // saved
  423. // with the image, and exposed via the Image.source_url field.
  424. Url string `json:"url,omitempty"`
  425. // ForceSendFields is a list of field names (e.g. "ElementProperties")
  426. // to unconditionally include in API requests. By default, fields with
  427. // empty values are omitted from API requests. However, any non-pointer,
  428. // non-interface field appearing in ForceSendFields will be sent to the
  429. // server regardless of whether the field is empty or not. This may be
  430. // used to include empty fields in Patch requests.
  431. ForceSendFields []string `json:"-"`
  432. // NullFields is a list of field names (e.g. "ElementProperties") to
  433. // include in API requests with the JSON null value. By default, fields
  434. // with empty values are omitted from API requests. However, any field
  435. // with an empty value appearing in NullFields will be sent to the
  436. // server as null. It is an error if a field in this list has a
  437. // non-empty value. This may be used to include null fields in Patch
  438. // requests.
  439. NullFields []string `json:"-"`
  440. }
  441. func (s *CreateImageRequest) MarshalJSON() ([]byte, error) {
  442. type NoMethod CreateImageRequest
  443. raw := NoMethod(*s)
  444. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  445. }
  446. // CreateImageResponse: The result of creating an image.
  447. type CreateImageResponse struct {
  448. // ObjectId: The object ID of the created image.
  449. ObjectId string `json:"objectId,omitempty"`
  450. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  451. // unconditionally include in API requests. By default, fields with
  452. // empty values are omitted from API requests. However, any non-pointer,
  453. // non-interface field appearing in ForceSendFields will be sent to the
  454. // server regardless of whether the field is empty or not. This may be
  455. // used to include empty fields in Patch requests.
  456. ForceSendFields []string `json:"-"`
  457. // NullFields is a list of field names (e.g. "ObjectId") to include in
  458. // API requests with the JSON null value. By default, fields with empty
  459. // values are omitted from API requests. However, any field with an
  460. // empty value appearing in NullFields will be sent to the server as
  461. // null. It is an error if a field in this list has a non-empty value.
  462. // This may be used to include null fields in Patch requests.
  463. NullFields []string `json:"-"`
  464. }
  465. func (s *CreateImageResponse) MarshalJSON() ([]byte, error) {
  466. type NoMethod CreateImageResponse
  467. raw := NoMethod(*s)
  468. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  469. }
  470. // CreateLineRequest: Creates a line.
  471. type CreateLineRequest struct {
  472. // ElementProperties: The element properties for the line.
  473. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  474. // LineCategory: The category of line to be created.
  475. //
  476. // Possible values:
  477. // "STRAIGHT" - Straight connectors, including straight connector 1.
  478. // The is the default
  479. // category when one is not specified.
  480. // "BENT" - Bent connectors, including bent connector 2 to 5.
  481. // "CURVED" - Curved connectors, including curved connector 2 to 5.
  482. LineCategory string `json:"lineCategory,omitempty"`
  483. // ObjectId: A user-supplied object ID.
  484. //
  485. // If you specify an ID, it must be unique among all pages and page
  486. // elements
  487. // in the presentation. The ID must start with an alphanumeric character
  488. // or an
  489. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  490. // may include those as well as a hyphen or colon (matches
  491. // regex
  492. // `[a-zA-Z0-9_-:]`).
  493. // The length of the ID must not be less than 5 or greater than 50.
  494. //
  495. // If you don't specify an ID, a unique one is generated.
  496. ObjectId string `json:"objectId,omitempty"`
  497. // ForceSendFields is a list of field names (e.g. "ElementProperties")
  498. // to unconditionally include in API requests. By default, fields with
  499. // empty values are omitted from API requests. However, any non-pointer,
  500. // non-interface field appearing in ForceSendFields will be sent to the
  501. // server regardless of whether the field is empty or not. This may be
  502. // used to include empty fields in Patch requests.
  503. ForceSendFields []string `json:"-"`
  504. // NullFields is a list of field names (e.g. "ElementProperties") to
  505. // include in API requests with the JSON null value. By default, fields
  506. // with empty values are omitted from API requests. However, any field
  507. // with an empty value appearing in NullFields will be sent to the
  508. // server as null. It is an error if a field in this list has a
  509. // non-empty value. This may be used to include null fields in Patch
  510. // requests.
  511. NullFields []string `json:"-"`
  512. }
  513. func (s *CreateLineRequest) MarshalJSON() ([]byte, error) {
  514. type NoMethod CreateLineRequest
  515. raw := NoMethod(*s)
  516. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  517. }
  518. // CreateLineResponse: The result of creating a line.
  519. type CreateLineResponse struct {
  520. // ObjectId: The object ID of the created line.
  521. ObjectId string `json:"objectId,omitempty"`
  522. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  523. // unconditionally include in API requests. By default, fields with
  524. // empty values are omitted from API requests. However, any non-pointer,
  525. // non-interface field appearing in ForceSendFields will be sent to the
  526. // server regardless of whether the field is empty or not. This may be
  527. // used to include empty fields in Patch requests.
  528. ForceSendFields []string `json:"-"`
  529. // NullFields is a list of field names (e.g. "ObjectId") to include in
  530. // API requests with the JSON null value. By default, fields with empty
  531. // values are omitted from API requests. However, any field with an
  532. // empty value appearing in NullFields will be sent to the server as
  533. // null. It is an error if a field in this list has a non-empty value.
  534. // This may be used to include null fields in Patch requests.
  535. NullFields []string `json:"-"`
  536. }
  537. func (s *CreateLineResponse) MarshalJSON() ([]byte, error) {
  538. type NoMethod CreateLineResponse
  539. raw := NoMethod(*s)
  540. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  541. }
  542. // CreateParagraphBulletsRequest: Creates bullets for all of the
  543. // paragraphs that overlap with the given
  544. // text index range.
  545. //
  546. // The nesting level of each paragraph will be determined by counting
  547. // leading
  548. // tabs in front of each paragraph. To avoid excess space between the
  549. // bullet and
  550. // the corresponding paragraph, these leading tabs are removed by this
  551. // request.
  552. // This may change the indices of parts of the text.
  553. //
  554. // If the paragraph immediately before paragraphs being updated is in a
  555. // list
  556. // with a matching preset, the paragraphs being updated are added to
  557. // that
  558. // preceding list.
  559. type CreateParagraphBulletsRequest struct {
  560. // BulletPreset: The kinds of bullet glyphs to be used. Defaults to
  561. // the
  562. // `BULLET_DISC_CIRCLE_SQUARE` preset.
  563. //
  564. // Possible values:
  565. // "BULLET_DISC_CIRCLE_SQUARE" - A bulleted list with a `DISC`,
  566. // `CIRCLE` and `SQUARE` bullet glyph for the
  567. // first 3 list nesting levels.
  568. // "BULLET_DIAMONDX_ARROW3D_SQUARE" - A bulleted list with a
  569. // `DIAMONDX`, `ARROW3D` and `SQUARE` bullet glyph for
  570. // the first 3 list nesting levels.
  571. // "BULLET_CHECKBOX" - A bulleted list with `CHECKBOX` bullet glyphs
  572. // for all list nesting levels.
  573. // "BULLET_ARROW_DIAMOND_DISC" - A bulleted list with a `ARROW`,
  574. // `DIAMOND` and `DISC` bullet glyph for
  575. // the first 3 list nesting levels.
  576. // "BULLET_STAR_CIRCLE_SQUARE" - A bulleted list with a `STAR`,
  577. // `CIRCLE` and `SQUARE` bullet glyph for
  578. // the first 3 list nesting levels.
  579. // "BULLET_ARROW3D_CIRCLE_SQUARE" - A bulleted list with a `ARROW3D`,
  580. // `CIRCLE` and `SQUARE` bullet glyph for
  581. // the first 3 list nesting levels.
  582. // "BULLET_LEFTTRIANGLE_DIAMOND_DISC" - A bulleted list with a
  583. // `LEFTTRIANGLE`, `DIAMOND` and `DISC` bullet glyph
  584. // for the first 3 list nesting levels.
  585. // "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE" - A bulleted list with a
  586. // `DIAMONDX`, `HOLLOWDIAMOND` and `SQUARE` bullet
  587. // glyph for the first 3 list nesting levels.
  588. // "BULLET_DIAMOND_CIRCLE_SQUARE" - A bulleted list with a `DIAMOND`,
  589. // `CIRCLE` and `SQUARE` bullet glyph
  590. // for the first 3 list nesting levels.
  591. // "NUMBERED_DIGIT_ALPHA_ROMAN" - A numbered list with `DIGIT`,
  592. // `ALPHA` and `ROMAN` numeric glyphs for
  593. // the first 3 list nesting levels, followed by periods.
  594. // "NUMBERED_DIGIT_ALPHA_ROMAN_PARENS" - A numbered list with `DIGIT`,
  595. // `ALPHA` and `ROMAN` numeric glyphs for
  596. // the first 3 list nesting levels, followed by parenthesis.
  597. // "NUMBERED_DIGIT_NESTED" - A numbered list with `DIGIT` numeric
  598. // glyphs separated by periods, where
  599. // each nesting level uses the previous nesting level's glyph as a
  600. // prefix.
  601. // For example: '1.', '1.1.', '2.', '2.2.'.
  602. // "NUMBERED_UPPERALPHA_ALPHA_ROMAN" - A numbered list with
  603. // `UPPERALPHA`, `ALPHA` and `ROMAN` numeric glyphs for
  604. // the first 3 list nesting levels, followed by periods.
  605. // "NUMBERED_UPPERROMAN_UPPERALPHA_DIGIT" - A numbered list with
  606. // `UPPERROMAN`, `UPPERALPHA` and `DIGIT` numeric glyphs
  607. // for the first 3 list nesting levels, followed by periods.
  608. // "NUMBERED_ZERODIGIT_ALPHA_ROMAN" - A numbered list with
  609. // `ZERODIGIT`, `ALPHA` and `ROMAN` numeric glyphs for
  610. // the first 3 list nesting levels, followed by periods.
  611. BulletPreset string `json:"bulletPreset,omitempty"`
  612. // CellLocation: The optional table cell location if the text to be
  613. // modified is in a table
  614. // cell. If present, the object_id must refer to a table.
  615. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  616. // ObjectId: The object ID of the shape or table containing the text to
  617. // add bullets to.
  618. ObjectId string `json:"objectId,omitempty"`
  619. // TextRange: The range of text to apply the bullet presets to, based on
  620. // TextElement indexes.
  621. TextRange *Range `json:"textRange,omitempty"`
  622. // ForceSendFields is a list of field names (e.g. "BulletPreset") to
  623. // unconditionally include in API requests. By default, fields with
  624. // empty values are omitted from API requests. However, any non-pointer,
  625. // non-interface field appearing in ForceSendFields will be sent to the
  626. // server regardless of whether the field is empty or not. This may be
  627. // used to include empty fields in Patch requests.
  628. ForceSendFields []string `json:"-"`
  629. // NullFields is a list of field names (e.g. "BulletPreset") to include
  630. // in API requests with the JSON null value. By default, fields with
  631. // empty values are omitted from API requests. However, any field with
  632. // an empty value appearing in NullFields will be sent to the server as
  633. // null. It is an error if a field in this list has a non-empty value.
  634. // This may be used to include null fields in Patch requests.
  635. NullFields []string `json:"-"`
  636. }
  637. func (s *CreateParagraphBulletsRequest) MarshalJSON() ([]byte, error) {
  638. type NoMethod CreateParagraphBulletsRequest
  639. raw := NoMethod(*s)
  640. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  641. }
  642. // CreateShapeRequest: Creates a new shape.
  643. type CreateShapeRequest struct {
  644. // ElementProperties: The element properties for the shape.
  645. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  646. // ObjectId: A user-supplied object ID.
  647. //
  648. // If you specify an ID, it must be unique among all pages and page
  649. // elements
  650. // in the presentation. The ID must start with an alphanumeric character
  651. // or an
  652. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  653. // may include those as well as a hyphen or colon (matches
  654. // regex
  655. // `[a-zA-Z0-9_-:]`).
  656. // The length of the ID must not be less than 5 or greater than 50.
  657. // If empty, a unique identifier will be generated.
  658. ObjectId string `json:"objectId,omitempty"`
  659. // ShapeType: The shape type.
  660. //
  661. // Possible values:
  662. // "TYPE_UNSPECIFIED" - The shape type that is not predefined.
  663. // "TEXT_BOX" - Text box shape.
  664. // "RECTANGLE" - Rectangle shape. Corresponds to ECMA-376 ST_ShapeType
  665. // 'rect'.
  666. // "ROUND_RECTANGLE" - Round corner rectangle shape. Corresponds to
  667. // ECMA-376 ST_ShapeType
  668. // 'roundRect'
  669. // "ELLIPSE" - Ellipse shape. Corresponds to ECMA-376 ST_ShapeType
  670. // 'ellipse'
  671. // "ARC" - Curved arc shape. Corresponds to ECMA-376 ST_ShapeType
  672. // 'arc'
  673. // "BENT_ARROW" - Bent arrow shape. Corresponds to ECMA-376
  674. // ST_ShapeType 'bentArrow'
  675. // "BENT_UP_ARROW" - Bent up arrow shape. Corresponds to ECMA-376
  676. // ST_ShapeType 'bentUpArrow'
  677. // "BEVEL" - Bevel shape. Corresponds to ECMA-376 ST_ShapeType 'bevel'
  678. // "BLOCK_ARC" - Block arc shape. Corresponds to ECMA-376 ST_ShapeType
  679. // 'blockArc'
  680. // "BRACE_PAIR" - Brace pair shape. Corresponds to ECMA-376
  681. // ST_ShapeType 'bracePair'
  682. // "BRACKET_PAIR" - Bracket pair shape. Corresponds to ECMA-376
  683. // ST_ShapeType 'bracketPair'
  684. // "CAN" - Can shape. Corresponds to ECMA-376 ST_ShapeType 'can'
  685. // "CHEVRON" - Chevron shape. Corresponds to ECMA-376 ST_ShapeType
  686. // 'chevron'
  687. // "CHORD" - Chord shape. Corresponds to ECMA-376 ST_ShapeType 'chord'
  688. // "CLOUD" - Cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloud'
  689. // "CORNER" - Corner shape. Corresponds to ECMA-376 ST_ShapeType
  690. // 'corner'
  691. // "CUBE" - Cube shape. Corresponds to ECMA-376 ST_ShapeType 'cube'
  692. // "CURVED_DOWN_ARROW" - Curved down arrow shape. Corresponds to
  693. // ECMA-376 ST_ShapeType
  694. // 'curvedDownArrow'
  695. // "CURVED_LEFT_ARROW" - Curved left arrow shape. Corresponds to
  696. // ECMA-376 ST_ShapeType
  697. // 'curvedLeftArrow'
  698. // "CURVED_RIGHT_ARROW" - Curved right arrow shape. Corresponds to
  699. // ECMA-376 ST_ShapeType
  700. // 'curvedRightArrow'
  701. // "CURVED_UP_ARROW" - Curved up arrow shape. Corresponds to ECMA-376
  702. // ST_ShapeType
  703. // 'curvedUpArrow'
  704. // "DECAGON" - Decagon shape. Corresponds to ECMA-376 ST_ShapeType
  705. // 'decagon'
  706. // "DIAGONAL_STRIPE" - Diagonal stripe shape. Corresponds to ECMA-376
  707. // ST_ShapeType 'diagStripe'
  708. // "DIAMOND" - Diamond shape. Corresponds to ECMA-376 ST_ShapeType
  709. // 'diamond'
  710. // "DODECAGON" - Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType
  711. // 'dodecagon'
  712. // "DONUT" - Donut shape. Corresponds to ECMA-376 ST_ShapeType 'donut'
  713. // "DOUBLE_WAVE" - Double wave shape. Corresponds to ECMA-376
  714. // ST_ShapeType 'doubleWave'
  715. // "DOWN_ARROW" - Down arrow shape. Corresponds to ECMA-376
  716. // ST_ShapeType 'downArrow'
  717. // "DOWN_ARROW_CALLOUT" - Callout down arrow shape. Corresponds to
  718. // ECMA-376 ST_ShapeType
  719. // 'downArrowCallout'
  720. // "FOLDED_CORNER" - Folded corner shape. Corresponds to ECMA-376
  721. // ST_ShapeType 'foldedCorner'
  722. // "FRAME" - Frame shape. Corresponds to ECMA-376 ST_ShapeType 'frame'
  723. // "HALF_FRAME" - Half frame shape. Corresponds to ECMA-376
  724. // ST_ShapeType 'halfFrame'
  725. // "HEART" - Heart shape. Corresponds to ECMA-376 ST_ShapeType 'heart'
  726. // "HEPTAGON" - Heptagon shape. Corresponds to ECMA-376 ST_ShapeType
  727. // 'heptagon'
  728. // "HEXAGON" - Hexagon shape. Corresponds to ECMA-376 ST_ShapeType
  729. // 'hexagon'
  730. // "HOME_PLATE" - Home plate shape. Corresponds to ECMA-376
  731. // ST_ShapeType 'homePlate'
  732. // "HORIZONTAL_SCROLL" - Horizontal scroll shape. Corresponds to
  733. // ECMA-376 ST_ShapeType
  734. // 'horizontalScroll'
  735. // "IRREGULAR_SEAL_1" - Irregular seal 1 shape. Corresponds to
  736. // ECMA-376 ST_ShapeType
  737. // 'irregularSeal1'
  738. // "IRREGULAR_SEAL_2" - Irregular seal 2 shape. Corresponds to
  739. // ECMA-376 ST_ShapeType
  740. // 'irregularSeal2'
  741. // "LEFT_ARROW" - Left arrow shape. Corresponds to ECMA-376
  742. // ST_ShapeType 'leftArrow'
  743. // "LEFT_ARROW_CALLOUT" - Callout left arrow shape. Corresponds to
  744. // ECMA-376 ST_ShapeType
  745. // 'leftArrowCallout'
  746. // "LEFT_BRACE" - Left brace shape. Corresponds to ECMA-376
  747. // ST_ShapeType 'leftBrace'
  748. // "LEFT_BRACKET" - Left bracket shape. Corresponds to ECMA-376
  749. // ST_ShapeType 'leftBracket'
  750. // "LEFT_RIGHT_ARROW" - Left right arrow shape. Corresponds to
  751. // ECMA-376 ST_ShapeType
  752. // 'leftRightArrow'
  753. // "LEFT_RIGHT_ARROW_CALLOUT" - Callout left right arrow shape.
  754. // Corresponds to ECMA-376 ST_ShapeType
  755. // 'leftRightArrowCallout'
  756. // "LEFT_RIGHT_UP_ARROW" - Left right up arrow shape. Corresponds to
  757. // ECMA-376 ST_ShapeType
  758. // 'leftRightUpArrow'
  759. // "LEFT_UP_ARROW" - Left up arrow shape. Corresponds to ECMA-376
  760. // ST_ShapeType 'leftUpArrow'
  761. // "LIGHTNING_BOLT" - Lightning bolt shape. Corresponds to ECMA-376
  762. // ST_ShapeType
  763. // 'lightningBolt'
  764. // "MATH_DIVIDE" - Divide math shape. Corresponds to ECMA-376
  765. // ST_ShapeType 'mathDivide'
  766. // "MATH_EQUAL" - Equal math shape. Corresponds to ECMA-376
  767. // ST_ShapeType 'mathEqual'
  768. // "MATH_MINUS" - Minus math shape. Corresponds to ECMA-376
  769. // ST_ShapeType 'mathMinus'
  770. // "MATH_MULTIPLY" - Multiply math shape. Corresponds to ECMA-376
  771. // ST_ShapeType 'mathMultiply'
  772. // "MATH_NOT_EQUAL" - Not equal math shape. Corresponds to ECMA-376
  773. // ST_ShapeType 'mathNotEqual'
  774. // "MATH_PLUS" - Plus math shape. Corresponds to ECMA-376 ST_ShapeType
  775. // 'mathPlus'
  776. // "MOON" - Moon shape. Corresponds to ECMA-376 ST_ShapeType 'moon'
  777. // "NO_SMOKING" - No smoking shape. Corresponds to ECMA-376
  778. // ST_ShapeType 'noSmoking'
  779. // "NOTCHED_RIGHT_ARROW" - Notched right arrow shape. Corresponds to
  780. // ECMA-376 ST_ShapeType
  781. // 'notchedRightArrow'
  782. // "OCTAGON" - Octagon shape. Corresponds to ECMA-376 ST_ShapeType
  783. // 'octagon'
  784. // "PARALLELOGRAM" - Parallelogram shape. Corresponds to ECMA-376
  785. // ST_ShapeType 'parallelogram'
  786. // "PENTAGON" - Pentagon shape. Corresponds to ECMA-376 ST_ShapeType
  787. // 'pentagon'
  788. // "PIE" - Pie shape. Corresponds to ECMA-376 ST_ShapeType 'pie'
  789. // "PLAQUE" - Plaque shape. Corresponds to ECMA-376 ST_ShapeType
  790. // 'plaque'
  791. // "PLUS" - Plus shape. Corresponds to ECMA-376 ST_ShapeType 'plus'
  792. // "QUAD_ARROW" - Quad-arrow shape. Corresponds to ECMA-376
  793. // ST_ShapeType 'quadArrow'
  794. // "QUAD_ARROW_CALLOUT" - Callout quad-arrow shape. Corresponds to
  795. // ECMA-376 ST_ShapeType
  796. // 'quadArrowCallout'
  797. // "RIBBON" - Ribbon shape. Corresponds to ECMA-376 ST_ShapeType
  798. // 'ribbon'
  799. // "RIBBON_2" - Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType
  800. // 'ribbon2'
  801. // "RIGHT_ARROW" - Right arrow shape. Corresponds to ECMA-376
  802. // ST_ShapeType 'rightArrow'
  803. // "RIGHT_ARROW_CALLOUT" - Callout right arrow shape. Corresponds to
  804. // ECMA-376 ST_ShapeType
  805. // 'rightArrowCallout'
  806. // "RIGHT_BRACE" - Right brace shape. Corresponds to ECMA-376
  807. // ST_ShapeType 'rightBrace'
  808. // "RIGHT_BRACKET" - Right bracket shape. Corresponds to ECMA-376
  809. // ST_ShapeType 'rightBracket'
  810. // "ROUND_1_RECTANGLE" - One round corner rectangle shape. Corresponds
  811. // to ECMA-376 ST_ShapeType
  812. // 'round1Rect'
  813. // "ROUND_2_DIAGONAL_RECTANGLE" - Two diagonal round corner rectangle
  814. // shape. Corresponds to ECMA-376
  815. // ST_ShapeType 'round2DiagRect'
  816. // "ROUND_2_SAME_RECTANGLE" - Two same-side round corner rectangle
  817. // shape. Corresponds to ECMA-376
  818. // ST_ShapeType 'round2SameRect'
  819. // "RIGHT_TRIANGLE" - Right triangle shape. Corresponds to ECMA-376
  820. // ST_ShapeType 'rtTriangle'
  821. // "SMILEY_FACE" - Smiley face shape. Corresponds to ECMA-376
  822. // ST_ShapeType 'smileyFace'
  823. // "SNIP_1_RECTANGLE" - One snip corner rectangle shape. Corresponds
  824. // to ECMA-376 ST_ShapeType
  825. // 'snip1Rect'
  826. // "SNIP_2_DIAGONAL_RECTANGLE" - Two diagonal snip corner rectangle
  827. // shape. Corresponds to ECMA-376
  828. // ST_ShapeType 'snip2DiagRect'
  829. // "SNIP_2_SAME_RECTANGLE" - Two same-side snip corner rectangle
  830. // shape. Corresponds to ECMA-376
  831. // ST_ShapeType 'snip2SameRect'
  832. // "SNIP_ROUND_RECTANGLE" - One snip one round corner rectangle shape.
  833. // Corresponds to ECMA-376
  834. // ST_ShapeType 'snipRoundRect'
  835. // "STAR_10" - Ten pointed star shape. Corresponds to ECMA-376
  836. // ST_ShapeType 'star10'
  837. // "STAR_12" - Twelve pointed star shape. Corresponds to ECMA-376
  838. // ST_ShapeType 'star12'
  839. // "STAR_16" - Sixteen pointed star shape. Corresponds to ECMA-376
  840. // ST_ShapeType 'star16'
  841. // "STAR_24" - Twenty four pointed star shape. Corresponds to ECMA-376
  842. // ST_ShapeType
  843. // 'star24'
  844. // "STAR_32" - Thirty two pointed star shape. Corresponds to ECMA-376
  845. // ST_ShapeType
  846. // 'star32'
  847. // "STAR_4" - Four pointed star shape. Corresponds to ECMA-376
  848. // ST_ShapeType 'star4'
  849. // "STAR_5" - Five pointed star shape. Corresponds to ECMA-376
  850. // ST_ShapeType 'star5'
  851. // "STAR_6" - Six pointed star shape. Corresponds to ECMA-376
  852. // ST_ShapeType 'star6'
  853. // "STAR_7" - Seven pointed star shape. Corresponds to ECMA-376
  854. // ST_ShapeType 'star7'
  855. // "STAR_8" - Eight pointed star shape. Corresponds to ECMA-376
  856. // ST_ShapeType 'star8'
  857. // "STRIPED_RIGHT_ARROW" - Striped right arrow shape. Corresponds to
  858. // ECMA-376 ST_ShapeType
  859. // 'stripedRightArrow'
  860. // "SUN" - Sun shape. Corresponds to ECMA-376 ST_ShapeType 'sun'
  861. // "TRAPEZOID" - Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType
  862. // 'trapezoid'
  863. // "TRIANGLE" - Triangle shape. Corresponds to ECMA-376 ST_ShapeType
  864. // 'triangle'
  865. // "UP_ARROW" - Up arrow shape. Corresponds to ECMA-376 ST_ShapeType
  866. // 'upArrow'
  867. // "UP_ARROW_CALLOUT" - Callout up arrow shape. Corresponds to
  868. // ECMA-376 ST_ShapeType
  869. // 'upArrowCallout'
  870. // "UP_DOWN_ARROW" - Up down arrow shape. Corresponds to ECMA-376
  871. // ST_ShapeType 'upDownArrow'
  872. // "UTURN_ARROW" - U-turn arrow shape. Corresponds to ECMA-376
  873. // ST_ShapeType 'uturnArrow'
  874. // "VERTICAL_SCROLL" - Vertical scroll shape. Corresponds to ECMA-376
  875. // ST_ShapeType
  876. // 'verticalScroll'
  877. // "WAVE" - Wave shape. Corresponds to ECMA-376 ST_ShapeType 'wave'
  878. // "WEDGE_ELLIPSE_CALLOUT" - Callout wedge ellipse shape. Corresponds
  879. // to ECMA-376 ST_ShapeType
  880. // 'wedgeEllipseCallout'
  881. // "WEDGE_RECTANGLE_CALLOUT" - Callout wedge rectangle shape.
  882. // Corresponds to ECMA-376 ST_ShapeType
  883. // 'wedgeRectCallout'
  884. // "WEDGE_ROUND_RECTANGLE_CALLOUT" - Callout wedge round rectangle
  885. // shape. Corresponds to ECMA-376 ST_ShapeType
  886. // 'wedgeRoundRectCallout'
  887. // "FLOW_CHART_ALTERNATE_PROCESS" - Alternate process flow shape.
  888. // Corresponds to ECMA-376 ST_ShapeType
  889. // 'flowChartAlternateProcess'
  890. // "FLOW_CHART_COLLATE" - Collate flow shape. Corresponds to ECMA-376
  891. // ST_ShapeType
  892. // 'flowChartCollate'
  893. // "FLOW_CHART_CONNECTOR" - Connector flow shape. Corresponds to
  894. // ECMA-376 ST_ShapeType
  895. // 'flowChartConnector'
  896. // "FLOW_CHART_DECISION" - Decision flow shape. Corresponds to
  897. // ECMA-376 ST_ShapeType
  898. // 'flowChartDecision'
  899. // "FLOW_CHART_DELAY" - Delay flow shape. Corresponds to ECMA-376
  900. // ST_ShapeType 'flowChartDelay'
  901. // "FLOW_CHART_DISPLAY" - Display flow shape. Corresponds to ECMA-376
  902. // ST_ShapeType
  903. // 'flowChartDisplay'
  904. // "FLOW_CHART_DOCUMENT" - Document flow shape. Corresponds to
  905. // ECMA-376 ST_ShapeType
  906. // 'flowChartDocument'
  907. // "FLOW_CHART_EXTRACT" - Extract flow shape. Corresponds to ECMA-376
  908. // ST_ShapeType
  909. // 'flowChartExtract'
  910. // "FLOW_CHART_INPUT_OUTPUT" - Input output flow shape. Corresponds to
  911. // ECMA-376 ST_ShapeType
  912. // 'flowChartInputOutput'
  913. // "FLOW_CHART_INTERNAL_STORAGE" - Internal storage flow shape.
  914. // Corresponds to ECMA-376 ST_ShapeType
  915. // 'flowChartInternalStorage'
  916. // "FLOW_CHART_MAGNETIC_DISK" - Magnetic disk flow shape. Corresponds
  917. // to ECMA-376 ST_ShapeType
  918. // 'flowChartMagneticDisk'
  919. // "FLOW_CHART_MAGNETIC_DRUM" - Magnetic drum flow shape. Corresponds
  920. // to ECMA-376 ST_ShapeType
  921. // 'flowChartMagneticDrum'
  922. // "FLOW_CHART_MAGNETIC_TAPE" - Magnetic tape flow shape. Corresponds
  923. // to ECMA-376 ST_ShapeType
  924. // 'flowChartMagneticTape'
  925. // "FLOW_CHART_MANUAL_INPUT" - Manual input flow shape. Corresponds to
  926. // ECMA-376 ST_ShapeType
  927. // 'flowChartManualInput'
  928. // "FLOW_CHART_MANUAL_OPERATION" - Manual operation flow shape.
  929. // Corresponds to ECMA-376 ST_ShapeType
  930. // 'flowChartManualOperation'
  931. // "FLOW_CHART_MERGE" - Merge flow shape. Corresponds to ECMA-376
  932. // ST_ShapeType 'flowChartMerge'
  933. // "FLOW_CHART_MULTIDOCUMENT" - Multi-document flow shape. Corresponds
  934. // to ECMA-376 ST_ShapeType
  935. // 'flowChartMultidocument'
  936. // "FLOW_CHART_OFFLINE_STORAGE" - Offline storage flow shape.
  937. // Corresponds to ECMA-376 ST_ShapeType
  938. // 'flowChartOfflineStorage'
  939. // "FLOW_CHART_OFFPAGE_CONNECTOR" - Off-page connector flow shape.
  940. // Corresponds to ECMA-376 ST_ShapeType
  941. // 'flowChartOffpageConnector'
  942. // "FLOW_CHART_ONLINE_STORAGE" - Online storage flow shape.
  943. // Corresponds to ECMA-376 ST_ShapeType
  944. // 'flowChartOnlineStorage'
  945. // "FLOW_CHART_OR" - Or flow shape. Corresponds to ECMA-376
  946. // ST_ShapeType 'flowChartOr'
  947. // "FLOW_CHART_PREDEFINED_PROCESS" - Predefined process flow shape.
  948. // Corresponds to ECMA-376 ST_ShapeType
  949. // 'flowChartPredefinedProcess'
  950. // "FLOW_CHART_PREPARATION" - Preparation flow shape. Corresponds to
  951. // ECMA-376 ST_ShapeType
  952. // 'flowChartPreparation'
  953. // "FLOW_CHART_PROCESS" - Process flow shape. Corresponds to ECMA-376
  954. // ST_ShapeType
  955. // 'flowChartProcess'
  956. // "FLOW_CHART_PUNCHED_CARD" - Punched card flow shape. Corresponds to
  957. // ECMA-376 ST_ShapeType
  958. // 'flowChartPunchedCard'
  959. // "FLOW_CHART_PUNCHED_TAPE" - Punched tape flow shape. Corresponds to
  960. // ECMA-376 ST_ShapeType
  961. // 'flowChartPunchedTape'
  962. // "FLOW_CHART_SORT" - Sort flow shape. Corresponds to ECMA-376
  963. // ST_ShapeType 'flowChartSort'
  964. // "FLOW_CHART_SUMMING_JUNCTION" - Summing junction flow shape.
  965. // Corresponds to ECMA-376 ST_ShapeType
  966. // 'flowChartSummingJunction'
  967. // "FLOW_CHART_TERMINATOR" - Terminator flow shape. Corresponds to
  968. // ECMA-376 ST_ShapeType
  969. // 'flowChartTerminator'
  970. // "ARROW_EAST" - East arrow shape.
  971. // "ARROW_NORTH_EAST" - Northeast arrow shape.
  972. // "ARROW_NORTH" - North arrow shape.
  973. // "SPEECH" - Speech shape.
  974. // "STARBURST" - Star burst shape.
  975. // "TEARDROP" - Teardrop shape. Corresponds to ECMA-376 ST_ShapeType
  976. // 'teardrop'
  977. // "ELLIPSE_RIBBON" - Ellipse ribbon shape. Corresponds to ECMA-376
  978. // ST_ShapeType
  979. // 'ellipseRibbon'
  980. // "ELLIPSE_RIBBON_2" - Ellipse ribbon 2 shape. Corresponds to
  981. // ECMA-376 ST_ShapeType
  982. // 'ellipseRibbon2'
  983. // "CLOUD_CALLOUT" - Callout cloud shape. Corresponds to ECMA-376
  984. // ST_ShapeType 'cloudCallout'
  985. // "CUSTOM" - Custom shape.
  986. ShapeType string `json:"shapeType,omitempty"`
  987. // ForceSendFields is a list of field names (e.g. "ElementProperties")
  988. // to unconditionally include in API requests. By default, fields with
  989. // empty values are omitted from API requests. However, any non-pointer,
  990. // non-interface field appearing in ForceSendFields will be sent to the
  991. // server regardless of whether the field is empty or not. This may be
  992. // used to include empty fields in Patch requests.
  993. ForceSendFields []string `json:"-"`
  994. // NullFields is a list of field names (e.g. "ElementProperties") to
  995. // include in API requests with the JSON null value. By default, fields
  996. // with empty values are omitted from API requests. However, any field
  997. // with an empty value appearing in NullFields will be sent to the
  998. // server as null. It is an error if a field in this list has a
  999. // non-empty value. This may be used to include null fields in Patch
  1000. // requests.
  1001. NullFields []string `json:"-"`
  1002. }
  1003. func (s *CreateShapeRequest) MarshalJSON() ([]byte, error) {
  1004. type NoMethod CreateShapeRequest
  1005. raw := NoMethod(*s)
  1006. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1007. }
  1008. // CreateShapeResponse: The result of creating a shape.
  1009. type CreateShapeResponse struct {
  1010. // ObjectId: The object ID of the created shape.
  1011. ObjectId string `json:"objectId,omitempty"`
  1012. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1013. // unconditionally include in API requests. By default, fields with
  1014. // empty values are omitted from API requests. However, any non-pointer,
  1015. // non-interface field appearing in ForceSendFields will be sent to the
  1016. // server regardless of whether the field is empty or not. This may be
  1017. // used to include empty fields in Patch requests.
  1018. ForceSendFields []string `json:"-"`
  1019. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1020. // API requests with the JSON null value. By default, fields with empty
  1021. // values are omitted from API requests. However, any field with an
  1022. // empty value appearing in NullFields will be sent to the server as
  1023. // null. It is an error if a field in this list has a non-empty value.
  1024. // This may be used to include null fields in Patch requests.
  1025. NullFields []string `json:"-"`
  1026. }
  1027. func (s *CreateShapeResponse) MarshalJSON() ([]byte, error) {
  1028. type NoMethod CreateShapeResponse
  1029. raw := NoMethod(*s)
  1030. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1031. }
  1032. // CreateSheetsChartRequest: Creates an embedded Google Sheets
  1033. // chart.
  1034. //
  1035. // NOTE: Chart creation requires at least one of the
  1036. // spreadsheets.readonly,
  1037. // spreadsheets, drive.readonly, drive.file, or drive OAuth scopes.
  1038. type CreateSheetsChartRequest struct {
  1039. // ChartId: The ID of the specific chart in the Google Sheets
  1040. // spreadsheet.
  1041. ChartId int64 `json:"chartId,omitempty"`
  1042. // ElementProperties: The element properties for the chart.
  1043. //
  1044. // When the aspect ratio of the provided size does not match the chart
  1045. // aspect
  1046. // ratio, the chart is scaled and centered with respect to the size in
  1047. // order
  1048. // to maintain aspect ratio. The provided transform is applied after
  1049. // this
  1050. // operation.
  1051. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  1052. // LinkingMode: The mode with which the chart is linked to the source
  1053. // spreadsheet. When
  1054. // not specified, the chart will be an image that is not linked.
  1055. //
  1056. // Possible values:
  1057. // "NOT_LINKED_IMAGE" - The chart is not associated with the source
  1058. // spreadsheet and cannot be
  1059. // updated. A chart that is not linked will be inserted as an image.
  1060. // "LINKED" - Linking the chart allows it to be updated, and other
  1061. // collaborators will
  1062. // see a link to the spreadsheet.
  1063. LinkingMode string `json:"linkingMode,omitempty"`
  1064. // ObjectId: A user-supplied object ID.
  1065. //
  1066. // If specified, the ID must be unique among all pages and page elements
  1067. // in
  1068. // the presentation. The ID should start with a word character
  1069. // [a-zA-Z0-9_]
  1070. // and then followed by any number of the following characters
  1071. // [a-zA-Z0-9_-:].
  1072. // The length of the ID should not be less than 5 or greater than 50.
  1073. // If empty, a unique identifier will be generated.
  1074. ObjectId string `json:"objectId,omitempty"`
  1075. // SpreadsheetId: The ID of the Google Sheets spreadsheet that contains
  1076. // the chart.
  1077. SpreadsheetId string `json:"spreadsheetId,omitempty"`
  1078. // ForceSendFields is a list of field names (e.g. "ChartId") to
  1079. // unconditionally include in API requests. By default, fields with
  1080. // empty values are omitted from API requests. However, any non-pointer,
  1081. // non-interface field appearing in ForceSendFields will be sent to the
  1082. // server regardless of whether the field is empty or not. This may be
  1083. // used to include empty fields in Patch requests.
  1084. ForceSendFields []string `json:"-"`
  1085. // NullFields is a list of field names (e.g. "ChartId") to include in
  1086. // API requests with the JSON null value. By default, fields with empty
  1087. // values are omitted from API requests. However, any field with an
  1088. // empty value appearing in NullFields will be sent to the server as
  1089. // null. It is an error if a field in this list has a non-empty value.
  1090. // This may be used to include null fields in Patch requests.
  1091. NullFields []string `json:"-"`
  1092. }
  1093. func (s *CreateSheetsChartRequest) MarshalJSON() ([]byte, error) {
  1094. type NoMethod CreateSheetsChartRequest
  1095. raw := NoMethod(*s)
  1096. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1097. }
  1098. // CreateSheetsChartResponse: The result of creating an embedded Google
  1099. // Sheets chart.
  1100. type CreateSheetsChartResponse struct {
  1101. // ObjectId: The object ID of the created chart.
  1102. ObjectId string `json:"objectId,omitempty"`
  1103. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1104. // unconditionally include in API requests. By default, fields with
  1105. // empty values are omitted from API requests. However, any non-pointer,
  1106. // non-interface field appearing in ForceSendFields will be sent to the
  1107. // server regardless of whether the field is empty or not. This may be
  1108. // used to include empty fields in Patch requests.
  1109. ForceSendFields []string `json:"-"`
  1110. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1111. // API requests with the JSON null value. By default, fields with empty
  1112. // values are omitted from API requests. However, any field with an
  1113. // empty value appearing in NullFields will be sent to the server as
  1114. // null. It is an error if a field in this list has a non-empty value.
  1115. // This may be used to include null fields in Patch requests.
  1116. NullFields []string `json:"-"`
  1117. }
  1118. func (s *CreateSheetsChartResponse) MarshalJSON() ([]byte, error) {
  1119. type NoMethod CreateSheetsChartResponse
  1120. raw := NoMethod(*s)
  1121. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1122. }
  1123. // CreateSlideRequest: Creates a new slide.
  1124. type CreateSlideRequest struct {
  1125. // InsertionIndex: The optional zero-based index indicating where to
  1126. // insert the slides.
  1127. //
  1128. // If you don't specify an index, the new slide is created at the end.
  1129. InsertionIndex int64 `json:"insertionIndex,omitempty"`
  1130. // ObjectId: A user-supplied object ID.
  1131. //
  1132. // If you specify an ID, it must be unique among all pages and page
  1133. // elements
  1134. // in the presentation. The ID must start with an alphanumeric character
  1135. // or an
  1136. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  1137. // may include those as well as a hyphen or colon (matches
  1138. // regex
  1139. // `[a-zA-Z0-9_-:]`).
  1140. // The length of the ID must not be less than 5 or greater than 50.
  1141. //
  1142. // If you don't specify an ID, a unique one is generated.
  1143. ObjectId string `json:"objectId,omitempty"`
  1144. // PlaceholderIdMappings: An optional list of object ID mappings from
  1145. // the placeholder(s) on the layout to the placeholder(s)
  1146. // that will be created on the new slide from that specified layout. Can
  1147. // only
  1148. // be used when `slide_layout_reference` is specified.
  1149. PlaceholderIdMappings []*LayoutPlaceholderIdMapping `json:"placeholderIdMappings,omitempty"`
  1150. // SlideLayoutReference: Layout reference of the slide to be inserted,
  1151. // based on the *current
  1152. // master*, which is one of the following:
  1153. //
  1154. // - The master of the previous slide index.
  1155. // - The master of the first slide, if the insertion_index is zero.
  1156. // - The first master in the presentation, if there are no slides.
  1157. //
  1158. // If the LayoutReference is not found in the current master, a 400
  1159. // bad
  1160. // request error is returned.
  1161. //
  1162. // If you don't specify a layout reference, then the new slide will use
  1163. // the
  1164. // predefined layout `BLANK`.
  1165. SlideLayoutReference *LayoutReference `json:"slideLayoutReference,omitempty"`
  1166. // ForceSendFields is a list of field names (e.g. "InsertionIndex") to
  1167. // unconditionally include in API requests. By default, fields with
  1168. // empty values are omitted from API requests. However, any non-pointer,
  1169. // non-interface field appearing in ForceSendFields will be sent to the
  1170. // server regardless of whether the field is empty or not. This may be
  1171. // used to include empty fields in Patch requests.
  1172. ForceSendFields []string `json:"-"`
  1173. // NullFields is a list of field names (e.g. "InsertionIndex") to
  1174. // include in API requests with the JSON null value. By default, fields
  1175. // with empty values are omitted from API requests. However, any field
  1176. // with an empty value appearing in NullFields will be sent to the
  1177. // server as null. It is an error if a field in this list has a
  1178. // non-empty value. This may be used to include null fields in Patch
  1179. // requests.
  1180. NullFields []string `json:"-"`
  1181. }
  1182. func (s *CreateSlideRequest) MarshalJSON() ([]byte, error) {
  1183. type NoMethod CreateSlideRequest
  1184. raw := NoMethod(*s)
  1185. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1186. }
  1187. // CreateSlideResponse: The result of creating a slide.
  1188. type CreateSlideResponse struct {
  1189. // ObjectId: The object ID of the created slide.
  1190. ObjectId string `json:"objectId,omitempty"`
  1191. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1192. // unconditionally include in API requests. By default, fields with
  1193. // empty values are omitted from API requests. However, any non-pointer,
  1194. // non-interface field appearing in ForceSendFields will be sent to the
  1195. // server regardless of whether the field is empty or not. This may be
  1196. // used to include empty fields in Patch requests.
  1197. ForceSendFields []string `json:"-"`
  1198. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1199. // API requests with the JSON null value. By default, fields with empty
  1200. // values are omitted from API requests. However, any field with an
  1201. // empty value appearing in NullFields will be sent to the server as
  1202. // null. It is an error if a field in this list has a non-empty value.
  1203. // This may be used to include null fields in Patch requests.
  1204. NullFields []string `json:"-"`
  1205. }
  1206. func (s *CreateSlideResponse) MarshalJSON() ([]byte, error) {
  1207. type NoMethod CreateSlideResponse
  1208. raw := NoMethod(*s)
  1209. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1210. }
  1211. // CreateTableRequest: Creates a new table.
  1212. type CreateTableRequest struct {
  1213. // Columns: Number of columns in the table.
  1214. Columns int64 `json:"columns,omitempty"`
  1215. // ElementProperties: The element properties for the table.
  1216. //
  1217. // The table will be created at the provided size, subject to a minimum
  1218. // size.
  1219. // If no size is provided, the table will be automatically sized.
  1220. //
  1221. // Table transforms must have a scale of 1 and no shear components. If
  1222. // no
  1223. // transform is provided, the table will be centered on the page.
  1224. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  1225. // ObjectId: A user-supplied object ID.
  1226. //
  1227. // If you specify an ID, it must be unique among all pages and page
  1228. // elements
  1229. // in the presentation. The ID must start with an alphanumeric character
  1230. // or an
  1231. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  1232. // may include those as well as a hyphen or colon (matches
  1233. // regex
  1234. // `[a-zA-Z0-9_-:]`).
  1235. // The length of the ID must not be less than 5 or greater than 50.
  1236. //
  1237. // If you don't specify an ID, a unique one is generated.
  1238. ObjectId string `json:"objectId,omitempty"`
  1239. // Rows: Number of rows in the table.
  1240. Rows int64 `json:"rows,omitempty"`
  1241. // ForceSendFields is a list of field names (e.g. "Columns") to
  1242. // unconditionally include in API requests. By default, fields with
  1243. // empty values are omitted from API requests. However, any non-pointer,
  1244. // non-interface field appearing in ForceSendFields will be sent to the
  1245. // server regardless of whether the field is empty or not. This may be
  1246. // used to include empty fields in Patch requests.
  1247. ForceSendFields []string `json:"-"`
  1248. // NullFields is a list of field names (e.g. "Columns") to include in
  1249. // API requests with the JSON null value. By default, fields with empty
  1250. // values are omitted from API requests. However, any field with an
  1251. // empty value appearing in NullFields will be sent to the server as
  1252. // null. It is an error if a field in this list has a non-empty value.
  1253. // This may be used to include null fields in Patch requests.
  1254. NullFields []string `json:"-"`
  1255. }
  1256. func (s *CreateTableRequest) MarshalJSON() ([]byte, error) {
  1257. type NoMethod CreateTableRequest
  1258. raw := NoMethod(*s)
  1259. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1260. }
  1261. // CreateTableResponse: The result of creating a table.
  1262. type CreateTableResponse struct {
  1263. // ObjectId: The object ID of the created table.
  1264. ObjectId string `json:"objectId,omitempty"`
  1265. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1266. // unconditionally include in API requests. By default, fields with
  1267. // empty values are omitted from API requests. However, any non-pointer,
  1268. // non-interface field appearing in ForceSendFields will be sent to the
  1269. // server regardless of whether the field is empty or not. This may be
  1270. // used to include empty fields in Patch requests.
  1271. ForceSendFields []string `json:"-"`
  1272. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1273. // API requests with the JSON null value. By default, fields with empty
  1274. // values are omitted from API requests. However, any field with an
  1275. // empty value appearing in NullFields will be sent to the server as
  1276. // null. It is an error if a field in this list has a non-empty value.
  1277. // This may be used to include null fields in Patch requests.
  1278. NullFields []string `json:"-"`
  1279. }
  1280. func (s *CreateTableResponse) MarshalJSON() ([]byte, error) {
  1281. type NoMethod CreateTableResponse
  1282. raw := NoMethod(*s)
  1283. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1284. }
  1285. // CreateVideoRequest: Creates a video.
  1286. //
  1287. // NOTE: Drive video creation requires that the requesting app have at
  1288. // least one
  1289. // of the drive, drive.readonly, or drive.file OAuth scopes.
  1290. type CreateVideoRequest struct {
  1291. // ElementProperties: The element properties for the video.
  1292. //
  1293. // The PageElementProperties.size property is
  1294. // optional. If you don't specify a size, a default size is chosen by
  1295. // the
  1296. // server.
  1297. //
  1298. // The PageElementProperties.transform property is
  1299. // optional. The transform must not have shear components.
  1300. // If you don't specify a transform, the video will be placed at the top
  1301. // left
  1302. // corner of the page.
  1303. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  1304. // Id: The video source's unique identifier for this video.
  1305. //
  1306. // e.g. For YouTube video
  1307. // https://www.youtube.com/watch?v=7U3axjORYZ0,
  1308. // the ID is 7U3axjORYZ0. For Drive
  1309. // video
  1310. // https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5
  1311. // Q the ID
  1312. // is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q.
  1313. Id string `json:"id,omitempty"`
  1314. // ObjectId: A user-supplied object ID.
  1315. //
  1316. // If you specify an ID, it must be unique among all pages and page
  1317. // elements
  1318. // in the presentation. The ID must start with an alphanumeric character
  1319. // or an
  1320. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  1321. // may include those as well as a hyphen or colon (matches
  1322. // regex
  1323. // `[a-zA-Z0-9_-:]`).
  1324. // The length of the ID must not be less than 5 or greater than 50.
  1325. //
  1326. // If you don't specify an ID, a unique one is generated.
  1327. ObjectId string `json:"objectId,omitempty"`
  1328. // Source: The video source.
  1329. //
  1330. // Possible values:
  1331. // "SOURCE_UNSPECIFIED" - The video source is unspecified.
  1332. // "YOUTUBE" - The video source is YouTube.
  1333. // "DRIVE" - The video source is Drive.
  1334. Source string `json:"source,omitempty"`
  1335. // ForceSendFields is a list of field names (e.g. "ElementProperties")
  1336. // to unconditionally include in API requests. By default, fields with
  1337. // empty values are omitted from API requests. However, any non-pointer,
  1338. // non-interface field appearing in ForceSendFields will be sent to the
  1339. // server regardless of whether the field is empty or not. This may be
  1340. // used to include empty fields in Patch requests.
  1341. ForceSendFields []string `json:"-"`
  1342. // NullFields is a list of field names (e.g. "ElementProperties") to
  1343. // include in API requests with the JSON null value. By default, fields
  1344. // with empty values are omitted from API requests. However, any field
  1345. // with an empty value appearing in NullFields will be sent to the
  1346. // server as null. It is an error if a field in this list has a
  1347. // non-empty value. This may be used to include null fields in Patch
  1348. // requests.
  1349. NullFields []string `json:"-"`
  1350. }
  1351. func (s *CreateVideoRequest) MarshalJSON() ([]byte, error) {
  1352. type NoMethod CreateVideoRequest
  1353. raw := NoMethod(*s)
  1354. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1355. }
  1356. // CreateVideoResponse: The result of creating a video.
  1357. type CreateVideoResponse struct {
  1358. // ObjectId: The object ID of the created video.
  1359. ObjectId string `json:"objectId,omitempty"`
  1360. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1361. // unconditionally include in API requests. By default, fields with
  1362. // empty values are omitted from API requests. However, any non-pointer,
  1363. // non-interface field appearing in ForceSendFields will be sent to the
  1364. // server regardless of whether the field is empty or not. This may be
  1365. // used to include empty fields in Patch requests.
  1366. ForceSendFields []string `json:"-"`
  1367. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1368. // API requests with the JSON null value. By default, fields with empty
  1369. // values are omitted from API requests. However, any field with an
  1370. // empty value appearing in NullFields will be sent to the server as
  1371. // null. It is an error if a field in this list has a non-empty value.
  1372. // This may be used to include null fields in Patch requests.
  1373. NullFields []string `json:"-"`
  1374. }
  1375. func (s *CreateVideoResponse) MarshalJSON() ([]byte, error) {
  1376. type NoMethod CreateVideoResponse
  1377. raw := NoMethod(*s)
  1378. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1379. }
  1380. // CropProperties: The crop properties of an object enclosed in a
  1381. // container. For example, an
  1382. // Image.
  1383. //
  1384. // The crop properties is represented by the offsets of four edges which
  1385. // define
  1386. // a crop rectangle. The offsets are measured in percentage from
  1387. // the
  1388. // corresponding edges of the object's original bounding rectangle
  1389. // towards
  1390. // inside, relative to the object's original dimensions.
  1391. //
  1392. // - If the offset is in the interval (0, 1), the corresponding edge of
  1393. // crop
  1394. // rectangle is positioned inside of the object's original bounding
  1395. // rectangle.
  1396. // - If the offset is negative or greater than 1, the corresponding edge
  1397. // of crop
  1398. // rectangle is positioned outside of the object's original bounding
  1399. // rectangle.
  1400. // - If the left edge of the crop rectangle is on the right side of its
  1401. // right
  1402. // edge, the object will be flipped horizontally.
  1403. // - If the top edge of the crop rectangle is below its bottom edge, the
  1404. // object
  1405. // will be flipped vertically.
  1406. // - If all offsets and rotation angle is 0, the object is not
  1407. // cropped.
  1408. //
  1409. // After cropping, the content in the crop rectangle will be stretched
  1410. // to fit
  1411. // its container.
  1412. type CropProperties struct {
  1413. // Angle: The rotation angle of the crop window around its center, in
  1414. // radians.
  1415. // Rotation angle is applied after the offset.
  1416. Angle float64 `json:"angle,omitempty"`
  1417. // BottomOffset: The offset specifies the bottom edge of the crop
  1418. // rectangle that is located
  1419. // above the original bounding rectangle bottom edge, relative to the
  1420. // object's
  1421. // original height.
  1422. BottomOffset float64 `json:"bottomOffset,omitempty"`
  1423. // LeftOffset: The offset specifies the left edge of the crop rectangle
  1424. // that is located to
  1425. // the right of the original bounding rectangle left edge, relative to
  1426. // the
  1427. // object's original width.
  1428. LeftOffset float64 `json:"leftOffset,omitempty"`
  1429. // RightOffset: The offset specifies the right edge of the crop
  1430. // rectangle that is located
  1431. // to the left of the original bounding rectangle right edge, relative
  1432. // to the
  1433. // object's original width.
  1434. RightOffset float64 `json:"rightOffset,omitempty"`
  1435. // TopOffset: The offset specifies the top edge of the crop rectangle
  1436. // that is located
  1437. // below the original bounding rectangle top edge, relative to the
  1438. // object's
  1439. // original height.
  1440. TopOffset float64 `json:"topOffset,omitempty"`
  1441. // ForceSendFields is a list of field names (e.g. "Angle") to
  1442. // unconditionally include in API requests. By default, fields with
  1443. // empty values are omitted from API requests. However, any non-pointer,
  1444. // non-interface field appearing in ForceSendFields will be sent to the
  1445. // server regardless of whether the field is empty or not. This may be
  1446. // used to include empty fields in Patch requests.
  1447. ForceSendFields []string `json:"-"`
  1448. // NullFields is a list of field names (e.g. "Angle") to include in API
  1449. // requests with the JSON null value. By default, fields with empty
  1450. // values are omitted from API requests. However, any field with an
  1451. // empty value appearing in NullFields will be sent to the server as
  1452. // null. It is an error if a field in this list has a non-empty value.
  1453. // This may be used to include null fields in Patch requests.
  1454. NullFields []string `json:"-"`
  1455. }
  1456. func (s *CropProperties) MarshalJSON() ([]byte, error) {
  1457. type NoMethod CropProperties
  1458. raw := NoMethod(*s)
  1459. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1460. }
  1461. func (s *CropProperties) UnmarshalJSON(data []byte) error {
  1462. type NoMethod CropProperties
  1463. var s1 struct {
  1464. Angle gensupport.JSONFloat64 `json:"angle"`
  1465. BottomOffset gensupport.JSONFloat64 `json:"bottomOffset"`
  1466. LeftOffset gensupport.JSONFloat64 `json:"leftOffset"`
  1467. RightOffset gensupport.JSONFloat64 `json:"rightOffset"`
  1468. TopOffset gensupport.JSONFloat64 `json:"topOffset"`
  1469. *NoMethod
  1470. }
  1471. s1.NoMethod = (*NoMethod)(s)
  1472. if err := json.Unmarshal(data, &s1); err != nil {
  1473. return err
  1474. }
  1475. s.Angle = float64(s1.Angle)
  1476. s.BottomOffset = float64(s1.BottomOffset)
  1477. s.LeftOffset = float64(s1.LeftOffset)
  1478. s.RightOffset = float64(s1.RightOffset)
  1479. s.TopOffset = float64(s1.TopOffset)
  1480. return nil
  1481. }
  1482. // DeleteObjectRequest: Deletes an object, either pages or
  1483. // page elements, from the
  1484. // presentation.
  1485. type DeleteObjectRequest struct {
  1486. // ObjectId: The object ID of the page or page element to delete.
  1487. //
  1488. // If after a delete operation a group contains
  1489. // only 1 or no page elements, the group is also deleted.
  1490. //
  1491. // If a placeholder is deleted on a layout, any empty inheriting shapes
  1492. // are
  1493. // also deleted.
  1494. ObjectId string `json:"objectId,omitempty"`
  1495. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1496. // unconditionally include in API requests. By default, fields with
  1497. // empty values are omitted from API requests. However, any non-pointer,
  1498. // non-interface field appearing in ForceSendFields will be sent to the
  1499. // server regardless of whether the field is empty or not. This may be
  1500. // used to include empty fields in Patch requests.
  1501. ForceSendFields []string `json:"-"`
  1502. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1503. // API requests with the JSON null value. By default, fields with empty
  1504. // values are omitted from API requests. However, any field with an
  1505. // empty value appearing in NullFields will be sent to the server as
  1506. // null. It is an error if a field in this list has a non-empty value.
  1507. // This may be used to include null fields in Patch requests.
  1508. NullFields []string `json:"-"`
  1509. }
  1510. func (s *DeleteObjectRequest) MarshalJSON() ([]byte, error) {
  1511. type NoMethod DeleteObjectRequest
  1512. raw := NoMethod(*s)
  1513. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1514. }
  1515. // DeleteParagraphBulletsRequest: Deletes bullets from all of the
  1516. // paragraphs that overlap with the given text
  1517. // index range.
  1518. //
  1519. // The nesting level of each paragraph will be visually preserved by
  1520. // adding
  1521. // indent to the start of the corresponding paragraph.
  1522. type DeleteParagraphBulletsRequest struct {
  1523. // CellLocation: The optional table cell location if the text to be
  1524. // modified is in a table
  1525. // cell. If present, the object_id must refer to a table.
  1526. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  1527. // ObjectId: The object ID of the shape or table containing the text to
  1528. // delete bullets
  1529. // from.
  1530. ObjectId string `json:"objectId,omitempty"`
  1531. // TextRange: The range of text to delete bullets from, based on
  1532. // TextElement indexes.
  1533. TextRange *Range `json:"textRange,omitempty"`
  1534. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  1535. // unconditionally include in API requests. By default, fields with
  1536. // empty values are omitted from API requests. However, any non-pointer,
  1537. // non-interface field appearing in ForceSendFields will be sent to the
  1538. // server regardless of whether the field is empty or not. This may be
  1539. // used to include empty fields in Patch requests.
  1540. ForceSendFields []string `json:"-"`
  1541. // NullFields is a list of field names (e.g. "CellLocation") to include
  1542. // in API requests with the JSON null value. By default, fields with
  1543. // empty values are omitted from API requests. However, any field with
  1544. // an empty value appearing in NullFields will be sent to the server as
  1545. // null. It is an error if a field in this list has a non-empty value.
  1546. // This may be used to include null fields in Patch requests.
  1547. NullFields []string `json:"-"`
  1548. }
  1549. func (s *DeleteParagraphBulletsRequest) MarshalJSON() ([]byte, error) {
  1550. type NoMethod DeleteParagraphBulletsRequest
  1551. raw := NoMethod(*s)
  1552. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1553. }
  1554. // DeleteTableColumnRequest: Deletes a column from a table.
  1555. type DeleteTableColumnRequest struct {
  1556. // CellLocation: The reference table cell location from which a column
  1557. // will be deleted.
  1558. //
  1559. // The column this cell spans will be deleted. If this is a merged
  1560. // cell,
  1561. // multiple columns will be deleted. If no columns remain in the table
  1562. // after
  1563. // this deletion, the whole table is deleted.
  1564. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  1565. // TableObjectId: The table to delete columns from.
  1566. TableObjectId string `json:"tableObjectId,omitempty"`
  1567. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  1568. // unconditionally include in API requests. By default, fields with
  1569. // empty values are omitted from API requests. However, any non-pointer,
  1570. // non-interface field appearing in ForceSendFields will be sent to the
  1571. // server regardless of whether the field is empty or not. This may be
  1572. // used to include empty fields in Patch requests.
  1573. ForceSendFields []string `json:"-"`
  1574. // NullFields is a list of field names (e.g. "CellLocation") to include
  1575. // in API requests with the JSON null value. By default, fields with
  1576. // empty values are omitted from API requests. However, any field with
  1577. // an empty value appearing in NullFields will be sent to the server as
  1578. // null. It is an error if a field in this list has a non-empty value.
  1579. // This may be used to include null fields in Patch requests.
  1580. NullFields []string `json:"-"`
  1581. }
  1582. func (s *DeleteTableColumnRequest) MarshalJSON() ([]byte, error) {
  1583. type NoMethod DeleteTableColumnRequest
  1584. raw := NoMethod(*s)
  1585. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1586. }
  1587. // DeleteTableRowRequest: Deletes a row from a table.
  1588. type DeleteTableRowRequest struct {
  1589. // CellLocation: The reference table cell location from which a row will
  1590. // be deleted.
  1591. //
  1592. // The row this cell spans will be deleted. If this is a merged cell,
  1593. // multiple
  1594. // rows will be deleted. If no rows remain in the table after this
  1595. // deletion,
  1596. // the whole table is deleted.
  1597. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  1598. // TableObjectId: The table to delete rows from.
  1599. TableObjectId string `json:"tableObjectId,omitempty"`
  1600. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  1601. // unconditionally include in API requests. By default, fields with
  1602. // empty values are omitted from API requests. However, any non-pointer,
  1603. // non-interface field appearing in ForceSendFields will be sent to the
  1604. // server regardless of whether the field is empty or not. This may be
  1605. // used to include empty fields in Patch requests.
  1606. ForceSendFields []string `json:"-"`
  1607. // NullFields is a list of field names (e.g. "CellLocation") to include
  1608. // in API requests with the JSON null value. By default, fields with
  1609. // empty values are omitted from API requests. However, any field with
  1610. // an empty value appearing in NullFields will be sent to the server as
  1611. // null. It is an error if a field in this list has a non-empty value.
  1612. // This may be used to include null fields in Patch requests.
  1613. NullFields []string `json:"-"`
  1614. }
  1615. func (s *DeleteTableRowRequest) MarshalJSON() ([]byte, error) {
  1616. type NoMethod DeleteTableRowRequest
  1617. raw := NoMethod(*s)
  1618. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1619. }
  1620. // DeleteTextRequest: Deletes text from a shape or a table cell.
  1621. type DeleteTextRequest struct {
  1622. // CellLocation: The optional table cell location if the text is to be
  1623. // deleted from a table
  1624. // cell. If present, the object_id must refer to a table.
  1625. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  1626. // ObjectId: The object ID of the shape or table from which the text
  1627. // will be deleted.
  1628. ObjectId string `json:"objectId,omitempty"`
  1629. // TextRange: The range of text to delete, based on TextElement
  1630. // indexes.
  1631. //
  1632. // There is always an implicit newline character at the end of a shape's
  1633. // or
  1634. // table cell's text that cannot be deleted. `Range.Type.ALL` will use
  1635. // the
  1636. // correct bounds, but care must be taken when specifying explicit
  1637. // bounds for
  1638. // range types `FROM_START_INDEX` and `FIXED_RANGE`. For example, if the
  1639. // text
  1640. // is "ABC", followed by an implicit newline, then the maximum value is
  1641. // 2 for
  1642. // `text_range.start_index` and 3 for `text_range.end_index`.
  1643. //
  1644. // Deleting text that crosses a paragraph boundary may result in
  1645. // changes
  1646. // to paragraph styles and lists as the two paragraphs are
  1647. // merged.
  1648. //
  1649. // Ranges that include only one code unit of a surrogate pair are
  1650. // expanded to
  1651. // include both code units.
  1652. TextRange *Range `json:"textRange,omitempty"`
  1653. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  1654. // unconditionally include in API requests. By default, fields with
  1655. // empty values are omitted from API requests. However, any non-pointer,
  1656. // non-interface field appearing in ForceSendFields will be sent to the
  1657. // server regardless of whether the field is empty or not. This may be
  1658. // used to include empty fields in Patch requests.
  1659. ForceSendFields []string `json:"-"`
  1660. // NullFields is a list of field names (e.g. "CellLocation") to include
  1661. // in API requests with the JSON null value. By default, fields with
  1662. // empty values are omitted from API requests. However, any field with
  1663. // an empty value appearing in NullFields will be sent to the server as
  1664. // null. It is an error if a field in this list has a non-empty value.
  1665. // This may be used to include null fields in Patch requests.
  1666. NullFields []string `json:"-"`
  1667. }
  1668. func (s *DeleteTextRequest) MarshalJSON() ([]byte, error) {
  1669. type NoMethod DeleteTextRequest
  1670. raw := NoMethod(*s)
  1671. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1672. }
  1673. // Dimension: A magnitude in a single direction in the specified units.
  1674. type Dimension struct {
  1675. // Magnitude: The magnitude.
  1676. Magnitude float64 `json:"magnitude,omitempty"`
  1677. // Unit: The units for magnitude.
  1678. //
  1679. // Possible values:
  1680. // "UNIT_UNSPECIFIED" - The units are unknown.
  1681. // "EMU" - An English Metric Unit (EMU) is defined as 1/360,000 of a
  1682. // centimeter
  1683. // and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.
  1684. // "PT" - A point, 1/72 of an inch.
  1685. Unit string `json:"unit,omitempty"`
  1686. // ForceSendFields is a list of field names (e.g. "Magnitude") to
  1687. // unconditionally include in API requests. By default, fields with
  1688. // empty values are omitted from API requests. However, any non-pointer,
  1689. // non-interface field appearing in ForceSendFields will be sent to the
  1690. // server regardless of whether the field is empty or not. This may be
  1691. // used to include empty fields in Patch requests.
  1692. ForceSendFields []string `json:"-"`
  1693. // NullFields is a list of field names (e.g. "Magnitude") to include in
  1694. // API requests with the JSON null value. By default, fields with empty
  1695. // values are omitted from API requests. However, any field with an
  1696. // empty value appearing in NullFields will be sent to the server as
  1697. // null. It is an error if a field in this list has a non-empty value.
  1698. // This may be used to include null fields in Patch requests.
  1699. NullFields []string `json:"-"`
  1700. }
  1701. func (s *Dimension) MarshalJSON() ([]byte, error) {
  1702. type NoMethod Dimension
  1703. raw := NoMethod(*s)
  1704. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1705. }
  1706. func (s *Dimension) UnmarshalJSON(data []byte) error {
  1707. type NoMethod Dimension
  1708. var s1 struct {
  1709. Magnitude gensupport.JSONFloat64 `json:"magnitude"`
  1710. *NoMethod
  1711. }
  1712. s1.NoMethod = (*NoMethod)(s)
  1713. if err := json.Unmarshal(data, &s1); err != nil {
  1714. return err
  1715. }
  1716. s.Magnitude = float64(s1.Magnitude)
  1717. return nil
  1718. }
  1719. // DuplicateObjectRequest: Duplicates a slide or page element.
  1720. //
  1721. // When duplicating a slide, the duplicate slide will be created
  1722. // immediately
  1723. // following the specified slide. When duplicating a page element, the
  1724. // duplicate
  1725. // will be placed on the same page at the same position as the original.
  1726. type DuplicateObjectRequest struct {
  1727. // ObjectId: The ID of the object to duplicate.
  1728. ObjectId string `json:"objectId,omitempty"`
  1729. // ObjectIds: The object being duplicated may contain other objects, for
  1730. // example when
  1731. // duplicating a slide or a group page element. This map defines how the
  1732. // IDs
  1733. // of duplicated objects are generated: the keys are the IDs of the
  1734. // original
  1735. // objects and its values are the IDs that will be assigned to
  1736. // the
  1737. // corresponding duplicate object. The ID of the source object's
  1738. // duplicate
  1739. // may be specified in this map as well, using the same value of
  1740. // the
  1741. // `object_id` field as a key and the newly desired ID as the
  1742. // value.
  1743. //
  1744. // All keys must correspond to existing IDs in the presentation. All
  1745. // values
  1746. // must be unique in the presentation and must start with an
  1747. // alphanumeric
  1748. // character or an underscore (matches regex `[a-zA-Z0-9_]`);
  1749. // remaining
  1750. // characters may include those as well as a hyphen or colon (matches
  1751. // regex
  1752. // `[a-zA-Z0-9_-:]`). The length of the new ID must not be less than 5
  1753. // or
  1754. // greater than 50.
  1755. //
  1756. // If any IDs of source objects are omitted from the map, a new random
  1757. // ID will
  1758. // be assigned. If the map is empty or unset, all duplicate objects
  1759. // will
  1760. // receive a new random ID.
  1761. ObjectIds map[string]string `json:"objectIds,omitempty"`
  1762. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1763. // unconditionally include in API requests. By default, fields with
  1764. // empty values are omitted from API requests. However, any non-pointer,
  1765. // non-interface field appearing in ForceSendFields will be sent to the
  1766. // server regardless of whether the field is empty or not. This may be
  1767. // used to include empty fields in Patch requests.
  1768. ForceSendFields []string `json:"-"`
  1769. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1770. // API requests with the JSON null value. By default, fields with empty
  1771. // values are omitted from API requests. However, any field with an
  1772. // empty value appearing in NullFields will be sent to the server as
  1773. // null. It is an error if a field in this list has a non-empty value.
  1774. // This may be used to include null fields in Patch requests.
  1775. NullFields []string `json:"-"`
  1776. }
  1777. func (s *DuplicateObjectRequest) MarshalJSON() ([]byte, error) {
  1778. type NoMethod DuplicateObjectRequest
  1779. raw := NoMethod(*s)
  1780. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1781. }
  1782. // DuplicateObjectResponse: The response of duplicating an object.
  1783. type DuplicateObjectResponse struct {
  1784. // ObjectId: The ID of the new duplicate object.
  1785. ObjectId string `json:"objectId,omitempty"`
  1786. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1787. // unconditionally include in API requests. By default, fields with
  1788. // empty values are omitted from API requests. However, any non-pointer,
  1789. // non-interface field appearing in ForceSendFields will be sent to the
  1790. // server regardless of whether the field is empty or not. This may be
  1791. // used to include empty fields in Patch requests.
  1792. ForceSendFields []string `json:"-"`
  1793. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1794. // API requests with the JSON null value. By default, fields with empty
  1795. // values are omitted from API requests. However, any field with an
  1796. // empty value appearing in NullFields will be sent to the server as
  1797. // null. It is an error if a field in this list has a non-empty value.
  1798. // This may be used to include null fields in Patch requests.
  1799. NullFields []string `json:"-"`
  1800. }
  1801. func (s *DuplicateObjectResponse) MarshalJSON() ([]byte, error) {
  1802. type NoMethod DuplicateObjectResponse
  1803. raw := NoMethod(*s)
  1804. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1805. }
  1806. // Group: A PageElement kind representing a
  1807. // joined collection of PageElements.
  1808. type Group struct {
  1809. // Children: The collection of elements in the group. The minimum size
  1810. // of a group is 2.
  1811. Children []*PageElement `json:"children,omitempty"`
  1812. // ForceSendFields is a list of field names (e.g. "Children") to
  1813. // unconditionally include in API requests. By default, fields with
  1814. // empty values are omitted from API requests. However, any non-pointer,
  1815. // non-interface field appearing in ForceSendFields will be sent to the
  1816. // server regardless of whether the field is empty or not. This may be
  1817. // used to include empty fields in Patch requests.
  1818. ForceSendFields []string `json:"-"`
  1819. // NullFields is a list of field names (e.g. "Children") to include in
  1820. // API requests with the JSON null value. By default, fields with empty
  1821. // values are omitted from API requests. However, any field with an
  1822. // empty value appearing in NullFields will be sent to the server as
  1823. // null. It is an error if a field in this list has a non-empty value.
  1824. // This may be used to include null fields in Patch requests.
  1825. NullFields []string `json:"-"`
  1826. }
  1827. func (s *Group) MarshalJSON() ([]byte, error) {
  1828. type NoMethod Group
  1829. raw := NoMethod(*s)
  1830. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1831. }
  1832. // GroupObjectsRequest: Groups objects to create an object group. For
  1833. // example, groups PageElements to create a Group on the same page as
  1834. // all the children.
  1835. type GroupObjectsRequest struct {
  1836. // ChildrenObjectIds: The object IDs of the objects to group.
  1837. //
  1838. // Only page elements can be grouped. There should be at least two
  1839. // page
  1840. // elements on the same page that are not already in another group. Some
  1841. // page
  1842. // elements, such as videos, tables and placeholder shapes cannot be
  1843. // grouped.
  1844. ChildrenObjectIds []string `json:"childrenObjectIds,omitempty"`
  1845. // GroupObjectId: A user-supplied object ID for the group to be
  1846. // created.
  1847. //
  1848. // If you specify an ID, it must be unique among all pages and page
  1849. // elements
  1850. // in the presentation. The ID must start with an alphanumeric character
  1851. // or an
  1852. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  1853. // may include those as well as a hyphen or colon (matches
  1854. // regex
  1855. // `[a-zA-Z0-9_-:]`).
  1856. // The length of the ID must not be less than 5 or greater than 50.
  1857. //
  1858. // If you don't specify an ID, a unique one is generated.
  1859. GroupObjectId string `json:"groupObjectId,omitempty"`
  1860. // ForceSendFields is a list of field names (e.g. "ChildrenObjectIds")
  1861. // to unconditionally include in API requests. By default, fields with
  1862. // empty values are omitted from API requests. However, any non-pointer,
  1863. // non-interface field appearing in ForceSendFields will be sent to the
  1864. // server regardless of whether the field is empty or not. This may be
  1865. // used to include empty fields in Patch requests.
  1866. ForceSendFields []string `json:"-"`
  1867. // NullFields is a list of field names (e.g. "ChildrenObjectIds") to
  1868. // include in API requests with the JSON null value. By default, fields
  1869. // with empty values are omitted from API requests. However, any field
  1870. // with an empty value appearing in NullFields will be sent to the
  1871. // server as null. It is an error if a field in this list has a
  1872. // non-empty value. This may be used to include null fields in Patch
  1873. // requests.
  1874. NullFields []string `json:"-"`
  1875. }
  1876. func (s *GroupObjectsRequest) MarshalJSON() ([]byte, error) {
  1877. type NoMethod GroupObjectsRequest
  1878. raw := NoMethod(*s)
  1879. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1880. }
  1881. // GroupObjectsResponse: The result of grouping objects.
  1882. type GroupObjectsResponse struct {
  1883. // ObjectId: The object ID of the created group.
  1884. ObjectId string `json:"objectId,omitempty"`
  1885. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1886. // unconditionally include in API requests. By default, fields with
  1887. // empty values are omitted from API requests. However, any non-pointer,
  1888. // non-interface field appearing in ForceSendFields will be sent to the
  1889. // server regardless of whether the field is empty or not. This may be
  1890. // used to include empty fields in Patch requests.
  1891. ForceSendFields []string `json:"-"`
  1892. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1893. // API requests with the JSON null value. By default, fields with empty
  1894. // values are omitted from API requests. However, any field with an
  1895. // empty value appearing in NullFields will be sent to the server as
  1896. // null. It is an error if a field in this list has a non-empty value.
  1897. // This may be used to include null fields in Patch requests.
  1898. NullFields []string `json:"-"`
  1899. }
  1900. func (s *GroupObjectsResponse) MarshalJSON() ([]byte, error) {
  1901. type NoMethod GroupObjectsResponse
  1902. raw := NoMethod(*s)
  1903. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1904. }
  1905. // Image: A PageElement kind representing an
  1906. // image.
  1907. type Image struct {
  1908. // ContentUrl: An URL to an image with a default lifetime of 30
  1909. // minutes.
  1910. // This URL is tagged with the account of the requester. Anyone with the
  1911. // URL
  1912. // effectively accesses the image as the original requester. Access to
  1913. // the
  1914. // image may be lost if the presentation's sharing settings change.
  1915. ContentUrl string `json:"contentUrl,omitempty"`
  1916. // ImageProperties: The properties of the image.
  1917. ImageProperties *ImageProperties `json:"imageProperties,omitempty"`
  1918. // SourceUrl: The source URL is the URL used to insert the image. The
  1919. // source URL can be
  1920. // empty.
  1921. SourceUrl string `json:"sourceUrl,omitempty"`
  1922. // ForceSendFields is a list of field names (e.g. "ContentUrl") to
  1923. // unconditionally include in API requests. By default, fields with
  1924. // empty values are omitted from API requests. However, any non-pointer,
  1925. // non-interface field appearing in ForceSendFields will be sent to the
  1926. // server regardless of whether the field is empty or not. This may be
  1927. // used to include empty fields in Patch requests.
  1928. ForceSendFields []string `json:"-"`
  1929. // NullFields is a list of field names (e.g. "ContentUrl") to include in
  1930. // API requests with the JSON null value. By default, fields with empty
  1931. // values are omitted from API requests. However, any field with an
  1932. // empty value appearing in NullFields will be sent to the server as
  1933. // null. It is an error if a field in this list has a non-empty value.
  1934. // This may be used to include null fields in Patch requests.
  1935. NullFields []string `json:"-"`
  1936. }
  1937. func (s *Image) MarshalJSON() ([]byte, error) {
  1938. type NoMethod Image
  1939. raw := NoMethod(*s)
  1940. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1941. }
  1942. // ImageProperties: The properties of the Image.
  1943. type ImageProperties struct {
  1944. // Brightness: The brightness effect of the image. The value should be
  1945. // in the interval
  1946. // [-1.0, 1.0], where 0 means no effect. This property is read-only.
  1947. Brightness float64 `json:"brightness,omitempty"`
  1948. // Contrast: The contrast effect of the image. The value should be in
  1949. // the interval
  1950. // [-1.0, 1.0], where 0 means no effect. This property is read-only.
  1951. Contrast float64 `json:"contrast,omitempty"`
  1952. // CropProperties: The crop properties of the image. If not set, the
  1953. // image is not cropped.
  1954. // This property is read-only.
  1955. CropProperties *CropProperties `json:"cropProperties,omitempty"`
  1956. // Link: The hyperlink destination of the image. If unset, there is no
  1957. // link.
  1958. Link *Link `json:"link,omitempty"`
  1959. // Outline: The outline of the image. If not set, the image has no
  1960. // outline.
  1961. Outline *Outline `json:"outline,omitempty"`
  1962. // Recolor: The recolor effect of the image. If not set, the image is
  1963. // not recolored.
  1964. // This property is read-only.
  1965. Recolor *Recolor `json:"recolor,omitempty"`
  1966. // Shadow: The shadow of the image. If not set, the image has no shadow.
  1967. // This property
  1968. // is read-only.
  1969. Shadow *Shadow `json:"shadow,omitempty"`
  1970. // Transparency: The transparency effect of the image. The value should
  1971. // be in the interval
  1972. // [0.0, 1.0], where 0 means no effect and 1 means completely
  1973. // transparent.
  1974. // This property is read-only.
  1975. Transparency float64 `json:"transparency,omitempty"`
  1976. // ForceSendFields is a list of field names (e.g. "Brightness") to
  1977. // unconditionally include in API requests. By default, fields with
  1978. // empty values are omitted from API requests. However, any non-pointer,
  1979. // non-interface field appearing in ForceSendFields will be sent to the
  1980. // server regardless of whether the field is empty or not. This may be
  1981. // used to include empty fields in Patch requests.
  1982. ForceSendFields []string `json:"-"`
  1983. // NullFields is a list of field names (e.g. "Brightness") to include in
  1984. // API requests with the JSON null value. By default, fields with empty
  1985. // values are omitted from API requests. However, any field with an
  1986. // empty value appearing in NullFields will be sent to the server as
  1987. // null. It is an error if a field in this list has a non-empty value.
  1988. // This may be used to include null fields in Patch requests.
  1989. NullFields []string `json:"-"`
  1990. }
  1991. func (s *ImageProperties) MarshalJSON() ([]byte, error) {
  1992. type NoMethod ImageProperties
  1993. raw := NoMethod(*s)
  1994. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1995. }
  1996. func (s *ImageProperties) UnmarshalJSON(data []byte) error {
  1997. type NoMethod ImageProperties
  1998. var s1 struct {
  1999. Brightness gensupport.JSONFloat64 `json:"brightness"`
  2000. Contrast gensupport.JSONFloat64 `json:"contrast"`
  2001. Transparency gensupport.JSONFloat64 `json:"transparency"`
  2002. *NoMethod
  2003. }
  2004. s1.NoMethod = (*NoMethod)(s)
  2005. if err := json.Unmarshal(data, &s1); err != nil {
  2006. return err
  2007. }
  2008. s.Brightness = float64(s1.Brightness)
  2009. s.Contrast = float64(s1.Contrast)
  2010. s.Transparency = float64(s1.Transparency)
  2011. return nil
  2012. }
  2013. // InsertTableColumnsRequest: Inserts columns into a table.
  2014. //
  2015. // Other columns in the table will be resized to fit the new column.
  2016. type InsertTableColumnsRequest struct {
  2017. // CellLocation: The reference table cell location from which columns
  2018. // will be inserted.
  2019. //
  2020. // A new column will be inserted to the left (or right) of the column
  2021. // where
  2022. // the reference cell is. If the reference cell is a merged cell, a
  2023. // new
  2024. // column will be inserted to the left (or right) of the merged cell.
  2025. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  2026. // InsertRight: Whether to insert new columns to the right of the
  2027. // reference cell location.
  2028. //
  2029. // - `True`: insert to the right.
  2030. // - `False`: insert to the left.
  2031. InsertRight bool `json:"insertRight,omitempty"`
  2032. // Number: The number of columns to be inserted. Maximum 20 per request.
  2033. Number int64 `json:"number,omitempty"`
  2034. // TableObjectId: The table to insert columns into.
  2035. TableObjectId string `json:"tableObjectId,omitempty"`
  2036. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  2037. // unconditionally include in API requests. By default, fields with
  2038. // empty values are omitted from API requests. However, any non-pointer,
  2039. // non-interface field appearing in ForceSendFields will be sent to the
  2040. // server regardless of whether the field is empty or not. This may be
  2041. // used to include empty fields in Patch requests.
  2042. ForceSendFields []string `json:"-"`
  2043. // NullFields is a list of field names (e.g. "CellLocation") to include
  2044. // in API requests with the JSON null value. By default, fields with
  2045. // empty values are omitted from API requests. However, any field with
  2046. // an empty value appearing in NullFields will be sent to the server as
  2047. // null. It is an error if a field in this list has a non-empty value.
  2048. // This may be used to include null fields in Patch requests.
  2049. NullFields []string `json:"-"`
  2050. }
  2051. func (s *InsertTableColumnsRequest) MarshalJSON() ([]byte, error) {
  2052. type NoMethod InsertTableColumnsRequest
  2053. raw := NoMethod(*s)
  2054. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2055. }
  2056. // InsertTableRowsRequest: Inserts rows into a table.
  2057. type InsertTableRowsRequest struct {
  2058. // CellLocation: The reference table cell location from which rows will
  2059. // be inserted.
  2060. //
  2061. // A new row will be inserted above (or below) the row where the
  2062. // reference
  2063. // cell is. If the reference cell is a merged cell, a new row will
  2064. // be
  2065. // inserted above (or below) the merged cell.
  2066. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  2067. // InsertBelow: Whether to insert new rows below the reference cell
  2068. // location.
  2069. //
  2070. // - `True`: insert below the cell.
  2071. // - `False`: insert above the cell.
  2072. InsertBelow bool `json:"insertBelow,omitempty"`
  2073. // Number: The number of rows to be inserted. Maximum 20 per request.
  2074. Number int64 `json:"number,omitempty"`
  2075. // TableObjectId: The table to insert rows into.
  2076. TableObjectId string `json:"tableObjectId,omitempty"`
  2077. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  2078. // unconditionally include in API requests. By default, fields with
  2079. // empty values are omitted from API requests. However, any non-pointer,
  2080. // non-interface field appearing in ForceSendFields will be sent to the
  2081. // server regardless of whether the field is empty or not. This may be
  2082. // used to include empty fields in Patch requests.
  2083. ForceSendFields []string `json:"-"`
  2084. // NullFields is a list of field names (e.g. "CellLocation") to include
  2085. // in API requests with the JSON null value. By default, fields with
  2086. // empty values are omitted from API requests. However, any field with
  2087. // an empty value appearing in NullFields will be sent to the server as
  2088. // null. It is an error if a field in this list has a non-empty value.
  2089. // This may be used to include null fields in Patch requests.
  2090. NullFields []string `json:"-"`
  2091. }
  2092. func (s *InsertTableRowsRequest) MarshalJSON() ([]byte, error) {
  2093. type NoMethod InsertTableRowsRequest
  2094. raw := NoMethod(*s)
  2095. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2096. }
  2097. // InsertTextRequest: Inserts text into a shape or a table cell.
  2098. type InsertTextRequest struct {
  2099. // CellLocation: The optional table cell location if the text is to be
  2100. // inserted into a table
  2101. // cell. If present, the object_id must refer to a table.
  2102. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  2103. // InsertionIndex: The index where the text will be inserted, in Unicode
  2104. // code units, based
  2105. // on TextElement indexes.
  2106. //
  2107. // The index is zero-based and is computed from the start of the
  2108. // string.
  2109. // The index may be adjusted to prevent insertions inside Unicode
  2110. // grapheme
  2111. // clusters. In these cases, the text will be inserted immediately after
  2112. // the
  2113. // grapheme cluster.
  2114. InsertionIndex int64 `json:"insertionIndex,omitempty"`
  2115. // ObjectId: The object ID of the shape or table where the text will be
  2116. // inserted.
  2117. ObjectId string `json:"objectId,omitempty"`
  2118. // Text: The text to be inserted.
  2119. //
  2120. // Inserting a newline character will implicitly create a
  2121. // new
  2122. // ParagraphMarker at that index.
  2123. // The paragraph style of the new paragraph will be copied from the
  2124. // paragraph
  2125. // at the current insertion index, including lists and bullets.
  2126. //
  2127. // Text styles for inserted text will be determined automatically,
  2128. // generally
  2129. // preserving the styling of neighboring text. In most cases, the text
  2130. // will be
  2131. // added to the TextRun that exists at the
  2132. // insertion index.
  2133. //
  2134. // Some control characters (U+0000-U+0008, U+000C-U+001F) and
  2135. // characters
  2136. // from the Unicode Basic Multilingual Plane Private Use Area
  2137. // (U+E000-U+F8FF)
  2138. // will be stripped out of the inserted text.
  2139. Text string `json:"text,omitempty"`
  2140. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  2141. // unconditionally include in API requests. By default, fields with
  2142. // empty values are omitted from API requests. However, any non-pointer,
  2143. // non-interface field appearing in ForceSendFields will be sent to the
  2144. // server regardless of whether the field is empty or not. This may be
  2145. // used to include empty fields in Patch requests.
  2146. ForceSendFields []string `json:"-"`
  2147. // NullFields is a list of field names (e.g. "CellLocation") to include
  2148. // in API requests with the JSON null value. By default, fields with
  2149. // empty values are omitted from API requests. However, any field with
  2150. // an empty value appearing in NullFields will be sent to the server as
  2151. // null. It is an error if a field in this list has a non-empty value.
  2152. // This may be used to include null fields in Patch requests.
  2153. NullFields []string `json:"-"`
  2154. }
  2155. func (s *InsertTextRequest) MarshalJSON() ([]byte, error) {
  2156. type NoMethod InsertTextRequest
  2157. raw := NoMethod(*s)
  2158. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2159. }
  2160. // LayoutPlaceholderIdMapping: The user-specified ID mapping for a
  2161. // placeholder that will be created on a
  2162. // slide from a specified layout.
  2163. type LayoutPlaceholderIdMapping struct {
  2164. // LayoutPlaceholder: The placeholder on a layout that will be applied
  2165. // to a slide. Only type and index are needed. For example, a
  2166. // predefined `TITLE_AND_BODY` layout may usually have a TITLE
  2167. // placeholder
  2168. // with index 0 and a BODY placeholder with index 0.
  2169. LayoutPlaceholder *Placeholder `json:"layoutPlaceholder,omitempty"`
  2170. // LayoutPlaceholderObjectId: The object ID of the placeholder on a
  2171. // layout that will be applied
  2172. // to a slide.
  2173. LayoutPlaceholderObjectId string `json:"layoutPlaceholderObjectId,omitempty"`
  2174. // ObjectId: A user-supplied object ID for the placeholder identified
  2175. // above that to be
  2176. // created onto a slide.
  2177. //
  2178. // If you specify an ID, it must be unique among all pages and page
  2179. // elements
  2180. // in the presentation. The ID must start with an alphanumeric character
  2181. // or an
  2182. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  2183. // may include those as well as a hyphen or colon (matches
  2184. // regex
  2185. // `[a-zA-Z0-9_-:]`).
  2186. // The length of the ID must not be less than 5 or greater than 50.
  2187. //
  2188. // If you don't specify an ID, a unique one is generated.
  2189. ObjectId string `json:"objectId,omitempty"`
  2190. // ForceSendFields is a list of field names (e.g. "LayoutPlaceholder")
  2191. // to unconditionally include in API requests. By default, fields with
  2192. // empty values are omitted from API requests. However, any non-pointer,
  2193. // non-interface field appearing in ForceSendFields will be sent to the
  2194. // server regardless of whether the field is empty or not. This may be
  2195. // used to include empty fields in Patch requests.
  2196. ForceSendFields []string `json:"-"`
  2197. // NullFields is a list of field names (e.g. "LayoutPlaceholder") to
  2198. // include in API requests with the JSON null value. By default, fields
  2199. // with empty values are omitted from API requests. However, any field
  2200. // with an empty value appearing in NullFields will be sent to the
  2201. // server as null. It is an error if a field in this list has a
  2202. // non-empty value. This may be used to include null fields in Patch
  2203. // requests.
  2204. NullFields []string `json:"-"`
  2205. }
  2206. func (s *LayoutPlaceholderIdMapping) MarshalJSON() ([]byte, error) {
  2207. type NoMethod LayoutPlaceholderIdMapping
  2208. raw := NoMethod(*s)
  2209. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2210. }
  2211. // LayoutProperties: The properties of Page are only
  2212. // relevant for pages with page_type LAYOUT.
  2213. type LayoutProperties struct {
  2214. // DisplayName: The human-readable name of the layout.
  2215. DisplayName string `json:"displayName,omitempty"`
  2216. // MasterObjectId: The object ID of the master that this layout is based
  2217. // on.
  2218. MasterObjectId string `json:"masterObjectId,omitempty"`
  2219. // Name: The name of the layout.
  2220. Name string `json:"name,omitempty"`
  2221. // ForceSendFields is a list of field names (e.g. "DisplayName") to
  2222. // unconditionally include in API requests. By default, fields with
  2223. // empty values are omitted from API requests. However, any non-pointer,
  2224. // non-interface field appearing in ForceSendFields will be sent to the
  2225. // server regardless of whether the field is empty or not. This may be
  2226. // used to include empty fields in Patch requests.
  2227. ForceSendFields []string `json:"-"`
  2228. // NullFields is a list of field names (e.g. "DisplayName") to include
  2229. // in API requests with the JSON null value. By default, fields with
  2230. // empty values are omitted from API requests. However, any field with
  2231. // an empty value appearing in NullFields will be sent to the server as
  2232. // null. It is an error if a field in this list has a non-empty value.
  2233. // This may be used to include null fields in Patch requests.
  2234. NullFields []string `json:"-"`
  2235. }
  2236. func (s *LayoutProperties) MarshalJSON() ([]byte, error) {
  2237. type NoMethod LayoutProperties
  2238. raw := NoMethod(*s)
  2239. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2240. }
  2241. // LayoutReference: Slide layout reference. This may reference
  2242. // either:
  2243. //
  2244. // - A predefined layout
  2245. // - One of the layouts in the presentation.
  2246. type LayoutReference struct {
  2247. // LayoutId: Layout ID: the object ID of one of the layouts in the
  2248. // presentation.
  2249. LayoutId string `json:"layoutId,omitempty"`
  2250. // PredefinedLayout: Predefined layout.
  2251. //
  2252. // Possible values:
  2253. // "PREDEFINED_LAYOUT_UNSPECIFIED" - Unspecified layout.
  2254. // "BLANK" - Blank layout, with no placeholders.
  2255. // "CAPTION_ONLY" - Layout with a caption at the bottom.
  2256. // "TITLE" - Layout with a title and a subtitle.
  2257. // "TITLE_AND_BODY" - Layout with a title and body.
  2258. // "TITLE_AND_TWO_COLUMNS" - Layout with a title and two columns.
  2259. // "TITLE_ONLY" - Layout with only a title.
  2260. // "SECTION_HEADER" - Layout with a section title.
  2261. // "SECTION_TITLE_AND_DESCRIPTION" - Layout with a title and subtitle
  2262. // on one side and description on the other.
  2263. // "ONE_COLUMN_TEXT" - Layout with one title and one body, arranged in
  2264. // a single column.
  2265. // "MAIN_POINT" - Layout with a main point.
  2266. // "BIG_NUMBER" - Layout with a big number heading.
  2267. PredefinedLayout string `json:"predefinedLayout,omitempty"`
  2268. // ForceSendFields is a list of field names (e.g. "LayoutId") to
  2269. // unconditionally include in API requests. By default, fields with
  2270. // empty values are omitted from API requests. However, any non-pointer,
  2271. // non-interface field appearing in ForceSendFields will be sent to the
  2272. // server regardless of whether the field is empty or not. This may be
  2273. // used to include empty fields in Patch requests.
  2274. ForceSendFields []string `json:"-"`
  2275. // NullFields is a list of field names (e.g. "LayoutId") to include in
  2276. // API requests with the JSON null value. By default, fields with empty
  2277. // values are omitted from API requests. However, any field with an
  2278. // empty value appearing in NullFields will be sent to the server as
  2279. // null. It is an error if a field in this list has a non-empty value.
  2280. // This may be used to include null fields in Patch requests.
  2281. NullFields []string `json:"-"`
  2282. }
  2283. func (s *LayoutReference) MarshalJSON() ([]byte, error) {
  2284. type NoMethod LayoutReference
  2285. raw := NoMethod(*s)
  2286. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2287. }
  2288. // Line: A PageElement kind representing a
  2289. // non-connector line, straight connector, curved connector, or bent
  2290. // connector.
  2291. type Line struct {
  2292. // LineProperties: The properties of the line.
  2293. LineProperties *LineProperties `json:"lineProperties,omitempty"`
  2294. // LineType: The type of the line.
  2295. //
  2296. // Possible values:
  2297. // "TYPE_UNSPECIFIED" - An unspecified line type.
  2298. // "STRAIGHT_CONNECTOR_1" - Straight connector 1 form. Corresponds to
  2299. // ECMA-376 ST_ShapeType
  2300. // 'straightConnector1'.
  2301. // "BENT_CONNECTOR_2" - Bent connector 2 form. Corresponds to ECMA-376
  2302. // ST_ShapeType
  2303. // 'bentConnector2'.
  2304. // "BENT_CONNECTOR_3" - Bent connector 3 form. Corresponds to ECMA-376
  2305. // ST_ShapeType
  2306. // 'bentConnector3'.
  2307. // "BENT_CONNECTOR_4" - Bent connector 4 form. Corresponds to ECMA-376
  2308. // ST_ShapeType
  2309. // 'bentConnector4'.
  2310. // "BENT_CONNECTOR_5" - Bent connector 5 form. Corresponds to ECMA-376
  2311. // ST_ShapeType
  2312. // 'bentConnector5'.
  2313. // "CURVED_CONNECTOR_2" - Curved connector 2 form. Corresponds to
  2314. // ECMA-376 ST_ShapeType
  2315. // 'curvedConnector2'.
  2316. // "CURVED_CONNECTOR_3" - Curved connector 3 form. Corresponds to
  2317. // ECMA-376 ST_ShapeType
  2318. // 'curvedConnector3'.
  2319. // "CURVED_CONNECTOR_4" - Curved connector 4 form. Corresponds to
  2320. // ECMA-376 ST_ShapeType
  2321. // 'curvedConnector4'.
  2322. // "CURVED_CONNECTOR_5" - Curved connector 5 form. Corresponds to
  2323. // ECMA-376 ST_ShapeType
  2324. // 'curvedConnector5'.
  2325. // "STRAIGHT_LINE" - Straight line. Corresponds to ECMA-376
  2326. // ST_ShapeType 'line'. This line
  2327. // type is not a connector.
  2328. LineType string `json:"lineType,omitempty"`
  2329. // ForceSendFields is a list of field names (e.g. "LineProperties") to
  2330. // unconditionally include in API requests. By default, fields with
  2331. // empty values are omitted from API requests. However, any non-pointer,
  2332. // non-interface field appearing in ForceSendFields will be sent to the
  2333. // server regardless of whether the field is empty or not. This may be
  2334. // used to include empty fields in Patch requests.
  2335. ForceSendFields []string `json:"-"`
  2336. // NullFields is a list of field names (e.g. "LineProperties") to
  2337. // include in API requests with the JSON null value. By default, fields
  2338. // with empty values are omitted from API requests. However, any field
  2339. // with an empty value appearing in NullFields will be sent to the
  2340. // server as null. It is an error if a field in this list has a
  2341. // non-empty value. This may be used to include null fields in Patch
  2342. // requests.
  2343. NullFields []string `json:"-"`
  2344. }
  2345. func (s *Line) MarshalJSON() ([]byte, error) {
  2346. type NoMethod Line
  2347. raw := NoMethod(*s)
  2348. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2349. }
  2350. // LineFill: The fill of the line.
  2351. type LineFill struct {
  2352. // SolidFill: Solid color fill.
  2353. SolidFill *SolidFill `json:"solidFill,omitempty"`
  2354. // ForceSendFields is a list of field names (e.g. "SolidFill") to
  2355. // unconditionally include in API requests. By default, fields with
  2356. // empty values are omitted from API requests. However, any non-pointer,
  2357. // non-interface field appearing in ForceSendFields will be sent to the
  2358. // server regardless of whether the field is empty or not. This may be
  2359. // used to include empty fields in Patch requests.
  2360. ForceSendFields []string `json:"-"`
  2361. // NullFields is a list of field names (e.g. "SolidFill") to include in
  2362. // API requests with the JSON null value. By default, fields with empty
  2363. // values are omitted from API requests. However, any field with an
  2364. // empty value appearing in NullFields will be sent to the server as
  2365. // null. It is an error if a field in this list has a non-empty value.
  2366. // This may be used to include null fields in Patch requests.
  2367. NullFields []string `json:"-"`
  2368. }
  2369. func (s *LineFill) MarshalJSON() ([]byte, error) {
  2370. type NoMethod LineFill
  2371. raw := NoMethod(*s)
  2372. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2373. }
  2374. // LineProperties: The properties of the Line.
  2375. //
  2376. // When unset, these fields default to values that match the appearance
  2377. // of
  2378. // new lines created in the Slides editor.
  2379. type LineProperties struct {
  2380. // DashStyle: The dash style of the line.
  2381. //
  2382. // Possible values:
  2383. // "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
  2384. // "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2385. // value 'solid'.
  2386. // This is the default dash style.
  2387. // "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2388. // value 'dot'.
  2389. // "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2390. // value 'dash'.
  2391. // "DASH_DOT" - Alternating dashes and dots. Corresponds to ECMA-376
  2392. // ST_PresetLineDashVal
  2393. // value 'dashDot'.
  2394. // "LONG_DASH" - Line with large dashes. Corresponds to ECMA-376
  2395. // ST_PresetLineDashVal
  2396. // value 'lgDash'.
  2397. // "LONG_DASH_DOT" - Alternating large dashes and dots. Corresponds to
  2398. // ECMA-376
  2399. // ST_PresetLineDashVal value 'lgDashDot'.
  2400. DashStyle string `json:"dashStyle,omitempty"`
  2401. // EndArrow: The style of the arrow at the end of the line.
  2402. //
  2403. // Possible values:
  2404. // "ARROW_STYLE_UNSPECIFIED" - An unspecified arrow style.
  2405. // "NONE" - No arrow.
  2406. // "STEALTH_ARROW" - Arrow with notched back. Corresponds to ECMA-376
  2407. // ST_LineEndType value
  2408. // 'stealth'.
  2409. // "FILL_ARROW" - Filled arrow. Corresponds to ECMA-376 ST_LineEndType
  2410. // value 'triangle'.
  2411. // "FILL_CIRCLE" - Filled circle. Corresponds to ECMA-376
  2412. // ST_LineEndType value 'oval'.
  2413. // "FILL_SQUARE" - Filled square.
  2414. // "FILL_DIAMOND" - Filled diamond. Corresponds to ECMA-376
  2415. // ST_LineEndType value 'diamond'.
  2416. // "OPEN_ARROW" - Hollow arrow.
  2417. // "OPEN_CIRCLE" - Hollow circle.
  2418. // "OPEN_SQUARE" - Hollow square.
  2419. // "OPEN_DIAMOND" - Hollow diamond.
  2420. EndArrow string `json:"endArrow,omitempty"`
  2421. // LineFill: The fill of the line. The default line fill matches the
  2422. // defaults for new
  2423. // lines created in the Slides editor.
  2424. LineFill *LineFill `json:"lineFill,omitempty"`
  2425. // Link: The hyperlink destination of the line. If unset, there is no
  2426. // link.
  2427. Link *Link `json:"link,omitempty"`
  2428. // StartArrow: The style of the arrow at the beginning of the line.
  2429. //
  2430. // Possible values:
  2431. // "ARROW_STYLE_UNSPECIFIED" - An unspecified arrow style.
  2432. // "NONE" - No arrow.
  2433. // "STEALTH_ARROW" - Arrow with notched back. Corresponds to ECMA-376
  2434. // ST_LineEndType value
  2435. // 'stealth'.
  2436. // "FILL_ARROW" - Filled arrow. Corresponds to ECMA-376 ST_LineEndType
  2437. // value 'triangle'.
  2438. // "FILL_CIRCLE" - Filled circle. Corresponds to ECMA-376
  2439. // ST_LineEndType value 'oval'.
  2440. // "FILL_SQUARE" - Filled square.
  2441. // "FILL_DIAMOND" - Filled diamond. Corresponds to ECMA-376
  2442. // ST_LineEndType value 'diamond'.
  2443. // "OPEN_ARROW" - Hollow arrow.
  2444. // "OPEN_CIRCLE" - Hollow circle.
  2445. // "OPEN_SQUARE" - Hollow square.
  2446. // "OPEN_DIAMOND" - Hollow diamond.
  2447. StartArrow string `json:"startArrow,omitempty"`
  2448. // Weight: The thickness of the line.
  2449. Weight *Dimension `json:"weight,omitempty"`
  2450. // ForceSendFields is a list of field names (e.g. "DashStyle") to
  2451. // unconditionally include in API requests. By default, fields with
  2452. // empty values are omitted from API requests. However, any non-pointer,
  2453. // non-interface field appearing in ForceSendFields will be sent to the
  2454. // server regardless of whether the field is empty or not. This may be
  2455. // used to include empty fields in Patch requests.
  2456. ForceSendFields []string `json:"-"`
  2457. // NullFields is a list of field names (e.g. "DashStyle") to include in
  2458. // API requests with the JSON null value. By default, fields with empty
  2459. // values are omitted from API requests. However, any field with an
  2460. // empty value appearing in NullFields will be sent to the server as
  2461. // null. It is an error if a field in this list has a non-empty value.
  2462. // This may be used to include null fields in Patch requests.
  2463. NullFields []string `json:"-"`
  2464. }
  2465. func (s *LineProperties) MarshalJSON() ([]byte, error) {
  2466. type NoMethod LineProperties
  2467. raw := NoMethod(*s)
  2468. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2469. }
  2470. // Link: A hypertext link.
  2471. type Link struct {
  2472. // PageObjectId: If set, indicates this is a link to the specific page
  2473. // in this
  2474. // presentation with this ID. A page with this ID may not exist.
  2475. PageObjectId string `json:"pageObjectId,omitempty"`
  2476. // RelativeLink: If set, indicates this is a link to a slide in this
  2477. // presentation,
  2478. // addressed by its position.
  2479. //
  2480. // Possible values:
  2481. // "RELATIVE_SLIDE_LINK_UNSPECIFIED" - An unspecified relative slide
  2482. // link.
  2483. // "NEXT_SLIDE" - A link to the next slide.
  2484. // "PREVIOUS_SLIDE" - A link to the previous slide.
  2485. // "FIRST_SLIDE" - A link to the first slide in the presentation.
  2486. // "LAST_SLIDE" - A link to the last slide in the presentation.
  2487. RelativeLink string `json:"relativeLink,omitempty"`
  2488. // SlideIndex: If set, indicates this is a link to the slide at this
  2489. // zero-based index
  2490. // in the presentation. There may not be a slide at this index.
  2491. SlideIndex int64 `json:"slideIndex,omitempty"`
  2492. // Url: If set, indicates this is a link to the external web page at
  2493. // this URL.
  2494. Url string `json:"url,omitempty"`
  2495. // ForceSendFields is a list of field names (e.g. "PageObjectId") to
  2496. // unconditionally include in API requests. By default, fields with
  2497. // empty values are omitted from API requests. However, any non-pointer,
  2498. // non-interface field appearing in ForceSendFields will be sent to the
  2499. // server regardless of whether the field is empty or not. This may be
  2500. // used to include empty fields in Patch requests.
  2501. ForceSendFields []string `json:"-"`
  2502. // NullFields is a list of field names (e.g. "PageObjectId") to include
  2503. // in API requests with the JSON null value. By default, fields with
  2504. // empty values are omitted from API requests. However, any field with
  2505. // an empty value appearing in NullFields will be sent to the server as
  2506. // null. It is an error if a field in this list has a non-empty value.
  2507. // This may be used to include null fields in Patch requests.
  2508. NullFields []string `json:"-"`
  2509. }
  2510. func (s *Link) MarshalJSON() ([]byte, error) {
  2511. type NoMethod Link
  2512. raw := NoMethod(*s)
  2513. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2514. }
  2515. // List: A List describes the look and feel of bullets belonging to
  2516. // paragraphs
  2517. // associated with a list. A paragraph that is part of a list has an
  2518. // implicit
  2519. // reference to that list's ID.
  2520. type List struct {
  2521. // ListId: The ID of the list.
  2522. ListId string `json:"listId,omitempty"`
  2523. // NestingLevel: A map of nesting levels to the properties of bullets at
  2524. // the associated
  2525. // level. A list has at most nine levels of nesting, so the possible
  2526. // values
  2527. // for the keys of this map are 0 through 8, inclusive.
  2528. NestingLevel map[string]NestingLevel `json:"nestingLevel,omitempty"`
  2529. // ForceSendFields is a list of field names (e.g. "ListId") to
  2530. // unconditionally include in API requests. By default, fields with
  2531. // empty values are omitted from API requests. However, any non-pointer,
  2532. // non-interface field appearing in ForceSendFields will be sent to the
  2533. // server regardless of whether the field is empty or not. This may be
  2534. // used to include empty fields in Patch requests.
  2535. ForceSendFields []string `json:"-"`
  2536. // NullFields is a list of field names (e.g. "ListId") to include in API
  2537. // requests with the JSON null value. By default, fields with empty
  2538. // values are omitted from API requests. However, any field with an
  2539. // empty value appearing in NullFields will be sent to the server as
  2540. // null. It is an error if a field in this list has a non-empty value.
  2541. // This may be used to include null fields in Patch requests.
  2542. NullFields []string `json:"-"`
  2543. }
  2544. func (s *List) MarshalJSON() ([]byte, error) {
  2545. type NoMethod List
  2546. raw := NoMethod(*s)
  2547. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2548. }
  2549. // MasterProperties: The properties of Page that are only
  2550. // relevant for pages with page_type MASTER.
  2551. type MasterProperties struct {
  2552. // DisplayName: The human-readable name of the master.
  2553. DisplayName string `json:"displayName,omitempty"`
  2554. // ForceSendFields is a list of field names (e.g. "DisplayName") to
  2555. // unconditionally include in API requests. By default, fields with
  2556. // empty values are omitted from API requests. However, any non-pointer,
  2557. // non-interface field appearing in ForceSendFields will be sent to the
  2558. // server regardless of whether the field is empty or not. This may be
  2559. // used to include empty fields in Patch requests.
  2560. ForceSendFields []string `json:"-"`
  2561. // NullFields is a list of field names (e.g. "DisplayName") to include
  2562. // in API requests with the JSON null value. By default, fields with
  2563. // empty values are omitted from API requests. However, any field with
  2564. // an empty value appearing in NullFields will be sent to the server as
  2565. // null. It is an error if a field in this list has a non-empty value.
  2566. // This may be used to include null fields in Patch requests.
  2567. NullFields []string `json:"-"`
  2568. }
  2569. func (s *MasterProperties) MarshalJSON() ([]byte, error) {
  2570. type NoMethod MasterProperties
  2571. raw := NoMethod(*s)
  2572. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2573. }
  2574. // MergeTableCellsRequest: Merges cells in a Table.
  2575. type MergeTableCellsRequest struct {
  2576. // ObjectId: The object ID of the table.
  2577. ObjectId string `json:"objectId,omitempty"`
  2578. // TableRange: The table range specifying which cells of the table to
  2579. // merge.
  2580. //
  2581. // Any text in the cells being merged will be concatenated and stored in
  2582. // the
  2583. // upper-left ("head") cell of the range. If the range is
  2584. // non-rectangular
  2585. // (which can occur in some cases where the range covers cells that
  2586. // are
  2587. // already merged), a 400 bad request error is returned.
  2588. TableRange *TableRange `json:"tableRange,omitempty"`
  2589. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  2590. // unconditionally include in API requests. By default, fields with
  2591. // empty values are omitted from API requests. However, any non-pointer,
  2592. // non-interface field appearing in ForceSendFields will be sent to the
  2593. // server regardless of whether the field is empty or not. This may be
  2594. // used to include empty fields in Patch requests.
  2595. ForceSendFields []string `json:"-"`
  2596. // NullFields is a list of field names (e.g. "ObjectId") to include in
  2597. // API requests with the JSON null value. By default, fields with empty
  2598. // values are omitted from API requests. However, any field with an
  2599. // empty value appearing in NullFields will be sent to the server as
  2600. // null. It is an error if a field in this list has a non-empty value.
  2601. // This may be used to include null fields in Patch requests.
  2602. NullFields []string `json:"-"`
  2603. }
  2604. func (s *MergeTableCellsRequest) MarshalJSON() ([]byte, error) {
  2605. type NoMethod MergeTableCellsRequest
  2606. raw := NoMethod(*s)
  2607. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2608. }
  2609. // NestingLevel: Contains properties describing the look and feel of a
  2610. // list bullet at a given
  2611. // level of nesting.
  2612. type NestingLevel struct {
  2613. // BulletStyle: The style of a bullet at this level of nesting.
  2614. BulletStyle *TextStyle `json:"bulletStyle,omitempty"`
  2615. // ForceSendFields is a list of field names (e.g. "BulletStyle") to
  2616. // unconditionally include in API requests. By default, fields with
  2617. // empty values are omitted from API requests. However, any non-pointer,
  2618. // non-interface field appearing in ForceSendFields will be sent to the
  2619. // server regardless of whether the field is empty or not. This may be
  2620. // used to include empty fields in Patch requests.
  2621. ForceSendFields []string `json:"-"`
  2622. // NullFields is a list of field names (e.g. "BulletStyle") to include
  2623. // in API requests with the JSON null value. By default, fields with
  2624. // empty values are omitted from API requests. However, any field with
  2625. // an empty value appearing in NullFields will be sent to the server as
  2626. // null. It is an error if a field in this list has a non-empty value.
  2627. // This may be used to include null fields in Patch requests.
  2628. NullFields []string `json:"-"`
  2629. }
  2630. func (s *NestingLevel) MarshalJSON() ([]byte, error) {
  2631. type NoMethod NestingLevel
  2632. raw := NoMethod(*s)
  2633. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2634. }
  2635. // NotesProperties: The properties of Page that are only
  2636. // relevant for pages with page_type NOTES.
  2637. type NotesProperties struct {
  2638. // SpeakerNotesObjectId: The object ID of the shape on this notes page
  2639. // that contains the speaker
  2640. // notes for the corresponding slide.
  2641. // The actual shape may not always exist on the notes page. Inserting
  2642. // text
  2643. // using this object ID will automatically create the shape. In this
  2644. // case, the
  2645. // actual shape may have different object ID. The `GetPresentation`
  2646. // or
  2647. // `GetPage` action will always return the latest object ID.
  2648. SpeakerNotesObjectId string `json:"speakerNotesObjectId,omitempty"`
  2649. // ForceSendFields is a list of field names (e.g.
  2650. // "SpeakerNotesObjectId") to unconditionally include in API requests.
  2651. // By default, fields with empty values are omitted from API requests.
  2652. // However, any non-pointer, non-interface field appearing in
  2653. // ForceSendFields will be sent to the server regardless of whether the
  2654. // field is empty or not. This may be used to include empty fields in
  2655. // Patch requests.
  2656. ForceSendFields []string `json:"-"`
  2657. // NullFields is a list of field names (e.g. "SpeakerNotesObjectId") to
  2658. // include in API requests with the JSON null value. By default, fields
  2659. // with empty values are omitted from API requests. However, any field
  2660. // with an empty value appearing in NullFields will be sent to the
  2661. // server as null. It is an error if a field in this list has a
  2662. // non-empty value. This may be used to include null fields in Patch
  2663. // requests.
  2664. NullFields []string `json:"-"`
  2665. }
  2666. func (s *NotesProperties) MarshalJSON() ([]byte, error) {
  2667. type NoMethod NotesProperties
  2668. raw := NoMethod(*s)
  2669. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2670. }
  2671. // OpaqueColor: A themeable solid color value.
  2672. type OpaqueColor struct {
  2673. // RgbColor: An opaque RGB color.
  2674. RgbColor *RgbColor `json:"rgbColor,omitempty"`
  2675. // ThemeColor: An opaque theme color.
  2676. //
  2677. // Possible values:
  2678. // "THEME_COLOR_TYPE_UNSPECIFIED" - Unspecified theme color. This
  2679. // value should not be used.
  2680. // "DARK1" - Represents the first dark color.
  2681. // "LIGHT1" - Represents the first light color.
  2682. // "DARK2" - Represents the second dark color.
  2683. // "LIGHT2" - Represents the second light color.
  2684. // "ACCENT1" - Represents the first accent color.
  2685. // "ACCENT2" - Represents the second accent color.
  2686. // "ACCENT3" - Represents the third accent color.
  2687. // "ACCENT4" - Represents the fourth accent color.
  2688. // "ACCENT5" - Represents the fifth accent color.
  2689. // "ACCENT6" - Represents the sixth accent color.
  2690. // "HYPERLINK" - Represents the color to use for hyperlinks.
  2691. // "FOLLOWED_HYPERLINK" - Represents the color to use for visited
  2692. // hyperlinks.
  2693. // "TEXT1" - Represents the first text color.
  2694. // "BACKGROUND1" - Represents the first background color.
  2695. // "TEXT2" - Represents the second text color.
  2696. // "BACKGROUND2" - Represents the second background color.
  2697. ThemeColor string `json:"themeColor,omitempty"`
  2698. // ForceSendFields is a list of field names (e.g. "RgbColor") to
  2699. // unconditionally include in API requests. By default, fields with
  2700. // empty values are omitted from API requests. However, any non-pointer,
  2701. // non-interface field appearing in ForceSendFields will be sent to the
  2702. // server regardless of whether the field is empty or not. This may be
  2703. // used to include empty fields in Patch requests.
  2704. ForceSendFields []string `json:"-"`
  2705. // NullFields is a list of field names (e.g. "RgbColor") to include in
  2706. // API requests with the JSON null value. By default, fields with empty
  2707. // values are omitted from API requests. However, any field with an
  2708. // empty value appearing in NullFields will be sent to the server as
  2709. // null. It is an error if a field in this list has a non-empty value.
  2710. // This may be used to include null fields in Patch requests.
  2711. NullFields []string `json:"-"`
  2712. }
  2713. func (s *OpaqueColor) MarshalJSON() ([]byte, error) {
  2714. type NoMethod OpaqueColor
  2715. raw := NoMethod(*s)
  2716. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2717. }
  2718. // OptionalColor: A color that can either be fully opaque or fully
  2719. // transparent.
  2720. type OptionalColor struct {
  2721. // OpaqueColor: If set, this will be used as an opaque color. If unset,
  2722. // this represents
  2723. // a transparent color.
  2724. OpaqueColor *OpaqueColor `json:"opaqueColor,omitempty"`
  2725. // ForceSendFields is a list of field names (e.g. "OpaqueColor") to
  2726. // unconditionally include in API requests. By default, fields with
  2727. // empty values are omitted from API requests. However, any non-pointer,
  2728. // non-interface field appearing in ForceSendFields will be sent to the
  2729. // server regardless of whether the field is empty or not. This may be
  2730. // used to include empty fields in Patch requests.
  2731. ForceSendFields []string `json:"-"`
  2732. // NullFields is a list of field names (e.g. "OpaqueColor") to include
  2733. // in API requests with the JSON null value. By default, fields with
  2734. // empty values are omitted from API requests. However, any field with
  2735. // an empty value appearing in NullFields will be sent to the server as
  2736. // null. It is an error if a field in this list has a non-empty value.
  2737. // This may be used to include null fields in Patch requests.
  2738. NullFields []string `json:"-"`
  2739. }
  2740. func (s *OptionalColor) MarshalJSON() ([]byte, error) {
  2741. type NoMethod OptionalColor
  2742. raw := NoMethod(*s)
  2743. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2744. }
  2745. // Outline: The outline of a PageElement.
  2746. //
  2747. // If these fields are unset, they may be inherited from a parent
  2748. // placeholder
  2749. // if it exists. If there is no parent, the fields will default to the
  2750. // value
  2751. // used for new page elements created in the Slides editor, which may
  2752. // depend on
  2753. // the page element kind.
  2754. type Outline struct {
  2755. // DashStyle: The dash style of the outline.
  2756. //
  2757. // Possible values:
  2758. // "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
  2759. // "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2760. // value 'solid'.
  2761. // This is the default dash style.
  2762. // "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2763. // value 'dot'.
  2764. // "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2765. // value 'dash'.
  2766. // "DASH_DOT" - Alternating dashes and dots. Corresponds to ECMA-376
  2767. // ST_PresetLineDashVal
  2768. // value 'dashDot'.
  2769. // "LONG_DASH" - Line with large dashes. Corresponds to ECMA-376
  2770. // ST_PresetLineDashVal
  2771. // value 'lgDash'.
  2772. // "LONG_DASH_DOT" - Alternating large dashes and dots. Corresponds to
  2773. // ECMA-376
  2774. // ST_PresetLineDashVal value 'lgDashDot'.
  2775. DashStyle string `json:"dashStyle,omitempty"`
  2776. // OutlineFill: The fill of the outline.
  2777. OutlineFill *OutlineFill `json:"outlineFill,omitempty"`
  2778. // PropertyState: The outline property state.
  2779. //
  2780. // Updating the outline on a page element will implicitly update this
  2781. // field
  2782. // to `RENDERED`, unless another value is specified in the same request.
  2783. // To
  2784. // have no outline on a page element, set this field to `NOT_RENDERED`.
  2785. // In
  2786. // this case, any other outline fields set in the same request will
  2787. // be
  2788. // ignored.
  2789. //
  2790. // Possible values:
  2791. // "RENDERED" - If a property's state is RENDERED, then the element
  2792. // has the corresponding
  2793. // property when rendered on a page. If the element is a placeholder
  2794. // shape as
  2795. // determined by the placeholder
  2796. // field, and it inherits from a placeholder shape, the corresponding
  2797. // field
  2798. // may be unset, meaning that the property value is inherited from a
  2799. // parent
  2800. // placeholder. If the element does not inherit, then the field will
  2801. // contain
  2802. // the rendered value. This is the default value.
  2803. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  2804. // element does not have the
  2805. // corresponding property when rendered on a page. However, the field
  2806. // may
  2807. // still be set so it can be inherited by child shapes. To remove a
  2808. // property
  2809. // from a rendered element, set its property_state to NOT_RENDERED.
  2810. // "INHERIT" - If a property's state is INHERIT, then the property
  2811. // state uses the value of
  2812. // corresponding `property_state` field on the parent shape. Elements
  2813. // that do
  2814. // not inherit will never have an INHERIT property state.
  2815. PropertyState string `json:"propertyState,omitempty"`
  2816. // Weight: The thickness of the outline.
  2817. Weight *Dimension `json:"weight,omitempty"`
  2818. // ForceSendFields is a list of field names (e.g. "DashStyle") to
  2819. // unconditionally include in API requests. By default, fields with
  2820. // empty values are omitted from API requests. However, any non-pointer,
  2821. // non-interface field appearing in ForceSendFields will be sent to the
  2822. // server regardless of whether the field is empty or not. This may be
  2823. // used to include empty fields in Patch requests.
  2824. ForceSendFields []string `json:"-"`
  2825. // NullFields is a list of field names (e.g. "DashStyle") to include in
  2826. // API requests with the JSON null value. By default, fields with empty
  2827. // values are omitted from API requests. However, any field with an
  2828. // empty value appearing in NullFields will be sent to the server as
  2829. // null. It is an error if a field in this list has a non-empty value.
  2830. // This may be used to include null fields in Patch requests.
  2831. NullFields []string `json:"-"`
  2832. }
  2833. func (s *Outline) MarshalJSON() ([]byte, error) {
  2834. type NoMethod Outline
  2835. raw := NoMethod(*s)
  2836. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2837. }
  2838. // OutlineFill: The fill of the outline.
  2839. type OutlineFill struct {
  2840. // SolidFill: Solid color fill.
  2841. SolidFill *SolidFill `json:"solidFill,omitempty"`
  2842. // ForceSendFields is a list of field names (e.g. "SolidFill") to
  2843. // unconditionally include in API requests. By default, fields with
  2844. // empty values are omitted from API requests. However, any non-pointer,
  2845. // non-interface field appearing in ForceSendFields will be sent to the
  2846. // server regardless of whether the field is empty or not. This may be
  2847. // used to include empty fields in Patch requests.
  2848. ForceSendFields []string `json:"-"`
  2849. // NullFields is a list of field names (e.g. "SolidFill") to include in
  2850. // API requests with the JSON null value. By default, fields with empty
  2851. // values are omitted from API requests. However, any field with an
  2852. // empty value appearing in NullFields will be sent to the server as
  2853. // null. It is an error if a field in this list has a non-empty value.
  2854. // This may be used to include null fields in Patch requests.
  2855. NullFields []string `json:"-"`
  2856. }
  2857. func (s *OutlineFill) MarshalJSON() ([]byte, error) {
  2858. type NoMethod OutlineFill
  2859. raw := NoMethod(*s)
  2860. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2861. }
  2862. // Page: A page in a presentation.
  2863. type Page struct {
  2864. // LayoutProperties: Layout specific properties. Only set if page_type =
  2865. // LAYOUT.
  2866. LayoutProperties *LayoutProperties `json:"layoutProperties,omitempty"`
  2867. // MasterProperties: Master specific properties. Only set if page_type =
  2868. // MASTER.
  2869. MasterProperties *MasterProperties `json:"masterProperties,omitempty"`
  2870. // NotesProperties: Notes specific properties. Only set if page_type =
  2871. // NOTES.
  2872. NotesProperties *NotesProperties `json:"notesProperties,omitempty"`
  2873. // ObjectId: The object ID for this page. Object IDs used by
  2874. // Page and
  2875. // PageElement share the same namespace.
  2876. ObjectId string `json:"objectId,omitempty"`
  2877. // PageElements: The page elements rendered on the page.
  2878. PageElements []*PageElement `json:"pageElements,omitempty"`
  2879. // PageProperties: The properties of the page.
  2880. PageProperties *PageProperties `json:"pageProperties,omitempty"`
  2881. // PageType: The type of the page.
  2882. //
  2883. // Possible values:
  2884. // "SLIDE" - A slide page.
  2885. // "MASTER" - A master slide page.
  2886. // "LAYOUT" - A layout page.
  2887. // "NOTES" - A notes page.
  2888. // "NOTES_MASTER" - A notes master page.
  2889. PageType string `json:"pageType,omitempty"`
  2890. // RevisionId: The revision ID of the presentation containing this page.
  2891. // Can be used in
  2892. // update requests to assert that the presentation revision hasn't
  2893. // changed
  2894. // since the last read operation. Only populated if the user has edit
  2895. // access
  2896. // to the presentation.
  2897. //
  2898. // The format of the revision ID may change over time, so it should be
  2899. // treated
  2900. // opaquely. A returned revision ID is only guaranteed to be valid for
  2901. // 24
  2902. // hours after it has been returned and cannot be shared across users.
  2903. // If the
  2904. // revision ID is unchanged between calls, then the presentation has
  2905. // not
  2906. // changed. Conversely, a changed ID (for the same presentation and
  2907. // user)
  2908. // usually means the presentation has been updated; however, a changed
  2909. // ID can
  2910. // also be due to internal factors such as ID format changes.
  2911. RevisionId string `json:"revisionId,omitempty"`
  2912. // SlideProperties: Slide specific properties. Only set if page_type =
  2913. // SLIDE.
  2914. SlideProperties *SlideProperties `json:"slideProperties,omitempty"`
  2915. // ServerResponse contains the HTTP response code and headers from the
  2916. // server.
  2917. googleapi.ServerResponse `json:"-"`
  2918. // ForceSendFields is a list of field names (e.g. "LayoutProperties") to
  2919. // unconditionally include in API requests. By default, fields with
  2920. // empty values are omitted from API requests. However, any non-pointer,
  2921. // non-interface field appearing in ForceSendFields will be sent to the
  2922. // server regardless of whether the field is empty or not. This may be
  2923. // used to include empty fields in Patch requests.
  2924. ForceSendFields []string `json:"-"`
  2925. // NullFields is a list of field names (e.g. "LayoutProperties") to
  2926. // include in API requests with the JSON null value. By default, fields
  2927. // with empty values are omitted from API requests. However, any field
  2928. // with an empty value appearing in NullFields will be sent to the
  2929. // server as null. It is an error if a field in this list has a
  2930. // non-empty value. This may be used to include null fields in Patch
  2931. // requests.
  2932. NullFields []string `json:"-"`
  2933. }
  2934. func (s *Page) MarshalJSON() ([]byte, error) {
  2935. type NoMethod Page
  2936. raw := NoMethod(*s)
  2937. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2938. }
  2939. // PageBackgroundFill: The page background fill.
  2940. type PageBackgroundFill struct {
  2941. // PropertyState: The background fill property state.
  2942. //
  2943. // Updating the fill on a page will implicitly update this field
  2944. // to
  2945. // `RENDERED`, unless another value is specified in the same request.
  2946. // To
  2947. // have no fill on a page, set this field to `NOT_RENDERED`. In this
  2948. // case,
  2949. // any other fill fields set in the same request will be ignored.
  2950. //
  2951. // Possible values:
  2952. // "RENDERED" - If a property's state is RENDERED, then the element
  2953. // has the corresponding
  2954. // property when rendered on a page. If the element is a placeholder
  2955. // shape as
  2956. // determined by the placeholder
  2957. // field, and it inherits from a placeholder shape, the corresponding
  2958. // field
  2959. // may be unset, meaning that the property value is inherited from a
  2960. // parent
  2961. // placeholder. If the element does not inherit, then the field will
  2962. // contain
  2963. // the rendered value. This is the default value.
  2964. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  2965. // element does not have the
  2966. // corresponding property when rendered on a page. However, the field
  2967. // may
  2968. // still be set so it can be inherited by child shapes. To remove a
  2969. // property
  2970. // from a rendered element, set its property_state to NOT_RENDERED.
  2971. // "INHERIT" - If a property's state is INHERIT, then the property
  2972. // state uses the value of
  2973. // corresponding `property_state` field on the parent shape. Elements
  2974. // that do
  2975. // not inherit will never have an INHERIT property state.
  2976. PropertyState string `json:"propertyState,omitempty"`
  2977. // SolidFill: Solid color fill.
  2978. SolidFill *SolidFill `json:"solidFill,omitempty"`
  2979. // StretchedPictureFill: Stretched picture fill.
  2980. StretchedPictureFill *StretchedPictureFill `json:"stretchedPictureFill,omitempty"`
  2981. // ForceSendFields is a list of field names (e.g. "PropertyState") to
  2982. // unconditionally include in API requests. By default, fields with
  2983. // empty values are omitted from API requests. However, any non-pointer,
  2984. // non-interface field appearing in ForceSendFields will be sent to the
  2985. // server regardless of whether the field is empty or not. This may be
  2986. // used to include empty fields in Patch requests.
  2987. ForceSendFields []string `json:"-"`
  2988. // NullFields is a list of field names (e.g. "PropertyState") to include
  2989. // in API requests with the JSON null value. By default, fields with
  2990. // empty values are omitted from API requests. However, any field with
  2991. // an empty value appearing in NullFields will be sent to the server as
  2992. // null. It is an error if a field in this list has a non-empty value.
  2993. // This may be used to include null fields in Patch requests.
  2994. NullFields []string `json:"-"`
  2995. }
  2996. func (s *PageBackgroundFill) MarshalJSON() ([]byte, error) {
  2997. type NoMethod PageBackgroundFill
  2998. raw := NoMethod(*s)
  2999. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3000. }
  3001. // PageElement: A visual element rendered on a page.
  3002. type PageElement struct {
  3003. // Description: The description of the page element. Combined with title
  3004. // to display alt
  3005. // text.
  3006. Description string `json:"description,omitempty"`
  3007. // ElementGroup: A collection of page elements joined as a single unit.
  3008. ElementGroup *Group `json:"elementGroup,omitempty"`
  3009. // Image: An image page element.
  3010. Image *Image `json:"image,omitempty"`
  3011. // Line: A line page element.
  3012. Line *Line `json:"line,omitempty"`
  3013. // ObjectId: The object ID for this page element. Object IDs used
  3014. // by
  3015. // google.apps.slides.v1.Page and
  3016. // google.apps.slides.v1.PageElement share the same namespace.
  3017. ObjectId string `json:"objectId,omitempty"`
  3018. // Shape: A generic shape.
  3019. Shape *Shape `json:"shape,omitempty"`
  3020. // SheetsChart: A linked chart embedded from Google Sheets. Unlinked
  3021. // charts are
  3022. // represented as images.
  3023. SheetsChart *SheetsChart `json:"sheetsChart,omitempty"`
  3024. // Size: The size of the page element.
  3025. Size *Size `json:"size,omitempty"`
  3026. // Table: A table page element.
  3027. Table *Table `json:"table,omitempty"`
  3028. // Title: The title of the page element. Combined with description to
  3029. // display alt
  3030. // text.
  3031. Title string `json:"title,omitempty"`
  3032. // Transform: The transform of the page element.
  3033. //
  3034. // The visual appearance of the page element is determined by its
  3035. // absolute
  3036. // transform. To compute the absolute transform, preconcatenate a
  3037. // page
  3038. // element's transform with the transforms of all of its parent groups.
  3039. // If the
  3040. // page element is not in a group, its absolute transform is the same as
  3041. // the
  3042. // value in this field.
  3043. //
  3044. // The initial transform for the newly created Group is always the
  3045. // identity transform.
  3046. Transform *AffineTransform `json:"transform,omitempty"`
  3047. // Video: A video page element.
  3048. Video *Video `json:"video,omitempty"`
  3049. // WordArt: A word art page element.
  3050. WordArt *WordArt `json:"wordArt,omitempty"`
  3051. // ForceSendFields is a list of field names (e.g. "Description") to
  3052. // unconditionally include in API requests. By default, fields with
  3053. // empty values are omitted from API requests. However, any non-pointer,
  3054. // non-interface field appearing in ForceSendFields will be sent to the
  3055. // server regardless of whether the field is empty or not. This may be
  3056. // used to include empty fields in Patch requests.
  3057. ForceSendFields []string `json:"-"`
  3058. // NullFields is a list of field names (e.g. "Description") to include
  3059. // in API requests with the JSON null value. By default, fields with
  3060. // empty values are omitted from API requests. However, any field with
  3061. // an empty value appearing in NullFields will be sent to the server as
  3062. // null. It is an error if a field in this list has a non-empty value.
  3063. // This may be used to include null fields in Patch requests.
  3064. NullFields []string `json:"-"`
  3065. }
  3066. func (s *PageElement) MarshalJSON() ([]byte, error) {
  3067. type NoMethod PageElement
  3068. raw := NoMethod(*s)
  3069. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3070. }
  3071. // PageElementProperties: Common properties for a page element.
  3072. //
  3073. // Note: When you initially create a
  3074. // PageElement, the API may modify
  3075. // the values of both `size` and `transform`, but the
  3076. // visual size will be unchanged.
  3077. type PageElementProperties struct {
  3078. // PageObjectId: The object ID of the page where the element is located.
  3079. PageObjectId string `json:"pageObjectId,omitempty"`
  3080. // Size: The size of the element.
  3081. Size *Size `json:"size,omitempty"`
  3082. // Transform: The transform for the element.
  3083. Transform *AffineTransform `json:"transform,omitempty"`
  3084. // ForceSendFields is a list of field names (e.g. "PageObjectId") to
  3085. // unconditionally include in API requests. By default, fields with
  3086. // empty values are omitted from API requests. However, any non-pointer,
  3087. // non-interface field appearing in ForceSendFields will be sent to the
  3088. // server regardless of whether the field is empty or not. This may be
  3089. // used to include empty fields in Patch requests.
  3090. ForceSendFields []string `json:"-"`
  3091. // NullFields is a list of field names (e.g. "PageObjectId") to include
  3092. // in API requests with the JSON null value. By default, fields with
  3093. // empty values are omitted from API requests. However, any field with
  3094. // an empty value appearing in NullFields will be sent to the server as
  3095. // null. It is an error if a field in this list has a non-empty value.
  3096. // This may be used to include null fields in Patch requests.
  3097. NullFields []string `json:"-"`
  3098. }
  3099. func (s *PageElementProperties) MarshalJSON() ([]byte, error) {
  3100. type NoMethod PageElementProperties
  3101. raw := NoMethod(*s)
  3102. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3103. }
  3104. // PageProperties: The properties of the Page.
  3105. //
  3106. // The page will inherit properties from the parent page. Depending on
  3107. // the page
  3108. // type the hierarchy is defined in either
  3109. // SlideProperties or
  3110. // LayoutProperties.
  3111. type PageProperties struct {
  3112. // ColorScheme: The color scheme of the page. If unset, the color scheme
  3113. // is inherited from
  3114. // a parent page. If the page has no parent, the color scheme uses a
  3115. // default
  3116. // Slides color scheme. This field is read-only.
  3117. ColorScheme *ColorScheme `json:"colorScheme,omitempty"`
  3118. // PageBackgroundFill: The background fill of the page. If unset, the
  3119. // background fill is inherited
  3120. // from a parent page if it exists. If the page has no parent, then
  3121. // the
  3122. // background fill defaults to the corresponding fill in the Slides
  3123. // editor.
  3124. PageBackgroundFill *PageBackgroundFill `json:"pageBackgroundFill,omitempty"`
  3125. // ForceSendFields is a list of field names (e.g. "ColorScheme") to
  3126. // unconditionally include in API requests. By default, fields with
  3127. // empty values are omitted from API requests. However, any non-pointer,
  3128. // non-interface field appearing in ForceSendFields will be sent to the
  3129. // server regardless of whether the field is empty or not. This may be
  3130. // used to include empty fields in Patch requests.
  3131. ForceSendFields []string `json:"-"`
  3132. // NullFields is a list of field names (e.g. "ColorScheme") to include
  3133. // in API requests with the JSON null value. By default, fields with
  3134. // empty values are omitted from API requests. However, any field with
  3135. // an empty value appearing in NullFields will be sent to the server as
  3136. // null. It is an error if a field in this list has a non-empty value.
  3137. // This may be used to include null fields in Patch requests.
  3138. NullFields []string `json:"-"`
  3139. }
  3140. func (s *PageProperties) MarshalJSON() ([]byte, error) {
  3141. type NoMethod PageProperties
  3142. raw := NoMethod(*s)
  3143. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3144. }
  3145. // ParagraphMarker: A TextElement kind that represents the beginning of
  3146. // a new paragraph.
  3147. type ParagraphMarker struct {
  3148. // Bullet: The bullet for this paragraph. If not present, the paragraph
  3149. // does not
  3150. // belong to a list.
  3151. Bullet *Bullet `json:"bullet,omitempty"`
  3152. // Style: The paragraph's style
  3153. Style *ParagraphStyle `json:"style,omitempty"`
  3154. // ForceSendFields is a list of field names (e.g. "Bullet") to
  3155. // unconditionally include in API requests. By default, fields with
  3156. // empty values are omitted from API requests. However, any non-pointer,
  3157. // non-interface field appearing in ForceSendFields will be sent to the
  3158. // server regardless of whether the field is empty or not. This may be
  3159. // used to include empty fields in Patch requests.
  3160. ForceSendFields []string `json:"-"`
  3161. // NullFields is a list of field names (e.g. "Bullet") to include in API
  3162. // requests with the JSON null value. By default, fields with empty
  3163. // values are omitted from API requests. However, any field with an
  3164. // empty value appearing in NullFields will be sent to the server as
  3165. // null. It is an error if a field in this list has a non-empty value.
  3166. // This may be used to include null fields in Patch requests.
  3167. NullFields []string `json:"-"`
  3168. }
  3169. func (s *ParagraphMarker) MarshalJSON() ([]byte, error) {
  3170. type NoMethod ParagraphMarker
  3171. raw := NoMethod(*s)
  3172. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3173. }
  3174. // ParagraphStyle: Styles that apply to a whole paragraph.
  3175. //
  3176. // If this text is contained in a shape with a parent placeholder, then
  3177. // these paragraph styles may be
  3178. // inherited from the parent. Which paragraph styles are inherited
  3179. // depend on the
  3180. // nesting level of lists:
  3181. //
  3182. // * A paragraph not in a list will inherit its paragraph style from
  3183. // the
  3184. // paragraph at the 0 nesting level of the list inside the parent
  3185. // placeholder.
  3186. // * A paragraph in a list will inherit its paragraph style from the
  3187. // paragraph
  3188. // at its corresponding nesting level of the list inside the parent
  3189. // placeholder.
  3190. //
  3191. // Inherited paragraph styles are represented as unset fields in this
  3192. // message.
  3193. type ParagraphStyle struct {
  3194. // Alignment: The text alignment for this paragraph.
  3195. //
  3196. // Possible values:
  3197. // "ALIGNMENT_UNSPECIFIED" - The paragraph alignment is inherited from
  3198. // the parent.
  3199. // "START" - The paragraph is aligned to the start of the line.
  3200. // Left-aligned for
  3201. // LTR text, right-aligned otherwise.
  3202. // "CENTER" - The paragraph is centered.
  3203. // "END" - The paragraph is aligned to the end of the line.
  3204. // Right-aligned for
  3205. // LTR text, left-aligned otherwise.
  3206. // "JUSTIFIED" - The paragraph is justified.
  3207. Alignment string `json:"alignment,omitempty"`
  3208. // Direction: The text direction of this paragraph. If unset, the value
  3209. // defaults to
  3210. // LEFT_TO_RIGHT since
  3211. // text direction is not inherited.
  3212. //
  3213. // Possible values:
  3214. // "TEXT_DIRECTION_UNSPECIFIED" - The text direction is inherited from
  3215. // the parent.
  3216. // "LEFT_TO_RIGHT" - The text goes from left to right.
  3217. // "RIGHT_TO_LEFT" - The text goes from right to left.
  3218. Direction string `json:"direction,omitempty"`
  3219. // IndentEnd: The amount indentation for the paragraph on the side that
  3220. // corresponds to
  3221. // the end of the text, based on the current text direction. If unset,
  3222. // the
  3223. // value is inherited from the parent.
  3224. IndentEnd *Dimension `json:"indentEnd,omitempty"`
  3225. // IndentFirstLine: The amount of indentation for the start of the first
  3226. // line of the paragraph.
  3227. // If unset, the value is inherited from the parent.
  3228. IndentFirstLine *Dimension `json:"indentFirstLine,omitempty"`
  3229. // IndentStart: The amount indentation for the paragraph on the side
  3230. // that corresponds to
  3231. // the start of the text, based on the current text direction. If unset,
  3232. // the
  3233. // value is inherited from the parent.
  3234. IndentStart *Dimension `json:"indentStart,omitempty"`
  3235. // LineSpacing: The amount of space between lines, as a percentage of
  3236. // normal, where normal
  3237. // is represented as 100.0. If unset, the value is inherited from the
  3238. // parent.
  3239. LineSpacing float64 `json:"lineSpacing,omitempty"`
  3240. // SpaceAbove: The amount of extra space above the paragraph. If unset,
  3241. // the value is
  3242. // inherited from the parent.
  3243. SpaceAbove *Dimension `json:"spaceAbove,omitempty"`
  3244. // SpaceBelow: The amount of extra space above the paragraph. If unset,
  3245. // the value is
  3246. // inherited from the parent.
  3247. SpaceBelow *Dimension `json:"spaceBelow,omitempty"`
  3248. // SpacingMode: The spacing mode for the paragraph.
  3249. //
  3250. // Possible values:
  3251. // "SPACING_MODE_UNSPECIFIED" - The spacing mode is inherited from the
  3252. // parent.
  3253. // "NEVER_COLLAPSE" - Paragraph spacing is always rendered.
  3254. // "COLLAPSE_LISTS" - Paragraph spacing is skipped between list
  3255. // elements.
  3256. SpacingMode string `json:"spacingMode,omitempty"`
  3257. // ForceSendFields is a list of field names (e.g. "Alignment") to
  3258. // unconditionally include in API requests. By default, fields with
  3259. // empty values are omitted from API requests. However, any non-pointer,
  3260. // non-interface field appearing in ForceSendFields will be sent to the
  3261. // server regardless of whether the field is empty or not. This may be
  3262. // used to include empty fields in Patch requests.
  3263. ForceSendFields []string `json:"-"`
  3264. // NullFields is a list of field names (e.g. "Alignment") to include in
  3265. // API requests with the JSON null value. By default, fields with empty
  3266. // values are omitted from API requests. However, any field with an
  3267. // empty value appearing in NullFields will be sent to the server as
  3268. // null. It is an error if a field in this list has a non-empty value.
  3269. // This may be used to include null fields in Patch requests.
  3270. NullFields []string `json:"-"`
  3271. }
  3272. func (s *ParagraphStyle) MarshalJSON() ([]byte, error) {
  3273. type NoMethod ParagraphStyle
  3274. raw := NoMethod(*s)
  3275. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3276. }
  3277. func (s *ParagraphStyle) UnmarshalJSON(data []byte) error {
  3278. type NoMethod ParagraphStyle
  3279. var s1 struct {
  3280. LineSpacing gensupport.JSONFloat64 `json:"lineSpacing"`
  3281. *NoMethod
  3282. }
  3283. s1.NoMethod = (*NoMethod)(s)
  3284. if err := json.Unmarshal(data, &s1); err != nil {
  3285. return err
  3286. }
  3287. s.LineSpacing = float64(s1.LineSpacing)
  3288. return nil
  3289. }
  3290. // Placeholder: The placeholder information that uniquely identifies a
  3291. // placeholder shape.
  3292. type Placeholder struct {
  3293. // Index: The index of the placeholder. If the same placeholder types
  3294. // are present in
  3295. // the same page, they would have different index values.
  3296. Index int64 `json:"index,omitempty"`
  3297. // ParentObjectId: The object ID of this shape's parent placeholder.
  3298. // If unset, the parent placeholder shape does not exist, so the shape
  3299. // does
  3300. // not inherit properties from any other shape.
  3301. ParentObjectId string `json:"parentObjectId,omitempty"`
  3302. // Type: The type of the placeholder.
  3303. //
  3304. // Possible values:
  3305. // "NONE" - Default value, signifies it is not a placeholder.
  3306. // "BODY" - Body text.
  3307. // "CHART" - Chart or graph.
  3308. // "CLIP_ART" - Clip art image.
  3309. // "CENTERED_TITLE" - Title centered.
  3310. // "DIAGRAM" - Diagram.
  3311. // "DATE_AND_TIME" - Date and time.
  3312. // "FOOTER" - Footer text.
  3313. // "HEADER" - Header text.
  3314. // "MEDIA" - Multimedia.
  3315. // "OBJECT" - Any content type.
  3316. // "PICTURE" - Picture.
  3317. // "SLIDE_NUMBER" - Number of a slide.
  3318. // "SUBTITLE" - Subtitle.
  3319. // "TABLE" - Table.
  3320. // "TITLE" - Slide title.
  3321. // "SLIDE_IMAGE" - Slide image.
  3322. Type string `json:"type,omitempty"`
  3323. // ForceSendFields is a list of field names (e.g. "Index") to
  3324. // unconditionally include in API requests. By default, fields with
  3325. // empty values are omitted from API requests. However, any non-pointer,
  3326. // non-interface field appearing in ForceSendFields will be sent to the
  3327. // server regardless of whether the field is empty or not. This may be
  3328. // used to include empty fields in Patch requests.
  3329. ForceSendFields []string `json:"-"`
  3330. // NullFields is a list of field names (e.g. "Index") to include in API
  3331. // requests with the JSON null value. By default, fields with empty
  3332. // values are omitted from API requests. However, any field with an
  3333. // empty value appearing in NullFields will be sent to the server as
  3334. // null. It is an error if a field in this list has a non-empty value.
  3335. // This may be used to include null fields in Patch requests.
  3336. NullFields []string `json:"-"`
  3337. }
  3338. func (s *Placeholder) MarshalJSON() ([]byte, error) {
  3339. type NoMethod Placeholder
  3340. raw := NoMethod(*s)
  3341. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3342. }
  3343. // Presentation: A Google Slides presentation.
  3344. type Presentation struct {
  3345. // Layouts: The layouts in the presentation. A layout is a template that
  3346. // determines
  3347. // how content is arranged and styled on the slides that inherit from
  3348. // that
  3349. // layout.
  3350. Layouts []*Page `json:"layouts,omitempty"`
  3351. // Locale: The locale of the presentation, as an IETF BCP 47 language
  3352. // tag.
  3353. Locale string `json:"locale,omitempty"`
  3354. // Masters: The slide masters in the presentation. A slide master
  3355. // contains all common
  3356. // page elements and the common properties for a set of layouts. They
  3357. // serve
  3358. // three purposes:
  3359. //
  3360. // - Placeholder shapes on a master contain the default text styles and
  3361. // shape
  3362. // properties of all placeholder shapes on pages that use that
  3363. // master.
  3364. // - The master page properties define the common page properties
  3365. // inherited by
  3366. // its layouts.
  3367. // - Any other shapes on the master slide will appear on all slides
  3368. // using that
  3369. // master, regardless of their layout.
  3370. Masters []*Page `json:"masters,omitempty"`
  3371. // NotesMaster: The notes master in the presentation. It serves three
  3372. // purposes:
  3373. //
  3374. // - Placeholder shapes on a notes master contain the default text
  3375. // styles and
  3376. // shape properties of all placeholder shapes on notes pages.
  3377. // Specifically,
  3378. // a `SLIDE_IMAGE` placeholder shape contains the slide thumbnail, and
  3379. // a
  3380. // `BODY` placeholder shape contains the speaker notes.
  3381. // - The notes master page properties define the common page properties
  3382. // inherited by all notes pages.
  3383. // - Any other shapes on the notes master will appear on all notes
  3384. // pages.
  3385. //
  3386. // The notes master is read-only.
  3387. NotesMaster *Page `json:"notesMaster,omitempty"`
  3388. // PageSize: The size of pages in the presentation.
  3389. PageSize *Size `json:"pageSize,omitempty"`
  3390. // PresentationId: The ID of the presentation.
  3391. PresentationId string `json:"presentationId,omitempty"`
  3392. // RevisionId: The revision ID of the presentation. Can be used in
  3393. // update requests
  3394. // to assert that the presentation revision hasn't changed since the
  3395. // last
  3396. // read operation. Only populated if the user has edit access to
  3397. // the
  3398. // presentation.
  3399. //
  3400. // The format of the revision ID may change over time, so it should be
  3401. // treated
  3402. // opaquely. A returned revision ID is only guaranteed to be valid for
  3403. // 24
  3404. // hours after it has been returned and cannot be shared across users.
  3405. // If the
  3406. // revision ID is unchanged between calls, then the presentation has
  3407. // not
  3408. // changed. Conversely, a changed ID (for the same presentation and
  3409. // user)
  3410. // usually means the presentation has been updated; however, a changed
  3411. // ID can
  3412. // also be due to internal factors such as ID format changes.
  3413. RevisionId string `json:"revisionId,omitempty"`
  3414. // Slides: The slides in the presentation.
  3415. // A slide inherits properties from a slide layout.
  3416. Slides []*Page `json:"slides,omitempty"`
  3417. // Title: The title of the presentation.
  3418. Title string `json:"title,omitempty"`
  3419. // ServerResponse contains the HTTP response code and headers from the
  3420. // server.
  3421. googleapi.ServerResponse `json:"-"`
  3422. // ForceSendFields is a list of field names (e.g. "Layouts") to
  3423. // unconditionally include in API requests. By default, fields with
  3424. // empty values are omitted from API requests. However, any non-pointer,
  3425. // non-interface field appearing in ForceSendFields will be sent to the
  3426. // server regardless of whether the field is empty or not. This may be
  3427. // used to include empty fields in Patch requests.
  3428. ForceSendFields []string `json:"-"`
  3429. // NullFields is a list of field names (e.g. "Layouts") to include in
  3430. // API requests with the JSON null value. By default, fields with empty
  3431. // values are omitted from API requests. However, any field with an
  3432. // empty value appearing in NullFields will be sent to the server as
  3433. // null. It is an error if a field in this list has a non-empty value.
  3434. // This may be used to include null fields in Patch requests.
  3435. NullFields []string `json:"-"`
  3436. }
  3437. func (s *Presentation) MarshalJSON() ([]byte, error) {
  3438. type NoMethod Presentation
  3439. raw := NoMethod(*s)
  3440. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3441. }
  3442. // Range: Specifies a contiguous range of an indexed collection, such as
  3443. // characters in
  3444. // text.
  3445. type Range struct {
  3446. // EndIndex: The optional zero-based index of the end of the
  3447. // collection.
  3448. // Required for `FIXED_RANGE` ranges.
  3449. EndIndex int64 `json:"endIndex,omitempty"`
  3450. // StartIndex: The optional zero-based index of the beginning of the
  3451. // collection.
  3452. // Required for `FIXED_RANGE` and `FROM_START_INDEX` ranges.
  3453. StartIndex int64 `json:"startIndex,omitempty"`
  3454. // Type: The type of range.
  3455. //
  3456. // Possible values:
  3457. // "RANGE_TYPE_UNSPECIFIED" - Unspecified range type. This value must
  3458. // not be used.
  3459. // "FIXED_RANGE" - A fixed range. Both the `start_index`
  3460. // and
  3461. // `end_index` must be specified.
  3462. // "FROM_START_INDEX" - Starts the range at `start_index` and
  3463. // continues until the
  3464. // end of the collection. The `end_index` must not be specified.
  3465. // "ALL" - Sets the range to be the whole length of the collection.
  3466. // Both the
  3467. // `start_index` and the `end_index` must not be
  3468. // specified.
  3469. Type string `json:"type,omitempty"`
  3470. // ForceSendFields is a list of field names (e.g. "EndIndex") to
  3471. // unconditionally include in API requests. By default, fields with
  3472. // empty values are omitted from API requests. However, any non-pointer,
  3473. // non-interface field appearing in ForceSendFields will be sent to the
  3474. // server regardless of whether the field is empty or not. This may be
  3475. // used to include empty fields in Patch requests.
  3476. ForceSendFields []string `json:"-"`
  3477. // NullFields is a list of field names (e.g. "EndIndex") to include in
  3478. // API requests with the JSON null value. By default, fields with empty
  3479. // values are omitted from API requests. However, any field with an
  3480. // empty value appearing in NullFields will be sent to the server as
  3481. // null. It is an error if a field in this list has a non-empty value.
  3482. // This may be used to include null fields in Patch requests.
  3483. NullFields []string `json:"-"`
  3484. }
  3485. func (s *Range) MarshalJSON() ([]byte, error) {
  3486. type NoMethod Range
  3487. raw := NoMethod(*s)
  3488. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3489. }
  3490. // Recolor: A recolor effect applied on an image.
  3491. type Recolor struct {
  3492. // Name: The name of the recolor effect.
  3493. //
  3494. // The name is determined from the `recolor_stops` by matching the
  3495. // gradient
  3496. // against the colors in the page's current color scheme. This property
  3497. // is
  3498. // read-only.
  3499. //
  3500. // Possible values:
  3501. // "NONE" - No recolor effect. The default value.
  3502. // "LIGHT1" - A recolor effect that lightens the image using the
  3503. // page's first available
  3504. // color from its color scheme.
  3505. // "LIGHT2" - A recolor effect that lightens the image using the
  3506. // page's second
  3507. // available color from its color scheme.
  3508. // "LIGHT3" - A recolor effect that lightens the image using the
  3509. // page's third available
  3510. // color from its color scheme.
  3511. // "LIGHT4" - A recolor effect that lightens the image using the
  3512. // page's forth available
  3513. // color from its color scheme.
  3514. // "LIGHT5" - A recolor effect that lightens the image using the
  3515. // page's fifth available
  3516. // color from its color scheme.
  3517. // "LIGHT6" - A recolor effect that lightens the image using the
  3518. // page's sixth available
  3519. // color from its color scheme.
  3520. // "LIGHT7" - A recolor effect that lightens the image using the
  3521. // page's seventh
  3522. // available color from its color scheme.e.
  3523. // "LIGHT8" - A recolor effect that lightens the image using the
  3524. // page's eighth
  3525. // available color from its color scheme.
  3526. // "LIGHT9" - A recolor effect that lightens the image using the
  3527. // page's ninth available
  3528. // color from its color scheme.
  3529. // "LIGHT10" - A recolor effect that lightens the image using the
  3530. // page's tenth available
  3531. // color from its color scheme.
  3532. // "DARK1" - A recolor effect that darkens the image using the page's
  3533. // first available
  3534. // color from its color scheme.
  3535. // "DARK2" - A recolor effect that darkens the image using the page's
  3536. // second available
  3537. // color from its color scheme.
  3538. // "DARK3" - A recolor effect that darkens the image using the page's
  3539. // third available
  3540. // color from its color scheme.
  3541. // "DARK4" - A recolor effect that darkens the image using the page's
  3542. // fourth available
  3543. // color from its color scheme.
  3544. // "DARK5" - A recolor effect that darkens the image using the page's
  3545. // fifth available
  3546. // color from its color scheme.
  3547. // "DARK6" - A recolor effect that darkens the image using the page's
  3548. // sixth available
  3549. // color from its color scheme.
  3550. // "DARK7" - A recolor effect that darkens the image using the page's
  3551. // seventh
  3552. // available color from its color scheme.
  3553. // "DARK8" - A recolor effect that darkens the image using the page's
  3554. // eighth available
  3555. // color from its color scheme.
  3556. // "DARK9" - A recolor effect that darkens the image using the page's
  3557. // ninth available
  3558. // color from its color scheme.
  3559. // "DARK10" - A recolor effect that darkens the image using the page's
  3560. // tenth available
  3561. // color from its color scheme.
  3562. // "GRAYSCALE" - A recolor effect that recolors the image to
  3563. // grayscale.
  3564. // "NEGATIVE" - A recolor effect that recolors the image to negative
  3565. // grayscale.
  3566. // "SEPIA" - A recolor effect that recolors the image using the sepia
  3567. // color.
  3568. // "CUSTOM" - Custom recolor effect. Refer to `recolor_stops` for the
  3569. // concrete
  3570. // gradient.
  3571. Name string `json:"name,omitempty"`
  3572. // RecolorStops: The recolor effect is represented by a gradient, which
  3573. // is a list of color
  3574. // stops.
  3575. //
  3576. // The colors in the gradient will replace the corresponding colors
  3577. // at
  3578. // the same position in the color palette and apply to the image.
  3579. // This
  3580. // property is read-only.
  3581. RecolorStops []*ColorStop `json:"recolorStops,omitempty"`
  3582. // ForceSendFields is a list of field names (e.g. "Name") to
  3583. // unconditionally include in API requests. By default, fields with
  3584. // empty values are omitted from API requests. However, any non-pointer,
  3585. // non-interface field appearing in ForceSendFields will be sent to the
  3586. // server regardless of whether the field is empty or not. This may be
  3587. // used to include empty fields in Patch requests.
  3588. ForceSendFields []string `json:"-"`
  3589. // NullFields is a list of field names (e.g. "Name") to include in API
  3590. // requests with the JSON null value. By default, fields with empty
  3591. // values are omitted from API requests. However, any field with an
  3592. // empty value appearing in NullFields will be sent to the server as
  3593. // null. It is an error if a field in this list has a non-empty value.
  3594. // This may be used to include null fields in Patch requests.
  3595. NullFields []string `json:"-"`
  3596. }
  3597. func (s *Recolor) MarshalJSON() ([]byte, error) {
  3598. type NoMethod Recolor
  3599. raw := NoMethod(*s)
  3600. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3601. }
  3602. // RefreshSheetsChartRequest: Refreshes an embedded Google Sheets chart
  3603. // by replacing it with the latest
  3604. // version of the chart from Google Sheets.
  3605. //
  3606. // NOTE: Refreshing charts requires at least one of the
  3607. // spreadsheets.readonly,
  3608. // spreadsheets, drive.readonly, or drive OAuth scopes.
  3609. type RefreshSheetsChartRequest struct {
  3610. // ObjectId: The object ID of the chart to refresh.
  3611. ObjectId string `json:"objectId,omitempty"`
  3612. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  3613. // unconditionally include in API requests. By default, fields with
  3614. // empty values are omitted from API requests. However, any non-pointer,
  3615. // non-interface field appearing in ForceSendFields will be sent to the
  3616. // server regardless of whether the field is empty or not. This may be
  3617. // used to include empty fields in Patch requests.
  3618. ForceSendFields []string `json:"-"`
  3619. // NullFields is a list of field names (e.g. "ObjectId") to include in
  3620. // API requests with the JSON null value. By default, fields with empty
  3621. // values are omitted from API requests. However, any field with an
  3622. // empty value appearing in NullFields will be sent to the server as
  3623. // null. It is an error if a field in this list has a non-empty value.
  3624. // This may be used to include null fields in Patch requests.
  3625. NullFields []string `json:"-"`
  3626. }
  3627. func (s *RefreshSheetsChartRequest) MarshalJSON() ([]byte, error) {
  3628. type NoMethod RefreshSheetsChartRequest
  3629. raw := NoMethod(*s)
  3630. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3631. }
  3632. // ReplaceAllShapesWithImageRequest: Replaces all shapes that match the
  3633. // given criteria with the provided image.
  3634. //
  3635. // The images replacing the shapes are rectangular after being inserted
  3636. // into
  3637. // the presentation and do not take on the forms of the shapes.
  3638. type ReplaceAllShapesWithImageRequest struct {
  3639. // ContainsText: If set, this request will replace all of the shapes
  3640. // that contain the
  3641. // given text.
  3642. ContainsText *SubstringMatchCriteria `json:"containsText,omitempty"`
  3643. // ImageReplaceMethod: The image replace method.
  3644. //
  3645. // If you specify both a `replace_method` and an `image_replace_method`,
  3646. // the
  3647. // `image_replace_method` takes precedence.
  3648. //
  3649. // If you do not specify a value for `image_replace_method`, but specify
  3650. // a
  3651. // value for `replace_method`, then the specified `replace_method` value
  3652. // is
  3653. // used.
  3654. //
  3655. // If you do not specify either, then CENTER_INSIDE is used.
  3656. //
  3657. // Possible values:
  3658. // "IMAGE_REPLACE_METHOD_UNSPECIFIED" - Unspecified image replace
  3659. // method. This value must not be used.
  3660. // "CENTER_INSIDE" - Scales and centers the image to fit within the
  3661. // bounds of the original
  3662. // shape and maintains the image's aspect ratio. The rendered size of
  3663. // the
  3664. // image may be smaller than the size of the shape. This is the
  3665. // default
  3666. // method when one is not specified.
  3667. // "CENTER_CROP" - Scales and centers the image to fill the bounds of
  3668. // the original shape.
  3669. // The image may be cropped in order to fill the shape. The rendered
  3670. // size of
  3671. // the image will be the same as that of the original shape.
  3672. ImageReplaceMethod string `json:"imageReplaceMethod,omitempty"`
  3673. // ImageUrl: The image URL.
  3674. //
  3675. // The image is fetched once at insertion time and a copy is stored
  3676. // for
  3677. // display inside the presentation. Images must be less than 50MB in
  3678. // size,
  3679. // cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
  3680. // GIF
  3681. // format.
  3682. //
  3683. // The provided URL can be at most 2 kB in length. The URL itself is
  3684. // saved
  3685. // with the image, and exposed via the Image.source_url field.
  3686. ImageUrl string `json:"imageUrl,omitempty"`
  3687. // PageObjectIds: If non-empty, limits the matches to page elements only
  3688. // on the given pages.
  3689. //
  3690. // Returns a 400 bad request error if given the page object ID of
  3691. // a
  3692. // notes page or a
  3693. // notes master, or if a
  3694. // page with that object ID doesn't exist in the presentation.
  3695. PageObjectIds []string `json:"pageObjectIds,omitempty"`
  3696. // ReplaceMethod: The replace method.
  3697. // Deprecated: use `image_replace_method` instead.
  3698. //
  3699. // If you specify both a `replace_method` and an `image_replace_method`,
  3700. // the
  3701. // `image_replace_method` takes precedence.
  3702. //
  3703. // Possible values:
  3704. // "CENTER_INSIDE" - Scales and centers the image to fit within the
  3705. // bounds of the original
  3706. // shape and maintains the image's aspect ratio. The rendered size of
  3707. // the
  3708. // image may be smaller than the size of the shape. This is the
  3709. // default
  3710. // method when one is not specified.
  3711. // "CENTER_CROP" - Scales and centers the image to fill the bounds of
  3712. // the original shape.
  3713. // The image may be cropped in order to fill the shape. The rendered
  3714. // size of
  3715. // the image will be the same as that of the original shape.
  3716. ReplaceMethod string `json:"replaceMethod,omitempty"`
  3717. // ForceSendFields is a list of field names (e.g. "ContainsText") to
  3718. // unconditionally include in API requests. By default, fields with
  3719. // empty values are omitted from API requests. However, any non-pointer,
  3720. // non-interface field appearing in ForceSendFields will be sent to the
  3721. // server regardless of whether the field is empty or not. This may be
  3722. // used to include empty fields in Patch requests.
  3723. ForceSendFields []string `json:"-"`
  3724. // NullFields is a list of field names (e.g. "ContainsText") to include
  3725. // in API requests with the JSON null value. By default, fields with
  3726. // empty values are omitted from API requests. However, any field with
  3727. // an empty value appearing in NullFields will be sent to the server as
  3728. // null. It is an error if a field in this list has a non-empty value.
  3729. // This may be used to include null fields in Patch requests.
  3730. NullFields []string `json:"-"`
  3731. }
  3732. func (s *ReplaceAllShapesWithImageRequest) MarshalJSON() ([]byte, error) {
  3733. type NoMethod ReplaceAllShapesWithImageRequest
  3734. raw := NoMethod(*s)
  3735. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3736. }
  3737. // ReplaceAllShapesWithImageResponse: The result of replacing shapes
  3738. // with an image.
  3739. type ReplaceAllShapesWithImageResponse struct {
  3740. // OccurrencesChanged: The number of shapes replaced with images.
  3741. OccurrencesChanged int64 `json:"occurrencesChanged,omitempty"`
  3742. // ForceSendFields is a list of field names (e.g. "OccurrencesChanged")
  3743. // to unconditionally include in API requests. By default, fields with
  3744. // empty values are omitted from API requests. However, any non-pointer,
  3745. // non-interface field appearing in ForceSendFields will be sent to the
  3746. // server regardless of whether the field is empty or not. This may be
  3747. // used to include empty fields in Patch requests.
  3748. ForceSendFields []string `json:"-"`
  3749. // NullFields is a list of field names (e.g. "OccurrencesChanged") to
  3750. // include in API requests with the JSON null value. By default, fields
  3751. // with empty values are omitted from API requests. However, any field
  3752. // with an empty value appearing in NullFields will be sent to the
  3753. // server as null. It is an error if a field in this list has a
  3754. // non-empty value. This may be used to include null fields in Patch
  3755. // requests.
  3756. NullFields []string `json:"-"`
  3757. }
  3758. func (s *ReplaceAllShapesWithImageResponse) MarshalJSON() ([]byte, error) {
  3759. type NoMethod ReplaceAllShapesWithImageResponse
  3760. raw := NoMethod(*s)
  3761. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3762. }
  3763. // ReplaceAllShapesWithSheetsChartRequest: Replaces all shapes that
  3764. // match the given criteria with the provided Google
  3765. // Sheets chart. The chart will be scaled and centered to fit within the
  3766. // bounds
  3767. // of the original shape.
  3768. //
  3769. // NOTE: Replacing shapes with a chart requires at least one of
  3770. // the
  3771. // spreadsheets.readonly, spreadsheets, drive.readonly, or drive OAuth
  3772. // scopes.
  3773. type ReplaceAllShapesWithSheetsChartRequest struct {
  3774. // ChartId: The ID of the specific chart in the Google Sheets
  3775. // spreadsheet.
  3776. ChartId int64 `json:"chartId,omitempty"`
  3777. // ContainsText: The criteria that the shapes must match in order to be
  3778. // replaced. The
  3779. // request will replace all of the shapes that contain the given text.
  3780. ContainsText *SubstringMatchCriteria `json:"containsText,omitempty"`
  3781. // LinkingMode: The mode with which the chart is linked to the source
  3782. // spreadsheet. When
  3783. // not specified, the chart will be an image that is not linked.
  3784. //
  3785. // Possible values:
  3786. // "NOT_LINKED_IMAGE" - The chart is not associated with the source
  3787. // spreadsheet and cannot be
  3788. // updated. A chart that is not linked will be inserted as an image.
  3789. // "LINKED" - Linking the chart allows it to be updated, and other
  3790. // collaborators will
  3791. // see a link to the spreadsheet.
  3792. LinkingMode string `json:"linkingMode,omitempty"`
  3793. // PageObjectIds: If non-empty, limits the matches to page elements only
  3794. // on the given pages.
  3795. //
  3796. // Returns a 400 bad request error if given the page object ID of
  3797. // a
  3798. // notes page or a
  3799. // notes master, or if a
  3800. // page with that object ID doesn't exist in the presentation.
  3801. PageObjectIds []string `json:"pageObjectIds,omitempty"`
  3802. // SpreadsheetId: The ID of the Google Sheets spreadsheet that contains
  3803. // the chart.
  3804. SpreadsheetId string `json:"spreadsheetId,omitempty"`
  3805. // ForceSendFields is a list of field names (e.g. "ChartId") to
  3806. // unconditionally include in API requests. By default, fields with
  3807. // empty values are omitted from API requests. However, any non-pointer,
  3808. // non-interface field appearing in ForceSendFields will be sent to the
  3809. // server regardless of whether the field is empty or not. This may be
  3810. // used to include empty fields in Patch requests.
  3811. ForceSendFields []string `json:"-"`
  3812. // NullFields is a list of field names (e.g. "ChartId") to include in
  3813. // API requests with the JSON null value. By default, fields with empty
  3814. // values are omitted from API requests. However, any field with an
  3815. // empty value appearing in NullFields will be sent to the server as
  3816. // null. It is an error if a field in this list has a non-empty value.
  3817. // This may be used to include null fields in Patch requests.
  3818. NullFields []string `json:"-"`
  3819. }
  3820. func (s *ReplaceAllShapesWithSheetsChartRequest) MarshalJSON() ([]byte, error) {
  3821. type NoMethod ReplaceAllShapesWithSheetsChartRequest
  3822. raw := NoMethod(*s)
  3823. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3824. }
  3825. // ReplaceAllShapesWithSheetsChartResponse: The result of replacing
  3826. // shapes with a Google Sheets chart.
  3827. type ReplaceAllShapesWithSheetsChartResponse struct {
  3828. // OccurrencesChanged: The number of shapes replaced with charts.
  3829. OccurrencesChanged int64 `json:"occurrencesChanged,omitempty"`
  3830. // ForceSendFields is a list of field names (e.g. "OccurrencesChanged")
  3831. // to unconditionally include in API requests. By default, fields with
  3832. // empty values are omitted from API requests. However, any non-pointer,
  3833. // non-interface field appearing in ForceSendFields will be sent to the
  3834. // server regardless of whether the field is empty or not. This may be
  3835. // used to include empty fields in Patch requests.
  3836. ForceSendFields []string `json:"-"`
  3837. // NullFields is a list of field names (e.g. "OccurrencesChanged") to
  3838. // include in API requests with the JSON null value. By default, fields
  3839. // with empty values are omitted from API requests. However, any field
  3840. // with an empty value appearing in NullFields will be sent to the
  3841. // server as null. It is an error if a field in this list has a
  3842. // non-empty value. This may be used to include null fields in Patch
  3843. // requests.
  3844. NullFields []string `json:"-"`
  3845. }
  3846. func (s *ReplaceAllShapesWithSheetsChartResponse) MarshalJSON() ([]byte, error) {
  3847. type NoMethod ReplaceAllShapesWithSheetsChartResponse
  3848. raw := NoMethod(*s)
  3849. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3850. }
  3851. // ReplaceAllTextRequest: Replaces all instances of text matching a
  3852. // criteria with replace text.
  3853. type ReplaceAllTextRequest struct {
  3854. // ContainsText: Finds text in a shape matching this substring.
  3855. ContainsText *SubstringMatchCriteria `json:"containsText,omitempty"`
  3856. // PageObjectIds: If non-empty, limits the matches to page elements only
  3857. // on the given pages.
  3858. //
  3859. // Returns a 400 bad request error if given the page object ID of
  3860. // a
  3861. // notes master,
  3862. // or if a page with that object ID doesn't exist in the presentation.
  3863. PageObjectIds []string `json:"pageObjectIds,omitempty"`
  3864. // ReplaceText: The text that will replace the matched text.
  3865. ReplaceText string `json:"replaceText,omitempty"`
  3866. // ForceSendFields is a list of field names (e.g. "ContainsText") to
  3867. // unconditionally include in API requests. By default, fields with
  3868. // empty values are omitted from API requests. However, any non-pointer,
  3869. // non-interface field appearing in ForceSendFields will be sent to the
  3870. // server regardless of whether the field is empty or not. This may be
  3871. // used to include empty fields in Patch requests.
  3872. ForceSendFields []string `json:"-"`
  3873. // NullFields is a list of field names (e.g. "ContainsText") to include
  3874. // in API requests with the JSON null value. By default, fields with
  3875. // empty values are omitted from API requests. However, any field with
  3876. // an empty value appearing in NullFields will be sent to the server as
  3877. // null. It is an error if a field in this list has a non-empty value.
  3878. // This may be used to include null fields in Patch requests.
  3879. NullFields []string `json:"-"`
  3880. }
  3881. func (s *ReplaceAllTextRequest) MarshalJSON() ([]byte, error) {
  3882. type NoMethod ReplaceAllTextRequest
  3883. raw := NoMethod(*s)
  3884. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3885. }
  3886. // ReplaceAllTextResponse: The result of replacing text.
  3887. type ReplaceAllTextResponse struct {
  3888. // OccurrencesChanged: The number of occurrences changed by replacing
  3889. // all text.
  3890. OccurrencesChanged int64 `json:"occurrencesChanged,omitempty"`
  3891. // ForceSendFields is a list of field names (e.g. "OccurrencesChanged")
  3892. // to unconditionally include in API requests. By default, fields with
  3893. // empty values are omitted from API requests. However, any non-pointer,
  3894. // non-interface field appearing in ForceSendFields will be sent to the
  3895. // server regardless of whether the field is empty or not. This may be
  3896. // used to include empty fields in Patch requests.
  3897. ForceSendFields []string `json:"-"`
  3898. // NullFields is a list of field names (e.g. "OccurrencesChanged") to
  3899. // include in API requests with the JSON null value. By default, fields
  3900. // with empty values are omitted from API requests. However, any field
  3901. // with an empty value appearing in NullFields will be sent to the
  3902. // server as null. It is an error if a field in this list has a
  3903. // non-empty value. This may be used to include null fields in Patch
  3904. // requests.
  3905. NullFields []string `json:"-"`
  3906. }
  3907. func (s *ReplaceAllTextResponse) MarshalJSON() ([]byte, error) {
  3908. type NoMethod ReplaceAllTextResponse
  3909. raw := NoMethod(*s)
  3910. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3911. }
  3912. // ReplaceImageRequest: Replaces an existing image with a new
  3913. // image.
  3914. //
  3915. // Replacing an image removes some image effects from the existing
  3916. // image.
  3917. type ReplaceImageRequest struct {
  3918. // ImageObjectId: The ID of the existing image that will be replaced.
  3919. ImageObjectId string `json:"imageObjectId,omitempty"`
  3920. // ImageReplaceMethod: The replacement method.
  3921. //
  3922. // Possible values:
  3923. // "IMAGE_REPLACE_METHOD_UNSPECIFIED" - Unspecified image replace
  3924. // method. This value must not be used.
  3925. // "CENTER_INSIDE" - Scales and centers the image to fit within the
  3926. // bounds of the original
  3927. // shape and maintains the image's aspect ratio. The rendered size of
  3928. // the
  3929. // image may be smaller than the size of the shape. This is the
  3930. // default
  3931. // method when one is not specified.
  3932. // "CENTER_CROP" - Scales and centers the image to fill the bounds of
  3933. // the original shape.
  3934. // The image may be cropped in order to fill the shape. The rendered
  3935. // size of
  3936. // the image will be the same as that of the original shape.
  3937. ImageReplaceMethod string `json:"imageReplaceMethod,omitempty"`
  3938. // Url: The URL of the new image.
  3939. //
  3940. // The image is fetched once at insertion time and a copy is stored
  3941. // for
  3942. // display inside the presentation. Images must be less than 50MB in
  3943. // size,
  3944. // cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
  3945. // GIF
  3946. // format.
  3947. //
  3948. // The provided URL can be at most 2 kB in length. The URL itself is
  3949. // saved
  3950. // with the image, and exposed via the Image.source_url field.
  3951. Url string `json:"url,omitempty"`
  3952. // ForceSendFields is a list of field names (e.g. "ImageObjectId") to
  3953. // unconditionally include in API requests. By default, fields with
  3954. // empty values are omitted from API requests. However, any non-pointer,
  3955. // non-interface field appearing in ForceSendFields will be sent to the
  3956. // server regardless of whether the field is empty or not. This may be
  3957. // used to include empty fields in Patch requests.
  3958. ForceSendFields []string `json:"-"`
  3959. // NullFields is a list of field names (e.g. "ImageObjectId") to include
  3960. // in API requests with the JSON null value. By default, fields with
  3961. // empty values are omitted from API requests. However, any field with
  3962. // an empty value appearing in NullFields will be sent to the server as
  3963. // null. It is an error if a field in this list has a non-empty value.
  3964. // This may be used to include null fields in Patch requests.
  3965. NullFields []string `json:"-"`
  3966. }
  3967. func (s *ReplaceImageRequest) MarshalJSON() ([]byte, error) {
  3968. type NoMethod ReplaceImageRequest
  3969. raw := NoMethod(*s)
  3970. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3971. }
  3972. // Request: A single kind of update to apply to a presentation.
  3973. type Request struct {
  3974. // CreateImage: Creates an image.
  3975. CreateImage *CreateImageRequest `json:"createImage,omitempty"`
  3976. // CreateLine: Creates a line.
  3977. CreateLine *CreateLineRequest `json:"createLine,omitempty"`
  3978. // CreateParagraphBullets: Creates bullets for paragraphs.
  3979. CreateParagraphBullets *CreateParagraphBulletsRequest `json:"createParagraphBullets,omitempty"`
  3980. // CreateShape: Creates a new shape.
  3981. CreateShape *CreateShapeRequest `json:"createShape,omitempty"`
  3982. // CreateSheetsChart: Creates an embedded Google Sheets chart.
  3983. CreateSheetsChart *CreateSheetsChartRequest `json:"createSheetsChart,omitempty"`
  3984. // CreateSlide: Creates a new slide.
  3985. CreateSlide *CreateSlideRequest `json:"createSlide,omitempty"`
  3986. // CreateTable: Creates a new table.
  3987. CreateTable *CreateTableRequest `json:"createTable,omitempty"`
  3988. // CreateVideo: Creates a video.
  3989. CreateVideo *CreateVideoRequest `json:"createVideo,omitempty"`
  3990. // DeleteObject: Deletes a page or page element from the presentation.
  3991. DeleteObject *DeleteObjectRequest `json:"deleteObject,omitempty"`
  3992. // DeleteParagraphBullets: Deletes bullets from paragraphs.
  3993. DeleteParagraphBullets *DeleteParagraphBulletsRequest `json:"deleteParagraphBullets,omitempty"`
  3994. // DeleteTableColumn: Deletes a column from a table.
  3995. DeleteTableColumn *DeleteTableColumnRequest `json:"deleteTableColumn,omitempty"`
  3996. // DeleteTableRow: Deletes a row from a table.
  3997. DeleteTableRow *DeleteTableRowRequest `json:"deleteTableRow,omitempty"`
  3998. // DeleteText: Deletes text from a shape or a table cell.
  3999. DeleteText *DeleteTextRequest `json:"deleteText,omitempty"`
  4000. // DuplicateObject: Duplicates a slide or page element.
  4001. DuplicateObject *DuplicateObjectRequest `json:"duplicateObject,omitempty"`
  4002. // GroupObjects: Groups objects, such as page elements.
  4003. GroupObjects *GroupObjectsRequest `json:"groupObjects,omitempty"`
  4004. // InsertTableColumns: Inserts columns into a table.
  4005. InsertTableColumns *InsertTableColumnsRequest `json:"insertTableColumns,omitempty"`
  4006. // InsertTableRows: Inserts rows into a table.
  4007. InsertTableRows *InsertTableRowsRequest `json:"insertTableRows,omitempty"`
  4008. // InsertText: Inserts text into a shape or table cell.
  4009. InsertText *InsertTextRequest `json:"insertText,omitempty"`
  4010. // MergeTableCells: Merges cells in a Table.
  4011. MergeTableCells *MergeTableCellsRequest `json:"mergeTableCells,omitempty"`
  4012. // RefreshSheetsChart: Refreshes a Google Sheets chart.
  4013. RefreshSheetsChart *RefreshSheetsChartRequest `json:"refreshSheetsChart,omitempty"`
  4014. // ReplaceAllShapesWithImage: Replaces all shapes matching some criteria
  4015. // with an image.
  4016. ReplaceAllShapesWithImage *ReplaceAllShapesWithImageRequest `json:"replaceAllShapesWithImage,omitempty"`
  4017. // ReplaceAllShapesWithSheetsChart: Replaces all shapes matching some
  4018. // criteria with a Google Sheets chart.
  4019. ReplaceAllShapesWithSheetsChart *ReplaceAllShapesWithSheetsChartRequest `json:"replaceAllShapesWithSheetsChart,omitempty"`
  4020. // ReplaceAllText: Replaces all instances of specified text.
  4021. ReplaceAllText *ReplaceAllTextRequest `json:"replaceAllText,omitempty"`
  4022. // ReplaceImage: Replaces an existing image with a new image.
  4023. ReplaceImage *ReplaceImageRequest `json:"replaceImage,omitempty"`
  4024. // UngroupObjects: Ungroups objects, such as groups.
  4025. UngroupObjects *UngroupObjectsRequest `json:"ungroupObjects,omitempty"`
  4026. // UnmergeTableCells: Unmerges cells in a Table.
  4027. UnmergeTableCells *UnmergeTableCellsRequest `json:"unmergeTableCells,omitempty"`
  4028. // UpdateImageProperties: Updates the properties of an Image.
  4029. UpdateImageProperties *UpdateImagePropertiesRequest `json:"updateImageProperties,omitempty"`
  4030. // UpdateLineProperties: Updates the properties of a Line.
  4031. UpdateLineProperties *UpdateLinePropertiesRequest `json:"updateLineProperties,omitempty"`
  4032. // UpdatePageElementAltText: Updates the alt text title and/or
  4033. // description of a
  4034. // page element.
  4035. UpdatePageElementAltText *UpdatePageElementAltTextRequest `json:"updatePageElementAltText,omitempty"`
  4036. // UpdatePageElementTransform: Updates the transform of a page element.
  4037. UpdatePageElementTransform *UpdatePageElementTransformRequest `json:"updatePageElementTransform,omitempty"`
  4038. // UpdatePageProperties: Updates the properties of a Page.
  4039. UpdatePageProperties *UpdatePagePropertiesRequest `json:"updatePageProperties,omitempty"`
  4040. // UpdateParagraphStyle: Updates the styling of paragraphs within a
  4041. // Shape or Table.
  4042. UpdateParagraphStyle *UpdateParagraphStyleRequest `json:"updateParagraphStyle,omitempty"`
  4043. // UpdateShapeProperties: Updates the properties of a Shape.
  4044. UpdateShapeProperties *UpdateShapePropertiesRequest `json:"updateShapeProperties,omitempty"`
  4045. // UpdateSlidesPosition: Updates the position of a set of slides in the
  4046. // presentation.
  4047. UpdateSlidesPosition *UpdateSlidesPositionRequest `json:"updateSlidesPosition,omitempty"`
  4048. // UpdateTableBorderProperties: Updates the properties of the table
  4049. // borders in a Table.
  4050. UpdateTableBorderProperties *UpdateTableBorderPropertiesRequest `json:"updateTableBorderProperties,omitempty"`
  4051. // UpdateTableCellProperties: Updates the properties of a TableCell.
  4052. UpdateTableCellProperties *UpdateTableCellPropertiesRequest `json:"updateTableCellProperties,omitempty"`
  4053. // UpdateTableColumnProperties: Updates the properties of a
  4054. // Table
  4055. // column.
  4056. UpdateTableColumnProperties *UpdateTableColumnPropertiesRequest `json:"updateTableColumnProperties,omitempty"`
  4057. // UpdateTableRowProperties: Updates the properties of a Table row.
  4058. UpdateTableRowProperties *UpdateTableRowPropertiesRequest `json:"updateTableRowProperties,omitempty"`
  4059. // UpdateTextStyle: Updates the styling of text within a Shape or Table.
  4060. UpdateTextStyle *UpdateTextStyleRequest `json:"updateTextStyle,omitempty"`
  4061. // UpdateVideoProperties: Updates the properties of a Video.
  4062. UpdateVideoProperties *UpdateVideoPropertiesRequest `json:"updateVideoProperties,omitempty"`
  4063. // ForceSendFields is a list of field names (e.g. "CreateImage") to
  4064. // unconditionally include in API requests. By default, fields with
  4065. // empty values are omitted from API requests. However, any non-pointer,
  4066. // non-interface field appearing in ForceSendFields will be sent to the
  4067. // server regardless of whether the field is empty or not. This may be
  4068. // used to include empty fields in Patch requests.
  4069. ForceSendFields []string `json:"-"`
  4070. // NullFields is a list of field names (e.g. "CreateImage") to include
  4071. // in API requests with the JSON null value. By default, fields with
  4072. // empty values are omitted from API requests. However, any field with
  4073. // an empty value appearing in NullFields will be sent to the server as
  4074. // null. It is an error if a field in this list has a non-empty value.
  4075. // This may be used to include null fields in Patch requests.
  4076. NullFields []string `json:"-"`
  4077. }
  4078. func (s *Request) MarshalJSON() ([]byte, error) {
  4079. type NoMethod Request
  4080. raw := NoMethod(*s)
  4081. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4082. }
  4083. // Response: A single response from an update.
  4084. type Response struct {
  4085. // CreateImage: The result of creating an image.
  4086. CreateImage *CreateImageResponse `json:"createImage,omitempty"`
  4087. // CreateLine: The result of creating a line.
  4088. CreateLine *CreateLineResponse `json:"createLine,omitempty"`
  4089. // CreateShape: The result of creating a shape.
  4090. CreateShape *CreateShapeResponse `json:"createShape,omitempty"`
  4091. // CreateSheetsChart: The result of creating a Google Sheets chart.
  4092. CreateSheetsChart *CreateSheetsChartResponse `json:"createSheetsChart,omitempty"`
  4093. // CreateSlide: The result of creating a slide.
  4094. CreateSlide *CreateSlideResponse `json:"createSlide,omitempty"`
  4095. // CreateTable: The result of creating a table.
  4096. CreateTable *CreateTableResponse `json:"createTable,omitempty"`
  4097. // CreateVideo: The result of creating a video.
  4098. CreateVideo *CreateVideoResponse `json:"createVideo,omitempty"`
  4099. // DuplicateObject: The result of duplicating an object.
  4100. DuplicateObject *DuplicateObjectResponse `json:"duplicateObject,omitempty"`
  4101. // GroupObjects: The result of grouping objects.
  4102. GroupObjects *GroupObjectsResponse `json:"groupObjects,omitempty"`
  4103. // ReplaceAllShapesWithImage: The result of replacing all shapes
  4104. // matching some criteria with an
  4105. // image.
  4106. ReplaceAllShapesWithImage *ReplaceAllShapesWithImageResponse `json:"replaceAllShapesWithImage,omitempty"`
  4107. // ReplaceAllShapesWithSheetsChart: The result of replacing all shapes
  4108. // matching some criteria with a Google
  4109. // Sheets chart.
  4110. ReplaceAllShapesWithSheetsChart *ReplaceAllShapesWithSheetsChartResponse `json:"replaceAllShapesWithSheetsChart,omitempty"`
  4111. // ReplaceAllText: The result of replacing text.
  4112. ReplaceAllText *ReplaceAllTextResponse `json:"replaceAllText,omitempty"`
  4113. // ForceSendFields is a list of field names (e.g. "CreateImage") to
  4114. // unconditionally include in API requests. By default, fields with
  4115. // empty values are omitted from API requests. However, any non-pointer,
  4116. // non-interface field appearing in ForceSendFields will be sent to the
  4117. // server regardless of whether the field is empty or not. This may be
  4118. // used to include empty fields in Patch requests.
  4119. ForceSendFields []string `json:"-"`
  4120. // NullFields is a list of field names (e.g. "CreateImage") to include
  4121. // in API requests with the JSON null value. By default, fields with
  4122. // empty values are omitted from API requests. However, any field with
  4123. // an empty value appearing in NullFields will be sent to the server as
  4124. // null. It is an error if a field in this list has a non-empty value.
  4125. // This may be used to include null fields in Patch requests.
  4126. NullFields []string `json:"-"`
  4127. }
  4128. func (s *Response) MarshalJSON() ([]byte, error) {
  4129. type NoMethod Response
  4130. raw := NoMethod(*s)
  4131. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4132. }
  4133. // RgbColor: An RGB color.
  4134. type RgbColor struct {
  4135. // Blue: The blue component of the color, from 0.0 to 1.0.
  4136. Blue float64 `json:"blue,omitempty"`
  4137. // Green: The green component of the color, from 0.0 to 1.0.
  4138. Green float64 `json:"green,omitempty"`
  4139. // Red: The red component of the color, from 0.0 to 1.0.
  4140. Red float64 `json:"red,omitempty"`
  4141. // ForceSendFields is a list of field names (e.g. "Blue") to
  4142. // unconditionally include in API requests. By default, fields with
  4143. // empty values are omitted from API requests. However, any non-pointer,
  4144. // non-interface field appearing in ForceSendFields will be sent to the
  4145. // server regardless of whether the field is empty or not. This may be
  4146. // used to include empty fields in Patch requests.
  4147. ForceSendFields []string `json:"-"`
  4148. // NullFields is a list of field names (e.g. "Blue") to include in API
  4149. // requests with the JSON null value. By default, fields with empty
  4150. // values are omitted from API requests. However, any field with an
  4151. // empty value appearing in NullFields will be sent to the server as
  4152. // null. It is an error if a field in this list has a non-empty value.
  4153. // This may be used to include null fields in Patch requests.
  4154. NullFields []string `json:"-"`
  4155. }
  4156. func (s *RgbColor) MarshalJSON() ([]byte, error) {
  4157. type NoMethod RgbColor
  4158. raw := NoMethod(*s)
  4159. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4160. }
  4161. func (s *RgbColor) UnmarshalJSON(data []byte) error {
  4162. type NoMethod RgbColor
  4163. var s1 struct {
  4164. Blue gensupport.JSONFloat64 `json:"blue"`
  4165. Green gensupport.JSONFloat64 `json:"green"`
  4166. Red gensupport.JSONFloat64 `json:"red"`
  4167. *NoMethod
  4168. }
  4169. s1.NoMethod = (*NoMethod)(s)
  4170. if err := json.Unmarshal(data, &s1); err != nil {
  4171. return err
  4172. }
  4173. s.Blue = float64(s1.Blue)
  4174. s.Green = float64(s1.Green)
  4175. s.Red = float64(s1.Red)
  4176. return nil
  4177. }
  4178. // Shadow: The shadow properties of a page element.
  4179. //
  4180. // If these fields are unset, they may be inherited from a parent
  4181. // placeholder
  4182. // if it exists. If there is no parent, the fields will default to the
  4183. // value
  4184. // used for new page elements created in the Slides editor, which may
  4185. // depend on
  4186. // the page element kind.
  4187. type Shadow struct {
  4188. // Alignment: The alignment point of the shadow, that sets the origin
  4189. // for translate,
  4190. // scale and skew of the shadow.
  4191. //
  4192. // Possible values:
  4193. // "RECTANGLE_POSITION_UNSPECIFIED" - Unspecified.
  4194. // "TOP_LEFT" - Top left.
  4195. // "TOP_CENTER" - Top center.
  4196. // "TOP_RIGHT" - Top right.
  4197. // "LEFT_CENTER" - Left center.
  4198. // "CENTER" - Center.
  4199. // "RIGHT_CENTER" - Right center.
  4200. // "BOTTOM_LEFT" - Bottom left.
  4201. // "BOTTOM_CENTER" - Bottom center.
  4202. // "BOTTOM_RIGHT" - Bottom right.
  4203. Alignment string `json:"alignment,omitempty"`
  4204. // Alpha: The alpha of the shadow's color, from 0.0 to 1.0.
  4205. Alpha float64 `json:"alpha,omitempty"`
  4206. // BlurRadius: The radius of the shadow blur. The larger the radius, the
  4207. // more diffuse the
  4208. // shadow becomes.
  4209. BlurRadius *Dimension `json:"blurRadius,omitempty"`
  4210. // Color: The shadow color value.
  4211. Color *OpaqueColor `json:"color,omitempty"`
  4212. // PropertyState: The shadow property state.
  4213. //
  4214. // Updating the shadow on a page element will implicitly update this
  4215. // field to
  4216. // `RENDERED`, unless another value is specified in the same request. To
  4217. // have
  4218. // no shadow on a page element, set this field to `NOT_RENDERED`. In
  4219. // this
  4220. // case, any other shadow fields set in the same request will be
  4221. // ignored.
  4222. //
  4223. // Possible values:
  4224. // "RENDERED" - If a property's state is RENDERED, then the element
  4225. // has the corresponding
  4226. // property when rendered on a page. If the element is a placeholder
  4227. // shape as
  4228. // determined by the placeholder
  4229. // field, and it inherits from a placeholder shape, the corresponding
  4230. // field
  4231. // may be unset, meaning that the property value is inherited from a
  4232. // parent
  4233. // placeholder. If the element does not inherit, then the field will
  4234. // contain
  4235. // the rendered value. This is the default value.
  4236. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  4237. // element does not have the
  4238. // corresponding property when rendered on a page. However, the field
  4239. // may
  4240. // still be set so it can be inherited by child shapes. To remove a
  4241. // property
  4242. // from a rendered element, set its property_state to NOT_RENDERED.
  4243. // "INHERIT" - If a property's state is INHERIT, then the property
  4244. // state uses the value of
  4245. // corresponding `property_state` field on the parent shape. Elements
  4246. // that do
  4247. // not inherit will never have an INHERIT property state.
  4248. PropertyState string `json:"propertyState,omitempty"`
  4249. // RotateWithShape: Whether the shadow should rotate with the shape.
  4250. RotateWithShape bool `json:"rotateWithShape,omitempty"`
  4251. // Transform: Transform that encodes the translate, scale, and skew of
  4252. // the shadow,
  4253. // relative to the alignment position.
  4254. Transform *AffineTransform `json:"transform,omitempty"`
  4255. // Type: The type of the shadow.
  4256. //
  4257. // Possible values:
  4258. // "SHADOW_TYPE_UNSPECIFIED" - Unspecified shadow type.
  4259. // "OUTER" - Outer shadow.
  4260. Type string `json:"type,omitempty"`
  4261. // ForceSendFields is a list of field names (e.g. "Alignment") to
  4262. // unconditionally include in API requests. By default, fields with
  4263. // empty values are omitted from API requests. However, any non-pointer,
  4264. // non-interface field appearing in ForceSendFields will be sent to the
  4265. // server regardless of whether the field is empty or not. This may be
  4266. // used to include empty fields in Patch requests.
  4267. ForceSendFields []string `json:"-"`
  4268. // NullFields is a list of field names (e.g. "Alignment") to include in
  4269. // API requests with the JSON null value. By default, fields with empty
  4270. // values are omitted from API requests. However, any field with an
  4271. // empty value appearing in NullFields will be sent to the server as
  4272. // null. It is an error if a field in this list has a non-empty value.
  4273. // This may be used to include null fields in Patch requests.
  4274. NullFields []string `json:"-"`
  4275. }
  4276. func (s *Shadow) MarshalJSON() ([]byte, error) {
  4277. type NoMethod Shadow
  4278. raw := NoMethod(*s)
  4279. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4280. }
  4281. func (s *Shadow) UnmarshalJSON(data []byte) error {
  4282. type NoMethod Shadow
  4283. var s1 struct {
  4284. Alpha gensupport.JSONFloat64 `json:"alpha"`
  4285. *NoMethod
  4286. }
  4287. s1.NoMethod = (*NoMethod)(s)
  4288. if err := json.Unmarshal(data, &s1); err != nil {
  4289. return err
  4290. }
  4291. s.Alpha = float64(s1.Alpha)
  4292. return nil
  4293. }
  4294. // Shape: A PageElement kind representing a
  4295. // generic shape that does not have a more specific classification.
  4296. type Shape struct {
  4297. // Placeholder: Placeholders are shapes that are inherit from
  4298. // corresponding placeholders on
  4299. // layouts and masters.
  4300. //
  4301. // If set, the shape is a placeholder shape and any inherited
  4302. // properties
  4303. // can be resolved by looking at the parent placeholder identified by
  4304. // the
  4305. // Placeholder.parent_object_id field.
  4306. Placeholder *Placeholder `json:"placeholder,omitempty"`
  4307. // ShapeProperties: The properties of the shape.
  4308. ShapeProperties *ShapeProperties `json:"shapeProperties,omitempty"`
  4309. // ShapeType: The type of the shape.
  4310. //
  4311. // Possible values:
  4312. // "TYPE_UNSPECIFIED" - The shape type that is not predefined.
  4313. // "TEXT_BOX" - Text box shape.
  4314. // "RECTANGLE" - Rectangle shape. Corresponds to ECMA-376 ST_ShapeType
  4315. // 'rect'.
  4316. // "ROUND_RECTANGLE" - Round corner rectangle shape. Corresponds to
  4317. // ECMA-376 ST_ShapeType
  4318. // 'roundRect'
  4319. // "ELLIPSE" - Ellipse shape. Corresponds to ECMA-376 ST_ShapeType
  4320. // 'ellipse'
  4321. // "ARC" - Curved arc shape. Corresponds to ECMA-376 ST_ShapeType
  4322. // 'arc'
  4323. // "BENT_ARROW" - Bent arrow shape. Corresponds to ECMA-376
  4324. // ST_ShapeType 'bentArrow'
  4325. // "BENT_UP_ARROW" - Bent up arrow shape. Corresponds to ECMA-376
  4326. // ST_ShapeType 'bentUpArrow'
  4327. // "BEVEL" - Bevel shape. Corresponds to ECMA-376 ST_ShapeType 'bevel'
  4328. // "BLOCK_ARC" - Block arc shape. Corresponds to ECMA-376 ST_ShapeType
  4329. // 'blockArc'
  4330. // "BRACE_PAIR" - Brace pair shape. Corresponds to ECMA-376
  4331. // ST_ShapeType 'bracePair'
  4332. // "BRACKET_PAIR" - Bracket pair shape. Corresponds to ECMA-376
  4333. // ST_ShapeType 'bracketPair'
  4334. // "CAN" - Can shape. Corresponds to ECMA-376 ST_ShapeType 'can'
  4335. // "CHEVRON" - Chevron shape. Corresponds to ECMA-376 ST_ShapeType
  4336. // 'chevron'
  4337. // "CHORD" - Chord shape. Corresponds to ECMA-376 ST_ShapeType 'chord'
  4338. // "CLOUD" - Cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloud'
  4339. // "CORNER" - Corner shape. Corresponds to ECMA-376 ST_ShapeType
  4340. // 'corner'
  4341. // "CUBE" - Cube shape. Corresponds to ECMA-376 ST_ShapeType 'cube'
  4342. // "CURVED_DOWN_ARROW" - Curved down arrow shape. Corresponds to
  4343. // ECMA-376 ST_ShapeType
  4344. // 'curvedDownArrow'
  4345. // "CURVED_LEFT_ARROW" - Curved left arrow shape. Corresponds to
  4346. // ECMA-376 ST_ShapeType
  4347. // 'curvedLeftArrow'
  4348. // "CURVED_RIGHT_ARROW" - Curved right arrow shape. Corresponds to
  4349. // ECMA-376 ST_ShapeType
  4350. // 'curvedRightArrow'
  4351. // "CURVED_UP_ARROW" - Curved up arrow shape. Corresponds to ECMA-376
  4352. // ST_ShapeType
  4353. // 'curvedUpArrow'
  4354. // "DECAGON" - Decagon shape. Corresponds to ECMA-376 ST_ShapeType
  4355. // 'decagon'
  4356. // "DIAGONAL_STRIPE" - Diagonal stripe shape. Corresponds to ECMA-376
  4357. // ST_ShapeType 'diagStripe'
  4358. // "DIAMOND" - Diamond shape. Corresponds to ECMA-376 ST_ShapeType
  4359. // 'diamond'
  4360. // "DODECAGON" - Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType
  4361. // 'dodecagon'
  4362. // "DONUT" - Donut shape. Corresponds to ECMA-376 ST_ShapeType 'donut'
  4363. // "DOUBLE_WAVE" - Double wave shape. Corresponds to ECMA-376
  4364. // ST_ShapeType 'doubleWave'
  4365. // "DOWN_ARROW" - Down arrow shape. Corresponds to ECMA-376
  4366. // ST_ShapeType 'downArrow'
  4367. // "DOWN_ARROW_CALLOUT" - Callout down arrow shape. Corresponds to
  4368. // ECMA-376 ST_ShapeType
  4369. // 'downArrowCallout'
  4370. // "FOLDED_CORNER" - Folded corner shape. Corresponds to ECMA-376
  4371. // ST_ShapeType 'foldedCorner'
  4372. // "FRAME" - Frame shape. Corresponds to ECMA-376 ST_ShapeType 'frame'
  4373. // "HALF_FRAME" - Half frame shape. Corresponds to ECMA-376
  4374. // ST_ShapeType 'halfFrame'
  4375. // "HEART" - Heart shape. Corresponds to ECMA-376 ST_ShapeType 'heart'
  4376. // "HEPTAGON" - Heptagon shape. Corresponds to ECMA-376 ST_ShapeType
  4377. // 'heptagon'
  4378. // "HEXAGON" - Hexagon shape. Corresponds to ECMA-376 ST_ShapeType
  4379. // 'hexagon'
  4380. // "HOME_PLATE" - Home plate shape. Corresponds to ECMA-376
  4381. // ST_ShapeType 'homePlate'
  4382. // "HORIZONTAL_SCROLL" - Horizontal scroll shape. Corresponds to
  4383. // ECMA-376 ST_ShapeType
  4384. // 'horizontalScroll'
  4385. // "IRREGULAR_SEAL_1" - Irregular seal 1 shape. Corresponds to
  4386. // ECMA-376 ST_ShapeType
  4387. // 'irregularSeal1'
  4388. // "IRREGULAR_SEAL_2" - Irregular seal 2 shape. Corresponds to
  4389. // ECMA-376 ST_ShapeType
  4390. // 'irregularSeal2'
  4391. // "LEFT_ARROW" - Left arrow shape. Corresponds to ECMA-376
  4392. // ST_ShapeType 'leftArrow'
  4393. // "LEFT_ARROW_CALLOUT" - Callout left arrow shape. Corresponds to
  4394. // ECMA-376 ST_ShapeType
  4395. // 'leftArrowCallout'
  4396. // "LEFT_BRACE" - Left brace shape. Corresponds to ECMA-376
  4397. // ST_ShapeType 'leftBrace'
  4398. // "LEFT_BRACKET" - Left bracket shape. Corresponds to ECMA-376
  4399. // ST_ShapeType 'leftBracket'
  4400. // "LEFT_RIGHT_ARROW" - Left right arrow shape. Corresponds to
  4401. // ECMA-376 ST_ShapeType
  4402. // 'leftRightArrow'
  4403. // "LEFT_RIGHT_ARROW_CALLOUT" - Callout left right arrow shape.
  4404. // Corresponds to ECMA-376 ST_ShapeType
  4405. // 'leftRightArrowCallout'
  4406. // "LEFT_RIGHT_UP_ARROW" - Left right up arrow shape. Corresponds to
  4407. // ECMA-376 ST_ShapeType
  4408. // 'leftRightUpArrow'
  4409. // "LEFT_UP_ARROW" - Left up arrow shape. Corresponds to ECMA-376
  4410. // ST_ShapeType 'leftUpArrow'
  4411. // "LIGHTNING_BOLT" - Lightning bolt shape. Corresponds to ECMA-376
  4412. // ST_ShapeType
  4413. // 'lightningBolt'
  4414. // "MATH_DIVIDE" - Divide math shape. Corresponds to ECMA-376
  4415. // ST_ShapeType 'mathDivide'
  4416. // "MATH_EQUAL" - Equal math shape. Corresponds to ECMA-376
  4417. // ST_ShapeType 'mathEqual'
  4418. // "MATH_MINUS" - Minus math shape. Corresponds to ECMA-376
  4419. // ST_ShapeType 'mathMinus'
  4420. // "MATH_MULTIPLY" - Multiply math shape. Corresponds to ECMA-376
  4421. // ST_ShapeType 'mathMultiply'
  4422. // "MATH_NOT_EQUAL" - Not equal math shape. Corresponds to ECMA-376
  4423. // ST_ShapeType 'mathNotEqual'
  4424. // "MATH_PLUS" - Plus math shape. Corresponds to ECMA-376 ST_ShapeType
  4425. // 'mathPlus'
  4426. // "MOON" - Moon shape. Corresponds to ECMA-376 ST_ShapeType 'moon'
  4427. // "NO_SMOKING" - No smoking shape. Corresponds to ECMA-376
  4428. // ST_ShapeType 'noSmoking'
  4429. // "NOTCHED_RIGHT_ARROW" - Notched right arrow shape. Corresponds to
  4430. // ECMA-376 ST_ShapeType
  4431. // 'notchedRightArrow'
  4432. // "OCTAGON" - Octagon shape. Corresponds to ECMA-376 ST_ShapeType
  4433. // 'octagon'
  4434. // "PARALLELOGRAM" - Parallelogram shape. Corresponds to ECMA-376
  4435. // ST_ShapeType 'parallelogram'
  4436. // "PENTAGON" - Pentagon shape. Corresponds to ECMA-376 ST_ShapeType
  4437. // 'pentagon'
  4438. // "PIE" - Pie shape. Corresponds to ECMA-376 ST_ShapeType 'pie'
  4439. // "PLAQUE" - Plaque shape. Corresponds to ECMA-376 ST_ShapeType
  4440. // 'plaque'
  4441. // "PLUS" - Plus shape. Corresponds to ECMA-376 ST_ShapeType 'plus'
  4442. // "QUAD_ARROW" - Quad-arrow shape. Corresponds to ECMA-376
  4443. // ST_ShapeType 'quadArrow'
  4444. // "QUAD_ARROW_CALLOUT" - Callout quad-arrow shape. Corresponds to
  4445. // ECMA-376 ST_ShapeType
  4446. // 'quadArrowCallout'
  4447. // "RIBBON" - Ribbon shape. Corresponds to ECMA-376 ST_ShapeType
  4448. // 'ribbon'
  4449. // "RIBBON_2" - Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType
  4450. // 'ribbon2'
  4451. // "RIGHT_ARROW" - Right arrow shape. Corresponds to ECMA-376
  4452. // ST_ShapeType 'rightArrow'
  4453. // "RIGHT_ARROW_CALLOUT" - Callout right arrow shape. Corresponds to
  4454. // ECMA-376 ST_ShapeType
  4455. // 'rightArrowCallout'
  4456. // "RIGHT_BRACE" - Right brace shape. Corresponds to ECMA-376
  4457. // ST_ShapeType 'rightBrace'
  4458. // "RIGHT_BRACKET" - Right bracket shape. Corresponds to ECMA-376
  4459. // ST_ShapeType 'rightBracket'
  4460. // "ROUND_1_RECTANGLE" - One round corner rectangle shape. Corresponds
  4461. // to ECMA-376 ST_ShapeType
  4462. // 'round1Rect'
  4463. // "ROUND_2_DIAGONAL_RECTANGLE" - Two diagonal round corner rectangle
  4464. // shape. Corresponds to ECMA-376
  4465. // ST_ShapeType 'round2DiagRect'
  4466. // "ROUND_2_SAME_RECTANGLE" - Two same-side round corner rectangle
  4467. // shape. Corresponds to ECMA-376
  4468. // ST_ShapeType 'round2SameRect'
  4469. // "RIGHT_TRIANGLE" - Right triangle shape. Corresponds to ECMA-376
  4470. // ST_ShapeType 'rtTriangle'
  4471. // "SMILEY_FACE" - Smiley face shape. Corresponds to ECMA-376
  4472. // ST_ShapeType 'smileyFace'
  4473. // "SNIP_1_RECTANGLE" - One snip corner rectangle shape. Corresponds
  4474. // to ECMA-376 ST_ShapeType
  4475. // 'snip1Rect'
  4476. // "SNIP_2_DIAGONAL_RECTANGLE" - Two diagonal snip corner rectangle
  4477. // shape. Corresponds to ECMA-376
  4478. // ST_ShapeType 'snip2DiagRect'
  4479. // "SNIP_2_SAME_RECTANGLE" - Two same-side snip corner rectangle
  4480. // shape. Corresponds to ECMA-376
  4481. // ST_ShapeType 'snip2SameRect'
  4482. // "SNIP_ROUND_RECTANGLE" - One snip one round corner rectangle shape.
  4483. // Corresponds to ECMA-376
  4484. // ST_ShapeType 'snipRoundRect'
  4485. // "STAR_10" - Ten pointed star shape. Corresponds to ECMA-376
  4486. // ST_ShapeType 'star10'
  4487. // "STAR_12" - Twelve pointed star shape. Corresponds to ECMA-376
  4488. // ST_ShapeType 'star12'
  4489. // "STAR_16" - Sixteen pointed star shape. Corresponds to ECMA-376
  4490. // ST_ShapeType 'star16'
  4491. // "STAR_24" - Twenty four pointed star shape. Corresponds to ECMA-376
  4492. // ST_ShapeType
  4493. // 'star24'
  4494. // "STAR_32" - Thirty two pointed star shape. Corresponds to ECMA-376
  4495. // ST_ShapeType
  4496. // 'star32'
  4497. // "STAR_4" - Four pointed star shape. Corresponds to ECMA-376
  4498. // ST_ShapeType 'star4'
  4499. // "STAR_5" - Five pointed star shape. Corresponds to ECMA-376
  4500. // ST_ShapeType 'star5'
  4501. // "STAR_6" - Six pointed star shape. Corresponds to ECMA-376
  4502. // ST_ShapeType 'star6'
  4503. // "STAR_7" - Seven pointed star shape. Corresponds to ECMA-376
  4504. // ST_ShapeType 'star7'
  4505. // "STAR_8" - Eight pointed star shape. Corresponds to ECMA-376
  4506. // ST_ShapeType 'star8'
  4507. // "STRIPED_RIGHT_ARROW" - Striped right arrow shape. Corresponds to
  4508. // ECMA-376 ST_ShapeType
  4509. // 'stripedRightArrow'
  4510. // "SUN" - Sun shape. Corresponds to ECMA-376 ST_ShapeType 'sun'
  4511. // "TRAPEZOID" - Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType
  4512. // 'trapezoid'
  4513. // "TRIANGLE" - Triangle shape. Corresponds to ECMA-376 ST_ShapeType
  4514. // 'triangle'
  4515. // "UP_ARROW" - Up arrow shape. Corresponds to ECMA-376 ST_ShapeType
  4516. // 'upArrow'
  4517. // "UP_ARROW_CALLOUT" - Callout up arrow shape. Corresponds to
  4518. // ECMA-376 ST_ShapeType
  4519. // 'upArrowCallout'
  4520. // "UP_DOWN_ARROW" - Up down arrow shape. Corresponds to ECMA-376
  4521. // ST_ShapeType 'upDownArrow'
  4522. // "UTURN_ARROW" - U-turn arrow shape. Corresponds to ECMA-376
  4523. // ST_ShapeType 'uturnArrow'
  4524. // "VERTICAL_SCROLL" - Vertical scroll shape. Corresponds to ECMA-376
  4525. // ST_ShapeType
  4526. // 'verticalScroll'
  4527. // "WAVE" - Wave shape. Corresponds to ECMA-376 ST_ShapeType 'wave'
  4528. // "WEDGE_ELLIPSE_CALLOUT" - Callout wedge ellipse shape. Corresponds
  4529. // to ECMA-376 ST_ShapeType
  4530. // 'wedgeEllipseCallout'
  4531. // "WEDGE_RECTANGLE_CALLOUT" - Callout wedge rectangle shape.
  4532. // Corresponds to ECMA-376 ST_ShapeType
  4533. // 'wedgeRectCallout'
  4534. // "WEDGE_ROUND_RECTANGLE_CALLOUT" - Callout wedge round rectangle
  4535. // shape. Corresponds to ECMA-376 ST_ShapeType
  4536. // 'wedgeRoundRectCallout'
  4537. // "FLOW_CHART_ALTERNATE_PROCESS" - Alternate process flow shape.
  4538. // Corresponds to ECMA-376 ST_ShapeType
  4539. // 'flowChartAlternateProcess'
  4540. // "FLOW_CHART_COLLATE" - Collate flow shape. Corresponds to ECMA-376
  4541. // ST_ShapeType
  4542. // 'flowChartCollate'
  4543. // "FLOW_CHART_CONNECTOR" - Connector flow shape. Corresponds to
  4544. // ECMA-376 ST_ShapeType
  4545. // 'flowChartConnector'
  4546. // "FLOW_CHART_DECISION" - Decision flow shape. Corresponds to
  4547. // ECMA-376 ST_ShapeType
  4548. // 'flowChartDecision'
  4549. // "FLOW_CHART_DELAY" - Delay flow shape. Corresponds to ECMA-376
  4550. // ST_ShapeType 'flowChartDelay'
  4551. // "FLOW_CHART_DISPLAY" - Display flow shape. Corresponds to ECMA-376
  4552. // ST_ShapeType
  4553. // 'flowChartDisplay'
  4554. // "FLOW_CHART_DOCUMENT" - Document flow shape. Corresponds to
  4555. // ECMA-376 ST_ShapeType
  4556. // 'flowChartDocument'
  4557. // "FLOW_CHART_EXTRACT" - Extract flow shape. Corresponds to ECMA-376
  4558. // ST_ShapeType
  4559. // 'flowChartExtract'
  4560. // "FLOW_CHART_INPUT_OUTPUT" - Input output flow shape. Corresponds to
  4561. // ECMA-376 ST_ShapeType
  4562. // 'flowChartInputOutput'
  4563. // "FLOW_CHART_INTERNAL_STORAGE" - Internal storage flow shape.
  4564. // Corresponds to ECMA-376 ST_ShapeType
  4565. // 'flowChartInternalStorage'
  4566. // "FLOW_CHART_MAGNETIC_DISK" - Magnetic disk flow shape. Corresponds
  4567. // to ECMA-376 ST_ShapeType
  4568. // 'flowChartMagneticDisk'
  4569. // "FLOW_CHART_MAGNETIC_DRUM" - Magnetic drum flow shape. Corresponds
  4570. // to ECMA-376 ST_ShapeType
  4571. // 'flowChartMagneticDrum'
  4572. // "FLOW_CHART_MAGNETIC_TAPE" - Magnetic tape flow shape. Corresponds
  4573. // to ECMA-376 ST_ShapeType
  4574. // 'flowChartMagneticTape'
  4575. // "FLOW_CHART_MANUAL_INPUT" - Manual input flow shape. Corresponds to
  4576. // ECMA-376 ST_ShapeType
  4577. // 'flowChartManualInput'
  4578. // "FLOW_CHART_MANUAL_OPERATION" - Manual operation flow shape.
  4579. // Corresponds to ECMA-376 ST_ShapeType
  4580. // 'flowChartManualOperation'
  4581. // "FLOW_CHART_MERGE" - Merge flow shape. Corresponds to ECMA-376
  4582. // ST_ShapeType 'flowChartMerge'
  4583. // "FLOW_CHART_MULTIDOCUMENT" - Multi-document flow shape. Corresponds
  4584. // to ECMA-376 ST_ShapeType
  4585. // 'flowChartMultidocument'
  4586. // "FLOW_CHART_OFFLINE_STORAGE" - Offline storage flow shape.
  4587. // Corresponds to ECMA-376 ST_ShapeType
  4588. // 'flowChartOfflineStorage'
  4589. // "FLOW_CHART_OFFPAGE_CONNECTOR" - Off-page connector flow shape.
  4590. // Corresponds to ECMA-376 ST_ShapeType
  4591. // 'flowChartOffpageConnector'
  4592. // "FLOW_CHART_ONLINE_STORAGE" - Online storage flow shape.
  4593. // Corresponds to ECMA-376 ST_ShapeType
  4594. // 'flowChartOnlineStorage'
  4595. // "FLOW_CHART_OR" - Or flow shape. Corresponds to ECMA-376
  4596. // ST_ShapeType 'flowChartOr'
  4597. // "FLOW_CHART_PREDEFINED_PROCESS" - Predefined process flow shape.
  4598. // Corresponds to ECMA-376 ST_ShapeType
  4599. // 'flowChartPredefinedProcess'
  4600. // "FLOW_CHART_PREPARATION" - Preparation flow shape. Corresponds to
  4601. // ECMA-376 ST_ShapeType
  4602. // 'flowChartPreparation'
  4603. // "FLOW_CHART_PROCESS" - Process flow shape. Corresponds to ECMA-376
  4604. // ST_ShapeType
  4605. // 'flowChartProcess'
  4606. // "FLOW_CHART_PUNCHED_CARD" - Punched card flow shape. Corresponds to
  4607. // ECMA-376 ST_ShapeType
  4608. // 'flowChartPunchedCard'
  4609. // "FLOW_CHART_PUNCHED_TAPE" - Punched tape flow shape. Corresponds to
  4610. // ECMA-376 ST_ShapeType
  4611. // 'flowChartPunchedTape'
  4612. // "FLOW_CHART_SORT" - Sort flow shape. Corresponds to ECMA-376
  4613. // ST_ShapeType 'flowChartSort'
  4614. // "FLOW_CHART_SUMMING_JUNCTION" - Summing junction flow shape.
  4615. // Corresponds to ECMA-376 ST_ShapeType
  4616. // 'flowChartSummingJunction'
  4617. // "FLOW_CHART_TERMINATOR" - Terminator flow shape. Corresponds to
  4618. // ECMA-376 ST_ShapeType
  4619. // 'flowChartTerminator'
  4620. // "ARROW_EAST" - East arrow shape.
  4621. // "ARROW_NORTH_EAST" - Northeast arrow shape.
  4622. // "ARROW_NORTH" - North arrow shape.
  4623. // "SPEECH" - Speech shape.
  4624. // "STARBURST" - Star burst shape.
  4625. // "TEARDROP" - Teardrop shape. Corresponds to ECMA-376 ST_ShapeType
  4626. // 'teardrop'
  4627. // "ELLIPSE_RIBBON" - Ellipse ribbon shape. Corresponds to ECMA-376
  4628. // ST_ShapeType
  4629. // 'ellipseRibbon'
  4630. // "ELLIPSE_RIBBON_2" - Ellipse ribbon 2 shape. Corresponds to
  4631. // ECMA-376 ST_ShapeType
  4632. // 'ellipseRibbon2'
  4633. // "CLOUD_CALLOUT" - Callout cloud shape. Corresponds to ECMA-376
  4634. // ST_ShapeType 'cloudCallout'
  4635. // "CUSTOM" - Custom shape.
  4636. ShapeType string `json:"shapeType,omitempty"`
  4637. // Text: The text content of the shape.
  4638. Text *TextContent `json:"text,omitempty"`
  4639. // ForceSendFields is a list of field names (e.g. "Placeholder") to
  4640. // unconditionally include in API requests. By default, fields with
  4641. // empty values are omitted from API requests. However, any non-pointer,
  4642. // non-interface field appearing in ForceSendFields will be sent to the
  4643. // server regardless of whether the field is empty or not. This may be
  4644. // used to include empty fields in Patch requests.
  4645. ForceSendFields []string `json:"-"`
  4646. // NullFields is a list of field names (e.g. "Placeholder") to include
  4647. // in API requests with the JSON null value. By default, fields with
  4648. // empty values are omitted from API requests. However, any field with
  4649. // an empty value appearing in NullFields will be sent to the server as
  4650. // null. It is an error if a field in this list has a non-empty value.
  4651. // This may be used to include null fields in Patch requests.
  4652. NullFields []string `json:"-"`
  4653. }
  4654. func (s *Shape) MarshalJSON() ([]byte, error) {
  4655. type NoMethod Shape
  4656. raw := NoMethod(*s)
  4657. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4658. }
  4659. // ShapeBackgroundFill: The shape background fill.
  4660. type ShapeBackgroundFill struct {
  4661. // PropertyState: The background fill property state.
  4662. //
  4663. // Updating the fill on a shape will implicitly update this field
  4664. // to
  4665. // `RENDERED`, unless another value is specified in the same request.
  4666. // To
  4667. // have no fill on a shape, set this field to `NOT_RENDERED`. In this
  4668. // case,
  4669. // any other fill fields set in the same request will be ignored.
  4670. //
  4671. // Possible values:
  4672. // "RENDERED" - If a property's state is RENDERED, then the element
  4673. // has the corresponding
  4674. // property when rendered on a page. If the element is a placeholder
  4675. // shape as
  4676. // determined by the placeholder
  4677. // field, and it inherits from a placeholder shape, the corresponding
  4678. // field
  4679. // may be unset, meaning that the property value is inherited from a
  4680. // parent
  4681. // placeholder. If the element does not inherit, then the field will
  4682. // contain
  4683. // the rendered value. This is the default value.
  4684. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  4685. // element does not have the
  4686. // corresponding property when rendered on a page. However, the field
  4687. // may
  4688. // still be set so it can be inherited by child shapes. To remove a
  4689. // property
  4690. // from a rendered element, set its property_state to NOT_RENDERED.
  4691. // "INHERIT" - If a property's state is INHERIT, then the property
  4692. // state uses the value of
  4693. // corresponding `property_state` field on the parent shape. Elements
  4694. // that do
  4695. // not inherit will never have an INHERIT property state.
  4696. PropertyState string `json:"propertyState,omitempty"`
  4697. // SolidFill: Solid color fill.
  4698. SolidFill *SolidFill `json:"solidFill,omitempty"`
  4699. // ForceSendFields is a list of field names (e.g. "PropertyState") to
  4700. // unconditionally include in API requests. By default, fields with
  4701. // empty values are omitted from API requests. However, any non-pointer,
  4702. // non-interface field appearing in ForceSendFields will be sent to the
  4703. // server regardless of whether the field is empty or not. This may be
  4704. // used to include empty fields in Patch requests.
  4705. ForceSendFields []string `json:"-"`
  4706. // NullFields is a list of field names (e.g. "PropertyState") to include
  4707. // in API requests with the JSON null value. By default, fields with
  4708. // empty values are omitted from API requests. However, any field with
  4709. // an empty value appearing in NullFields will be sent to the server as
  4710. // null. It is an error if a field in this list has a non-empty value.
  4711. // This may be used to include null fields in Patch requests.
  4712. NullFields []string `json:"-"`
  4713. }
  4714. func (s *ShapeBackgroundFill) MarshalJSON() ([]byte, error) {
  4715. type NoMethod ShapeBackgroundFill
  4716. raw := NoMethod(*s)
  4717. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4718. }
  4719. // ShapeProperties: The properties of a Shape.
  4720. //
  4721. // If the shape is a placeholder shape as determined by the
  4722. // placeholder field, then these
  4723. // properties may be inherited from a parent placeholder
  4724. // shape.
  4725. // Determining the rendered value of the property depends on the
  4726. // corresponding
  4727. // property_state field value.
  4728. type ShapeProperties struct {
  4729. // ContentAlignment: The alignment of the content in the shape. If
  4730. // unspecified,
  4731. // the alignment is inherited from a parent placeholder if it exists. If
  4732. // the
  4733. // shape has no parent, the default alignment matches the alignment for
  4734. // new
  4735. // shapes created in the Slides editor.
  4736. //
  4737. // Possible values:
  4738. // "CONTENT_ALIGNMENT_UNSPECIFIED" - An unspecified content alignment.
  4739. // The content alignment is inherited from
  4740. // the parent if it exists.
  4741. // "CONTENT_ALIGNMENT_UNSUPPORTED" - An unsupported content alignment.
  4742. // "TOP" - An alignment that aligns the content to the top of the
  4743. // content holder.
  4744. // Corresponds to ECMA-376 ST_TextAnchoringType 't'.
  4745. // "MIDDLE" - An alignment that aligns the content to the middle of
  4746. // the content
  4747. // holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'.
  4748. // "BOTTOM" - An alignment that aligns the content to the bottom of
  4749. // the content
  4750. // holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'.
  4751. ContentAlignment string `json:"contentAlignment,omitempty"`
  4752. // Link: The hyperlink destination of the shape. If unset, there is no
  4753. // link. Links
  4754. // are not inherited from parent placeholders.
  4755. Link *Link `json:"link,omitempty"`
  4756. // Outline: The outline of the shape. If unset, the outline is inherited
  4757. // from a
  4758. // parent placeholder if it exists. If the shape has no parent, then
  4759. // the
  4760. // default outline depends on the shape type, matching the defaults
  4761. // for
  4762. // new shapes created in the Slides editor.
  4763. Outline *Outline `json:"outline,omitempty"`
  4764. // Shadow: The shadow properties of the shape. If unset, the shadow is
  4765. // inherited from
  4766. // a parent placeholder if it exists. If the shape has no parent, then
  4767. // the
  4768. // default shadow matches the defaults for new shapes created in the
  4769. // Slides
  4770. // editor. This property is read-only.
  4771. Shadow *Shadow `json:"shadow,omitempty"`
  4772. // ShapeBackgroundFill: The background fill of the shape. If unset, the
  4773. // background fill is
  4774. // inherited from a parent placeholder if it exists. If the shape has
  4775. // no
  4776. // parent, then the default background fill depends on the shape
  4777. // type,
  4778. // matching the defaults for new shapes created in the Slides editor.
  4779. ShapeBackgroundFill *ShapeBackgroundFill `json:"shapeBackgroundFill,omitempty"`
  4780. // ForceSendFields is a list of field names (e.g. "ContentAlignment") to
  4781. // unconditionally include in API requests. By default, fields with
  4782. // empty values are omitted from API requests. However, any non-pointer,
  4783. // non-interface field appearing in ForceSendFields will be sent to the
  4784. // server regardless of whether the field is empty or not. This may be
  4785. // used to include empty fields in Patch requests.
  4786. ForceSendFields []string `json:"-"`
  4787. // NullFields is a list of field names (e.g. "ContentAlignment") to
  4788. // include in API requests with the JSON null value. By default, fields
  4789. // with empty values are omitted from API requests. However, any field
  4790. // with an empty value appearing in NullFields will be sent to the
  4791. // server as null. It is an error if a field in this list has a
  4792. // non-empty value. This may be used to include null fields in Patch
  4793. // requests.
  4794. NullFields []string `json:"-"`
  4795. }
  4796. func (s *ShapeProperties) MarshalJSON() ([]byte, error) {
  4797. type NoMethod ShapeProperties
  4798. raw := NoMethod(*s)
  4799. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4800. }
  4801. // SheetsChart: A PageElement kind representing
  4802. // a linked chart embedded from Google Sheets.
  4803. type SheetsChart struct {
  4804. // ChartId: The ID of the specific chart in the Google Sheets
  4805. // spreadsheet that is
  4806. // embedded.
  4807. ChartId int64 `json:"chartId,omitempty"`
  4808. // ContentUrl: The URL of an image of the embedded chart, with a default
  4809. // lifetime of 30
  4810. // minutes. This URL is tagged with the account of the requester. Anyone
  4811. // with
  4812. // the URL effectively accesses the image as the original requester.
  4813. // Access to
  4814. // the image may be lost if the presentation's sharing settings change.
  4815. ContentUrl string `json:"contentUrl,omitempty"`
  4816. // SheetsChartProperties: The properties of the Sheets chart.
  4817. SheetsChartProperties *SheetsChartProperties `json:"sheetsChartProperties,omitempty"`
  4818. // SpreadsheetId: The ID of the Google Sheets spreadsheet that contains
  4819. // the source chart.
  4820. SpreadsheetId string `json:"spreadsheetId,omitempty"`
  4821. // ForceSendFields is a list of field names (e.g. "ChartId") to
  4822. // unconditionally include in API requests. By default, fields with
  4823. // empty values are omitted from API requests. However, any non-pointer,
  4824. // non-interface field appearing in ForceSendFields will be sent to the
  4825. // server regardless of whether the field is empty or not. This may be
  4826. // used to include empty fields in Patch requests.
  4827. ForceSendFields []string `json:"-"`
  4828. // NullFields is a list of field names (e.g. "ChartId") to include in
  4829. // API requests with the JSON null value. By default, fields with empty
  4830. // values are omitted from API requests. However, any field with an
  4831. // empty value appearing in NullFields will be sent to the server as
  4832. // null. It is an error if a field in this list has a non-empty value.
  4833. // This may be used to include null fields in Patch requests.
  4834. NullFields []string `json:"-"`
  4835. }
  4836. func (s *SheetsChart) MarshalJSON() ([]byte, error) {
  4837. type NoMethod SheetsChart
  4838. raw := NoMethod(*s)
  4839. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4840. }
  4841. // SheetsChartProperties: The properties of the SheetsChart.
  4842. type SheetsChartProperties struct {
  4843. // ChartImageProperties: The properties of the embedded chart image.
  4844. ChartImageProperties *ImageProperties `json:"chartImageProperties,omitempty"`
  4845. // ForceSendFields is a list of field names (e.g.
  4846. // "ChartImageProperties") to unconditionally include in API requests.
  4847. // By default, fields with empty values are omitted from API requests.
  4848. // However, any non-pointer, non-interface field appearing in
  4849. // ForceSendFields will be sent to the server regardless of whether the
  4850. // field is empty or not. This may be used to include empty fields in
  4851. // Patch requests.
  4852. ForceSendFields []string `json:"-"`
  4853. // NullFields is a list of field names (e.g. "ChartImageProperties") to
  4854. // include in API requests with the JSON null value. By default, fields
  4855. // with empty values are omitted from API requests. However, any field
  4856. // with an empty value appearing in NullFields will be sent to the
  4857. // server as null. It is an error if a field in this list has a
  4858. // non-empty value. This may be used to include null fields in Patch
  4859. // requests.
  4860. NullFields []string `json:"-"`
  4861. }
  4862. func (s *SheetsChartProperties) MarshalJSON() ([]byte, error) {
  4863. type NoMethod SheetsChartProperties
  4864. raw := NoMethod(*s)
  4865. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4866. }
  4867. // Size: A width and height.
  4868. type Size struct {
  4869. // Height: The height of the object.
  4870. Height *Dimension `json:"height,omitempty"`
  4871. // Width: The width of the object.
  4872. Width *Dimension `json:"width,omitempty"`
  4873. // ForceSendFields is a list of field names (e.g. "Height") to
  4874. // unconditionally include in API requests. By default, fields with
  4875. // empty values are omitted from API requests. However, any non-pointer,
  4876. // non-interface field appearing in ForceSendFields will be sent to the
  4877. // server regardless of whether the field is empty or not. This may be
  4878. // used to include empty fields in Patch requests.
  4879. ForceSendFields []string `json:"-"`
  4880. // NullFields is a list of field names (e.g. "Height") to include in API
  4881. // requests with the JSON null value. By default, fields with empty
  4882. // values are omitted from API requests. However, any field with an
  4883. // empty value appearing in NullFields will be sent to the server as
  4884. // null. It is an error if a field in this list has a non-empty value.
  4885. // This may be used to include null fields in Patch requests.
  4886. NullFields []string `json:"-"`
  4887. }
  4888. func (s *Size) MarshalJSON() ([]byte, error) {
  4889. type NoMethod Size
  4890. raw := NoMethod(*s)
  4891. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4892. }
  4893. // SlideProperties: The properties of Page that are only
  4894. // relevant for pages with page_type SLIDE.
  4895. type SlideProperties struct {
  4896. // LayoutObjectId: The object ID of the layout that this slide is based
  4897. // on. This property is
  4898. // read-only.
  4899. LayoutObjectId string `json:"layoutObjectId,omitempty"`
  4900. // MasterObjectId: The object ID of the master that this slide is based
  4901. // on. This property is
  4902. // read-only.
  4903. MasterObjectId string `json:"masterObjectId,omitempty"`
  4904. // NotesPage: The notes page that this slide is associated with. It
  4905. // defines the visual
  4906. // appearance of a notes page when printing or exporting slides with
  4907. // speaker
  4908. // notes. A notes page inherits properties from the
  4909. // notes master.
  4910. // The placeholder shape with type BODY on the notes page contains the
  4911. // speaker
  4912. // notes for this slide. The ID of this shape is identified by
  4913. // the
  4914. // speakerNotesObjectId field.
  4915. // The notes page is read-only except for the text content and styles of
  4916. // the
  4917. // speaker notes shape. This property is read-only.
  4918. NotesPage *Page `json:"notesPage,omitempty"`
  4919. // ForceSendFields is a list of field names (e.g. "LayoutObjectId") to
  4920. // unconditionally include in API requests. By default, fields with
  4921. // empty values are omitted from API requests. However, any non-pointer,
  4922. // non-interface field appearing in ForceSendFields will be sent to the
  4923. // server regardless of whether the field is empty or not. This may be
  4924. // used to include empty fields in Patch requests.
  4925. ForceSendFields []string `json:"-"`
  4926. // NullFields is a list of field names (e.g. "LayoutObjectId") to
  4927. // include in API requests with the JSON null value. By default, fields
  4928. // with empty values are omitted from API requests. However, any field
  4929. // with an empty value appearing in NullFields will be sent to the
  4930. // server as null. It is an error if a field in this list has a
  4931. // non-empty value. This may be used to include null fields in Patch
  4932. // requests.
  4933. NullFields []string `json:"-"`
  4934. }
  4935. func (s *SlideProperties) MarshalJSON() ([]byte, error) {
  4936. type NoMethod SlideProperties
  4937. raw := NoMethod(*s)
  4938. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4939. }
  4940. // SolidFill: A solid color fill. The page or page element is filled
  4941. // entirely with the
  4942. // specified color value.
  4943. //
  4944. // If any field is unset, its value may be inherited from a parent
  4945. // placeholder
  4946. // if it exists.
  4947. type SolidFill struct {
  4948. // Alpha: The fraction of this `color` that should be applied to the
  4949. // pixel.
  4950. // That is, the final pixel color is defined by the equation:
  4951. //
  4952. // pixel color = alpha * (color) + (1.0 - alpha) * (background
  4953. // color)
  4954. //
  4955. // This means that a value of 1.0 corresponds to a solid color,
  4956. // whereas
  4957. // a value of 0.0 corresponds to a completely transparent color.
  4958. Alpha float64 `json:"alpha,omitempty"`
  4959. // Color: The color value of the solid fill.
  4960. Color *OpaqueColor `json:"color,omitempty"`
  4961. // ForceSendFields is a list of field names (e.g. "Alpha") to
  4962. // unconditionally include in API requests. By default, fields with
  4963. // empty values are omitted from API requests. However, any non-pointer,
  4964. // non-interface field appearing in ForceSendFields will be sent to the
  4965. // server regardless of whether the field is empty or not. This may be
  4966. // used to include empty fields in Patch requests.
  4967. ForceSendFields []string `json:"-"`
  4968. // NullFields is a list of field names (e.g. "Alpha") to include in API
  4969. // requests with the JSON null value. By default, fields with empty
  4970. // values are omitted from API requests. However, any field with an
  4971. // empty value appearing in NullFields will be sent to the server as
  4972. // null. It is an error if a field in this list has a non-empty value.
  4973. // This may be used to include null fields in Patch requests.
  4974. NullFields []string `json:"-"`
  4975. }
  4976. func (s *SolidFill) MarshalJSON() ([]byte, error) {
  4977. type NoMethod SolidFill
  4978. raw := NoMethod(*s)
  4979. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4980. }
  4981. func (s *SolidFill) UnmarshalJSON(data []byte) error {
  4982. type NoMethod SolidFill
  4983. var s1 struct {
  4984. Alpha gensupport.JSONFloat64 `json:"alpha"`
  4985. *NoMethod
  4986. }
  4987. s1.NoMethod = (*NoMethod)(s)
  4988. if err := json.Unmarshal(data, &s1); err != nil {
  4989. return err
  4990. }
  4991. s.Alpha = float64(s1.Alpha)
  4992. return nil
  4993. }
  4994. // StretchedPictureFill: The stretched picture fill. The page or page
  4995. // element is filled entirely with
  4996. // the specified picture. The picture is stretched to fit its container.
  4997. type StretchedPictureFill struct {
  4998. // ContentUrl: Reading the content_url:
  4999. //
  5000. // An URL to a picture with a default lifetime of 30 minutes.
  5001. // This URL is tagged with the account of the requester. Anyone with the
  5002. // URL
  5003. // effectively accesses the picture as the original requester. Access to
  5004. // the
  5005. // picture may be lost if the presentation's sharing settings
  5006. // change.
  5007. //
  5008. // Writing the content_url:
  5009. //
  5010. // The picture is fetched once at insertion time and a copy is stored
  5011. // for
  5012. // display inside the presentation. Pictures must be less than 50MB in
  5013. // size,
  5014. // cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
  5015. // GIF
  5016. // format.
  5017. //
  5018. // The provided URL can be at most 2 kB in length.
  5019. ContentUrl string `json:"contentUrl,omitempty"`
  5020. // Size: The original size of the picture fill. This field is read-only.
  5021. Size *Size `json:"size,omitempty"`
  5022. // ForceSendFields is a list of field names (e.g. "ContentUrl") to
  5023. // unconditionally include in API requests. By default, fields with
  5024. // empty values are omitted from API requests. However, any non-pointer,
  5025. // non-interface field appearing in ForceSendFields will be sent to the
  5026. // server regardless of whether the field is empty or not. This may be
  5027. // used to include empty fields in Patch requests.
  5028. ForceSendFields []string `json:"-"`
  5029. // NullFields is a list of field names (e.g. "ContentUrl") to include in
  5030. // API requests with the JSON null value. By default, fields with empty
  5031. // values are omitted from API requests. However, any field with an
  5032. // empty value appearing in NullFields will be sent to the server as
  5033. // null. It is an error if a field in this list has a non-empty value.
  5034. // This may be used to include null fields in Patch requests.
  5035. NullFields []string `json:"-"`
  5036. }
  5037. func (s *StretchedPictureFill) MarshalJSON() ([]byte, error) {
  5038. type NoMethod StretchedPictureFill
  5039. raw := NoMethod(*s)
  5040. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5041. }
  5042. // SubstringMatchCriteria: A criteria that matches a specific string of
  5043. // text in a shape or table.
  5044. type SubstringMatchCriteria struct {
  5045. // MatchCase: Indicates whether the search should respect case:
  5046. //
  5047. // - `True`: the search is case sensitive.
  5048. // - `False`: the search is case insensitive.
  5049. MatchCase bool `json:"matchCase,omitempty"`
  5050. // Text: The text to search for in the shape or table.
  5051. Text string `json:"text,omitempty"`
  5052. // ForceSendFields is a list of field names (e.g. "MatchCase") to
  5053. // unconditionally include in API requests. By default, fields with
  5054. // empty values are omitted from API requests. However, any non-pointer,
  5055. // non-interface field appearing in ForceSendFields will be sent to the
  5056. // server regardless of whether the field is empty or not. This may be
  5057. // used to include empty fields in Patch requests.
  5058. ForceSendFields []string `json:"-"`
  5059. // NullFields is a list of field names (e.g. "MatchCase") to include in
  5060. // API requests with the JSON null value. By default, fields with empty
  5061. // values are omitted from API requests. However, any field with an
  5062. // empty value appearing in NullFields will be sent to the server as
  5063. // null. It is an error if a field in this list has a non-empty value.
  5064. // This may be used to include null fields in Patch requests.
  5065. NullFields []string `json:"-"`
  5066. }
  5067. func (s *SubstringMatchCriteria) MarshalJSON() ([]byte, error) {
  5068. type NoMethod SubstringMatchCriteria
  5069. raw := NoMethod(*s)
  5070. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5071. }
  5072. // Table: A PageElement kind representing a
  5073. // table.
  5074. type Table struct {
  5075. // Columns: Number of columns in the table.
  5076. Columns int64 `json:"columns,omitempty"`
  5077. // HorizontalBorderRows: Properties of horizontal cell borders.
  5078. //
  5079. // A table's horizontal cell borders are represented as a grid. The grid
  5080. // has
  5081. // one more row than the number of rows in the table and the same number
  5082. // of
  5083. // columns as the table. For example, if the table is 3 x 3, its
  5084. // horizontal
  5085. // borders will be represented as a grid with 4 rows and 3 columns.
  5086. HorizontalBorderRows []*TableBorderRow `json:"horizontalBorderRows,omitempty"`
  5087. // Rows: Number of rows in the table.
  5088. Rows int64 `json:"rows,omitempty"`
  5089. // TableColumns: Properties of each column.
  5090. TableColumns []*TableColumnProperties `json:"tableColumns,omitempty"`
  5091. // TableRows: Properties and contents of each row.
  5092. //
  5093. // Cells that span multiple rows are contained in only one of these rows
  5094. // and
  5095. // have a row_span greater
  5096. // than 1.
  5097. TableRows []*TableRow `json:"tableRows,omitempty"`
  5098. // VerticalBorderRows: Properties of vertical cell borders.
  5099. //
  5100. // A table's vertical cell borders are represented as a grid. The grid
  5101. // has the
  5102. // same number of rows as the table and one more column than the number
  5103. // of
  5104. // columns in the table. For example, if the table is 3 x 3, its
  5105. // vertical
  5106. // borders will be represented as a grid with 3 rows and 4 columns.
  5107. VerticalBorderRows []*TableBorderRow `json:"verticalBorderRows,omitempty"`
  5108. // ForceSendFields is a list of field names (e.g. "Columns") to
  5109. // unconditionally include in API requests. By default, fields with
  5110. // empty values are omitted from API requests. However, any non-pointer,
  5111. // non-interface field appearing in ForceSendFields will be sent to the
  5112. // server regardless of whether the field is empty or not. This may be
  5113. // used to include empty fields in Patch requests.
  5114. ForceSendFields []string `json:"-"`
  5115. // NullFields is a list of field names (e.g. "Columns") to include in
  5116. // API requests with the JSON null value. By default, fields with empty
  5117. // values are omitted from API requests. However, any field with an
  5118. // empty value appearing in NullFields will be sent to the server as
  5119. // null. It is an error if a field in this list has a non-empty value.
  5120. // This may be used to include null fields in Patch requests.
  5121. NullFields []string `json:"-"`
  5122. }
  5123. func (s *Table) MarshalJSON() ([]byte, error) {
  5124. type NoMethod Table
  5125. raw := NoMethod(*s)
  5126. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5127. }
  5128. // TableBorderCell: The properties of each border cell.
  5129. type TableBorderCell struct {
  5130. // Location: The location of the border within the border table.
  5131. Location *TableCellLocation `json:"location,omitempty"`
  5132. // TableBorderProperties: The border properties.
  5133. TableBorderProperties *TableBorderProperties `json:"tableBorderProperties,omitempty"`
  5134. // ForceSendFields is a list of field names (e.g. "Location") to
  5135. // unconditionally include in API requests. By default, fields with
  5136. // empty values are omitted from API requests. However, any non-pointer,
  5137. // non-interface field appearing in ForceSendFields will be sent to the
  5138. // server regardless of whether the field is empty or not. This may be
  5139. // used to include empty fields in Patch requests.
  5140. ForceSendFields []string `json:"-"`
  5141. // NullFields is a list of field names (e.g. "Location") to include in
  5142. // API requests with the JSON null value. By default, fields with empty
  5143. // values are omitted from API requests. However, any field with an
  5144. // empty value appearing in NullFields will be sent to the server as
  5145. // null. It is an error if a field in this list has a non-empty value.
  5146. // This may be used to include null fields in Patch requests.
  5147. NullFields []string `json:"-"`
  5148. }
  5149. func (s *TableBorderCell) MarshalJSON() ([]byte, error) {
  5150. type NoMethod TableBorderCell
  5151. raw := NoMethod(*s)
  5152. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5153. }
  5154. // TableBorderFill: The fill of the border.
  5155. type TableBorderFill struct {
  5156. // SolidFill: Solid fill.
  5157. SolidFill *SolidFill `json:"solidFill,omitempty"`
  5158. // ForceSendFields is a list of field names (e.g. "SolidFill") to
  5159. // unconditionally include in API requests. By default, fields with
  5160. // empty values are omitted from API requests. However, any non-pointer,
  5161. // non-interface field appearing in ForceSendFields will be sent to the
  5162. // server regardless of whether the field is empty or not. This may be
  5163. // used to include empty fields in Patch requests.
  5164. ForceSendFields []string `json:"-"`
  5165. // NullFields is a list of field names (e.g. "SolidFill") to include in
  5166. // API requests with the JSON null value. By default, fields with empty
  5167. // values are omitted from API requests. However, any field with an
  5168. // empty value appearing in NullFields will be sent to the server as
  5169. // null. It is an error if a field in this list has a non-empty value.
  5170. // This may be used to include null fields in Patch requests.
  5171. NullFields []string `json:"-"`
  5172. }
  5173. func (s *TableBorderFill) MarshalJSON() ([]byte, error) {
  5174. type NoMethod TableBorderFill
  5175. raw := NoMethod(*s)
  5176. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5177. }
  5178. // TableBorderProperties: The border styling properties of
  5179. // the
  5180. // TableBorderCell.
  5181. type TableBorderProperties struct {
  5182. // DashStyle: The dash style of the border.
  5183. //
  5184. // Possible values:
  5185. // "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
  5186. // "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
  5187. // value 'solid'.
  5188. // This is the default dash style.
  5189. // "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
  5190. // value 'dot'.
  5191. // "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
  5192. // value 'dash'.
  5193. // "DASH_DOT" - Alternating dashes and dots. Corresponds to ECMA-376
  5194. // ST_PresetLineDashVal
  5195. // value 'dashDot'.
  5196. // "LONG_DASH" - Line with large dashes. Corresponds to ECMA-376
  5197. // ST_PresetLineDashVal
  5198. // value 'lgDash'.
  5199. // "LONG_DASH_DOT" - Alternating large dashes and dots. Corresponds to
  5200. // ECMA-376
  5201. // ST_PresetLineDashVal value 'lgDashDot'.
  5202. DashStyle string `json:"dashStyle,omitempty"`
  5203. // TableBorderFill: The fill of the table border.
  5204. TableBorderFill *TableBorderFill `json:"tableBorderFill,omitempty"`
  5205. // Weight: The thickness of the border.
  5206. Weight *Dimension `json:"weight,omitempty"`
  5207. // ForceSendFields is a list of field names (e.g. "DashStyle") to
  5208. // unconditionally include in API requests. By default, fields with
  5209. // empty values are omitted from API requests. However, any non-pointer,
  5210. // non-interface field appearing in ForceSendFields will be sent to the
  5211. // server regardless of whether the field is empty or not. This may be
  5212. // used to include empty fields in Patch requests.
  5213. ForceSendFields []string `json:"-"`
  5214. // NullFields is a list of field names (e.g. "DashStyle") to include in
  5215. // API requests with the JSON null value. By default, fields with empty
  5216. // values are omitted from API requests. However, any field with an
  5217. // empty value appearing in NullFields will be sent to the server as
  5218. // null. It is an error if a field in this list has a non-empty value.
  5219. // This may be used to include null fields in Patch requests.
  5220. NullFields []string `json:"-"`
  5221. }
  5222. func (s *TableBorderProperties) MarshalJSON() ([]byte, error) {
  5223. type NoMethod TableBorderProperties
  5224. raw := NoMethod(*s)
  5225. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5226. }
  5227. // TableBorderRow: Contents of each border row in a table.
  5228. type TableBorderRow struct {
  5229. // TableBorderCells: Properties of each border cell. When a border's
  5230. // adjacent table cells are
  5231. // merged, it is not included in the response.
  5232. TableBorderCells []*TableBorderCell `json:"tableBorderCells,omitempty"`
  5233. // ForceSendFields is a list of field names (e.g. "TableBorderCells") to
  5234. // unconditionally include in API requests. By default, fields with
  5235. // empty values are omitted from API requests. However, any non-pointer,
  5236. // non-interface field appearing in ForceSendFields will be sent to the
  5237. // server regardless of whether the field is empty or not. This may be
  5238. // used to include empty fields in Patch requests.
  5239. ForceSendFields []string `json:"-"`
  5240. // NullFields is a list of field names (e.g. "TableBorderCells") to
  5241. // include in API requests with the JSON null value. By default, fields
  5242. // with empty values are omitted from API requests. However, any field
  5243. // with an empty value appearing in NullFields will be sent to the
  5244. // server as null. It is an error if a field in this list has a
  5245. // non-empty value. This may be used to include null fields in Patch
  5246. // requests.
  5247. NullFields []string `json:"-"`
  5248. }
  5249. func (s *TableBorderRow) MarshalJSON() ([]byte, error) {
  5250. type NoMethod TableBorderRow
  5251. raw := NoMethod(*s)
  5252. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5253. }
  5254. // TableCell: Properties and contents of each table cell.
  5255. type TableCell struct {
  5256. // ColumnSpan: Column span of the cell.
  5257. ColumnSpan int64 `json:"columnSpan,omitempty"`
  5258. // Location: The location of the cell within the table.
  5259. Location *TableCellLocation `json:"location,omitempty"`
  5260. // RowSpan: Row span of the cell.
  5261. RowSpan int64 `json:"rowSpan,omitempty"`
  5262. // TableCellProperties: The properties of the table cell.
  5263. TableCellProperties *TableCellProperties `json:"tableCellProperties,omitempty"`
  5264. // Text: The text content of the cell.
  5265. Text *TextContent `json:"text,omitempty"`
  5266. // ForceSendFields is a list of field names (e.g. "ColumnSpan") to
  5267. // unconditionally include in API requests. By default, fields with
  5268. // empty values are omitted from API requests. However, any non-pointer,
  5269. // non-interface field appearing in ForceSendFields will be sent to the
  5270. // server regardless of whether the field is empty or not. This may be
  5271. // used to include empty fields in Patch requests.
  5272. ForceSendFields []string `json:"-"`
  5273. // NullFields is a list of field names (e.g. "ColumnSpan") to include in
  5274. // API requests with the JSON null value. By default, fields with empty
  5275. // values are omitted from API requests. However, any field with an
  5276. // empty value appearing in NullFields will be sent to the server as
  5277. // null. It is an error if a field in this list has a non-empty value.
  5278. // This may be used to include null fields in Patch requests.
  5279. NullFields []string `json:"-"`
  5280. }
  5281. func (s *TableCell) MarshalJSON() ([]byte, error) {
  5282. type NoMethod TableCell
  5283. raw := NoMethod(*s)
  5284. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5285. }
  5286. // TableCellBackgroundFill: The table cell background fill.
  5287. type TableCellBackgroundFill struct {
  5288. // PropertyState: The background fill property state.
  5289. //
  5290. // Updating the fill on a table cell will implicitly update this
  5291. // field
  5292. // to `RENDERED`, unless another value is specified in the same request.
  5293. // To
  5294. // have no fill on a table cell, set this field to `NOT_RENDERED`. In
  5295. // this
  5296. // case, any other fill fields set in the same request will be ignored.
  5297. //
  5298. // Possible values:
  5299. // "RENDERED" - If a property's state is RENDERED, then the element
  5300. // has the corresponding
  5301. // property when rendered on a page. If the element is a placeholder
  5302. // shape as
  5303. // determined by the placeholder
  5304. // field, and it inherits from a placeholder shape, the corresponding
  5305. // field
  5306. // may be unset, meaning that the property value is inherited from a
  5307. // parent
  5308. // placeholder. If the element does not inherit, then the field will
  5309. // contain
  5310. // the rendered value. This is the default value.
  5311. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  5312. // element does not have the
  5313. // corresponding property when rendered on a page. However, the field
  5314. // may
  5315. // still be set so it can be inherited by child shapes. To remove a
  5316. // property
  5317. // from a rendered element, set its property_state to NOT_RENDERED.
  5318. // "INHERIT" - If a property's state is INHERIT, then the property
  5319. // state uses the value of
  5320. // corresponding `property_state` field on the parent shape. Elements
  5321. // that do
  5322. // not inherit will never have an INHERIT property state.
  5323. PropertyState string `json:"propertyState,omitempty"`
  5324. // SolidFill: Solid color fill.
  5325. SolidFill *SolidFill `json:"solidFill,omitempty"`
  5326. // ForceSendFields is a list of field names (e.g. "PropertyState") to
  5327. // unconditionally include in API requests. By default, fields with
  5328. // empty values are omitted from API requests. However, any non-pointer,
  5329. // non-interface field appearing in ForceSendFields will be sent to the
  5330. // server regardless of whether the field is empty or not. This may be
  5331. // used to include empty fields in Patch requests.
  5332. ForceSendFields []string `json:"-"`
  5333. // NullFields is a list of field names (e.g. "PropertyState") to include
  5334. // in API requests with the JSON null value. By default, fields with
  5335. // empty values are omitted from API requests. However, any field with
  5336. // an empty value appearing in NullFields will be sent to the server as
  5337. // null. It is an error if a field in this list has a non-empty value.
  5338. // This may be used to include null fields in Patch requests.
  5339. NullFields []string `json:"-"`
  5340. }
  5341. func (s *TableCellBackgroundFill) MarshalJSON() ([]byte, error) {
  5342. type NoMethod TableCellBackgroundFill
  5343. raw := NoMethod(*s)
  5344. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5345. }
  5346. // TableCellLocation: A location of a single table cell within a table.
  5347. type TableCellLocation struct {
  5348. // ColumnIndex: The 0-based column index.
  5349. ColumnIndex int64 `json:"columnIndex,omitempty"`
  5350. // RowIndex: The 0-based row index.
  5351. RowIndex int64 `json:"rowIndex,omitempty"`
  5352. // ForceSendFields is a list of field names (e.g. "ColumnIndex") to
  5353. // unconditionally include in API requests. By default, fields with
  5354. // empty values are omitted from API requests. However, any non-pointer,
  5355. // non-interface field appearing in ForceSendFields will be sent to the
  5356. // server regardless of whether the field is empty or not. This may be
  5357. // used to include empty fields in Patch requests.
  5358. ForceSendFields []string `json:"-"`
  5359. // NullFields is a list of field names (e.g. "ColumnIndex") to include
  5360. // in API requests with the JSON null value. By default, fields with
  5361. // empty values are omitted from API requests. However, any field with
  5362. // an empty value appearing in NullFields will be sent to the server as
  5363. // null. It is an error if a field in this list has a non-empty value.
  5364. // This may be used to include null fields in Patch requests.
  5365. NullFields []string `json:"-"`
  5366. }
  5367. func (s *TableCellLocation) MarshalJSON() ([]byte, error) {
  5368. type NoMethod TableCellLocation
  5369. raw := NoMethod(*s)
  5370. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5371. }
  5372. // TableCellProperties: The properties of the TableCell.
  5373. type TableCellProperties struct {
  5374. // ContentAlignment: The alignment of the content in the table cell. The
  5375. // default alignment
  5376. // matches the alignment for newly created table cells in the Slides
  5377. // editor.
  5378. //
  5379. // Possible values:
  5380. // "CONTENT_ALIGNMENT_UNSPECIFIED" - An unspecified content alignment.
  5381. // The content alignment is inherited from
  5382. // the parent if it exists.
  5383. // "CONTENT_ALIGNMENT_UNSUPPORTED" - An unsupported content alignment.
  5384. // "TOP" - An alignment that aligns the content to the top of the
  5385. // content holder.
  5386. // Corresponds to ECMA-376 ST_TextAnchoringType 't'.
  5387. // "MIDDLE" - An alignment that aligns the content to the middle of
  5388. // the content
  5389. // holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'.
  5390. // "BOTTOM" - An alignment that aligns the content to the bottom of
  5391. // the content
  5392. // holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'.
  5393. ContentAlignment string `json:"contentAlignment,omitempty"`
  5394. // TableCellBackgroundFill: The background fill of the table cell. The
  5395. // default fill matches the fill
  5396. // for newly created table cells in the Slides editor.
  5397. TableCellBackgroundFill *TableCellBackgroundFill `json:"tableCellBackgroundFill,omitempty"`
  5398. // ForceSendFields is a list of field names (e.g. "ContentAlignment") to
  5399. // unconditionally include in API requests. By default, fields with
  5400. // empty values are omitted from API requests. However, any non-pointer,
  5401. // non-interface field appearing in ForceSendFields will be sent to the
  5402. // server regardless of whether the field is empty or not. This may be
  5403. // used to include empty fields in Patch requests.
  5404. ForceSendFields []string `json:"-"`
  5405. // NullFields is a list of field names (e.g. "ContentAlignment") to
  5406. // include in API requests with the JSON null value. By default, fields
  5407. // with empty values are omitted from API requests. However, any field
  5408. // with an empty value appearing in NullFields will be sent to the
  5409. // server as null. It is an error if a field in this list has a
  5410. // non-empty value. This may be used to include null fields in Patch
  5411. // requests.
  5412. NullFields []string `json:"-"`
  5413. }
  5414. func (s *TableCellProperties) MarshalJSON() ([]byte, error) {
  5415. type NoMethod TableCellProperties
  5416. raw := NoMethod(*s)
  5417. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5418. }
  5419. // TableColumnProperties: Properties of each column in a table.
  5420. type TableColumnProperties struct {
  5421. // ColumnWidth: Width of a column.
  5422. ColumnWidth *Dimension `json:"columnWidth,omitempty"`
  5423. // ForceSendFields is a list of field names (e.g. "ColumnWidth") to
  5424. // unconditionally include in API requests. By default, fields with
  5425. // empty values are omitted from API requests. However, any non-pointer,
  5426. // non-interface field appearing in ForceSendFields will be sent to the
  5427. // server regardless of whether the field is empty or not. This may be
  5428. // used to include empty fields in Patch requests.
  5429. ForceSendFields []string `json:"-"`
  5430. // NullFields is a list of field names (e.g. "ColumnWidth") to include
  5431. // in API requests with the JSON null value. By default, fields with
  5432. // empty values are omitted from API requests. However, any field with
  5433. // an empty value appearing in NullFields will be sent to the server as
  5434. // null. It is an error if a field in this list has a non-empty value.
  5435. // This may be used to include null fields in Patch requests.
  5436. NullFields []string `json:"-"`
  5437. }
  5438. func (s *TableColumnProperties) MarshalJSON() ([]byte, error) {
  5439. type NoMethod TableColumnProperties
  5440. raw := NoMethod(*s)
  5441. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5442. }
  5443. // TableRange: A table range represents a reference to a subset of a
  5444. // table.
  5445. //
  5446. // It's important to note that the cells specified by a table range do
  5447. // not
  5448. // necessarily form a rectangle. For example, let's say we have a 3 x 3
  5449. // table
  5450. // where all the cells of the last row are merged together. The table
  5451. // looks
  5452. // like this:
  5453. //
  5454. //
  5455. // [ ]
  5456. //
  5457. // A table range with location = (0, 0), row span = 3 and column span =
  5458. // 2
  5459. // specifies the following cells:
  5460. //
  5461. // x x
  5462. // [ x ]
  5463. type TableRange struct {
  5464. // ColumnSpan: The column span of the table range.
  5465. ColumnSpan int64 `json:"columnSpan,omitempty"`
  5466. // Location: The starting location of the table range.
  5467. Location *TableCellLocation `json:"location,omitempty"`
  5468. // RowSpan: The row span of the table range.
  5469. RowSpan int64 `json:"rowSpan,omitempty"`
  5470. // ForceSendFields is a list of field names (e.g. "ColumnSpan") to
  5471. // unconditionally include in API requests. By default, fields with
  5472. // empty values are omitted from API requests. However, any non-pointer,
  5473. // non-interface field appearing in ForceSendFields will be sent to the
  5474. // server regardless of whether the field is empty or not. This may be
  5475. // used to include empty fields in Patch requests.
  5476. ForceSendFields []string `json:"-"`
  5477. // NullFields is a list of field names (e.g. "ColumnSpan") to include in
  5478. // API requests with the JSON null value. By default, fields with empty
  5479. // values are omitted from API requests. However, any field with an
  5480. // empty value appearing in NullFields will be sent to the server as
  5481. // null. It is an error if a field in this list has a non-empty value.
  5482. // This may be used to include null fields in Patch requests.
  5483. NullFields []string `json:"-"`
  5484. }
  5485. func (s *TableRange) MarshalJSON() ([]byte, error) {
  5486. type NoMethod TableRange
  5487. raw := NoMethod(*s)
  5488. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5489. }
  5490. // TableRow: Properties and contents of each row in a table.
  5491. type TableRow struct {
  5492. // RowHeight: Height of a row.
  5493. RowHeight *Dimension `json:"rowHeight,omitempty"`
  5494. // TableCells: Properties and contents of each cell.
  5495. //
  5496. // Cells that span multiple columns are represented only once with
  5497. // a
  5498. // column_span greater
  5499. // than 1. As a result, the length of this collection does not always
  5500. // match
  5501. // the number of columns of the entire table.
  5502. TableCells []*TableCell `json:"tableCells,omitempty"`
  5503. // TableRowProperties: Properties of the row.
  5504. TableRowProperties *TableRowProperties `json:"tableRowProperties,omitempty"`
  5505. // ForceSendFields is a list of field names (e.g. "RowHeight") to
  5506. // unconditionally include in API requests. By default, fields with
  5507. // empty values are omitted from API requests. However, any non-pointer,
  5508. // non-interface field appearing in ForceSendFields will be sent to the
  5509. // server regardless of whether the field is empty or not. This may be
  5510. // used to include empty fields in Patch requests.
  5511. ForceSendFields []string `json:"-"`
  5512. // NullFields is a list of field names (e.g. "RowHeight") to include in
  5513. // API requests with the JSON null value. By default, fields with empty
  5514. // values are omitted from API requests. However, any field with an
  5515. // empty value appearing in NullFields will be sent to the server as
  5516. // null. It is an error if a field in this list has a non-empty value.
  5517. // This may be used to include null fields in Patch requests.
  5518. NullFields []string `json:"-"`
  5519. }
  5520. func (s *TableRow) MarshalJSON() ([]byte, error) {
  5521. type NoMethod TableRow
  5522. raw := NoMethod(*s)
  5523. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5524. }
  5525. // TableRowProperties: Properties of each row in a table.
  5526. type TableRowProperties struct {
  5527. // MinRowHeight: Minimum height of the row. The row will be rendered in
  5528. // the Slides editor at
  5529. // a height equal to or greater than this value in order to show all the
  5530. // text
  5531. // in the row's cell(s).
  5532. MinRowHeight *Dimension `json:"minRowHeight,omitempty"`
  5533. // ForceSendFields is a list of field names (e.g. "MinRowHeight") to
  5534. // unconditionally include in API requests. By default, fields with
  5535. // empty values are omitted from API requests. However, any non-pointer,
  5536. // non-interface field appearing in ForceSendFields will be sent to the
  5537. // server regardless of whether the field is empty or not. This may be
  5538. // used to include empty fields in Patch requests.
  5539. ForceSendFields []string `json:"-"`
  5540. // NullFields is a list of field names (e.g. "MinRowHeight") to include
  5541. // in API requests with the JSON null value. By default, fields with
  5542. // empty values are omitted from API requests. However, any field with
  5543. // an empty value appearing in NullFields will be sent to the server as
  5544. // null. It is an error if a field in this list has a non-empty value.
  5545. // This may be used to include null fields in Patch requests.
  5546. NullFields []string `json:"-"`
  5547. }
  5548. func (s *TableRowProperties) MarshalJSON() ([]byte, error) {
  5549. type NoMethod TableRowProperties
  5550. raw := NoMethod(*s)
  5551. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5552. }
  5553. // TextContent: The general text content. The text must reside in a
  5554. // compatible shape (e.g.
  5555. // text box or rectangle) or a table cell in a page.
  5556. type TextContent struct {
  5557. // Lists: The bulleted lists contained in this text, keyed by list ID.
  5558. Lists map[string]List `json:"lists,omitempty"`
  5559. // TextElements: The text contents broken down into its component parts,
  5560. // including styling
  5561. // information. This property is read-only.
  5562. TextElements []*TextElement `json:"textElements,omitempty"`
  5563. // ForceSendFields is a list of field names (e.g. "Lists") to
  5564. // unconditionally include in API requests. By default, fields with
  5565. // empty values are omitted from API requests. However, any non-pointer,
  5566. // non-interface field appearing in ForceSendFields will be sent to the
  5567. // server regardless of whether the field is empty or not. This may be
  5568. // used to include empty fields in Patch requests.
  5569. ForceSendFields []string `json:"-"`
  5570. // NullFields is a list of field names (e.g. "Lists") to include in API
  5571. // requests with the JSON null value. By default, fields with empty
  5572. // values are omitted from API requests. However, any field with an
  5573. // empty value appearing in NullFields will be sent to the server as
  5574. // null. It is an error if a field in this list has a non-empty value.
  5575. // This may be used to include null fields in Patch requests.
  5576. NullFields []string `json:"-"`
  5577. }
  5578. func (s *TextContent) MarshalJSON() ([]byte, error) {
  5579. type NoMethod TextContent
  5580. raw := NoMethod(*s)
  5581. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5582. }
  5583. // TextElement: A TextElement describes the content of a range of
  5584. // indices in the text content
  5585. // of a Shape or TableCell.
  5586. type TextElement struct {
  5587. // AutoText: A TextElement representing a spot in the text that is
  5588. // dynamically
  5589. // replaced with content that can change over time.
  5590. AutoText *AutoText `json:"autoText,omitempty"`
  5591. // EndIndex: The zero-based end index of this text element, exclusive,
  5592. // in Unicode code
  5593. // units.
  5594. EndIndex int64 `json:"endIndex,omitempty"`
  5595. // ParagraphMarker: A marker representing the beginning of a new
  5596. // paragraph.
  5597. //
  5598. // The `start_index` and `end_index` of this TextElement represent
  5599. // the
  5600. // range of the paragraph. Other TextElements with an index range
  5601. // contained
  5602. // inside this paragraph's range are considered to be part of
  5603. // this
  5604. // paragraph. The range of indices of two separate paragraphs will
  5605. // never
  5606. // overlap.
  5607. ParagraphMarker *ParagraphMarker `json:"paragraphMarker,omitempty"`
  5608. // StartIndex: The zero-based start index of this text element, in
  5609. // Unicode code units.
  5610. StartIndex int64 `json:"startIndex,omitempty"`
  5611. // TextRun: A TextElement representing a run of text where all of the
  5612. // characters
  5613. // in the run have the same TextStyle.
  5614. //
  5615. // The `start_index` and `end_index` of TextRuns will always be
  5616. // fully
  5617. // contained in the index range of a single `paragraph_marker`
  5618. // TextElement.
  5619. // In other words, a TextRun will never span multiple paragraphs.
  5620. TextRun *TextRun `json:"textRun,omitempty"`
  5621. // ForceSendFields is a list of field names (e.g. "AutoText") to
  5622. // unconditionally include in API requests. By default, fields with
  5623. // empty values are omitted from API requests. However, any non-pointer,
  5624. // non-interface field appearing in ForceSendFields will be sent to the
  5625. // server regardless of whether the field is empty or not. This may be
  5626. // used to include empty fields in Patch requests.
  5627. ForceSendFields []string `json:"-"`
  5628. // NullFields is a list of field names (e.g. "AutoText") to include in
  5629. // API requests with the JSON null value. By default, fields with empty
  5630. // values are omitted from API requests. However, any field with an
  5631. // empty value appearing in NullFields will be sent to the server as
  5632. // null. It is an error if a field in this list has a non-empty value.
  5633. // This may be used to include null fields in Patch requests.
  5634. NullFields []string `json:"-"`
  5635. }
  5636. func (s *TextElement) MarshalJSON() ([]byte, error) {
  5637. type NoMethod TextElement
  5638. raw := NoMethod(*s)
  5639. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5640. }
  5641. // TextRun: A TextElement kind that represents a run of text that all
  5642. // has the same
  5643. // styling.
  5644. type TextRun struct {
  5645. // Content: The text of this run.
  5646. Content string `json:"content,omitempty"`
  5647. // Style: The styling applied to this run.
  5648. Style *TextStyle `json:"style,omitempty"`
  5649. // ForceSendFields is a list of field names (e.g. "Content") to
  5650. // unconditionally include in API requests. By default, fields with
  5651. // empty values are omitted from API requests. However, any non-pointer,
  5652. // non-interface field appearing in ForceSendFields will be sent to the
  5653. // server regardless of whether the field is empty or not. This may be
  5654. // used to include empty fields in Patch requests.
  5655. ForceSendFields []string `json:"-"`
  5656. // NullFields is a list of field names (e.g. "Content") to include in
  5657. // API requests with the JSON null value. By default, fields with empty
  5658. // values are omitted from API requests. However, any field with an
  5659. // empty value appearing in NullFields will be sent to the server as
  5660. // null. It is an error if a field in this list has a non-empty value.
  5661. // This may be used to include null fields in Patch requests.
  5662. NullFields []string `json:"-"`
  5663. }
  5664. func (s *TextRun) MarshalJSON() ([]byte, error) {
  5665. type NoMethod TextRun
  5666. raw := NoMethod(*s)
  5667. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5668. }
  5669. // TextStyle: Represents the styling that can be applied to a
  5670. // TextRun.
  5671. //
  5672. // If this text is contained in a shape with a parent placeholder, then
  5673. // these text styles may be
  5674. // inherited from the parent. Which text styles are inherited depend on
  5675. // the
  5676. // nesting level of lists:
  5677. //
  5678. // * A text run in a paragraph that is not in a list will inherit its
  5679. // text style
  5680. // from the the newline character in the paragraph at the 0 nesting
  5681. // level of
  5682. // the list inside the parent placeholder.
  5683. // * A text run in a paragraph that is in a list will inherit its text
  5684. // style
  5685. // from the newline character in the paragraph at its corresponding
  5686. // nesting
  5687. // level of the list inside the parent placeholder.
  5688. //
  5689. // Inherited text styles are represented as unset fields in this
  5690. // message. If
  5691. // text is contained in a shape without a parent placeholder, unsetting
  5692. // these
  5693. // fields will revert the style to a value matching the defaults in the
  5694. // Slides
  5695. // editor.
  5696. type TextStyle struct {
  5697. // BackgroundColor: The background color of the text. If set, the color
  5698. // is either opaque or
  5699. // transparent, depending on if the `opaque_color` field in it is set.
  5700. BackgroundColor *OptionalColor `json:"backgroundColor,omitempty"`
  5701. // BaselineOffset: The text's vertical offset from its normal
  5702. // position.
  5703. //
  5704. // Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is
  5705. // automatically
  5706. // rendered in a smaller font size, computed based on the `font_size`
  5707. // field.
  5708. // The `font_size` itself is not affected by changes in this field.
  5709. //
  5710. // Possible values:
  5711. // "BASELINE_OFFSET_UNSPECIFIED" - The text's baseline offset is
  5712. // inherited from the parent.
  5713. // "NONE" - The text is not vertically offset.
  5714. // "SUPERSCRIPT" - The text is vertically offset upwards
  5715. // (superscript).
  5716. // "SUBSCRIPT" - The text is vertically offset downwards (subscript).
  5717. BaselineOffset string `json:"baselineOffset,omitempty"`
  5718. // Bold: Whether or not the text is rendered as bold.
  5719. Bold bool `json:"bold,omitempty"`
  5720. // FontFamily: The font family of the text.
  5721. //
  5722. // The font family can be any font from the Font menu in Slides or
  5723. // from
  5724. // [Google Fonts] (https://fonts.google.com/). If the font name
  5725. // is
  5726. // unrecognized, the text is rendered in `Arial`.
  5727. //
  5728. // Some fonts can affect the weight of the text. If an update
  5729. // request
  5730. // specifies values for both `font_family` and `bold`, the
  5731. // explicitly-set
  5732. // `bold` value is used.
  5733. FontFamily string `json:"fontFamily,omitempty"`
  5734. // FontSize: The size of the text's font. When read, the `font_size`
  5735. // will specified in
  5736. // points.
  5737. FontSize *Dimension `json:"fontSize,omitempty"`
  5738. // ForegroundColor: The color of the text itself. If set, the color is
  5739. // either opaque or
  5740. // transparent, depending on if the `opaque_color` field in it is set.
  5741. ForegroundColor *OptionalColor `json:"foregroundColor,omitempty"`
  5742. // Italic: Whether or not the text is italicized.
  5743. Italic bool `json:"italic,omitempty"`
  5744. // Link: The hyperlink destination of the text. If unset, there is no
  5745. // link. Links
  5746. // are not inherited from parent text.
  5747. //
  5748. // Changing the link in an update request causes some other changes to
  5749. // the
  5750. // text style of the range:
  5751. //
  5752. // * When setting a link, the text foreground color will be set to
  5753. // ThemeColorType.HYPERLINK and the text will
  5754. // be underlined. If these fields are modified in the same
  5755. // request, those values will be used instead of the link defaults.
  5756. // * Setting a link on a text range that overlaps with an existing link
  5757. // will
  5758. // also update the existing link to point to the new URL.
  5759. // * Links are not settable on newline characters. As a result, setting
  5760. // a link
  5761. // on a text range that crosses a paragraph boundary, such as
  5762. // "ABC\n123",
  5763. // will separate the newline character(s) into their own text runs.
  5764. // The
  5765. // link will be applied separately to the runs before and after the
  5766. // newline.
  5767. // * Removing a link will update the text style of the range to match
  5768. // the
  5769. // style of the preceding text (or the default text styles if the
  5770. // preceding
  5771. // text is another link) unless different styles are being set in the
  5772. // same
  5773. // request.
  5774. Link *Link `json:"link,omitempty"`
  5775. // SmallCaps: Whether or not the text is in small capital letters.
  5776. SmallCaps bool `json:"smallCaps,omitempty"`
  5777. // Strikethrough: Whether or not the text is struck through.
  5778. Strikethrough bool `json:"strikethrough,omitempty"`
  5779. // Underline: Whether or not the text is underlined.
  5780. Underline bool `json:"underline,omitempty"`
  5781. // WeightedFontFamily: The font family and rendered weight of the
  5782. // text.
  5783. //
  5784. // This field is an extension of `font_family` meant to support explicit
  5785. // font
  5786. // weights without breaking backwards compatibility. As such, when
  5787. // reading the
  5788. // style of a range of text, the value of
  5789. // `weighted_font_family#font_family`
  5790. // will always be equal to that of `font_family`. However, when writing,
  5791. // if
  5792. // both fields are included in the field mask (either explicitly or
  5793. // through
  5794. // the wildcard "*"), their values are reconciled as follows:
  5795. //
  5796. // * If `font_family` is set and `weighted_font_family` is not, the
  5797. // value of
  5798. // `font_family` is applied with weight `400` ("normal").
  5799. // * If both fields are set, the value of `font_family` must match that
  5800. // of
  5801. // `weighted_font_family#font_family`. If so, the font family and
  5802. // weight of
  5803. // `weighted_font_family` is applied. Otherwise, a 400 bad request
  5804. // error is
  5805. // returned.
  5806. // * If `weighted_font_family` is set and `font_family` is not, the
  5807. // font
  5808. // family and weight of `weighted_font_family` is applied.
  5809. // * If neither field is set, the font family and weight of the text
  5810. // inherit
  5811. // from the parent. Note that these properties cannot inherit
  5812. // separately
  5813. // from each other.
  5814. //
  5815. // If an update request specifies values for both `weighted_font_family`
  5816. // and
  5817. // `bold`, the `weighted_font_family` is applied first, then `bold`.
  5818. //
  5819. // If `weighted_font_family#weight` is not set, it defaults to
  5820. // `400`.
  5821. //
  5822. // If `weighted_font_family` is set, then
  5823. // `weighted_font_family#font_family`
  5824. // must also be set with a non-empty value. Otherwise, a 400 bad request
  5825. // error
  5826. // is returned.
  5827. WeightedFontFamily *WeightedFontFamily `json:"weightedFontFamily,omitempty"`
  5828. // ForceSendFields is a list of field names (e.g. "BackgroundColor") to
  5829. // unconditionally include in API requests. By default, fields with
  5830. // empty values are omitted from API requests. However, any non-pointer,
  5831. // non-interface field appearing in ForceSendFields will be sent to the
  5832. // server regardless of whether the field is empty or not. This may be
  5833. // used to include empty fields in Patch requests.
  5834. ForceSendFields []string `json:"-"`
  5835. // NullFields is a list of field names (e.g. "BackgroundColor") to
  5836. // include in API requests with the JSON null value. By default, fields
  5837. // with empty values are omitted from API requests. However, any field
  5838. // with an empty value appearing in NullFields will be sent to the
  5839. // server as null. It is an error if a field in this list has a
  5840. // non-empty value. This may be used to include null fields in Patch
  5841. // requests.
  5842. NullFields []string `json:"-"`
  5843. }
  5844. func (s *TextStyle) MarshalJSON() ([]byte, error) {
  5845. type NoMethod TextStyle
  5846. raw := NoMethod(*s)
  5847. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5848. }
  5849. // ThemeColorPair: A pair mapping a theme color type to the concrete
  5850. // color it represents.
  5851. type ThemeColorPair struct {
  5852. // Color: The concrete color corresponding to the theme color type
  5853. // above.
  5854. Color *RgbColor `json:"color,omitempty"`
  5855. // Type: The type of the theme color.
  5856. //
  5857. // Possible values:
  5858. // "THEME_COLOR_TYPE_UNSPECIFIED" - Unspecified theme color. This
  5859. // value should not be used.
  5860. // "DARK1" - Represents the first dark color.
  5861. // "LIGHT1" - Represents the first light color.
  5862. // "DARK2" - Represents the second dark color.
  5863. // "LIGHT2" - Represents the second light color.
  5864. // "ACCENT1" - Represents the first accent color.
  5865. // "ACCENT2" - Represents the second accent color.
  5866. // "ACCENT3" - Represents the third accent color.
  5867. // "ACCENT4" - Represents the fourth accent color.
  5868. // "ACCENT5" - Represents the fifth accent color.
  5869. // "ACCENT6" - Represents the sixth accent color.
  5870. // "HYPERLINK" - Represents the color to use for hyperlinks.
  5871. // "FOLLOWED_HYPERLINK" - Represents the color to use for visited
  5872. // hyperlinks.
  5873. // "TEXT1" - Represents the first text color.
  5874. // "BACKGROUND1" - Represents the first background color.
  5875. // "TEXT2" - Represents the second text color.
  5876. // "BACKGROUND2" - Represents the second background color.
  5877. Type string `json:"type,omitempty"`
  5878. // ForceSendFields is a list of field names (e.g. "Color") to
  5879. // unconditionally include in API requests. By default, fields with
  5880. // empty values are omitted from API requests. However, any non-pointer,
  5881. // non-interface field appearing in ForceSendFields will be sent to the
  5882. // server regardless of whether the field is empty or not. This may be
  5883. // used to include empty fields in Patch requests.
  5884. ForceSendFields []string `json:"-"`
  5885. // NullFields is a list of field names (e.g. "Color") to include in API
  5886. // requests with the JSON null value. By default, fields with empty
  5887. // values are omitted from API requests. However, any field with an
  5888. // empty value appearing in NullFields will be sent to the server as
  5889. // null. It is an error if a field in this list has a non-empty value.
  5890. // This may be used to include null fields in Patch requests.
  5891. NullFields []string `json:"-"`
  5892. }
  5893. func (s *ThemeColorPair) MarshalJSON() ([]byte, error) {
  5894. type NoMethod ThemeColorPair
  5895. raw := NoMethod(*s)
  5896. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5897. }
  5898. // Thumbnail: The thumbnail of a page.
  5899. type Thumbnail struct {
  5900. // ContentUrl: The content URL of the thumbnail image.
  5901. //
  5902. // The URL to the image has a default lifetime of 30 minutes.
  5903. // This URL is tagged with the account of the requester. Anyone with the
  5904. // URL
  5905. // effectively accesses the image as the original requester. Access to
  5906. // the
  5907. // image may be lost if the presentation's sharing settings change.
  5908. // The mime type of the thumbnail image is the same as specified in
  5909. // the
  5910. // `GetPageThumbnailRequest`.
  5911. ContentUrl string `json:"contentUrl,omitempty"`
  5912. // Height: The positive height in pixels of the thumbnail image.
  5913. Height int64 `json:"height,omitempty"`
  5914. // Width: The positive width in pixels of the thumbnail image.
  5915. Width int64 `json:"width,omitempty"`
  5916. // ServerResponse contains the HTTP response code and headers from the
  5917. // server.
  5918. googleapi.ServerResponse `json:"-"`
  5919. // ForceSendFields is a list of field names (e.g. "ContentUrl") to
  5920. // unconditionally include in API requests. By default, fields with
  5921. // empty values are omitted from API requests. However, any non-pointer,
  5922. // non-interface field appearing in ForceSendFields will be sent to the
  5923. // server regardless of whether the field is empty or not. This may be
  5924. // used to include empty fields in Patch requests.
  5925. ForceSendFields []string `json:"-"`
  5926. // NullFields is a list of field names (e.g. "ContentUrl") to include in
  5927. // API requests with the JSON null value. By default, fields with empty
  5928. // values are omitted from API requests. However, any field with an
  5929. // empty value appearing in NullFields will be sent to the server as
  5930. // null. It is an error if a field in this list has a non-empty value.
  5931. // This may be used to include null fields in Patch requests.
  5932. NullFields []string `json:"-"`
  5933. }
  5934. func (s *Thumbnail) MarshalJSON() ([]byte, error) {
  5935. type NoMethod Thumbnail
  5936. raw := NoMethod(*s)
  5937. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5938. }
  5939. // UngroupObjectsRequest: Ungroups objects, such as groups.
  5940. type UngroupObjectsRequest struct {
  5941. // ObjectIds: The object IDs of the objects to ungroup.
  5942. //
  5943. // Only groups that are not inside other
  5944. // groups can be ungrouped. All the groups
  5945. // should be on the same page. The group itself is deleted. The visual
  5946. // sizes
  5947. // and positions of all the children are preserved.
  5948. ObjectIds []string `json:"objectIds,omitempty"`
  5949. // ForceSendFields is a list of field names (e.g. "ObjectIds") to
  5950. // unconditionally include in API requests. By default, fields with
  5951. // empty values are omitted from API requests. However, any non-pointer,
  5952. // non-interface field appearing in ForceSendFields will be sent to the
  5953. // server regardless of whether the field is empty or not. This may be
  5954. // used to include empty fields in Patch requests.
  5955. ForceSendFields []string `json:"-"`
  5956. // NullFields is a list of field names (e.g. "ObjectIds") to include in
  5957. // API requests with the JSON null value. By default, fields with empty
  5958. // values are omitted from API requests. However, any field with an
  5959. // empty value appearing in NullFields will be sent to the server as
  5960. // null. It is an error if a field in this list has a non-empty value.
  5961. // This may be used to include null fields in Patch requests.
  5962. NullFields []string `json:"-"`
  5963. }
  5964. func (s *UngroupObjectsRequest) MarshalJSON() ([]byte, error) {
  5965. type NoMethod UngroupObjectsRequest
  5966. raw := NoMethod(*s)
  5967. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5968. }
  5969. // UnmergeTableCellsRequest: Unmerges cells in a Table.
  5970. type UnmergeTableCellsRequest struct {
  5971. // ObjectId: The object ID of the table.
  5972. ObjectId string `json:"objectId,omitempty"`
  5973. // TableRange: The table range specifying which cells of the table to
  5974. // unmerge.
  5975. //
  5976. // All merged cells in this range will be unmerged, and cells that are
  5977. // already
  5978. // unmerged will not be affected. If the range has no merged cells,
  5979. // the
  5980. // request will do nothing. If there is text in any of the merged cells,
  5981. // the
  5982. // text will remain in the upper-left ("head") cell of the resulting
  5983. // block of
  5984. // unmerged cells.
  5985. TableRange *TableRange `json:"tableRange,omitempty"`
  5986. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  5987. // unconditionally include in API requests. By default, fields with
  5988. // empty values are omitted from API requests. However, any non-pointer,
  5989. // non-interface field appearing in ForceSendFields will be sent to the
  5990. // server regardless of whether the field is empty or not. This may be
  5991. // used to include empty fields in Patch requests.
  5992. ForceSendFields []string `json:"-"`
  5993. // NullFields is a list of field names (e.g. "ObjectId") to include in
  5994. // API requests with the JSON null value. By default, fields with empty
  5995. // values are omitted from API requests. However, any field with an
  5996. // empty value appearing in NullFields will be sent to the server as
  5997. // null. It is an error if a field in this list has a non-empty value.
  5998. // This may be used to include null fields in Patch requests.
  5999. NullFields []string `json:"-"`
  6000. }
  6001. func (s *UnmergeTableCellsRequest) MarshalJSON() ([]byte, error) {
  6002. type NoMethod UnmergeTableCellsRequest
  6003. raw := NoMethod(*s)
  6004. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6005. }
  6006. // UpdateImagePropertiesRequest: Update the properties of an Image.
  6007. type UpdateImagePropertiesRequest struct {
  6008. // Fields: The fields that should be updated.
  6009. //
  6010. // At least one field must be specified. The root `imageProperties`
  6011. // is
  6012. // implied and should not be specified. A single "*" can be used
  6013. // as
  6014. // short-hand for listing every field.
  6015. //
  6016. // For example to update the image outline color, set `fields`
  6017. // to
  6018. // "outline.outlineFill.solidFill.color".
  6019. //
  6020. // To reset a property to its default value, include its field name in
  6021. // the
  6022. // field mask but leave the field itself unset.
  6023. Fields string `json:"fields,omitempty"`
  6024. // ImageProperties: The image properties to update.
  6025. ImageProperties *ImageProperties `json:"imageProperties,omitempty"`
  6026. // ObjectId: The object ID of the image the updates are applied to.
  6027. ObjectId string `json:"objectId,omitempty"`
  6028. // ForceSendFields is a list of field names (e.g. "Fields") to
  6029. // unconditionally include in API requests. By default, fields with
  6030. // empty values are omitted from API requests. However, any non-pointer,
  6031. // non-interface field appearing in ForceSendFields will be sent to the
  6032. // server regardless of whether the field is empty or not. This may be
  6033. // used to include empty fields in Patch requests.
  6034. ForceSendFields []string `json:"-"`
  6035. // NullFields is a list of field names (e.g. "Fields") to include in API
  6036. // requests with the JSON null value. By default, fields with empty
  6037. // values are omitted from API requests. However, any field with an
  6038. // empty value appearing in NullFields will be sent to the server as
  6039. // null. It is an error if a field in this list has a non-empty value.
  6040. // This may be used to include null fields in Patch requests.
  6041. NullFields []string `json:"-"`
  6042. }
  6043. func (s *UpdateImagePropertiesRequest) MarshalJSON() ([]byte, error) {
  6044. type NoMethod UpdateImagePropertiesRequest
  6045. raw := NoMethod(*s)
  6046. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6047. }
  6048. // UpdateLinePropertiesRequest: Updates the properties of a Line.
  6049. type UpdateLinePropertiesRequest struct {
  6050. // Fields: The fields that should be updated.
  6051. //
  6052. // At least one field must be specified. The root `lineProperties`
  6053. // is
  6054. // implied and should not be specified. A single "*" can be used
  6055. // as
  6056. // short-hand for listing every field.
  6057. //
  6058. // For example to update the line solid fill color, set `fields`
  6059. // to
  6060. // "lineFill.solidFill.color".
  6061. //
  6062. // To reset a property to its default value, include its field name in
  6063. // the
  6064. // field mask but leave the field itself unset.
  6065. Fields string `json:"fields,omitempty"`
  6066. // LineProperties: The line properties to update.
  6067. LineProperties *LineProperties `json:"lineProperties,omitempty"`
  6068. // ObjectId: The object ID of the line the update is applied to.
  6069. ObjectId string `json:"objectId,omitempty"`
  6070. // ForceSendFields is a list of field names (e.g. "Fields") to
  6071. // unconditionally include in API requests. By default, fields with
  6072. // empty values are omitted from API requests. However, any non-pointer,
  6073. // non-interface field appearing in ForceSendFields will be sent to the
  6074. // server regardless of whether the field is empty or not. This may be
  6075. // used to include empty fields in Patch requests.
  6076. ForceSendFields []string `json:"-"`
  6077. // NullFields is a list of field names (e.g. "Fields") to include in API
  6078. // requests with the JSON null value. By default, fields with empty
  6079. // values are omitted from API requests. However, any field with an
  6080. // empty value appearing in NullFields will be sent to the server as
  6081. // null. It is an error if a field in this list has a non-empty value.
  6082. // This may be used to include null fields in Patch requests.
  6083. NullFields []string `json:"-"`
  6084. }
  6085. func (s *UpdateLinePropertiesRequest) MarshalJSON() ([]byte, error) {
  6086. type NoMethod UpdateLinePropertiesRequest
  6087. raw := NoMethod(*s)
  6088. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6089. }
  6090. // UpdatePageElementAltTextRequest: Updates the alt text title and/or
  6091. // description of a
  6092. // page element.
  6093. type UpdatePageElementAltTextRequest struct {
  6094. // Description: The updated alt text description of the page element. If
  6095. // unset the existing
  6096. // value will be maintained. The description is exposed to screen
  6097. // readers
  6098. // and other accessibility interfaces. Only use human readable values
  6099. // related
  6100. // to the content of the page element.
  6101. Description string `json:"description,omitempty"`
  6102. // ObjectId: The object ID of the page element the updates are applied
  6103. // to.
  6104. ObjectId string `json:"objectId,omitempty"`
  6105. // Title: The updated alt text title of the page element. If unset
  6106. // the
  6107. // existing value will be maintained. The title is exposed to screen
  6108. // readers
  6109. // and other accessibility interfaces. Only use human readable values
  6110. // related
  6111. // to the content of the page element.
  6112. Title string `json:"title,omitempty"`
  6113. // ForceSendFields is a list of field names (e.g. "Description") to
  6114. // unconditionally include in API requests. By default, fields with
  6115. // empty values are omitted from API requests. However, any non-pointer,
  6116. // non-interface field appearing in ForceSendFields will be sent to the
  6117. // server regardless of whether the field is empty or not. This may be
  6118. // used to include empty fields in Patch requests.
  6119. ForceSendFields []string `json:"-"`
  6120. // NullFields is a list of field names (e.g. "Description") to include
  6121. // in API requests with the JSON null value. By default, fields with
  6122. // empty values are omitted from API requests. However, any field with
  6123. // an empty value appearing in NullFields will be sent to the server as
  6124. // null. It is an error if a field in this list has a non-empty value.
  6125. // This may be used to include null fields in Patch requests.
  6126. NullFields []string `json:"-"`
  6127. }
  6128. func (s *UpdatePageElementAltTextRequest) MarshalJSON() ([]byte, error) {
  6129. type NoMethod UpdatePageElementAltTextRequest
  6130. raw := NoMethod(*s)
  6131. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6132. }
  6133. // UpdatePageElementTransformRequest: Updates the transform of a page
  6134. // element.
  6135. //
  6136. // Updating the transform of a group will change the absolute transform
  6137. // of the
  6138. // page elements in that group, which can change their visual
  6139. // appearance. See
  6140. // the documentation for PageElement.transform for more details.
  6141. type UpdatePageElementTransformRequest struct {
  6142. // ApplyMode: The apply mode of the transform update.
  6143. //
  6144. // Possible values:
  6145. // "APPLY_MODE_UNSPECIFIED" - Unspecified mode.
  6146. // "RELATIVE" - Applies the new AffineTransform matrix to the existing
  6147. // one, and
  6148. // replaces the existing one with the resulting concatenation.
  6149. // "ABSOLUTE" - Replaces the existing AffineTransform matrix with the
  6150. // new one.
  6151. ApplyMode string `json:"applyMode,omitempty"`
  6152. // ObjectId: The object ID of the page element to update.
  6153. ObjectId string `json:"objectId,omitempty"`
  6154. // Transform: The input transform matrix used to update the page
  6155. // element.
  6156. Transform *AffineTransform `json:"transform,omitempty"`
  6157. // ForceSendFields is a list of field names (e.g. "ApplyMode") to
  6158. // unconditionally include in API requests. By default, fields with
  6159. // empty values are omitted from API requests. However, any non-pointer,
  6160. // non-interface field appearing in ForceSendFields will be sent to the
  6161. // server regardless of whether the field is empty or not. This may be
  6162. // used to include empty fields in Patch requests.
  6163. ForceSendFields []string `json:"-"`
  6164. // NullFields is a list of field names (e.g. "ApplyMode") to include in
  6165. // API requests with the JSON null value. By default, fields with empty
  6166. // values are omitted from API requests. However, any field with an
  6167. // empty value appearing in NullFields will be sent to the server as
  6168. // null. It is an error if a field in this list has a non-empty value.
  6169. // This may be used to include null fields in Patch requests.
  6170. NullFields []string `json:"-"`
  6171. }
  6172. func (s *UpdatePageElementTransformRequest) MarshalJSON() ([]byte, error) {
  6173. type NoMethod UpdatePageElementTransformRequest
  6174. raw := NoMethod(*s)
  6175. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6176. }
  6177. // UpdatePagePropertiesRequest: Updates the properties of a Page.
  6178. type UpdatePagePropertiesRequest struct {
  6179. // Fields: The fields that should be updated.
  6180. //
  6181. // At least one field must be specified. The root `pageProperties`
  6182. // is
  6183. // implied and should not be specified. A single "*" can be used
  6184. // as
  6185. // short-hand for listing every field.
  6186. //
  6187. // For example to update the page background solid fill color, set
  6188. // `fields`
  6189. // to "pageBackgroundFill.solidFill.color".
  6190. //
  6191. // To reset a property to its default value, include its field name in
  6192. // the
  6193. // field mask but leave the field itself unset.
  6194. Fields string `json:"fields,omitempty"`
  6195. // ObjectId: The object ID of the page the update is applied to.
  6196. ObjectId string `json:"objectId,omitempty"`
  6197. // PageProperties: The page properties to update.
  6198. PageProperties *PageProperties `json:"pageProperties,omitempty"`
  6199. // ForceSendFields is a list of field names (e.g. "Fields") to
  6200. // unconditionally include in API requests. By default, fields with
  6201. // empty values are omitted from API requests. However, any non-pointer,
  6202. // non-interface field appearing in ForceSendFields will be sent to the
  6203. // server regardless of whether the field is empty or not. This may be
  6204. // used to include empty fields in Patch requests.
  6205. ForceSendFields []string `json:"-"`
  6206. // NullFields is a list of field names (e.g. "Fields") to include in API
  6207. // requests with the JSON null value. By default, fields with empty
  6208. // values are omitted from API requests. However, any field with an
  6209. // empty value appearing in NullFields will be sent to the server as
  6210. // null. It is an error if a field in this list has a non-empty value.
  6211. // This may be used to include null fields in Patch requests.
  6212. NullFields []string `json:"-"`
  6213. }
  6214. func (s *UpdatePagePropertiesRequest) MarshalJSON() ([]byte, error) {
  6215. type NoMethod UpdatePagePropertiesRequest
  6216. raw := NoMethod(*s)
  6217. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6218. }
  6219. // UpdateParagraphStyleRequest: Updates the styling for all of the
  6220. // paragraphs within a Shape or Table that
  6221. // overlap with the given text index range.
  6222. type UpdateParagraphStyleRequest struct {
  6223. // CellLocation: The location of the cell in the table containing the
  6224. // paragraph(s) to
  6225. // style. If `object_id` refers to a table, `cell_location` must have a
  6226. // value.
  6227. // Otherwise, it must not.
  6228. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  6229. // Fields: The fields that should be updated.
  6230. //
  6231. // At least one field must be specified. The root `style` is implied
  6232. // and
  6233. // should not be specified. A single "*" can be used as short-hand
  6234. // for
  6235. // listing every field.
  6236. //
  6237. // For example, to update the paragraph alignment, set `fields`
  6238. // to
  6239. // "alignment".
  6240. //
  6241. // To reset a property to its default value, include its field name in
  6242. // the
  6243. // field mask but leave the field itself unset.
  6244. Fields string `json:"fields,omitempty"`
  6245. // ObjectId: The object ID of the shape or table with the text to be
  6246. // styled.
  6247. ObjectId string `json:"objectId,omitempty"`
  6248. // Style: The paragraph's style.
  6249. Style *ParagraphStyle `json:"style,omitempty"`
  6250. // TextRange: The range of text containing the paragraph(s) to style.
  6251. TextRange *Range `json:"textRange,omitempty"`
  6252. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  6253. // unconditionally include in API requests. By default, fields with
  6254. // empty values are omitted from API requests. However, any non-pointer,
  6255. // non-interface field appearing in ForceSendFields will be sent to the
  6256. // server regardless of whether the field is empty or not. This may be
  6257. // used to include empty fields in Patch requests.
  6258. ForceSendFields []string `json:"-"`
  6259. // NullFields is a list of field names (e.g. "CellLocation") to include
  6260. // in API requests with the JSON null value. By default, fields with
  6261. // empty values are omitted from API requests. However, any field with
  6262. // an empty value appearing in NullFields will be sent to the server as
  6263. // null. It is an error if a field in this list has a non-empty value.
  6264. // This may be used to include null fields in Patch requests.
  6265. NullFields []string `json:"-"`
  6266. }
  6267. func (s *UpdateParagraphStyleRequest) MarshalJSON() ([]byte, error) {
  6268. type NoMethod UpdateParagraphStyleRequest
  6269. raw := NoMethod(*s)
  6270. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6271. }
  6272. // UpdateShapePropertiesRequest: Update the properties of a Shape.
  6273. type UpdateShapePropertiesRequest struct {
  6274. // Fields: The fields that should be updated.
  6275. //
  6276. // At least one field must be specified. The root `shapeProperties`
  6277. // is
  6278. // implied and should not be specified. A single "*" can be used
  6279. // as
  6280. // short-hand for listing every field.
  6281. //
  6282. // For example to update the shape background solid fill color, set
  6283. // `fields`
  6284. // to "shapeBackgroundFill.solidFill.color".
  6285. //
  6286. // To reset a property to its default value, include its field name in
  6287. // the
  6288. // field mask but leave the field itself unset.
  6289. Fields string `json:"fields,omitempty"`
  6290. // ObjectId: The object ID of the shape the updates are applied to.
  6291. ObjectId string `json:"objectId,omitempty"`
  6292. // ShapeProperties: The shape properties to update.
  6293. ShapeProperties *ShapeProperties `json:"shapeProperties,omitempty"`
  6294. // ForceSendFields is a list of field names (e.g. "Fields") to
  6295. // unconditionally include in API requests. By default, fields with
  6296. // empty values are omitted from API requests. However, any non-pointer,
  6297. // non-interface field appearing in ForceSendFields will be sent to the
  6298. // server regardless of whether the field is empty or not. This may be
  6299. // used to include empty fields in Patch requests.
  6300. ForceSendFields []string `json:"-"`
  6301. // NullFields is a list of field names (e.g. "Fields") to include in API
  6302. // requests with the JSON null value. By default, fields with empty
  6303. // values are omitted from API requests. However, any field with an
  6304. // empty value appearing in NullFields will be sent to the server as
  6305. // null. It is an error if a field in this list has a non-empty value.
  6306. // This may be used to include null fields in Patch requests.
  6307. NullFields []string `json:"-"`
  6308. }
  6309. func (s *UpdateShapePropertiesRequest) MarshalJSON() ([]byte, error) {
  6310. type NoMethod UpdateShapePropertiesRequest
  6311. raw := NoMethod(*s)
  6312. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6313. }
  6314. // UpdateSlidesPositionRequest: Updates the position of slides in the
  6315. // presentation.
  6316. type UpdateSlidesPositionRequest struct {
  6317. // InsertionIndex: The index where the slides should be inserted, based
  6318. // on the slide
  6319. // arrangement before the move takes place. Must be between zero and
  6320. // the
  6321. // number of slides in the presentation, inclusive.
  6322. InsertionIndex int64 `json:"insertionIndex,omitempty"`
  6323. // SlideObjectIds: The IDs of the slides in the presentation that should
  6324. // be moved.
  6325. // The slides in this list must be in existing presentation order,
  6326. // without
  6327. // duplicates.
  6328. SlideObjectIds []string `json:"slideObjectIds,omitempty"`
  6329. // ForceSendFields is a list of field names (e.g. "InsertionIndex") to
  6330. // unconditionally include in API requests. By default, fields with
  6331. // empty values are omitted from API requests. However, any non-pointer,
  6332. // non-interface field appearing in ForceSendFields will be sent to the
  6333. // server regardless of whether the field is empty or not. This may be
  6334. // used to include empty fields in Patch requests.
  6335. ForceSendFields []string `json:"-"`
  6336. // NullFields is a list of field names (e.g. "InsertionIndex") to
  6337. // include in API requests with the JSON null value. By default, fields
  6338. // with empty values are omitted from API requests. However, any field
  6339. // with an empty value appearing in NullFields will be sent to the
  6340. // server as null. It is an error if a field in this list has a
  6341. // non-empty value. This may be used to include null fields in Patch
  6342. // requests.
  6343. NullFields []string `json:"-"`
  6344. }
  6345. func (s *UpdateSlidesPositionRequest) MarshalJSON() ([]byte, error) {
  6346. type NoMethod UpdateSlidesPositionRequest
  6347. raw := NoMethod(*s)
  6348. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6349. }
  6350. // UpdateTableBorderPropertiesRequest: Updates the properties of the
  6351. // table borders in a Table.
  6352. type UpdateTableBorderPropertiesRequest struct {
  6353. // BorderPosition: The border position in the table range the updates
  6354. // should apply to. If a
  6355. // border position is not specified, the updates will apply to all
  6356. // borders in
  6357. // the table range.
  6358. //
  6359. // Possible values:
  6360. // "ALL" - All borders in the range.
  6361. // "BOTTOM" - Borders at the bottom of the range.
  6362. // "INNER" - Borders on the inside of the range.
  6363. // "INNER_HORIZONTAL" - Horizontal borders on the inside of the range.
  6364. // "INNER_VERTICAL" - Vertical borders on the inside of the range.
  6365. // "LEFT" - Borders at the left of the range.
  6366. // "OUTER" - Borders along the outside of the range.
  6367. // "RIGHT" - Borders at the right of the range.
  6368. // "TOP" - Borders at the top of the range.
  6369. BorderPosition string `json:"borderPosition,omitempty"`
  6370. // Fields: The fields that should be updated.
  6371. //
  6372. // At least one field must be specified. The root
  6373. // `tableBorderProperties` is
  6374. // implied and should not be specified. A single "*" can be used
  6375. // as
  6376. // short-hand for listing every field.
  6377. //
  6378. // For example to update the table border solid fill color, set
  6379. // `fields` to "tableBorderFill.solidFill.color".
  6380. //
  6381. // To reset a property to its default value, include its field name in
  6382. // the
  6383. // field mask but leave the field itself unset.
  6384. Fields string `json:"fields,omitempty"`
  6385. // ObjectId: The object ID of the table.
  6386. ObjectId string `json:"objectId,omitempty"`
  6387. // TableBorderProperties: The table border properties to update.
  6388. TableBorderProperties *TableBorderProperties `json:"tableBorderProperties,omitempty"`
  6389. // TableRange: The table range representing the subset of the table to
  6390. // which the updates
  6391. // are applied. If a table range is not specified, the updates will
  6392. // apply to
  6393. // the entire table.
  6394. TableRange *TableRange `json:"tableRange,omitempty"`
  6395. // ForceSendFields is a list of field names (e.g. "BorderPosition") to
  6396. // unconditionally include in API requests. By default, fields with
  6397. // empty values are omitted from API requests. However, any non-pointer,
  6398. // non-interface field appearing in ForceSendFields will be sent to the
  6399. // server regardless of whether the field is empty or not. This may be
  6400. // used to include empty fields in Patch requests.
  6401. ForceSendFields []string `json:"-"`
  6402. // NullFields is a list of field names (e.g. "BorderPosition") to
  6403. // include in API requests with the JSON null value. By default, fields
  6404. // with empty values are omitted from API requests. However, any field
  6405. // with an empty value appearing in NullFields will be sent to the
  6406. // server as null. It is an error if a field in this list has a
  6407. // non-empty value. This may be used to include null fields in Patch
  6408. // requests.
  6409. NullFields []string `json:"-"`
  6410. }
  6411. func (s *UpdateTableBorderPropertiesRequest) MarshalJSON() ([]byte, error) {
  6412. type NoMethod UpdateTableBorderPropertiesRequest
  6413. raw := NoMethod(*s)
  6414. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6415. }
  6416. // UpdateTableCellPropertiesRequest: Update the properties of a
  6417. // TableCell.
  6418. type UpdateTableCellPropertiesRequest struct {
  6419. // Fields: The fields that should be updated.
  6420. //
  6421. // At least one field must be specified. The root `tableCellProperties`
  6422. // is
  6423. // implied and should not be specified. A single "*" can be used
  6424. // as
  6425. // short-hand for listing every field.
  6426. //
  6427. // For example to update the table cell background solid fill color,
  6428. // set
  6429. // `fields` to "tableCellBackgroundFill.solidFill.color".
  6430. //
  6431. // To reset a property to its default value, include its field name in
  6432. // the
  6433. // field mask but leave the field itself unset.
  6434. Fields string `json:"fields,omitempty"`
  6435. // ObjectId: The object ID of the table.
  6436. ObjectId string `json:"objectId,omitempty"`
  6437. // TableCellProperties: The table cell properties to update.
  6438. TableCellProperties *TableCellProperties `json:"tableCellProperties,omitempty"`
  6439. // TableRange: The table range representing the subset of the table to
  6440. // which the updates
  6441. // are applied. If a table range is not specified, the updates will
  6442. // apply to
  6443. // the entire table.
  6444. TableRange *TableRange `json:"tableRange,omitempty"`
  6445. // ForceSendFields is a list of field names (e.g. "Fields") to
  6446. // unconditionally include in API requests. By default, fields with
  6447. // empty values are omitted from API requests. However, any non-pointer,
  6448. // non-interface field appearing in ForceSendFields will be sent to the
  6449. // server regardless of whether the field is empty or not. This may be
  6450. // used to include empty fields in Patch requests.
  6451. ForceSendFields []string `json:"-"`
  6452. // NullFields is a list of field names (e.g. "Fields") to include in API
  6453. // requests with the JSON null value. By default, fields with empty
  6454. // values are omitted from API requests. However, any field with an
  6455. // empty value appearing in NullFields will be sent to the server as
  6456. // null. It is an error if a field in this list has a non-empty value.
  6457. // This may be used to include null fields in Patch requests.
  6458. NullFields []string `json:"-"`
  6459. }
  6460. func (s *UpdateTableCellPropertiesRequest) MarshalJSON() ([]byte, error) {
  6461. type NoMethod UpdateTableCellPropertiesRequest
  6462. raw := NoMethod(*s)
  6463. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6464. }
  6465. // UpdateTableColumnPropertiesRequest: Updates the properties of a Table
  6466. // column.
  6467. type UpdateTableColumnPropertiesRequest struct {
  6468. // ColumnIndices: The list of zero-based indices specifying which
  6469. // columns to update. If no
  6470. // indices are provided, all columns in the table will be updated.
  6471. ColumnIndices []int64 `json:"columnIndices,omitempty"`
  6472. // Fields: The fields that should be updated.
  6473. //
  6474. // At least one field must be specified. The root
  6475. // `tableColumnProperties` is
  6476. // implied and should not be specified. A single "*" can be used
  6477. // as
  6478. // short-hand for listing every field.
  6479. //
  6480. // For example to update the column width, set `fields` to
  6481. // "column_width".
  6482. //
  6483. // If '"column_width"' is included in the field mask but the property is
  6484. // left
  6485. // unset, the column width will default to 406,400 EMU (32 points).
  6486. Fields string `json:"fields,omitempty"`
  6487. // ObjectId: The object ID of the table.
  6488. ObjectId string `json:"objectId,omitempty"`
  6489. // TableColumnProperties: The table column properties to update.
  6490. //
  6491. // If the value of `table_column_properties#column_width` in the request
  6492. // is
  6493. // less than 406,400 EMU (32 points), a 400 bad request error is
  6494. // returned.
  6495. TableColumnProperties *TableColumnProperties `json:"tableColumnProperties,omitempty"`
  6496. // ForceSendFields is a list of field names (e.g. "ColumnIndices") to
  6497. // unconditionally include in API requests. By default, fields with
  6498. // empty values are omitted from API requests. However, any non-pointer,
  6499. // non-interface field appearing in ForceSendFields will be sent to the
  6500. // server regardless of whether the field is empty or not. This may be
  6501. // used to include empty fields in Patch requests.
  6502. ForceSendFields []string `json:"-"`
  6503. // NullFields is a list of field names (e.g. "ColumnIndices") to include
  6504. // in API requests with the JSON null value. By default, fields with
  6505. // empty values are omitted from API requests. However, any field with
  6506. // an empty value appearing in NullFields will be sent to the server as
  6507. // null. It is an error if a field in this list has a non-empty value.
  6508. // This may be used to include null fields in Patch requests.
  6509. NullFields []string `json:"-"`
  6510. }
  6511. func (s *UpdateTableColumnPropertiesRequest) MarshalJSON() ([]byte, error) {
  6512. type NoMethod UpdateTableColumnPropertiesRequest
  6513. raw := NoMethod(*s)
  6514. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6515. }
  6516. // UpdateTableRowPropertiesRequest: Updates the properties of a Table
  6517. // row.
  6518. type UpdateTableRowPropertiesRequest struct {
  6519. // Fields: The fields that should be updated.
  6520. //
  6521. // At least one field must be specified. The root `tableRowProperties`
  6522. // is
  6523. // implied and should not be specified. A single "*" can be used
  6524. // as
  6525. // short-hand for listing every field.
  6526. //
  6527. // For example to update the minimum row height, set `fields`
  6528. // to
  6529. // "min_row_height".
  6530. //
  6531. // If '"min_row_height"' is included in the field mask but the property
  6532. // is
  6533. // left unset, the minimum row height will default to 0.
  6534. Fields string `json:"fields,omitempty"`
  6535. // ObjectId: The object ID of the table.
  6536. ObjectId string `json:"objectId,omitempty"`
  6537. // RowIndices: The list of zero-based indices specifying which rows to
  6538. // update. If no
  6539. // indices are provided, all rows in the table will be updated.
  6540. RowIndices []int64 `json:"rowIndices,omitempty"`
  6541. // TableRowProperties: The table row properties to update.
  6542. TableRowProperties *TableRowProperties `json:"tableRowProperties,omitempty"`
  6543. // ForceSendFields is a list of field names (e.g. "Fields") to
  6544. // unconditionally include in API requests. By default, fields with
  6545. // empty values are omitted from API requests. However, any non-pointer,
  6546. // non-interface field appearing in ForceSendFields will be sent to the
  6547. // server regardless of whether the field is empty or not. This may be
  6548. // used to include empty fields in Patch requests.
  6549. ForceSendFields []string `json:"-"`
  6550. // NullFields is a list of field names (e.g. "Fields") to include in API
  6551. // requests with the JSON null value. By default, fields with empty
  6552. // values are omitted from API requests. However, any field with an
  6553. // empty value appearing in NullFields will be sent to the server as
  6554. // null. It is an error if a field in this list has a non-empty value.
  6555. // This may be used to include null fields in Patch requests.
  6556. NullFields []string `json:"-"`
  6557. }
  6558. func (s *UpdateTableRowPropertiesRequest) MarshalJSON() ([]byte, error) {
  6559. type NoMethod UpdateTableRowPropertiesRequest
  6560. raw := NoMethod(*s)
  6561. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6562. }
  6563. // UpdateTextStyleRequest: Update the styling of text in a Shape
  6564. // or
  6565. // Table.
  6566. type UpdateTextStyleRequest struct {
  6567. // CellLocation: The location of the cell in the table containing the
  6568. // text to style. If
  6569. // `object_id` refers to a table, `cell_location` must have a
  6570. // value.
  6571. // Otherwise, it must not.
  6572. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  6573. // Fields: The fields that should be updated.
  6574. //
  6575. // At least one field must be specified. The root `style` is implied
  6576. // and
  6577. // should not be specified. A single "*" can be used as short-hand
  6578. // for
  6579. // listing every field.
  6580. //
  6581. // For example, to update the text style to bold, set `fields` to
  6582. // "bold".
  6583. //
  6584. // To reset a property to its default value, include its field name in
  6585. // the
  6586. // field mask but leave the field itself unset.
  6587. Fields string `json:"fields,omitempty"`
  6588. // ObjectId: The object ID of the shape or table with the text to be
  6589. // styled.
  6590. ObjectId string `json:"objectId,omitempty"`
  6591. // Style: The style(s) to set on the text.
  6592. //
  6593. // If the value for a particular style matches that of the parent, that
  6594. // style
  6595. // will be set to inherit.
  6596. //
  6597. // Certain text style changes may cause other changes meant to mirror
  6598. // the
  6599. // behavior of the Slides editor. See the documentation of
  6600. // TextStyle for more information.
  6601. Style *TextStyle `json:"style,omitempty"`
  6602. // TextRange: The range of text to style.
  6603. //
  6604. // The range may be extended to include adjacent newlines.
  6605. //
  6606. // If the range fully contains a paragraph belonging to a list,
  6607. // the
  6608. // paragraph's bullet is also updated with the matching text style.
  6609. TextRange *Range `json:"textRange,omitempty"`
  6610. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  6611. // unconditionally include in API requests. By default, fields with
  6612. // empty values are omitted from API requests. However, any non-pointer,
  6613. // non-interface field appearing in ForceSendFields will be sent to the
  6614. // server regardless of whether the field is empty or not. This may be
  6615. // used to include empty fields in Patch requests.
  6616. ForceSendFields []string `json:"-"`
  6617. // NullFields is a list of field names (e.g. "CellLocation") to include
  6618. // in API requests with the JSON null value. By default, fields with
  6619. // empty values are omitted from API requests. However, any field with
  6620. // an empty value appearing in NullFields will be sent to the server as
  6621. // null. It is an error if a field in this list has a non-empty value.
  6622. // This may be used to include null fields in Patch requests.
  6623. NullFields []string `json:"-"`
  6624. }
  6625. func (s *UpdateTextStyleRequest) MarshalJSON() ([]byte, error) {
  6626. type NoMethod UpdateTextStyleRequest
  6627. raw := NoMethod(*s)
  6628. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6629. }
  6630. // UpdateVideoPropertiesRequest: Update the properties of a Video.
  6631. type UpdateVideoPropertiesRequest struct {
  6632. // Fields: The fields that should be updated.
  6633. //
  6634. // At least one field must be specified. The root `videoProperties`
  6635. // is
  6636. // implied and should not be specified. A single "*" can be used
  6637. // as
  6638. // short-hand for listing every field.
  6639. //
  6640. // For example to update the video outline color, set `fields`
  6641. // to
  6642. // "outline.outlineFill.solidFill.color".
  6643. //
  6644. // To reset a property to its default value, include its field name in
  6645. // the
  6646. // field mask but leave the field itself unset.
  6647. Fields string `json:"fields,omitempty"`
  6648. // ObjectId: The object ID of the video the updates are applied to.
  6649. ObjectId string `json:"objectId,omitempty"`
  6650. // VideoProperties: The video properties to update.
  6651. VideoProperties *VideoProperties `json:"videoProperties,omitempty"`
  6652. // ForceSendFields is a list of field names (e.g. "Fields") to
  6653. // unconditionally include in API requests. By default, fields with
  6654. // empty values are omitted from API requests. However, any non-pointer,
  6655. // non-interface field appearing in ForceSendFields will be sent to the
  6656. // server regardless of whether the field is empty or not. This may be
  6657. // used to include empty fields in Patch requests.
  6658. ForceSendFields []string `json:"-"`
  6659. // NullFields is a list of field names (e.g. "Fields") to include in API
  6660. // requests with the JSON null value. By default, fields with empty
  6661. // values are omitted from API requests. However, any field with an
  6662. // empty value appearing in NullFields will be sent to the server as
  6663. // null. It is an error if a field in this list has a non-empty value.
  6664. // This may be used to include null fields in Patch requests.
  6665. NullFields []string `json:"-"`
  6666. }
  6667. func (s *UpdateVideoPropertiesRequest) MarshalJSON() ([]byte, error) {
  6668. type NoMethod UpdateVideoPropertiesRequest
  6669. raw := NoMethod(*s)
  6670. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6671. }
  6672. // Video: A PageElement kind representing a
  6673. // video.
  6674. type Video struct {
  6675. // Id: The video source's unique identifier for this video.
  6676. Id string `json:"id,omitempty"`
  6677. // Source: The video source.
  6678. //
  6679. // Possible values:
  6680. // "SOURCE_UNSPECIFIED" - The video source is unspecified.
  6681. // "YOUTUBE" - The video source is YouTube.
  6682. // "DRIVE" - The video source is Drive.
  6683. Source string `json:"source,omitempty"`
  6684. // Url: An URL to a video. The URL is valid as long as the source video
  6685. // exists and
  6686. // sharing settings do not change.
  6687. Url string `json:"url,omitempty"`
  6688. // VideoProperties: The properties of the video.
  6689. VideoProperties *VideoProperties `json:"videoProperties,omitempty"`
  6690. // ForceSendFields is a list of field names (e.g. "Id") to
  6691. // unconditionally include in API requests. By default, fields with
  6692. // empty values are omitted from API requests. However, any non-pointer,
  6693. // non-interface field appearing in ForceSendFields will be sent to the
  6694. // server regardless of whether the field is empty or not. This may be
  6695. // used to include empty fields in Patch requests.
  6696. ForceSendFields []string `json:"-"`
  6697. // NullFields is a list of field names (e.g. "Id") to include in API
  6698. // requests with the JSON null value. By default, fields with empty
  6699. // values are omitted from API requests. However, any field with an
  6700. // empty value appearing in NullFields will be sent to the server as
  6701. // null. It is an error if a field in this list has a non-empty value.
  6702. // This may be used to include null fields in Patch requests.
  6703. NullFields []string `json:"-"`
  6704. }
  6705. func (s *Video) MarshalJSON() ([]byte, error) {
  6706. type NoMethod Video
  6707. raw := NoMethod(*s)
  6708. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6709. }
  6710. // VideoProperties: The properties of the Video.
  6711. type VideoProperties struct {
  6712. // AutoPlay: Whether to enable video autoplay when the page is displayed
  6713. // in present
  6714. // mode. Defaults to false.
  6715. AutoPlay bool `json:"autoPlay,omitempty"`
  6716. // End: The time at which to end playback, measured in seconds from the
  6717. // beginning
  6718. // of the video.
  6719. // If set, the end time should be after the start time.
  6720. // If not set or if you set this to a value that exceeds the video's
  6721. // length,
  6722. // the video will be played until its end.
  6723. End int64 `json:"end,omitempty"`
  6724. // Mute: Whether to mute the audio during video playback. Defaults to
  6725. // false.
  6726. Mute bool `json:"mute,omitempty"`
  6727. // Outline: The outline of the video. The default outline matches the
  6728. // defaults for new
  6729. // videos created in the Slides editor.
  6730. Outline *Outline `json:"outline,omitempty"`
  6731. // Start: The time at which to start playback, measured in seconds from
  6732. // the beginning
  6733. // of the video.
  6734. // If set, the start time should be before the end time.
  6735. // If you set this to a value that exceeds the video's length in
  6736. // seconds, the
  6737. // video will be played from the last second.
  6738. // If not set, the video will be played from the beginning.
  6739. Start int64 `json:"start,omitempty"`
  6740. // ForceSendFields is a list of field names (e.g. "AutoPlay") to
  6741. // unconditionally include in API requests. By default, fields with
  6742. // empty values are omitted from API requests. However, any non-pointer,
  6743. // non-interface field appearing in ForceSendFields will be sent to the
  6744. // server regardless of whether the field is empty or not. This may be
  6745. // used to include empty fields in Patch requests.
  6746. ForceSendFields []string `json:"-"`
  6747. // NullFields is a list of field names (e.g. "AutoPlay") to include in
  6748. // API requests with the JSON null value. By default, fields with empty
  6749. // values are omitted from API requests. However, any field with an
  6750. // empty value appearing in NullFields will be sent to the server as
  6751. // null. It is an error if a field in this list has a non-empty value.
  6752. // This may be used to include null fields in Patch requests.
  6753. NullFields []string `json:"-"`
  6754. }
  6755. func (s *VideoProperties) MarshalJSON() ([]byte, error) {
  6756. type NoMethod VideoProperties
  6757. raw := NoMethod(*s)
  6758. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6759. }
  6760. // WeightedFontFamily: Represents a font family and weight used to style
  6761. // a TextRun.
  6762. type WeightedFontFamily struct {
  6763. // FontFamily: The font family of the text.
  6764. //
  6765. // The font family can be any font from the Font menu in Slides or
  6766. // from
  6767. // [Google Fonts] (https://fonts.google.com/). If the font name
  6768. // is
  6769. // unrecognized, the text is rendered in `Arial`.
  6770. FontFamily string `json:"fontFamily,omitempty"`
  6771. // Weight: The rendered weight of the text. This field can have any
  6772. // value that is a
  6773. // multiple of `100` between `100` and `900`, inclusive. This
  6774. // range
  6775. // corresponds to the numerical values described in the CSS
  6776. // 2.1
  6777. // Specification, [section
  6778. // 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-boldness),
  6779. // with non-numerical values disallowed. Weights greater than or equal
  6780. // to
  6781. // `700` are considered bold, and weights less than `700`are not bold.
  6782. // The
  6783. // default value is `400` ("normal").
  6784. Weight int64 `json:"weight,omitempty"`
  6785. // ForceSendFields is a list of field names (e.g. "FontFamily") to
  6786. // unconditionally include in API requests. By default, fields with
  6787. // empty values are omitted from API requests. However, any non-pointer,
  6788. // non-interface field appearing in ForceSendFields will be sent to the
  6789. // server regardless of whether the field is empty or not. This may be
  6790. // used to include empty fields in Patch requests.
  6791. ForceSendFields []string `json:"-"`
  6792. // NullFields is a list of field names (e.g. "FontFamily") to include in
  6793. // API requests with the JSON null value. By default, fields with empty
  6794. // values are omitted from API requests. However, any field with an
  6795. // empty value appearing in NullFields will be sent to the server as
  6796. // null. It is an error if a field in this list has a non-empty value.
  6797. // This may be used to include null fields in Patch requests.
  6798. NullFields []string `json:"-"`
  6799. }
  6800. func (s *WeightedFontFamily) MarshalJSON() ([]byte, error) {
  6801. type NoMethod WeightedFontFamily
  6802. raw := NoMethod(*s)
  6803. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6804. }
  6805. // WordArt: A PageElement kind representing
  6806. // word art.
  6807. type WordArt struct {
  6808. // RenderedText: The text rendered as word art.
  6809. RenderedText string `json:"renderedText,omitempty"`
  6810. // ForceSendFields is a list of field names (e.g. "RenderedText") to
  6811. // unconditionally include in API requests. By default, fields with
  6812. // empty values are omitted from API requests. However, any non-pointer,
  6813. // non-interface field appearing in ForceSendFields will be sent to the
  6814. // server regardless of whether the field is empty or not. This may be
  6815. // used to include empty fields in Patch requests.
  6816. ForceSendFields []string `json:"-"`
  6817. // NullFields is a list of field names (e.g. "RenderedText") to include
  6818. // in API requests with the JSON null value. By default, fields with
  6819. // empty values are omitted from API requests. However, any field with
  6820. // an empty value appearing in NullFields will be sent to the server as
  6821. // null. It is an error if a field in this list has a non-empty value.
  6822. // This may be used to include null fields in Patch requests.
  6823. NullFields []string `json:"-"`
  6824. }
  6825. func (s *WordArt) MarshalJSON() ([]byte, error) {
  6826. type NoMethod WordArt
  6827. raw := NoMethod(*s)
  6828. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6829. }
  6830. // WriteControl: Provides control over how write requests are executed.
  6831. type WriteControl struct {
  6832. // RequiredRevisionId: The revision ID of the presentation required for
  6833. // the write request. If
  6834. // specified and the `required_revision_id` doesn't exactly match
  6835. // the
  6836. // presentation's current `revision_id`, the request will not be
  6837. // processed and
  6838. // will return a 400 bad request error.
  6839. RequiredRevisionId string `json:"requiredRevisionId,omitempty"`
  6840. // ForceSendFields is a list of field names (e.g. "RequiredRevisionId")
  6841. // to unconditionally include in API requests. By default, fields with
  6842. // empty values are omitted from API requests. However, any non-pointer,
  6843. // non-interface field appearing in ForceSendFields will be sent to the
  6844. // server regardless of whether the field is empty or not. This may be
  6845. // used to include empty fields in Patch requests.
  6846. ForceSendFields []string `json:"-"`
  6847. // NullFields is a list of field names (e.g. "RequiredRevisionId") to
  6848. // include in API requests with the JSON null value. By default, fields
  6849. // with empty values are omitted from API requests. However, any field
  6850. // with an empty value appearing in NullFields will be sent to the
  6851. // server as null. It is an error if a field in this list has a
  6852. // non-empty value. This may be used to include null fields in Patch
  6853. // requests.
  6854. NullFields []string `json:"-"`
  6855. }
  6856. func (s *WriteControl) MarshalJSON() ([]byte, error) {
  6857. type NoMethod WriteControl
  6858. raw := NoMethod(*s)
  6859. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6860. }
  6861. // method id "slides.presentations.batchUpdate":
  6862. type PresentationsBatchUpdateCall struct {
  6863. s *Service
  6864. presentationId string
  6865. batchupdatepresentationrequest *BatchUpdatePresentationRequest
  6866. urlParams_ gensupport.URLParams
  6867. ctx_ context.Context
  6868. header_ http.Header
  6869. }
  6870. // BatchUpdate: Applies one or more updates to the presentation.
  6871. //
  6872. // Each request is validated before
  6873. // being applied. If any request is not valid, then the entire request
  6874. // will
  6875. // fail and nothing will be applied.
  6876. //
  6877. // Some requests have replies to
  6878. // give you some information about how they are applied. Other requests
  6879. // do
  6880. // not need to return information; these each return an empty reply.
  6881. // The order of replies matches that of the requests.
  6882. //
  6883. // For example, suppose you call batchUpdate with four updates, and only
  6884. // the
  6885. // third one returns information. The response would have two empty
  6886. // replies:
  6887. // the reply to the third request, and another empty reply, in that
  6888. // order.
  6889. //
  6890. // Because other users may be editing the presentation, the
  6891. // presentation
  6892. // might not exactly reflect your changes: your changes may
  6893. // be altered with respect to collaborator changes. If there are
  6894. // no
  6895. // collaborators, the presentation should reflect your changes. In any
  6896. // case,
  6897. // the updates in your request are guaranteed to be applied
  6898. // together
  6899. // atomically.
  6900. func (r *PresentationsService) BatchUpdate(presentationId string, batchupdatepresentationrequest *BatchUpdatePresentationRequest) *PresentationsBatchUpdateCall {
  6901. c := &PresentationsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6902. c.presentationId = presentationId
  6903. c.batchupdatepresentationrequest = batchupdatepresentationrequest
  6904. return c
  6905. }
  6906. // Fields allows partial responses to be retrieved. See
  6907. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6908. // for more information.
  6909. func (c *PresentationsBatchUpdateCall) Fields(s ...googleapi.Field) *PresentationsBatchUpdateCall {
  6910. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6911. return c
  6912. }
  6913. // Context sets the context to be used in this call's Do method. Any
  6914. // pending HTTP request will be aborted if the provided context is
  6915. // canceled.
  6916. func (c *PresentationsBatchUpdateCall) Context(ctx context.Context) *PresentationsBatchUpdateCall {
  6917. c.ctx_ = ctx
  6918. return c
  6919. }
  6920. // Header returns an http.Header that can be modified by the caller to
  6921. // add HTTP headers to the request.
  6922. func (c *PresentationsBatchUpdateCall) Header() http.Header {
  6923. if c.header_ == nil {
  6924. c.header_ = make(http.Header)
  6925. }
  6926. return c.header_
  6927. }
  6928. func (c *PresentationsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
  6929. reqHeaders := make(http.Header)
  6930. for k, v := range c.header_ {
  6931. reqHeaders[k] = v
  6932. }
  6933. reqHeaders.Set("User-Agent", c.s.userAgent())
  6934. var body io.Reader = nil
  6935. body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchupdatepresentationrequest)
  6936. if err != nil {
  6937. return nil, err
  6938. }
  6939. reqHeaders.Set("Content-Type", "application/json")
  6940. c.urlParams_.Set("alt", alt)
  6941. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations/{presentationId}:batchUpdate")
  6942. urls += "?" + c.urlParams_.Encode()
  6943. req, _ := http.NewRequest("POST", urls, body)
  6944. req.Header = reqHeaders
  6945. googleapi.Expand(req.URL, map[string]string{
  6946. "presentationId": c.presentationId,
  6947. })
  6948. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6949. }
  6950. // Do executes the "slides.presentations.batchUpdate" call.
  6951. // Exactly one of *BatchUpdatePresentationResponse or error will be
  6952. // non-nil. Any non-2xx status code is an error. Response headers are in
  6953. // either *BatchUpdatePresentationResponse.ServerResponse.Header or (if
  6954. // a response was returned at all) in error.(*googleapi.Error).Header.
  6955. // Use googleapi.IsNotModified to check whether the returned error was
  6956. // because http.StatusNotModified was returned.
  6957. func (c *PresentationsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdatePresentationResponse, error) {
  6958. gensupport.SetOptions(c.urlParams_, opts...)
  6959. res, err := c.doRequest("json")
  6960. if res != nil && res.StatusCode == http.StatusNotModified {
  6961. if res.Body != nil {
  6962. res.Body.Close()
  6963. }
  6964. return nil, &googleapi.Error{
  6965. Code: res.StatusCode,
  6966. Header: res.Header,
  6967. }
  6968. }
  6969. if err != nil {
  6970. return nil, err
  6971. }
  6972. defer googleapi.CloseBody(res)
  6973. if err := googleapi.CheckResponse(res); err != nil {
  6974. return nil, err
  6975. }
  6976. ret := &BatchUpdatePresentationResponse{
  6977. ServerResponse: googleapi.ServerResponse{
  6978. Header: res.Header,
  6979. HTTPStatusCode: res.StatusCode,
  6980. },
  6981. }
  6982. target := &ret
  6983. if err := gensupport.DecodeResponse(target, res); err != nil {
  6984. return nil, err
  6985. }
  6986. return ret, nil
  6987. // {
  6988. // "description": "Applies one or more updates to the presentation.\n\nEach request is validated before\nbeing applied. If any request is not valid, then the entire request will\nfail and nothing will be applied.\n\nSome requests have replies to\ngive you some information about how they are applied. Other requests do\nnot need to return information; these each return an empty reply.\nThe order of replies matches that of the requests.\n\nFor example, suppose you call batchUpdate with four updates, and only the\nthird one returns information. The response would have two empty replies:\nthe reply to the third request, and another empty reply, in that order.\n\nBecause other users may be editing the presentation, the presentation\nmight not exactly reflect your changes: your changes may\nbe altered with respect to collaborator changes. If there are no\ncollaborators, the presentation should reflect your changes. In any case,\nthe updates in your request are guaranteed to be applied together\natomically.",
  6989. // "flatPath": "v1/presentations/{presentationId}:batchUpdate",
  6990. // "httpMethod": "POST",
  6991. // "id": "slides.presentations.batchUpdate",
  6992. // "parameterOrder": [
  6993. // "presentationId"
  6994. // ],
  6995. // "parameters": {
  6996. // "presentationId": {
  6997. // "description": "The presentation to apply the updates to.",
  6998. // "location": "path",
  6999. // "required": true,
  7000. // "type": "string"
  7001. // }
  7002. // },
  7003. // "path": "v1/presentations/{presentationId}:batchUpdate",
  7004. // "request": {
  7005. // "$ref": "BatchUpdatePresentationRequest"
  7006. // },
  7007. // "response": {
  7008. // "$ref": "BatchUpdatePresentationResponse"
  7009. // },
  7010. // "scopes": [
  7011. // "https://www.googleapis.com/auth/drive",
  7012. // "https://www.googleapis.com/auth/drive.file",
  7013. // "https://www.googleapis.com/auth/drive.readonly",
  7014. // "https://www.googleapis.com/auth/presentations",
  7015. // "https://www.googleapis.com/auth/spreadsheets",
  7016. // "https://www.googleapis.com/auth/spreadsheets.readonly"
  7017. // ]
  7018. // }
  7019. }
  7020. // method id "slides.presentations.create":
  7021. type PresentationsCreateCall struct {
  7022. s *Service
  7023. presentation *Presentation
  7024. urlParams_ gensupport.URLParams
  7025. ctx_ context.Context
  7026. header_ http.Header
  7027. }
  7028. // Create: Creates a new presentation using the title given in the
  7029. // request. If a
  7030. // presentationId is provided, uses it as the ID of the new
  7031. // presentation.
  7032. // Otherwise, a new presentationId is generated.
  7033. // Returns the created presentation.
  7034. func (r *PresentationsService) Create(presentation *Presentation) *PresentationsCreateCall {
  7035. c := &PresentationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7036. c.presentation = presentation
  7037. return c
  7038. }
  7039. // Fields allows partial responses to be retrieved. See
  7040. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7041. // for more information.
  7042. func (c *PresentationsCreateCall) Fields(s ...googleapi.Field) *PresentationsCreateCall {
  7043. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7044. return c
  7045. }
  7046. // Context sets the context to be used in this call's Do method. Any
  7047. // pending HTTP request will be aborted if the provided context is
  7048. // canceled.
  7049. func (c *PresentationsCreateCall) Context(ctx context.Context) *PresentationsCreateCall {
  7050. c.ctx_ = ctx
  7051. return c
  7052. }
  7053. // Header returns an http.Header that can be modified by the caller to
  7054. // add HTTP headers to the request.
  7055. func (c *PresentationsCreateCall) Header() http.Header {
  7056. if c.header_ == nil {
  7057. c.header_ = make(http.Header)
  7058. }
  7059. return c.header_
  7060. }
  7061. func (c *PresentationsCreateCall) doRequest(alt string) (*http.Response, error) {
  7062. reqHeaders := make(http.Header)
  7063. for k, v := range c.header_ {
  7064. reqHeaders[k] = v
  7065. }
  7066. reqHeaders.Set("User-Agent", c.s.userAgent())
  7067. var body io.Reader = nil
  7068. body, err := googleapi.WithoutDataWrapper.JSONReader(c.presentation)
  7069. if err != nil {
  7070. return nil, err
  7071. }
  7072. reqHeaders.Set("Content-Type", "application/json")
  7073. c.urlParams_.Set("alt", alt)
  7074. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations")
  7075. urls += "?" + c.urlParams_.Encode()
  7076. req, _ := http.NewRequest("POST", urls, body)
  7077. req.Header = reqHeaders
  7078. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7079. }
  7080. // Do executes the "slides.presentations.create" call.
  7081. // Exactly one of *Presentation or error will be non-nil. Any non-2xx
  7082. // status code is an error. Response headers are in either
  7083. // *Presentation.ServerResponse.Header or (if a response was returned at
  7084. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7085. // to check whether the returned error was because
  7086. // http.StatusNotModified was returned.
  7087. func (c *PresentationsCreateCall) Do(opts ...googleapi.CallOption) (*Presentation, error) {
  7088. gensupport.SetOptions(c.urlParams_, opts...)
  7089. res, err := c.doRequest("json")
  7090. if res != nil && res.StatusCode == http.StatusNotModified {
  7091. if res.Body != nil {
  7092. res.Body.Close()
  7093. }
  7094. return nil, &googleapi.Error{
  7095. Code: res.StatusCode,
  7096. Header: res.Header,
  7097. }
  7098. }
  7099. if err != nil {
  7100. return nil, err
  7101. }
  7102. defer googleapi.CloseBody(res)
  7103. if err := googleapi.CheckResponse(res); err != nil {
  7104. return nil, err
  7105. }
  7106. ret := &Presentation{
  7107. ServerResponse: googleapi.ServerResponse{
  7108. Header: res.Header,
  7109. HTTPStatusCode: res.StatusCode,
  7110. },
  7111. }
  7112. target := &ret
  7113. if err := gensupport.DecodeResponse(target, res); err != nil {
  7114. return nil, err
  7115. }
  7116. return ret, nil
  7117. // {
  7118. // "description": "Creates a new presentation using the title given in the request. If a\npresentationId is provided, uses it as the ID of the new presentation.\nOtherwise, a new presentationId is generated.\nReturns the created presentation.",
  7119. // "flatPath": "v1/presentations",
  7120. // "httpMethod": "POST",
  7121. // "id": "slides.presentations.create",
  7122. // "parameterOrder": [],
  7123. // "parameters": {},
  7124. // "path": "v1/presentations",
  7125. // "request": {
  7126. // "$ref": "Presentation"
  7127. // },
  7128. // "response": {
  7129. // "$ref": "Presentation"
  7130. // },
  7131. // "scopes": [
  7132. // "https://www.googleapis.com/auth/drive",
  7133. // "https://www.googleapis.com/auth/drive.file",
  7134. // "https://www.googleapis.com/auth/presentations"
  7135. // ]
  7136. // }
  7137. }
  7138. // method id "slides.presentations.get":
  7139. type PresentationsGetCall struct {
  7140. s *Service
  7141. presentationId string
  7142. urlParams_ gensupport.URLParams
  7143. ifNoneMatch_ string
  7144. ctx_ context.Context
  7145. header_ http.Header
  7146. }
  7147. // Get: Gets the latest version of the specified presentation.
  7148. func (r *PresentationsService) Get(presentationId string) *PresentationsGetCall {
  7149. c := &PresentationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7150. c.presentationId = presentationId
  7151. return c
  7152. }
  7153. // Fields allows partial responses to be retrieved. See
  7154. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7155. // for more information.
  7156. func (c *PresentationsGetCall) Fields(s ...googleapi.Field) *PresentationsGetCall {
  7157. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7158. return c
  7159. }
  7160. // IfNoneMatch sets the optional parameter which makes the operation
  7161. // fail if the object's ETag matches the given value. This is useful for
  7162. // getting updates only after the object has changed since the last
  7163. // request. Use googleapi.IsNotModified to check whether the response
  7164. // error from Do is the result of In-None-Match.
  7165. func (c *PresentationsGetCall) IfNoneMatch(entityTag string) *PresentationsGetCall {
  7166. c.ifNoneMatch_ = entityTag
  7167. return c
  7168. }
  7169. // Context sets the context to be used in this call's Do method. Any
  7170. // pending HTTP request will be aborted if the provided context is
  7171. // canceled.
  7172. func (c *PresentationsGetCall) Context(ctx context.Context) *PresentationsGetCall {
  7173. c.ctx_ = ctx
  7174. return c
  7175. }
  7176. // Header returns an http.Header that can be modified by the caller to
  7177. // add HTTP headers to the request.
  7178. func (c *PresentationsGetCall) Header() http.Header {
  7179. if c.header_ == nil {
  7180. c.header_ = make(http.Header)
  7181. }
  7182. return c.header_
  7183. }
  7184. func (c *PresentationsGetCall) doRequest(alt string) (*http.Response, error) {
  7185. reqHeaders := make(http.Header)
  7186. for k, v := range c.header_ {
  7187. reqHeaders[k] = v
  7188. }
  7189. reqHeaders.Set("User-Agent", c.s.userAgent())
  7190. if c.ifNoneMatch_ != "" {
  7191. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7192. }
  7193. var body io.Reader = nil
  7194. c.urlParams_.Set("alt", alt)
  7195. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations/{+presentationId}")
  7196. urls += "?" + c.urlParams_.Encode()
  7197. req, _ := http.NewRequest("GET", urls, body)
  7198. req.Header = reqHeaders
  7199. googleapi.Expand(req.URL, map[string]string{
  7200. "presentationId": c.presentationId,
  7201. })
  7202. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7203. }
  7204. // Do executes the "slides.presentations.get" call.
  7205. // Exactly one of *Presentation or error will be non-nil. Any non-2xx
  7206. // status code is an error. Response headers are in either
  7207. // *Presentation.ServerResponse.Header or (if a response was returned at
  7208. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7209. // to check whether the returned error was because
  7210. // http.StatusNotModified was returned.
  7211. func (c *PresentationsGetCall) Do(opts ...googleapi.CallOption) (*Presentation, error) {
  7212. gensupport.SetOptions(c.urlParams_, opts...)
  7213. res, err := c.doRequest("json")
  7214. if res != nil && res.StatusCode == http.StatusNotModified {
  7215. if res.Body != nil {
  7216. res.Body.Close()
  7217. }
  7218. return nil, &googleapi.Error{
  7219. Code: res.StatusCode,
  7220. Header: res.Header,
  7221. }
  7222. }
  7223. if err != nil {
  7224. return nil, err
  7225. }
  7226. defer googleapi.CloseBody(res)
  7227. if err := googleapi.CheckResponse(res); err != nil {
  7228. return nil, err
  7229. }
  7230. ret := &Presentation{
  7231. ServerResponse: googleapi.ServerResponse{
  7232. Header: res.Header,
  7233. HTTPStatusCode: res.StatusCode,
  7234. },
  7235. }
  7236. target := &ret
  7237. if err := gensupport.DecodeResponse(target, res); err != nil {
  7238. return nil, err
  7239. }
  7240. return ret, nil
  7241. // {
  7242. // "description": "Gets the latest version of the specified presentation.",
  7243. // "flatPath": "v1/presentations/{presentationsId}",
  7244. // "httpMethod": "GET",
  7245. // "id": "slides.presentations.get",
  7246. // "parameterOrder": [
  7247. // "presentationId"
  7248. // ],
  7249. // "parameters": {
  7250. // "presentationId": {
  7251. // "description": "The ID of the presentation to retrieve.",
  7252. // "location": "path",
  7253. // "pattern": "^[^/]+$",
  7254. // "required": true,
  7255. // "type": "string"
  7256. // }
  7257. // },
  7258. // "path": "v1/presentations/{+presentationId}",
  7259. // "response": {
  7260. // "$ref": "Presentation"
  7261. // },
  7262. // "scopes": [
  7263. // "https://www.googleapis.com/auth/drive",
  7264. // "https://www.googleapis.com/auth/drive.file",
  7265. // "https://www.googleapis.com/auth/drive.readonly",
  7266. // "https://www.googleapis.com/auth/presentations",
  7267. // "https://www.googleapis.com/auth/presentations.readonly"
  7268. // ]
  7269. // }
  7270. }
  7271. // method id "slides.presentations.pages.get":
  7272. type PresentationsPagesGetCall struct {
  7273. s *Service
  7274. presentationId string
  7275. pageObjectId string
  7276. urlParams_ gensupport.URLParams
  7277. ifNoneMatch_ string
  7278. ctx_ context.Context
  7279. header_ http.Header
  7280. }
  7281. // Get: Gets the latest version of the specified page in the
  7282. // presentation.
  7283. func (r *PresentationsPagesService) Get(presentationId string, pageObjectId string) *PresentationsPagesGetCall {
  7284. c := &PresentationsPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7285. c.presentationId = presentationId
  7286. c.pageObjectId = pageObjectId
  7287. return c
  7288. }
  7289. // Fields allows partial responses to be retrieved. See
  7290. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7291. // for more information.
  7292. func (c *PresentationsPagesGetCall) Fields(s ...googleapi.Field) *PresentationsPagesGetCall {
  7293. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7294. return c
  7295. }
  7296. // IfNoneMatch sets the optional parameter which makes the operation
  7297. // fail if the object's ETag matches the given value. This is useful for
  7298. // getting updates only after the object has changed since the last
  7299. // request. Use googleapi.IsNotModified to check whether the response
  7300. // error from Do is the result of In-None-Match.
  7301. func (c *PresentationsPagesGetCall) IfNoneMatch(entityTag string) *PresentationsPagesGetCall {
  7302. c.ifNoneMatch_ = entityTag
  7303. return c
  7304. }
  7305. // Context sets the context to be used in this call's Do method. Any
  7306. // pending HTTP request will be aborted if the provided context is
  7307. // canceled.
  7308. func (c *PresentationsPagesGetCall) Context(ctx context.Context) *PresentationsPagesGetCall {
  7309. c.ctx_ = ctx
  7310. return c
  7311. }
  7312. // Header returns an http.Header that can be modified by the caller to
  7313. // add HTTP headers to the request.
  7314. func (c *PresentationsPagesGetCall) Header() http.Header {
  7315. if c.header_ == nil {
  7316. c.header_ = make(http.Header)
  7317. }
  7318. return c.header_
  7319. }
  7320. func (c *PresentationsPagesGetCall) doRequest(alt string) (*http.Response, error) {
  7321. reqHeaders := make(http.Header)
  7322. for k, v := range c.header_ {
  7323. reqHeaders[k] = v
  7324. }
  7325. reqHeaders.Set("User-Agent", c.s.userAgent())
  7326. if c.ifNoneMatch_ != "" {
  7327. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7328. }
  7329. var body io.Reader = nil
  7330. c.urlParams_.Set("alt", alt)
  7331. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations/{presentationId}/pages/{pageObjectId}")
  7332. urls += "?" + c.urlParams_.Encode()
  7333. req, _ := http.NewRequest("GET", urls, body)
  7334. req.Header = reqHeaders
  7335. googleapi.Expand(req.URL, map[string]string{
  7336. "presentationId": c.presentationId,
  7337. "pageObjectId": c.pageObjectId,
  7338. })
  7339. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7340. }
  7341. // Do executes the "slides.presentations.pages.get" call.
  7342. // Exactly one of *Page or error will be non-nil. Any non-2xx status
  7343. // code is an error. Response headers are in either
  7344. // *Page.ServerResponse.Header or (if a response was returned at all) in
  7345. // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7346. // whether the returned error was because http.StatusNotModified was
  7347. // returned.
  7348. func (c *PresentationsPagesGetCall) Do(opts ...googleapi.CallOption) (*Page, error) {
  7349. gensupport.SetOptions(c.urlParams_, opts...)
  7350. res, err := c.doRequest("json")
  7351. if res != nil && res.StatusCode == http.StatusNotModified {
  7352. if res.Body != nil {
  7353. res.Body.Close()
  7354. }
  7355. return nil, &googleapi.Error{
  7356. Code: res.StatusCode,
  7357. Header: res.Header,
  7358. }
  7359. }
  7360. if err != nil {
  7361. return nil, err
  7362. }
  7363. defer googleapi.CloseBody(res)
  7364. if err := googleapi.CheckResponse(res); err != nil {
  7365. return nil, err
  7366. }
  7367. ret := &Page{
  7368. ServerResponse: googleapi.ServerResponse{
  7369. Header: res.Header,
  7370. HTTPStatusCode: res.StatusCode,
  7371. },
  7372. }
  7373. target := &ret
  7374. if err := gensupport.DecodeResponse(target, res); err != nil {
  7375. return nil, err
  7376. }
  7377. return ret, nil
  7378. // {
  7379. // "description": "Gets the latest version of the specified page in the presentation.",
  7380. // "flatPath": "v1/presentations/{presentationId}/pages/{pageObjectId}",
  7381. // "httpMethod": "GET",
  7382. // "id": "slides.presentations.pages.get",
  7383. // "parameterOrder": [
  7384. // "presentationId",
  7385. // "pageObjectId"
  7386. // ],
  7387. // "parameters": {
  7388. // "pageObjectId": {
  7389. // "description": "The object ID of the page to retrieve.",
  7390. // "location": "path",
  7391. // "required": true,
  7392. // "type": "string"
  7393. // },
  7394. // "presentationId": {
  7395. // "description": "The ID of the presentation to retrieve.",
  7396. // "location": "path",
  7397. // "required": true,
  7398. // "type": "string"
  7399. // }
  7400. // },
  7401. // "path": "v1/presentations/{presentationId}/pages/{pageObjectId}",
  7402. // "response": {
  7403. // "$ref": "Page"
  7404. // },
  7405. // "scopes": [
  7406. // "https://www.googleapis.com/auth/drive",
  7407. // "https://www.googleapis.com/auth/drive.file",
  7408. // "https://www.googleapis.com/auth/drive.readonly",
  7409. // "https://www.googleapis.com/auth/presentations",
  7410. // "https://www.googleapis.com/auth/presentations.readonly"
  7411. // ]
  7412. // }
  7413. }
  7414. // method id "slides.presentations.pages.getThumbnail":
  7415. type PresentationsPagesGetThumbnailCall struct {
  7416. s *Service
  7417. presentationId string
  7418. pageObjectId string
  7419. urlParams_ gensupport.URLParams
  7420. ifNoneMatch_ string
  7421. ctx_ context.Context
  7422. header_ http.Header
  7423. }
  7424. // GetThumbnail: Generates a thumbnail of the latest version of the
  7425. // specified page in the
  7426. // presentation and returns a URL to the thumbnail image.
  7427. //
  7428. // This request counts as an [expensive read request](/slides/limits)
  7429. // for
  7430. // quota purposes.
  7431. func (r *PresentationsPagesService) GetThumbnail(presentationId string, pageObjectId string) *PresentationsPagesGetThumbnailCall {
  7432. c := &PresentationsPagesGetThumbnailCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7433. c.presentationId = presentationId
  7434. c.pageObjectId = pageObjectId
  7435. return c
  7436. }
  7437. // ThumbnailPropertiesMimeType sets the optional parameter
  7438. // "thumbnailProperties.mimeType": The optional mime type of the
  7439. // thumbnail image.
  7440. //
  7441. // If you don't specify the mime type, the default mime type will be
  7442. // PNG.
  7443. //
  7444. // Possible values:
  7445. // "PNG"
  7446. func (c *PresentationsPagesGetThumbnailCall) ThumbnailPropertiesMimeType(thumbnailPropertiesMimeType string) *PresentationsPagesGetThumbnailCall {
  7447. c.urlParams_.Set("thumbnailProperties.mimeType", thumbnailPropertiesMimeType)
  7448. return c
  7449. }
  7450. // ThumbnailPropertiesThumbnailSize sets the optional parameter
  7451. // "thumbnailProperties.thumbnailSize": The optional thumbnail image
  7452. // size.
  7453. //
  7454. // If you don't specify the size, the server chooses a default size of
  7455. // the
  7456. // image.
  7457. //
  7458. // Possible values:
  7459. // "THUMBNAIL_SIZE_UNSPECIFIED"
  7460. // "LARGE"
  7461. func (c *PresentationsPagesGetThumbnailCall) ThumbnailPropertiesThumbnailSize(thumbnailPropertiesThumbnailSize string) *PresentationsPagesGetThumbnailCall {
  7462. c.urlParams_.Set("thumbnailProperties.thumbnailSize", thumbnailPropertiesThumbnailSize)
  7463. return c
  7464. }
  7465. // Fields allows partial responses to be retrieved. See
  7466. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7467. // for more information.
  7468. func (c *PresentationsPagesGetThumbnailCall) Fields(s ...googleapi.Field) *PresentationsPagesGetThumbnailCall {
  7469. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7470. return c
  7471. }
  7472. // IfNoneMatch sets the optional parameter which makes the operation
  7473. // fail if the object's ETag matches the given value. This is useful for
  7474. // getting updates only after the object has changed since the last
  7475. // request. Use googleapi.IsNotModified to check whether the response
  7476. // error from Do is the result of In-None-Match.
  7477. func (c *PresentationsPagesGetThumbnailCall) IfNoneMatch(entityTag string) *PresentationsPagesGetThumbnailCall {
  7478. c.ifNoneMatch_ = entityTag
  7479. return c
  7480. }
  7481. // Context sets the context to be used in this call's Do method. Any
  7482. // pending HTTP request will be aborted if the provided context is
  7483. // canceled.
  7484. func (c *PresentationsPagesGetThumbnailCall) Context(ctx context.Context) *PresentationsPagesGetThumbnailCall {
  7485. c.ctx_ = ctx
  7486. return c
  7487. }
  7488. // Header returns an http.Header that can be modified by the caller to
  7489. // add HTTP headers to the request.
  7490. func (c *PresentationsPagesGetThumbnailCall) Header() http.Header {
  7491. if c.header_ == nil {
  7492. c.header_ = make(http.Header)
  7493. }
  7494. return c.header_
  7495. }
  7496. func (c *PresentationsPagesGetThumbnailCall) doRequest(alt string) (*http.Response, error) {
  7497. reqHeaders := make(http.Header)
  7498. for k, v := range c.header_ {
  7499. reqHeaders[k] = v
  7500. }
  7501. reqHeaders.Set("User-Agent", c.s.userAgent())
  7502. if c.ifNoneMatch_ != "" {
  7503. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7504. }
  7505. var body io.Reader = nil
  7506. c.urlParams_.Set("alt", alt)
  7507. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail")
  7508. urls += "?" + c.urlParams_.Encode()
  7509. req, _ := http.NewRequest("GET", urls, body)
  7510. req.Header = reqHeaders
  7511. googleapi.Expand(req.URL, map[string]string{
  7512. "presentationId": c.presentationId,
  7513. "pageObjectId": c.pageObjectId,
  7514. })
  7515. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7516. }
  7517. // Do executes the "slides.presentations.pages.getThumbnail" call.
  7518. // Exactly one of *Thumbnail or error will be non-nil. Any non-2xx
  7519. // status code is an error. Response headers are in either
  7520. // *Thumbnail.ServerResponse.Header or (if a response was returned at
  7521. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7522. // to check whether the returned error was because
  7523. // http.StatusNotModified was returned.
  7524. func (c *PresentationsPagesGetThumbnailCall) Do(opts ...googleapi.CallOption) (*Thumbnail, error) {
  7525. gensupport.SetOptions(c.urlParams_, opts...)
  7526. res, err := c.doRequest("json")
  7527. if res != nil && res.StatusCode == http.StatusNotModified {
  7528. if res.Body != nil {
  7529. res.Body.Close()
  7530. }
  7531. return nil, &googleapi.Error{
  7532. Code: res.StatusCode,
  7533. Header: res.Header,
  7534. }
  7535. }
  7536. if err != nil {
  7537. return nil, err
  7538. }
  7539. defer googleapi.CloseBody(res)
  7540. if err := googleapi.CheckResponse(res); err != nil {
  7541. return nil, err
  7542. }
  7543. ret := &Thumbnail{
  7544. ServerResponse: googleapi.ServerResponse{
  7545. Header: res.Header,
  7546. HTTPStatusCode: res.StatusCode,
  7547. },
  7548. }
  7549. target := &ret
  7550. if err := gensupport.DecodeResponse(target, res); err != nil {
  7551. return nil, err
  7552. }
  7553. return ret, nil
  7554. // {
  7555. // "description": "Generates a thumbnail of the latest version of the specified page in the\npresentation and returns a URL to the thumbnail image.\n\nThis request counts as an [expensive read request](/slides/limits) for\nquota purposes.",
  7556. // "flatPath": "v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail",
  7557. // "httpMethod": "GET",
  7558. // "id": "slides.presentations.pages.getThumbnail",
  7559. // "parameterOrder": [
  7560. // "presentationId",
  7561. // "pageObjectId"
  7562. // ],
  7563. // "parameters": {
  7564. // "pageObjectId": {
  7565. // "description": "The object ID of the page whose thumbnail to retrieve.",
  7566. // "location": "path",
  7567. // "required": true,
  7568. // "type": "string"
  7569. // },
  7570. // "presentationId": {
  7571. // "description": "The ID of the presentation to retrieve.",
  7572. // "location": "path",
  7573. // "required": true,
  7574. // "type": "string"
  7575. // },
  7576. // "thumbnailProperties.mimeType": {
  7577. // "description": "The optional mime type of the thumbnail image.\n\nIf you don't specify the mime type, the default mime type will be PNG.",
  7578. // "enum": [
  7579. // "PNG"
  7580. // ],
  7581. // "location": "query",
  7582. // "type": "string"
  7583. // },
  7584. // "thumbnailProperties.thumbnailSize": {
  7585. // "description": "The optional thumbnail image size.\n\nIf you don't specify the size, the server chooses a default size of the\nimage.",
  7586. // "enum": [
  7587. // "THUMBNAIL_SIZE_UNSPECIFIED",
  7588. // "LARGE"
  7589. // ],
  7590. // "location": "query",
  7591. // "type": "string"
  7592. // }
  7593. // },
  7594. // "path": "v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail",
  7595. // "response": {
  7596. // "$ref": "Thumbnail"
  7597. // },
  7598. // "scopes": [
  7599. // "https://www.googleapis.com/auth/drive",
  7600. // "https://www.googleapis.com/auth/drive.file",
  7601. // "https://www.googleapis.com/auth/drive.readonly",
  7602. // "https://www.googleapis.com/auth/presentations",
  7603. // "https://www.googleapis.com/auth/presentations.readonly"
  7604. // ]
  7605. // }
  7606. }