Class SkuGroupCondition.Builder (3.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SkuGroupCondition build()
Returns
TypeDescription
SkuGroupCondition

buildPartial()

public SkuGroupCondition buildPartial()
Returns
TypeDescription
SkuGroupCondition

clear()

public SkuGroupCondition.Builder clear()
Returns
TypeDescription
SkuGroupCondition.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SkuGroupCondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SkuGroupCondition.Builder

This builder for chaining.

clone()

public SkuGroupCondition.Builder clone()
Returns
TypeDescription
SkuGroupCondition.Builder
Overrides

getDefaultInstanceForType()

public SkuGroupCondition getDefaultInstanceForType()
Returns
TypeDescription
SkuGroupCondition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for skuGroup.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SkuGroupCondition other)

public SkuGroupCondition.Builder mergeFrom(SkuGroupCondition other)
Parameter
NameDescription
otherSkuGroupCondition
Returns
TypeDescription
SkuGroupCondition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SkuGroupCondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The skuGroup to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for skuGroup to set.

Returns
TypeDescription
SkuGroupCondition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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