Class Control.PromoteAction.Builder (0.81.0)

public static final class Control.PromoteAction.Builder extends GeneratedMessage.Builder<Control.PromoteAction.Builder> implements Control.PromoteActionOrBuilder

Promote certain links based on some trigger queries.

Example: Promote shoe store link when searching for shoe keyword. The link can be outside of associated data store.

Protobuf type google.cloud.discoveryengine.v1.Control.PromoteAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Control.PromoteAction build()
Returns
Type Description
Control.PromoteAction

buildPartial()

public Control.PromoteAction buildPartial()
Returns
Type Description
Control.PromoteAction

clear()

public Control.PromoteAction.Builder clear()
Returns
Type Description
Control.PromoteAction.Builder
Overrides

clearDataStore()

public Control.PromoteAction.Builder clearDataStore()

Required. Data store with which this promotion is attached to.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Control.PromoteAction.Builder

This builder for chaining.

clearSearchLinkPromotion()

public Control.PromoteAction.Builder clearSearchLinkPromotion()

Required. Promotion attached to this action.

.google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Control.PromoteAction.Builder

getDataStore()

public String getDataStore()

Required. Data store with which this promotion is attached to.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dataStore.

getDataStoreBytes()

public ByteString getDataStoreBytes()

Required. Data store with which this promotion is attached to.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dataStore.

getDefaultInstanceForType()

public Control.PromoteAction getDefaultInstanceForType()
Returns
Type Description
Control.PromoteAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSearchLinkPromotion()

public SearchLinkPromotion getSearchLinkPromotion()

Required. Promotion attached to this action.

.google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchLinkPromotion

The searchLinkPromotion.

getSearchLinkPromotionBuilder()

public SearchLinkPromotion.Builder getSearchLinkPromotionBuilder()

Required. Promotion attached to this action.

.google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchLinkPromotion.Builder

getSearchLinkPromotionOrBuilder()

public SearchLinkPromotionOrBuilder getSearchLinkPromotionOrBuilder()

Required. Promotion attached to this action.

.google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchLinkPromotionOrBuilder

hasSearchLinkPromotion()

public boolean hasSearchLinkPromotion()

Required. Promotion attached to this action.

.google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the searchLinkPromotion field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Control.PromoteAction other)

public Control.PromoteAction.Builder mergeFrom(Control.PromoteAction other)
Parameter
Name Description
other Control.PromoteAction
Returns
Type Description
Control.PromoteAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Control.PromoteAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Control.PromoteAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Control.PromoteAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Control.PromoteAction.Builder
Overrides

mergeSearchLinkPromotion(SearchLinkPromotion value)

public Control.PromoteAction.Builder mergeSearchLinkPromotion(SearchLinkPromotion value)

Required. Promotion attached to this action.

.google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SearchLinkPromotion
Returns
Type Description
Control.PromoteAction.Builder

setDataStore(String value)

public Control.PromoteAction.Builder setDataStore(String value)

Required. Data store with which this promotion is attached to.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dataStore to set.

Returns
Type Description
Control.PromoteAction.Builder

This builder for chaining.

setDataStoreBytes(ByteString value)

public Control.PromoteAction.Builder setDataStoreBytes(ByteString value)

Required. Data store with which this promotion is attached to.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dataStore to set.

Returns
Type Description
Control.PromoteAction.Builder

This builder for chaining.

setSearchLinkPromotion(SearchLinkPromotion value)

public Control.PromoteAction.Builder setSearchLinkPromotion(SearchLinkPromotion value)

Required. Promotion attached to this action.

.google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SearchLinkPromotion
Returns
Type Description
Control.PromoteAction.Builder

setSearchLinkPromotion(SearchLinkPromotion.Builder builderForValue)

public Control.PromoteAction.Builder setSearchLinkPromotion(SearchLinkPromotion.Builder builderForValue)

Required. Promotion attached to this action.

.google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SearchLinkPromotion.Builder
Returns
Type Description
Control.PromoteAction.Builder