Class SkuGroup.Builder (3.55.0)

public static final class SkuGroup.Builder extends GeneratedMessageV3.Builder<SkuGroup.Builder> implements SkuGroupOrBuilder

Represents the SKU group information.

Protobuf type google.cloud.channel.v1.SkuGroup

Implements

SkuGroupOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SkuGroup build()
Returns
Type Description
SkuGroup

buildPartial()

public SkuGroup buildPartial()
Returns
Type Description
SkuGroup

clear()

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

clearDisplayName()

public SkuGroup.Builder clearDisplayName()

Unique human readable identifier for the SKU group.

string display_name = 2;

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SkuGroup.Builder clearName()

Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string name = 1;

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SkuGroup getDefaultInstanceForType()
Returns
Type Description
SkuGroup

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Unique human readable identifier for the SKU group.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Unique human readable identifier for the SKU group.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SkuGroup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public SkuGroup.Builder setDisplayName(String value)

Unique human readable identifier for the SKU group.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SkuGroup.Builder setDisplayNameBytes(ByteString value)

Unique human readable identifier for the SKU group.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SkuGroup.Builder setName(String value)

Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SkuGroup.Builder setNameBytes(ByteString value)

Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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