Class CustomerRepricingConfig.Builder

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

public static final class CustomerRepricingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomerRepricingConfig.Builder> implements CustomerRepricingConfigOrBuilder
 Configuration for how a reseller will reprice a Customer.
 
Protobuf type google.cloud.channel.v1.CustomerRepricingConfig
  • 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<CustomerRepricingConfig.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<CustomerRepricingConfig.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<CustomerRepricingConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Output only. Resource name of the CustomerRepricingConfig.
       Format:
       accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface CustomerRepricingConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Resource name of the CustomerRepricingConfig.
       Format:
       accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface CustomerRepricingConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CustomerRepricingConfig.Builder setName(String value)
       Output only. Resource name of the CustomerRepricingConfig.
       Format:
       accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CustomerRepricingConfig.Builder clearName()
       Output only. Resource name of the CustomerRepricingConfig.
       Format:
       accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public CustomerRepricingConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Resource name of the CustomerRepricingConfig.
       Format:
       accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasRepricingConfig

      public boolean hasRepricingConfig()
       Required. The configuration for bill modifications made by a reseller
       before sending it to customers.
       
      .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRepricingConfig in interface CustomerRepricingConfigOrBuilder
      Returns:
      Whether the repricingConfig field is set.
    • getRepricingConfig

      public RepricingConfig getRepricingConfig()
       Required. The configuration for bill modifications made by a reseller
       before sending it to customers.
       
      .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRepricingConfig in interface CustomerRepricingConfigOrBuilder
      Returns:
      The repricingConfig.
    • setRepricingConfig

      public CustomerRepricingConfig.Builder setRepricingConfig(RepricingConfig value)
       Required. The configuration for bill modifications made by a reseller
       before sending it to customers.
       
      .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRepricingConfig

      public CustomerRepricingConfig.Builder setRepricingConfig(RepricingConfig.Builder builderForValue)
       Required. The configuration for bill modifications made by a reseller
       before sending it to customers.
       
      .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeRepricingConfig

      public CustomerRepricingConfig.Builder mergeRepricingConfig(RepricingConfig value)
       Required. The configuration for bill modifications made by a reseller
       before sending it to customers.
       
      .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRepricingConfig

      public CustomerRepricingConfig.Builder clearRepricingConfig()
       Required. The configuration for bill modifications made by a reseller
       before sending it to customers.
       
      .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRepricingConfigBuilder

      public RepricingConfig.Builder getRepricingConfigBuilder()
       Required. The configuration for bill modifications made by a reseller
       before sending it to customers.
       
      .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRepricingConfigOrBuilder

      public RepricingConfigOrBuilder getRepricingConfigOrBuilder()
       Required. The configuration for bill modifications made by a reseller
       before sending it to customers.
       
      .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRepricingConfigOrBuilder in interface CustomerRepricingConfigOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Timestamp of an update to the repricing rule. If `update_time`
       is after
       [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
       then it indicates this was set mid-month.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface CustomerRepricingConfigOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Timestamp of an update to the repricing rule. If `update_time`
       is after
       [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
       then it indicates this was set mid-month.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface CustomerRepricingConfigOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public CustomerRepricingConfig.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp of an update to the repricing rule. If `update_time`
       is after
       [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
       then it indicates this was set mid-month.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public CustomerRepricingConfig.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp of an update to the repricing rule. If `update_time`
       is after
       [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
       then it indicates this was set mid-month.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public CustomerRepricingConfig.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp of an update to the repricing rule. If `update_time`
       is after
       [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
       then it indicates this was set mid-month.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public CustomerRepricingConfig.Builder clearUpdateTime()
       Output only. Timestamp of an update to the repricing rule. If `update_time`
       is after
       [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
       then it indicates this was set mid-month.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Timestamp of an update to the repricing rule. If `update_time`
       is after
       [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
       then it indicates this was set mid-month.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Timestamp of an update to the repricing rule. If `update_time`
       is after
       [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
       then it indicates this was set mid-month.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface CustomerRepricingConfigOrBuilder