imageObjectId = $imageObjectId; } /** * @return string */ public function getImageObjectId() { return $this->imageObjectId; } /** * The replacement method. * * Accepted values: IMAGE_REPLACE_METHOD_UNSPECIFIED, CENTER_CROP * * @param self::IMAGE_REPLACE_METHOD_* $imageReplaceMethod */ public function setImageReplaceMethod($imageReplaceMethod) { $this->imageReplaceMethod = $imageReplaceMethod; } /** * @return self::IMAGE_REPLACE_METHOD_* */ public function getImageReplaceMethod() { return $this->imageReplaceMethod; } /** * The tab that the image to be replaced is in. When omitted, the request is * applied to the first tab. In a document containing a single tab: - If * provided, must match the singular tab's ID. - If omitted, the request * applies to the singular tab. In a document containing multiple tabs: - If * provided, the request applies to the specified tab. - If omitted, the * request applies to the first tab in the document. * * @param string $tabId */ public function setTabId($tabId) { $this->tabId = $tabId; } /** * @return string */ public function getTabId() { return $this->tabId; } /** * The URI of the new image. The image is fetched once at insertion time and a * copy is stored for display inside the document. Images must be less than * 50MB, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. * The provided URI can't surpass 2 KB in length. The URI is saved with the * image, and exposed through the ImageProperties.source_uri field. * * @param string $uri */ public function setUri($uri) { $this->uri = $uri; } /** * @return string */ public function getUri() { return $this->uri; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ReplaceImageRequest::class, 'Google_Service_Docs_ReplaceImageRequest');