Class BoostSpecs.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BoostSpecs.Builder>
com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder
All Implemented Interfaces:
BoostSpecsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BoostSpecs

public static final class BoostSpecs.Builder extends com.google.protobuf.GeneratedMessage.Builder<BoostSpecs.Builder> implements BoostSpecsOrBuilder
 Boost specifications for data stores.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.BoostSpecs
  • 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<BoostSpecs.Builder>
    • clear

      public BoostSpecs.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<BoostSpecs.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<BoostSpecs.Builder>
    • getDefaultInstanceForType

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

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

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

      public BoostSpecs.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<BoostSpecs.Builder>
    • mergeFrom

      public BoostSpecs.Builder mergeFrom(BoostSpecs other)
    • isInitialized

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

      public BoostSpecs.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<BoostSpecs.Builder>
      Throws:
      IOException
    • getDataStoresList

      public com.google.protobuf.ProtocolStringList getDataStoresList()
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDataStoresList in interface BoostSpecsOrBuilder
      Returns:
      A list containing the dataStores.
    • getDataStoresCount

      public int getDataStoresCount()
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDataStoresCount in interface BoostSpecsOrBuilder
      Returns:
      The count of dataStores.
    • getDataStores

      public String getDataStores(int index)
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDataStores in interface BoostSpecsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dataStores at the given index.
    • getDataStoresBytes

      public com.google.protobuf.ByteString getDataStoresBytes(int index)
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDataStoresBytes in interface BoostSpecsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dataStores at the given index.
    • setDataStores

      public BoostSpecs.Builder setDataStores(int index, String value)
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The dataStores to set.
      Returns:
      This builder for chaining.
    • addDataStores

      public BoostSpecs.Builder addDataStores(String value)
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The dataStores to add.
      Returns:
      This builder for chaining.
    • addAllDataStores

      public BoostSpecs.Builder addAllDataStores(Iterable<String> values)
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The dataStores to add.
      Returns:
      This builder for chaining.
    • clearDataStores

      public BoostSpecs.Builder clearDataStores()
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addDataStoresBytes

      public BoostSpecs.Builder addDataStoresBytes(com.google.protobuf.ByteString value)
       Optional. Data Stores where the boosting configuration is applied. The full
       names of the referenced data stores. Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the dataStores to add.
      Returns:
      This builder for chaining.
    • getSpecList

      public List<BoostSpec> getSpecList()
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpecList in interface BoostSpecsOrBuilder
    • getSpecCount

      public int getSpecCount()
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpecCount in interface BoostSpecsOrBuilder
    • getSpec

      public BoostSpec getSpec(int index)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpec in interface BoostSpecsOrBuilder
    • setSpec

      public BoostSpecs.Builder setSpec(int index, BoostSpec value)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setSpec

      public BoostSpecs.Builder setSpec(int index, BoostSpec.Builder builderForValue)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSpec

      public BoostSpecs.Builder addSpec(BoostSpec value)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSpec

      public BoostSpecs.Builder addSpec(int index, BoostSpec value)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSpec

      public BoostSpecs.Builder addSpec(BoostSpec.Builder builderForValue)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSpec

      public BoostSpecs.Builder addSpec(int index, BoostSpec.Builder builderForValue)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllSpec

      public BoostSpecs.Builder addAllSpec(Iterable<? extends BoostSpec> values)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearSpec

      public BoostSpecs.Builder clearSpec()
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeSpec

      public BoostSpecs.Builder removeSpec(int index)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getSpecBuilder

      public BoostSpec.Builder getSpecBuilder(int index)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getSpecOrBuilder

      public BoostSpecOrBuilder getSpecOrBuilder(int index)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpecOrBuilder in interface BoostSpecsOrBuilder
    • getSpecOrBuilderList

      public List<? extends BoostSpecOrBuilder> getSpecOrBuilderList()
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpecOrBuilderList in interface BoostSpecsOrBuilder
    • addSpecBuilder

      public BoostSpec.Builder addSpecBuilder()
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSpecBuilder

      public BoostSpec.Builder addSpecBuilder(int index)
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getSpecBuilderList

      public List<BoostSpec.Builder> getSpecBuilderList()
       Optional. A list of boosting specifications.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];