Class CustomerRepricingConfig.Builder (3.46.0)

public static final class CustomerRepricingConfig.Builder extends GeneratedMessageV3.Builder<CustomerRepricingConfig.Builder> implements CustomerRepricingConfigOrBuilder

Configuration for how a reseller will reprice a Customer.

Protobuf type google.cloud.channel.v1.CustomerRepricingConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomerRepricingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

build()

public CustomerRepricingConfig build()
Returns
Type Description
CustomerRepricingConfig

buildPartial()

public CustomerRepricingConfig buildPartial()
Returns
Type Description
CustomerRepricingConfig

clear()

public CustomerRepricingConfig.Builder clear()
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CustomerRepricingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

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
Type Description
CustomerRepricingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomerRepricingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

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

Returns
Type Description
CustomerRepricingConfig.Builder

clearUpdateTime()

public CustomerRepricingConfig.Builder clearUpdateTime()

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomerRepricingConfig.Builder

clone()

public CustomerRepricingConfig.Builder clone()
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

getDefaultInstanceForType()

public CustomerRepricingConfig getDefaultInstanceForType()
Returns
Type Description
CustomerRepricingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

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

Returns
Type Description
RepricingConfig

The repricingConfig.

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

Returns
Type Description
RepricingConfig.Builder

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

Returns
Type Description
RepricingConfigOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

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

Returns
Type Description
boolean

Whether the repricingConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomerRepricingConfig other)

public CustomerRepricingConfig.Builder mergeFrom(CustomerRepricingConfig other)
Parameter
Name Description
other CustomerRepricingConfig
Returns
Type Description
CustomerRepricingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomerRepricingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomerRepricingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

mergeRepricingConfig(RepricingConfig value)

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

Parameter
Name Description
value RepricingConfig
Returns
Type Description
CustomerRepricingConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomerRepricingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

mergeUpdateTime(Timestamp value)

public CustomerRepricingConfig.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CustomerRepricingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CustomerRepricingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

setName(String value)

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CustomerRepricingConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CustomerRepricingConfig.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CustomerRepricingConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CustomerRepricingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

setRepricingConfig(RepricingConfig value)

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

Parameter
Name Description
value RepricingConfig
Returns
Type Description
CustomerRepricingConfig.Builder

setRepricingConfig(RepricingConfig.Builder builderForValue)

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

Parameter
Name Description
builderForValue RepricingConfig.Builder
Returns
Type Description
CustomerRepricingConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomerRepricingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomerRepricingConfig.Builder
Overrides

setUpdateTime(Timestamp value)

public CustomerRepricingConfig.Builder setUpdateTime(Timestamp value)

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CustomerRepricingConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public CustomerRepricingConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CustomerRepricingConfig.Builder