Class ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder (3.43.0)

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

List Offers for CreateEntitlement purchase.

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

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPurchasableOffersRequest.CreateEntitlementPurchase build()
Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase

buildPartial()

public ListPurchasableOffersRequest.CreateEntitlementPurchase buildPartial()
Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase

clear()

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder clear()
Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder
Overrides

clearBillingAccount()

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder clearBillingAccount()

Optional. Billing account that the result should be restricted to. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSku()

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder clearSku()

Required. SKU that the result should be restricted to. Format: products/{product_id}/skus/{sku_id}.

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

Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

clone()

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder clone()
Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder
Overrides

getBillingAccount()

public String getBillingAccount()

Optional. Billing account that the result should be restricted to. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The billingAccount.

getBillingAccountBytes()

public ByteString getBillingAccountBytes()

Optional. Billing account that the result should be restricted to. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for billingAccount.

getDefaultInstanceForType()

public ListPurchasableOffersRequest.CreateEntitlementPurchase getDefaultInstanceForType()
Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSku()

public String getSku()

Required. SKU that the result should be restricted to. Format: products/{product_id}/skus/{sku_id}.

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

Returns
TypeDescription
String

The sku.

getSkuBytes()

public ByteString getSkuBytes()

Required. SKU that the result should be restricted to. Format: products/{product_id}/skus/{sku_id}.

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

Returns
TypeDescription
ByteString

The bytes for sku.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPurchasableOffersRequest.CreateEntitlementPurchase other)

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder mergeFrom(ListPurchasableOffersRequest.CreateEntitlementPurchase other)
Parameter
NameDescription
otherListPurchasableOffersRequest.CreateEntitlementPurchase
Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBillingAccount(String value)

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder setBillingAccount(String value)

Optional. Billing account that the result should be restricted to. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The billingAccount to set.

Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

setBillingAccountBytes(ByteString value)

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder setBillingAccountBytes(ByteString value)

Optional. Billing account that the result should be restricted to. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for billingAccount to set.

Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSku(String value)

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder setSku(String value)

Required. SKU that the result should be restricted to. Format: products/{product_id}/skus/{sku_id}.

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

Parameter
NameDescription
valueString

The sku to set.

Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

setSkuBytes(ByteString value)

public ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder setSkuBytes(ByteString value)

Required. SKU that the result should be restricted to. Format: products/{product_id}/skus/{sku_id}.

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

Parameter
NameDescription
valueByteString

The bytes for sku to set.

Returns
TypeDescription
ListPurchasableOffersRequest.CreateEntitlementPurchase.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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