Class ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder (3.50.0)

public static final class ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder extends GeneratedMessageV3.Builder<ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder> implements ListPurchasableSkusRequest.CreateEntitlementPurchaseOrBuilder

List SKUs for a new entitlement. Make the purchase using CloudChannelService.CreateEntitlement.

Protobuf type google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPurchasableSkusRequest.CreateEntitlementPurchase build()
Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase

buildPartial()

public ListPurchasableSkusRequest.CreateEntitlementPurchase buildPartial()
Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase

clear()

public ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder clear()
Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProduct()

public ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder clearProduct()

Required. List SKUs belonging to this Product. Format: products/{product_id}. Supports products/- to retrieve SKUs for all products.

string product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

clone()

public ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder clone()
Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder
Overrides

getDefaultInstanceForType()

public ListPurchasableSkusRequest.CreateEntitlementPurchase getDefaultInstanceForType()
Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase

getDescriptorForType()

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

getProduct()

public String getProduct()

Required. List SKUs belonging to this Product. Format: products/{product_id}. Supports products/- to retrieve SKUs for all products.

string product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The product.

getProductBytes()

public ByteString getProductBytes()

Required. List SKUs belonging to this Product. Format: products/{product_id}. Supports products/- to retrieve SKUs for all products.

string product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for product.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPurchasableSkusRequest.CreateEntitlementPurchase other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProduct(String value)

public ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder setProduct(String value)

Required. List SKUs belonging to this Product. Format: products/{product_id}. Supports products/- to retrieve SKUs for all products.

string product = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The product to set.

Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

setProductBytes(ByteString value)

public ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder setProductBytes(ByteString value)

Required. List SKUs belonging to this Product. Format: products/{product_id}. Supports products/- to retrieve SKUs for all products.

string product = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for product to set.

Returns
Type Description
ListPurchasableSkusRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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