Class SkuGroupCondition.Builder (3.48.0)

public static final class SkuGroupCondition.Builder extends GeneratedMessageV3.Builder<SkuGroupCondition.Builder> implements SkuGroupConditionOrBuilder

A condition that applies the override if a line item SKU is found in the SKU group.

Protobuf type google.cloud.channel.v1.SkuGroupCondition

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SkuGroupCondition build()
Returns
Type Description
SkuGroupCondition

buildPartial()

public SkuGroupCondition buildPartial()
Returns
Type Description
SkuGroupCondition

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSkuGroup()

public SkuGroupCondition.Builder clearSkuGroup()

Specifies a SKU group (https://cloud.google.com/skus/sku-groups). Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string sku_group = 1;

Returns
Type Description
SkuGroupCondition.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SkuGroupCondition getDefaultInstanceForType()
Returns
Type Description
SkuGroupCondition

getDescriptorForType()

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

getSkuGroup()

public String getSkuGroup()

Specifies a SKU group (https://cloud.google.com/skus/sku-groups). Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string sku_group = 1;

Returns
Type Description
String

The skuGroup.

getSkuGroupBytes()

public ByteString getSkuGroupBytes()

Specifies a SKU group (https://cloud.google.com/skus/sku-groups). Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string sku_group = 1;

Returns
Type Description
ByteString

The bytes for skuGroup.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SkuGroupCondition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSkuGroup(String value)

public SkuGroupCondition.Builder setSkuGroup(String value)

Specifies a SKU group (https://cloud.google.com/skus/sku-groups). Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string sku_group = 1;

Parameter
Name Description
value String

The skuGroup to set.

Returns
Type Description
SkuGroupCondition.Builder

This builder for chaining.

setSkuGroupBytes(ByteString value)

public SkuGroupCondition.Builder setSkuGroupBytes(ByteString value)

Specifies a SKU group (https://cloud.google.com/skus/sku-groups). Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string sku_group = 1;

Parameter
Name Description
value ByteString

The bytes for skuGroup to set.

Returns
Type Description
SkuGroupCondition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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