Class Branch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Branch.Builder>
com.google.cloud.retail.v2alpha.Branch.Builder
All Implemented Interfaces:
BranchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Branch

public static final class Branch.Builder extends com.google.protobuf.GeneratedMessage.Builder<Branch.Builder> implements BranchOrBuilder
 A data branch that stores all instances of
 [Product][google.cloud.retail.v2alpha.Product]s.
 
Protobuf type google.cloud.retail.v2alpha.Branch
  • 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<Branch.Builder>
    • clear

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

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

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

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

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

      public Branch.Builder mergeFrom(Branch other)
    • isInitialized

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

      public Branch.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<Branch.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Immutable. Full resource name of the branch, such as
       `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface BranchOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. Full resource name of the branch, such as
       `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface BranchOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Branch.Builder setName(String value)
       Immutable. Full resource name of the branch, such as
       `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Branch.Builder clearName()
       Immutable. Full resource name of the branch, such as
       `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Branch.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. Full resource name of the branch, such as
       `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Output only. Human readable name of the branch to display in the UI.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface BranchOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Output only. Human readable name of the branch to display in the UI.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayNameBytes in interface BranchOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Branch.Builder setDisplayName(String value)
       Output only. Human readable name of the branch to display in the UI.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Branch.Builder clearDisplayName()
       Output only. Human readable name of the branch to display in the UI.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Branch.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. Human readable name of the branch to display in the UI.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getIsDefault

      public boolean getIsDefault()
       Output only. Indicates whether this branch is set as the default branch of
       its parent catalog.
       
      bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIsDefault in interface BranchOrBuilder
      Returns:
      The isDefault.
    • setIsDefault

      public Branch.Builder setIsDefault(boolean value)
       Output only. Indicates whether this branch is set as the default branch of
       its parent catalog.
       
      bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The isDefault to set.
      Returns:
      This builder for chaining.
    • clearIsDefault

      public Branch.Builder clearIsDefault()
       Output only. Indicates whether this branch is set as the default branch of
       its parent catalog.
       
      bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasLastProductImportTime

      public boolean hasLastProductImportTime()
       Output only. Timestamp of last import through
       [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
       Empty value means no import has been made to this branch.
       
      .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastProductImportTime in interface BranchOrBuilder
      Returns:
      Whether the lastProductImportTime field is set.
    • getLastProductImportTime

      public com.google.protobuf.Timestamp getLastProductImportTime()
       Output only. Timestamp of last import through
       [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
       Empty value means no import has been made to this branch.
       
      .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastProductImportTime in interface BranchOrBuilder
      Returns:
      The lastProductImportTime.
    • setLastProductImportTime

      public Branch.Builder setLastProductImportTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp of last import through
       [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
       Empty value means no import has been made to this branch.
       
      .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastProductImportTime

      public Branch.Builder setLastProductImportTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp of last import through
       [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
       Empty value means no import has been made to this branch.
       
      .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastProductImportTime

      public Branch.Builder mergeLastProductImportTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp of last import through
       [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
       Empty value means no import has been made to this branch.
       
      .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLastProductImportTime

      public Branch.Builder clearLastProductImportTime()
       Output only. Timestamp of last import through
       [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
       Empty value means no import has been made to this branch.
       
      .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastProductImportTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastProductImportTimeBuilder()
       Output only. Timestamp of last import through
       [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
       Empty value means no import has been made to this branch.
       
      .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastProductImportTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastProductImportTimeOrBuilder()
       Output only. Timestamp of last import through
       [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
       Empty value means no import has been made to this branch.
       
      .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastProductImportTimeOrBuilder in interface BranchOrBuilder
    • getProductCountStatsList

      public List<Branch.ProductCountStatistic> getProductCountStatsList()
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductCountStatsList in interface BranchOrBuilder
    • getProductCountStatsCount

      public int getProductCountStatsCount()
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductCountStatsCount in interface BranchOrBuilder
    • getProductCountStats

      public Branch.ProductCountStatistic getProductCountStats(int index)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductCountStats in interface BranchOrBuilder
    • setProductCountStats

      public Branch.Builder setProductCountStats(int index, Branch.ProductCountStatistic value)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setProductCountStats

      public Branch.Builder setProductCountStats(int index, Branch.ProductCountStatistic.Builder builderForValue)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addProductCountStats

      public Branch.Builder addProductCountStats(Branch.ProductCountStatistic value)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addProductCountStats

      public Branch.Builder addProductCountStats(int index, Branch.ProductCountStatistic value)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addProductCountStats

      public Branch.Builder addProductCountStats(Branch.ProductCountStatistic.Builder builderForValue)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addProductCountStats

      public Branch.Builder addProductCountStats(int index, Branch.ProductCountStatistic.Builder builderForValue)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllProductCountStats

      public Branch.Builder addAllProductCountStats(Iterable<? extends Branch.ProductCountStatistic> values)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearProductCountStats

      public Branch.Builder clearProductCountStats()
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeProductCountStats

      public Branch.Builder removeProductCountStats(int index)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getProductCountStatsBuilder

      public Branch.ProductCountStatistic.Builder getProductCountStatsBuilder(int index)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getProductCountStatsOrBuilder

      public Branch.ProductCountStatisticOrBuilder getProductCountStatsOrBuilder(int index)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductCountStatsOrBuilder in interface BranchOrBuilder
    • getProductCountStatsOrBuilderList

      public List<? extends Branch.ProductCountStatisticOrBuilder> getProductCountStatsOrBuilderList()
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductCountStatsOrBuilderList in interface BranchOrBuilder
    • addProductCountStatsBuilder

      public Branch.ProductCountStatistic.Builder addProductCountStatsBuilder()
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addProductCountStatsBuilder

      public Branch.ProductCountStatistic.Builder addProductCountStatsBuilder(int index)
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getProductCountStatsBuilderList

      public List<Branch.ProductCountStatistic.Builder> getProductCountStatsBuilderList()
       Output only. Statistics for number of products in the branch, provided for
       different
       [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getQualityMetricsList

      public List<Branch.QualityMetric> getQualityMetricsList()
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getQualityMetricsList in interface BranchOrBuilder
    • getQualityMetricsCount

      public int getQualityMetricsCount()
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getQualityMetricsCount in interface BranchOrBuilder
    • getQualityMetrics

      public Branch.QualityMetric getQualityMetrics(int index)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getQualityMetrics in interface BranchOrBuilder
    • setQualityMetrics

      public Branch.Builder setQualityMetrics(int index, Branch.QualityMetric value)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setQualityMetrics

      public Branch.Builder setQualityMetrics(int index, Branch.QualityMetric.Builder builderForValue)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addQualityMetrics

      public Branch.Builder addQualityMetrics(Branch.QualityMetric value)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addQualityMetrics

      public Branch.Builder addQualityMetrics(int index, Branch.QualityMetric value)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addQualityMetrics

      public Branch.Builder addQualityMetrics(Branch.QualityMetric.Builder builderForValue)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addQualityMetrics

      public Branch.Builder addQualityMetrics(int index, Branch.QualityMetric.Builder builderForValue)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllQualityMetrics

      public Branch.Builder addAllQualityMetrics(Iterable<? extends Branch.QualityMetric> values)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearQualityMetrics

      public Branch.Builder clearQualityMetrics()
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeQualityMetrics

      public Branch.Builder removeQualityMetrics(int index)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getQualityMetricsBuilder

      public Branch.QualityMetric.Builder getQualityMetricsBuilder(int index)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getQualityMetricsOrBuilder

      public Branch.QualityMetricOrBuilder getQualityMetricsOrBuilder(int index)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getQualityMetricsOrBuilder in interface BranchOrBuilder
    • getQualityMetricsOrBuilderList

      public List<? extends Branch.QualityMetricOrBuilder> getQualityMetricsOrBuilderList()
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getQualityMetricsOrBuilderList in interface BranchOrBuilder
    • addQualityMetricsBuilder

      public Branch.QualityMetric.Builder addQualityMetricsBuilder()
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addQualityMetricsBuilder

      public Branch.QualityMetric.Builder addQualityMetricsBuilder(int index)
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getQualityMetricsBuilderList

      public List<Branch.QualityMetric.Builder> getQualityMetricsBuilderList()
       Output only. The quality metrics measured among products of this branch.
      
       See
       [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
       for supported metrics. Metrics could be missing if failed to retrieve.
      
       This field is not populated in [BranchView.BASIC][] view.
       
      repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];