Class Control.PromoteAction.Builder (0.58.0)

public static final class Control.PromoteAction.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Control.PromoteAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Control.PromoteAction.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Control.PromoteAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Control.PromoteAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Control.PromoteAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Control.PromoteAction.Builder
Overrides

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Control.PromoteAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Control.PromoteAction.Builder
Overrides

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.

setField(Descriptors.FieldDescriptor field, Object value)

public Control.PromoteAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Control.PromoteAction.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Control.PromoteAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Control.PromoteAction.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Control.PromoteAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Control.PromoteAction.Builder
Overrides