Class Control.PromoteAction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Control.PromoteAction.Builder>
com.google.cloud.discoveryengine.v1.Control.PromoteAction.Builder
All Implemented Interfaces:
Control.PromoteActionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Control.PromoteAction

public static final class Control.PromoteAction.Builder extends com.google.protobuf.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Control.PromoteAction.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Control.PromoteAction.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Control.PromoteAction.Builder>
    • getDefaultInstanceForType

      public Control.PromoteAction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Control.PromoteAction build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Control.PromoteAction buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Control.PromoteAction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Control.PromoteAction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Control.PromoteAction.Builder>
    • mergeFrom

      public Control.PromoteAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Control.PromoteAction.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getDataStore in interface Control.PromoteActionOrBuilder
      Returns:
      The dataStore.
    • getDataStoreBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getDataStoreBytes in interface Control.PromoteActionOrBuilder
      Returns:
      The bytes for dataStore.
    • setDataStore

      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) = { ... }
      Parameters:
      value - The dataStore to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDataStoreBytes

      public Control.PromoteAction.Builder setDataStoreBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for dataStore to set.
      Returns:
      This builder for chaining.
    • hasSearchLinkPromotion

      public boolean hasSearchLinkPromotion()
       Required. Promotion attached to this action.
       
      .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSearchLinkPromotion in interface Control.PromoteActionOrBuilder
      Returns:
      Whether the searchLinkPromotion field is set.
    • getSearchLinkPromotion

      public SearchLinkPromotion getSearchLinkPromotion()
       Required. Promotion attached to this action.
       
      .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSearchLinkPromotion in interface Control.PromoteActionOrBuilder
      Returns:
      The searchLinkPromotion.
    • setSearchLinkPromotion

      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];
    • setSearchLinkPromotion

      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];
    • mergeSearchLinkPromotion

      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];
    • 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];
    • 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];
    • getSearchLinkPromotionOrBuilder

      public SearchLinkPromotionOrBuilder getSearchLinkPromotionOrBuilder()
       Required. Promotion attached to this action.
       
      .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSearchLinkPromotionOrBuilder in interface Control.PromoteActionOrBuilder