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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SkuGroup build()
Returns
TypeDescription
SkuGroup

buildPartial()

public SkuGroup buildPartial()
Returns
TypeDescription
SkuGroup

clear()

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

clearDisplayName()

public SkuGroup.Builder clearDisplayName()

Unique human readable identifier for the SKU group.

string display_name = 2;

Returns
TypeDescription
SkuGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SkuGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SkuGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SkuGroup getDefaultInstanceForType()
Returns
TypeDescription
SkuGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Unique human readable identifier for the SKU group.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Unique human readable identifier for the SKU group.

string display_name = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SkuGroup other)

public SkuGroup.Builder mergeFrom(SkuGroup other)
Parameter
NameDescription
otherSkuGroup
Returns
TypeDescription
SkuGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SkuGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
SkuGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SkuGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SkuGroup.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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