Class PurchasableSku.Builder (3.13.0)

public static final class PurchasableSku.Builder extends GeneratedMessageV3.Builder<PurchasableSku.Builder> implements PurchasableSkuOrBuilder

SKU that you can purchase. This is used in ListPurchasableSku API response.

Protobuf type google.cloud.channel.v1.PurchasableSku

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PurchasableSku build()
Returns
TypeDescription
PurchasableSku

buildPartial()

public PurchasableSku buildPartial()
Returns
TypeDescription
PurchasableSku

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSku()

public PurchasableSku.Builder clearSku()

SKU

.google.cloud.channel.v1.Sku sku = 1;

Returns
TypeDescription
PurchasableSku.Builder

clone()

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

getDefaultInstanceForType()

public PurchasableSku getDefaultInstanceForType()
Returns
TypeDescription
PurchasableSku

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSku()

public Sku getSku()

SKU

.google.cloud.channel.v1.Sku sku = 1;

Returns
TypeDescription
Sku

The sku.

getSkuBuilder()

public Sku.Builder getSkuBuilder()

SKU

.google.cloud.channel.v1.Sku sku = 1;

Returns
TypeDescription
Sku.Builder

getSkuOrBuilder()

public SkuOrBuilder getSkuOrBuilder()

SKU

.google.cloud.channel.v1.Sku sku = 1;

Returns
TypeDescription
SkuOrBuilder

hasSku()

public boolean hasSku()

SKU

.google.cloud.channel.v1.Sku sku = 1;

Returns
TypeDescription
boolean

Whether the sku field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PurchasableSku other)

public PurchasableSku.Builder mergeFrom(PurchasableSku other)
Parameter
NameDescription
otherPurchasableSku
Returns
TypeDescription
PurchasableSku.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSku(Sku value)

public PurchasableSku.Builder mergeSku(Sku value)

SKU

.google.cloud.channel.v1.Sku sku = 1;

Parameter
NameDescription
valueSku
Returns
TypeDescription
PurchasableSku.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSku(Sku value)

public PurchasableSku.Builder setSku(Sku value)

SKU

.google.cloud.channel.v1.Sku sku = 1;

Parameter
NameDescription
valueSku
Returns
TypeDescription
PurchasableSku.Builder

setSku(Sku.Builder builderForValue)

public PurchasableSku.Builder setSku(Sku.Builder builderForValue)

SKU

.google.cloud.channel.v1.Sku sku = 1;

Parameter
NameDescription
builderForValueSku.Builder
Returns
TypeDescription
PurchasableSku.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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