Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SearchLinkPromotion.
Promotion proto includes uri and other helping information to display the promotion.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchLinkPromotion
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ title
string
Required. The title of the promotion. Maximum length: 160 characters.
↳ uri
string
Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
↳ document
string
Optional. The Document the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri.
↳ image_uri
string
Optional. The promotion thumbnail image url.
↳ description
string
Optional. The Promotion description. Maximum length: 200 characters.
↳ enabled
bool
Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only.
getTitle
Required. The title of the promotion.
Maximum length: 160 characters.
string
setTitle
Required. The title of the promotion.
Maximum length: 160 characters.
var
string
$this
getUri
Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
string
setUri
Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
var
string
$this
getDocument
Optional. The Document the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri.
string
setDocument
Optional. The Document the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri.
var
string
$this
getImageUri
Optional. The promotion thumbnail image url.
string
setImageUri
Optional. The promotion thumbnail image url.
var
string
$this
getDescription
Optional. The Promotion description.
Maximum length: 200 characters.
string
setDescription
Optional. The Promotion description.
Maximum length: 200 characters.
var
string
$this
getEnabled
Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to.
This flag is used for basic site search only.
bool
setEnabled
Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to.
This flag is used for basic site search only.
var
bool
$this