Class AlertConfig.Builder

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

public static final class AlertConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AlertConfig.Builder> implements AlertConfigOrBuilder
 Project level alert config.
 
Protobuf type google.cloud.retail.v2alpha.AlertConfig
  • 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<AlertConfig.Builder>
    • clear

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

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

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

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

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

      public AlertConfig.Builder mergeFrom(AlertConfig other)
    • isInitialized

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

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

      public String getName()
       Required. Immutable. The name of the AlertConfig singleton resource.
       Format: projects/*/alertConfig
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface AlertConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Immutable. The name of the AlertConfig singleton resource.
       Format: projects/*/alertConfig
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface AlertConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AlertConfig.Builder setName(String value)
       Required. Immutable. The name of the AlertConfig singleton resource.
       Format: projects/*/alertConfig
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AlertConfig.Builder clearName()
       Required. Immutable. The name of the AlertConfig singleton resource.
       Format: projects/*/alertConfig
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AlertConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The name of the AlertConfig singleton resource.
       Format: projects/*/alertConfig
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getAlertPoliciesList

      public List<AlertConfig.AlertPolicy> getAlertPoliciesList()
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
      Specified by:
      getAlertPoliciesList in interface AlertConfigOrBuilder
    • getAlertPoliciesCount

      public int getAlertPoliciesCount()
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
      Specified by:
      getAlertPoliciesCount in interface AlertConfigOrBuilder
    • getAlertPolicies

      public AlertConfig.AlertPolicy getAlertPolicies(int index)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
      Specified by:
      getAlertPolicies in interface AlertConfigOrBuilder
    • setAlertPolicies

      public AlertConfig.Builder setAlertPolicies(int index, AlertConfig.AlertPolicy value)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • setAlertPolicies

      public AlertConfig.Builder setAlertPolicies(int index, AlertConfig.AlertPolicy.Builder builderForValue)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • addAlertPolicies

      public AlertConfig.Builder addAlertPolicies(AlertConfig.AlertPolicy value)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • addAlertPolicies

      public AlertConfig.Builder addAlertPolicies(int index, AlertConfig.AlertPolicy value)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • addAlertPolicies

      public AlertConfig.Builder addAlertPolicies(AlertConfig.AlertPolicy.Builder builderForValue)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • addAlertPolicies

      public AlertConfig.Builder addAlertPolicies(int index, AlertConfig.AlertPolicy.Builder builderForValue)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • addAllAlertPolicies

      public AlertConfig.Builder addAllAlertPolicies(Iterable<? extends AlertConfig.AlertPolicy> values)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • clearAlertPolicies

      public AlertConfig.Builder clearAlertPolicies()
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • removeAlertPolicies

      public AlertConfig.Builder removeAlertPolicies(int index)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • getAlertPoliciesBuilder

      public AlertConfig.AlertPolicy.Builder getAlertPoliciesBuilder(int index)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • getAlertPoliciesOrBuilder

      public AlertConfig.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
      Specified by:
      getAlertPoliciesOrBuilder in interface AlertConfigOrBuilder
    • getAlertPoliciesOrBuilderList

      public List<? extends AlertConfig.AlertPolicyOrBuilder> getAlertPoliciesOrBuilderList()
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
      Specified by:
      getAlertPoliciesOrBuilderList in interface AlertConfigOrBuilder
    • addAlertPoliciesBuilder

      public AlertConfig.AlertPolicy.Builder addAlertPoliciesBuilder()
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • addAlertPoliciesBuilder

      public AlertConfig.AlertPolicy.Builder addAlertPoliciesBuilder(int index)
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;
    • getAlertPoliciesBuilderList

      public List<AlertConfig.AlertPolicy.Builder> getAlertPoliciesBuilderList()
       Alert policies for a customer.
       They must be unique by [AlertPolicy.alert_group]
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;