Class RepricingConfig.EntitlementGranularity.Builder (3.38.0)

public static final class RepricingConfig.EntitlementGranularity.Builder extends GeneratedMessageV3.Builder<RepricingConfig.EntitlementGranularity.Builder> implements RepricingConfig.EntitlementGranularityOrBuilder

Applies the repricing configuration at the entitlement level.

Protobuf type google.cloud.channel.v1.RepricingConfig.EntitlementGranularity

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RepricingConfig.EntitlementGranularity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

build()

public RepricingConfig.EntitlementGranularity build()
Returns
TypeDescription
RepricingConfig.EntitlementGranularity

buildPartial()

public RepricingConfig.EntitlementGranularity buildPartial()
Returns
TypeDescription
RepricingConfig.EntitlementGranularity

clear()

public RepricingConfig.EntitlementGranularity.Builder clear()
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

clearEntitlement()

public RepricingConfig.EntitlementGranularity.Builder clearEntitlement()

Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RepricingConfig.EntitlementGranularity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RepricingConfig.EntitlementGranularity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

clone()

public RepricingConfig.EntitlementGranularity.Builder clone()
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

getDefaultInstanceForType()

public RepricingConfig.EntitlementGranularity getDefaultInstanceForType()
Returns
TypeDescription
RepricingConfig.EntitlementGranularity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntitlement()

public String getEntitlement()

Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The entitlement.

getEntitlementBytes()

public ByteString getEntitlementBytes()

Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for entitlement.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RepricingConfig.EntitlementGranularity other)

public RepricingConfig.EntitlementGranularity.Builder mergeFrom(RepricingConfig.EntitlementGranularity other)
Parameter
NameDescription
otherRepricingConfig.EntitlementGranularity
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RepricingConfig.EntitlementGranularity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RepricingConfig.EntitlementGranularity.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RepricingConfig.EntitlementGranularity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

setEntitlement(String value)

public RepricingConfig.EntitlementGranularity.Builder setEntitlement(String value)

Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The entitlement to set.

Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder

This builder for chaining.

setEntitlementBytes(ByteString value)

public RepricingConfig.EntitlementGranularity.Builder setEntitlementBytes(ByteString value)

Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for entitlement to set.

Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RepricingConfig.EntitlementGranularity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

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

public RepricingConfig.EntitlementGranularity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RepricingConfig.EntitlementGranularity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RepricingConfig.EntitlementGranularity.Builder
Overrides