All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.docs.v1.model.Request Maven / Gradle / Ivy

There is a newer version: v1-rev20240730-2.0.0
Show newest version
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.docs.v1.model;

/**
 * A single update to apply to a document.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Docs API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class Request extends com.google.api.client.json.GenericJson { /** * Creates a footer. * The value may be {@code null}. */ @com.google.api.client.util.Key private CreateFooterRequest createFooter; /** * Creates a footnote. * The value may be {@code null}. */ @com.google.api.client.util.Key private CreateFootnoteRequest createFootnote; /** * Creates a header. * The value may be {@code null}. */ @com.google.api.client.util.Key private CreateHeaderRequest createHeader; /** * Creates a named range. * The value may be {@code null}. */ @com.google.api.client.util.Key private CreateNamedRangeRequest createNamedRange; /** * Creates bullets for paragraphs. * The value may be {@code null}. */ @com.google.api.client.util.Key private CreateParagraphBulletsRequest createParagraphBullets; /** * Deletes content from the document. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeleteContentRangeRequest deleteContentRange; /** * Deletes a footer from the document. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeleteFooterRequest deleteFooter; /** * Deletes a header from the document. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeleteHeaderRequest deleteHeader; /** * Deletes a named range. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeleteNamedRangeRequest deleteNamedRange; /** * Deletes bullets from paragraphs. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeleteParagraphBulletsRequest deleteParagraphBullets; /** * Deletes a positioned object from the document. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeletePositionedObjectRequest deletePositionedObject; /** * Deletes a column from a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeleteTableColumnRequest deleteTableColumn; /** * Deletes a row from a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeleteTableRowRequest deleteTableRow; /** * Inserts an inline image at the specified location. * The value may be {@code null}. */ @com.google.api.client.util.Key private InsertInlineImageRequest insertInlineImage; /** * Inserts a page break at the specified location. * The value may be {@code null}. */ @com.google.api.client.util.Key private InsertPageBreakRequest insertPageBreak; /** * Inserts a section break at the specified location. * The value may be {@code null}. */ @com.google.api.client.util.Key private InsertSectionBreakRequest insertSectionBreak; /** * Inserts a table at the specified location. * The value may be {@code null}. */ @com.google.api.client.util.Key private InsertTableRequest insertTable; /** * Inserts an empty column into a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private InsertTableColumnRequest insertTableColumn; /** * Inserts an empty row into a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private InsertTableRowRequest insertTableRow; /** * Inserts text at the specified location. * The value may be {@code null}. */ @com.google.api.client.util.Key private InsertTextRequest insertText; /** * Merges cells in a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private MergeTableCellsRequest mergeTableCells; /** * Updates the number of pinned header rows in a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private PinTableHeaderRowsRequest pinTableHeaderRows; /** * Replaces all instances of the specified text. * The value may be {@code null}. */ @com.google.api.client.util.Key private ReplaceAllTextRequest replaceAllText; /** * Replaces an image in the document. * The value may be {@code null}. */ @com.google.api.client.util.Key private ReplaceImageRequest replaceImage; /** * Replaces the content in a named range. * The value may be {@code null}. */ @com.google.api.client.util.Key private ReplaceNamedRangeContentRequest replaceNamedRangeContent; /** * Unmerges cells in a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private UnmergeTableCellsRequest unmergeTableCells; /** * Updates the style of the document. * The value may be {@code null}. */ @com.google.api.client.util.Key private UpdateDocumentStyleRequest updateDocumentStyle; /** * Updates the paragraph style at the specified range. * The value may be {@code null}. */ @com.google.api.client.util.Key private UpdateParagraphStyleRequest updateParagraphStyle; /** * Updates the section style of the specified range. * The value may be {@code null}. */ @com.google.api.client.util.Key private UpdateSectionStyleRequest updateSectionStyle; /** * Updates the style of table cells. * The value may be {@code null}. */ @com.google.api.client.util.Key private UpdateTableCellStyleRequest updateTableCellStyle; /** * Updates the properties of columns in a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private UpdateTableColumnPropertiesRequest updateTableColumnProperties; /** * Updates the row style in a table. * The value may be {@code null}. */ @com.google.api.client.util.Key private UpdateTableRowStyleRequest updateTableRowStyle; /** * Updates the text style at the specified range. * The value may be {@code null}. */ @com.google.api.client.util.Key private UpdateTextStyleRequest updateTextStyle; /** * Creates a footer. * @return value or {@code null} for none */ public CreateFooterRequest getCreateFooter() { return createFooter; } /** * Creates a footer. * @param createFooter createFooter or {@code null} for none */ public Request setCreateFooter(CreateFooterRequest createFooter) { this.createFooter = createFooter; return this; } /** * Creates a footnote. * @return value or {@code null} for none */ public CreateFootnoteRequest getCreateFootnote() { return createFootnote; } /** * Creates a footnote. * @param createFootnote createFootnote or {@code null} for none */ public Request setCreateFootnote(CreateFootnoteRequest createFootnote) { this.createFootnote = createFootnote; return this; } /** * Creates a header. * @return value or {@code null} for none */ public CreateHeaderRequest getCreateHeader() { return createHeader; } /** * Creates a header. * @param createHeader createHeader or {@code null} for none */ public Request setCreateHeader(CreateHeaderRequest createHeader) { this.createHeader = createHeader; return this; } /** * Creates a named range. * @return value or {@code null} for none */ public CreateNamedRangeRequest getCreateNamedRange() { return createNamedRange; } /** * Creates a named range. * @param createNamedRange createNamedRange or {@code null} for none */ public Request setCreateNamedRange(CreateNamedRangeRequest createNamedRange) { this.createNamedRange = createNamedRange; return this; } /** * Creates bullets for paragraphs. * @return value or {@code null} for none */ public CreateParagraphBulletsRequest getCreateParagraphBullets() { return createParagraphBullets; } /** * Creates bullets for paragraphs. * @param createParagraphBullets createParagraphBullets or {@code null} for none */ public Request setCreateParagraphBullets(CreateParagraphBulletsRequest createParagraphBullets) { this.createParagraphBullets = createParagraphBullets; return this; } /** * Deletes content from the document. * @return value or {@code null} for none */ public DeleteContentRangeRequest getDeleteContentRange() { return deleteContentRange; } /** * Deletes content from the document. * @param deleteContentRange deleteContentRange or {@code null} for none */ public Request setDeleteContentRange(DeleteContentRangeRequest deleteContentRange) { this.deleteContentRange = deleteContentRange; return this; } /** * Deletes a footer from the document. * @return value or {@code null} for none */ public DeleteFooterRequest getDeleteFooter() { return deleteFooter; } /** * Deletes a footer from the document. * @param deleteFooter deleteFooter or {@code null} for none */ public Request setDeleteFooter(DeleteFooterRequest deleteFooter) { this.deleteFooter = deleteFooter; return this; } /** * Deletes a header from the document. * @return value or {@code null} for none */ public DeleteHeaderRequest getDeleteHeader() { return deleteHeader; } /** * Deletes a header from the document. * @param deleteHeader deleteHeader or {@code null} for none */ public Request setDeleteHeader(DeleteHeaderRequest deleteHeader) { this.deleteHeader = deleteHeader; return this; } /** * Deletes a named range. * @return value or {@code null} for none */ public DeleteNamedRangeRequest getDeleteNamedRange() { return deleteNamedRange; } /** * Deletes a named range. * @param deleteNamedRange deleteNamedRange or {@code null} for none */ public Request setDeleteNamedRange(DeleteNamedRangeRequest deleteNamedRange) { this.deleteNamedRange = deleteNamedRange; return this; } /** * Deletes bullets from paragraphs. * @return value or {@code null} for none */ public DeleteParagraphBulletsRequest getDeleteParagraphBullets() { return deleteParagraphBullets; } /** * Deletes bullets from paragraphs. * @param deleteParagraphBullets deleteParagraphBullets or {@code null} for none */ public Request setDeleteParagraphBullets(DeleteParagraphBulletsRequest deleteParagraphBullets) { this.deleteParagraphBullets = deleteParagraphBullets; return this; } /** * Deletes a positioned object from the document. * @return value or {@code null} for none */ public DeletePositionedObjectRequest getDeletePositionedObject() { return deletePositionedObject; } /** * Deletes a positioned object from the document. * @param deletePositionedObject deletePositionedObject or {@code null} for none */ public Request setDeletePositionedObject(DeletePositionedObjectRequest deletePositionedObject) { this.deletePositionedObject = deletePositionedObject; return this; } /** * Deletes a column from a table. * @return value or {@code null} for none */ public DeleteTableColumnRequest getDeleteTableColumn() { return deleteTableColumn; } /** * Deletes a column from a table. * @param deleteTableColumn deleteTableColumn or {@code null} for none */ public Request setDeleteTableColumn(DeleteTableColumnRequest deleteTableColumn) { this.deleteTableColumn = deleteTableColumn; return this; } /** * Deletes a row from a table. * @return value or {@code null} for none */ public DeleteTableRowRequest getDeleteTableRow() { return deleteTableRow; } /** * Deletes a row from a table. * @param deleteTableRow deleteTableRow or {@code null} for none */ public Request setDeleteTableRow(DeleteTableRowRequest deleteTableRow) { this.deleteTableRow = deleteTableRow; return this; } /** * Inserts an inline image at the specified location. * @return value or {@code null} for none */ public InsertInlineImageRequest getInsertInlineImage() { return insertInlineImage; } /** * Inserts an inline image at the specified location. * @param insertInlineImage insertInlineImage or {@code null} for none */ public Request setInsertInlineImage(InsertInlineImageRequest insertInlineImage) { this.insertInlineImage = insertInlineImage; return this; } /** * Inserts a page break at the specified location. * @return value or {@code null} for none */ public InsertPageBreakRequest getInsertPageBreak() { return insertPageBreak; } /** * Inserts a page break at the specified location. * @param insertPageBreak insertPageBreak or {@code null} for none */ public Request setInsertPageBreak(InsertPageBreakRequest insertPageBreak) { this.insertPageBreak = insertPageBreak; return this; } /** * Inserts a section break at the specified location. * @return value or {@code null} for none */ public InsertSectionBreakRequest getInsertSectionBreak() { return insertSectionBreak; } /** * Inserts a section break at the specified location. * @param insertSectionBreak insertSectionBreak or {@code null} for none */ public Request setInsertSectionBreak(InsertSectionBreakRequest insertSectionBreak) { this.insertSectionBreak = insertSectionBreak; return this; } /** * Inserts a table at the specified location. * @return value or {@code null} for none */ public InsertTableRequest getInsertTable() { return insertTable; } /** * Inserts a table at the specified location. * @param insertTable insertTable or {@code null} for none */ public Request setInsertTable(InsertTableRequest insertTable) { this.insertTable = insertTable; return this; } /** * Inserts an empty column into a table. * @return value or {@code null} for none */ public InsertTableColumnRequest getInsertTableColumn() { return insertTableColumn; } /** * Inserts an empty column into a table. * @param insertTableColumn insertTableColumn or {@code null} for none */ public Request setInsertTableColumn(InsertTableColumnRequest insertTableColumn) { this.insertTableColumn = insertTableColumn; return this; } /** * Inserts an empty row into a table. * @return value or {@code null} for none */ public InsertTableRowRequest getInsertTableRow() { return insertTableRow; } /** * Inserts an empty row into a table. * @param insertTableRow insertTableRow or {@code null} for none */ public Request setInsertTableRow(InsertTableRowRequest insertTableRow) { this.insertTableRow = insertTableRow; return this; } /** * Inserts text at the specified location. * @return value or {@code null} for none */ public InsertTextRequest getInsertText() { return insertText; } /** * Inserts text at the specified location. * @param insertText insertText or {@code null} for none */ public Request setInsertText(InsertTextRequest insertText) { this.insertText = insertText; return this; } /** * Merges cells in a table. * @return value or {@code null} for none */ public MergeTableCellsRequest getMergeTableCells() { return mergeTableCells; } /** * Merges cells in a table. * @param mergeTableCells mergeTableCells or {@code null} for none */ public Request setMergeTableCells(MergeTableCellsRequest mergeTableCells) { this.mergeTableCells = mergeTableCells; return this; } /** * Updates the number of pinned header rows in a table. * @return value or {@code null} for none */ public PinTableHeaderRowsRequest getPinTableHeaderRows() { return pinTableHeaderRows; } /** * Updates the number of pinned header rows in a table. * @param pinTableHeaderRows pinTableHeaderRows or {@code null} for none */ public Request setPinTableHeaderRows(PinTableHeaderRowsRequest pinTableHeaderRows) { this.pinTableHeaderRows = pinTableHeaderRows; return this; } /** * Replaces all instances of the specified text. * @return value or {@code null} for none */ public ReplaceAllTextRequest getReplaceAllText() { return replaceAllText; } /** * Replaces all instances of the specified text. * @param replaceAllText replaceAllText or {@code null} for none */ public Request setReplaceAllText(ReplaceAllTextRequest replaceAllText) { this.replaceAllText = replaceAllText; return this; } /** * Replaces an image in the document. * @return value or {@code null} for none */ public ReplaceImageRequest getReplaceImage() { return replaceImage; } /** * Replaces an image in the document. * @param replaceImage replaceImage or {@code null} for none */ public Request setReplaceImage(ReplaceImageRequest replaceImage) { this.replaceImage = replaceImage; return this; } /** * Replaces the content in a named range. * @return value or {@code null} for none */ public ReplaceNamedRangeContentRequest getReplaceNamedRangeContent() { return replaceNamedRangeContent; } /** * Replaces the content in a named range. * @param replaceNamedRangeContent replaceNamedRangeContent or {@code null} for none */ public Request setReplaceNamedRangeContent(ReplaceNamedRangeContentRequest replaceNamedRangeContent) { this.replaceNamedRangeContent = replaceNamedRangeContent; return this; } /** * Unmerges cells in a table. * @return value or {@code null} for none */ public UnmergeTableCellsRequest getUnmergeTableCells() { return unmergeTableCells; } /** * Unmerges cells in a table. * @param unmergeTableCells unmergeTableCells or {@code null} for none */ public Request setUnmergeTableCells(UnmergeTableCellsRequest unmergeTableCells) { this.unmergeTableCells = unmergeTableCells; return this; } /** * Updates the style of the document. * @return value or {@code null} for none */ public UpdateDocumentStyleRequest getUpdateDocumentStyle() { return updateDocumentStyle; } /** * Updates the style of the document. * @param updateDocumentStyle updateDocumentStyle or {@code null} for none */ public Request setUpdateDocumentStyle(UpdateDocumentStyleRequest updateDocumentStyle) { this.updateDocumentStyle = updateDocumentStyle; return this; } /** * Updates the paragraph style at the specified range. * @return value or {@code null} for none */ public UpdateParagraphStyleRequest getUpdateParagraphStyle() { return updateParagraphStyle; } /** * Updates the paragraph style at the specified range. * @param updateParagraphStyle updateParagraphStyle or {@code null} for none */ public Request setUpdateParagraphStyle(UpdateParagraphStyleRequest updateParagraphStyle) { this.updateParagraphStyle = updateParagraphStyle; return this; } /** * Updates the section style of the specified range. * @return value or {@code null} for none */ public UpdateSectionStyleRequest getUpdateSectionStyle() { return updateSectionStyle; } /** * Updates the section style of the specified range. * @param updateSectionStyle updateSectionStyle or {@code null} for none */ public Request setUpdateSectionStyle(UpdateSectionStyleRequest updateSectionStyle) { this.updateSectionStyle = updateSectionStyle; return this; } /** * Updates the style of table cells. * @return value or {@code null} for none */ public UpdateTableCellStyleRequest getUpdateTableCellStyle() { return updateTableCellStyle; } /** * Updates the style of table cells. * @param updateTableCellStyle updateTableCellStyle or {@code null} for none */ public Request setUpdateTableCellStyle(UpdateTableCellStyleRequest updateTableCellStyle) { this.updateTableCellStyle = updateTableCellStyle; return this; } /** * Updates the properties of columns in a table. * @return value or {@code null} for none */ public UpdateTableColumnPropertiesRequest getUpdateTableColumnProperties() { return updateTableColumnProperties; } /** * Updates the properties of columns in a table. * @param updateTableColumnProperties updateTableColumnProperties or {@code null} for none */ public Request setUpdateTableColumnProperties(UpdateTableColumnPropertiesRequest updateTableColumnProperties) { this.updateTableColumnProperties = updateTableColumnProperties; return this; } /** * Updates the row style in a table. * @return value or {@code null} for none */ public UpdateTableRowStyleRequest getUpdateTableRowStyle() { return updateTableRowStyle; } /** * Updates the row style in a table. * @param updateTableRowStyle updateTableRowStyle or {@code null} for none */ public Request setUpdateTableRowStyle(UpdateTableRowStyleRequest updateTableRowStyle) { this.updateTableRowStyle = updateTableRowStyle; return this; } /** * Updates the text style at the specified range. * @return value or {@code null} for none */ public UpdateTextStyleRequest getUpdateTextStyle() { return updateTextStyle; } /** * Updates the text style at the specified range. * @param updateTextStyle updateTextStyle or {@code null} for none */ public Request setUpdateTextStyle(UpdateTextStyleRequest updateTextStyle) { this.updateTextStyle = updateTextStyle; return this; } @Override public Request set(String fieldName, Object value) { return (Request) super.set(fieldName, value); } @Override public Request clone() { return (Request) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy