target.apidocs.com.google.api.services.sheets.v4.model.UpdateBordersRequest.html Maven / Gradle / Ivy
UpdateBordersRequest (Google Sheets API v4-rev20240319-2.0.0)
com.google.api.services.sheets.v4.model
Class UpdateBordersRequest
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sheets.v4.model.UpdateBordersRequest
-
public final class UpdateBordersRequest
extends com.google.api.client.json.GenericJson
Updates the borders of a range. If a field is not set in the request, that means the border
remains as-is. For example, with two subsequent UpdateBordersRequest: 1. range: A1:A5 `{ top:
RED, bottom: WHITE }` 2. range: A1:A5 `{ left: BLUE }` That would result in A1:A5 having a
borders of `{ top: RED, bottom: WHITE, left: BLUE }`. If you want to clear a border, explicitly
set the style to NONE.
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 Sheets API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
UpdateBordersRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
UpdateBordersRequest
clone()
Border
getBottom()
The border to put at the bottom of the range.
Border
getInnerHorizontal()
The horizontal border to put within the range.
Border
getInnerVertical()
The vertical border to put within the range.
Border
getLeft()
The border to put at the left of the range.
GridRange
getRange()
The range whose borders should be updated.
Border
getRight()
The border to put at the right of the range.
Border
getTop()
The border to put at the top of the range.
UpdateBordersRequest
set(String fieldName,
Object value)
UpdateBordersRequest
setBottom(Border bottom)
The border to put at the bottom of the range.
UpdateBordersRequest
setInnerHorizontal(Border innerHorizontal)
The horizontal border to put within the range.
UpdateBordersRequest
setInnerVertical(Border innerVertical)
The vertical border to put within the range.
UpdateBordersRequest
setLeft(Border left)
The border to put at the left of the range.
UpdateBordersRequest
setRange(GridRange range)
The range whose borders should be updated.
UpdateBordersRequest
setRight(Border right)
The border to put at the right of the range.
UpdateBordersRequest
setTop(Border top)
The border to put at the top of the range.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getBottom
public Border getBottom()
The border to put at the bottom of the range.
- Returns:
- value or
null
for none
-
setBottom
public UpdateBordersRequest setBottom(Border bottom)
The border to put at the bottom of the range.
- Parameters:
bottom
- bottom or null
for none
-
getInnerHorizontal
public Border getInnerHorizontal()
The horizontal border to put within the range.
- Returns:
- value or
null
for none
-
setInnerHorizontal
public UpdateBordersRequest setInnerHorizontal(Border innerHorizontal)
The horizontal border to put within the range.
- Parameters:
innerHorizontal
- innerHorizontal or null
for none
-
getInnerVertical
public Border getInnerVertical()
The vertical border to put within the range.
- Returns:
- value or
null
for none
-
setInnerVertical
public UpdateBordersRequest setInnerVertical(Border innerVertical)
The vertical border to put within the range.
- Parameters:
innerVertical
- innerVertical or null
for none
-
getLeft
public Border getLeft()
The border to put at the left of the range.
- Returns:
- value or
null
for none
-
setLeft
public UpdateBordersRequest setLeft(Border left)
The border to put at the left of the range.
- Parameters:
left
- left or null
for none
-
getRange
public GridRange getRange()
The range whose borders should be updated.
- Returns:
- value or
null
for none
-
setRange
public UpdateBordersRequest setRange(GridRange range)
The range whose borders should be updated.
- Parameters:
range
- range or null
for none
-
getRight
public Border getRight()
The border to put at the right of the range.
- Returns:
- value or
null
for none
-
setRight
public UpdateBordersRequest setRight(Border right)
The border to put at the right of the range.
- Parameters:
right
- right or null
for none
-
getTop
public Border getTop()
The border to put at the top of the range.
- Returns:
- value or
null
for none
-
setTop
public UpdateBordersRequest setTop(Border top)
The border to put at the top of the range.
- Parameters:
top
- top or null
for none
-
set
public UpdateBordersRequest set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public UpdateBordersRequest clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.