Class LineItemInfo.Builder (0.47.0)

public static final class LineItemInfo.Builder extends GeneratedMessageV3.Builder<LineItemInfo.Builder> implements LineItemInfoOrBuilder

Line item information.

Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo

Static Methods

getDescriptor()

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

Methods

addAllParameters(Iterable<? extends Parameter> values)

public LineItemInfo.Builder addAllParameters(Iterable<? extends Parameter> values)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter>
Returns
Type Description
LineItemInfo.Builder

addParameters(Parameter value)

public LineItemInfo.Builder addParameters(Parameter value)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Parameter
Returns
Type Description
LineItemInfo.Builder

addParameters(Parameter.Builder builderForValue)

public LineItemInfo.Builder addParameters(Parameter.Builder builderForValue)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Parameter.Builder
Returns
Type Description
LineItemInfo.Builder

addParameters(int index, Parameter value)

public LineItemInfo.Builder addParameters(int index, Parameter value)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Parameter
Returns
Type Description
LineItemInfo.Builder

addParameters(int index, Parameter.Builder builderForValue)

public LineItemInfo.Builder addParameters(int index, Parameter.Builder builderForValue)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Parameter.Builder
Returns
Type Description
LineItemInfo.Builder

addParametersBuilder()

public Parameter.Builder addParametersBuilder()

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Parameter.Builder

addParametersBuilder(int index)

public Parameter.Builder addParametersBuilder(int index)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Parameter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LineItemInfo build()
Returns
Type Description
LineItemInfo

buildPartial()

public LineItemInfo buildPartial()
Returns
Type Description
LineItemInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOffer()

public LineItemInfo.Builder clearOffer()

Optional. The name of the offer can have either of these formats: 'billingAccounts/{billing_account}/offers/{offer}', or 'services/{service}/standardOffers/{offer}'.

string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
LineItemInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParameters()

public LineItemInfo.Builder clearParameters()

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemInfo.Builder

clearSubscription()

public LineItemInfo.Builder clearSubscription()

Output only. Information about the subscription created, if applicable.

.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemInfo.Builder

clone()

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

getDefaultInstanceForType()

public LineItemInfo getDefaultInstanceForType()
Returns
Type Description
LineItemInfo

getDescriptorForType()

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

getOffer()

public String getOffer()

Optional. The name of the offer can have either of these formats: 'billingAccounts/{billing_account}/offers/{offer}', or 'services/{service}/standardOffers/{offer}'.

string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The offer.

getOfferBytes()

public ByteString getOfferBytes()

Optional. The name of the offer can have either of these formats: 'billingAccounts/{billing_account}/offers/{offer}', or 'services/{service}/standardOffers/{offer}'.

string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for offer.

getParameters(int index)

public Parameter getParameters(int index)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Parameter

getParametersBuilder(int index)

public Parameter.Builder getParametersBuilder(int index)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Parameter.Builder

getParametersBuilderList()

public List<Parameter.Builder> getParametersBuilderList()

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getParametersCount()

public int getParametersCount()

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getParametersList()

public List<Parameter> getParametersList()

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Parameter>

getParametersOrBuilder(int index)

public ParameterOrBuilder getParametersOrBuilder(int index)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ParameterOrBuilder

getParametersOrBuilderList()

public List<? extends ParameterOrBuilder> getParametersOrBuilderList()

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder>

getSubscription()

public Subscription getSubscription()

Output only. Information about the subscription created, if applicable.

.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subscription

The subscription.

getSubscriptionBuilder()

public Subscription.Builder getSubscriptionBuilder()

Output only. Information about the subscription created, if applicable.

.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subscription.Builder

getSubscriptionOrBuilder()

public SubscriptionOrBuilder getSubscriptionOrBuilder()

Output only. Information about the subscription created, if applicable.

.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SubscriptionOrBuilder

hasSubscription()

public boolean hasSubscription()

Output only. Information about the subscription created, if applicable.

.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the subscription field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LineItemInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSubscription(Subscription value)

public LineItemInfo.Builder mergeSubscription(Subscription value)

Output only. Information about the subscription created, if applicable.

.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Subscription
Returns
Type Description
LineItemInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeParameters(int index)

public LineItemInfo.Builder removeParameters(int index)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LineItemInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOffer(String value)

public LineItemInfo.Builder setOffer(String value)

Optional. The name of the offer can have either of these formats: 'billingAccounts/{billing_account}/offers/{offer}', or 'services/{service}/standardOffers/{offer}'.

string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The offer to set.

Returns
Type Description
LineItemInfo.Builder

This builder for chaining.

setOfferBytes(ByteString value)

public LineItemInfo.Builder setOfferBytes(ByteString value)

Optional. The name of the offer can have either of these formats: 'billingAccounts/{billing_account}/offers/{offer}', or 'services/{service}/standardOffers/{offer}'.

string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for offer to set.

Returns
Type Description
LineItemInfo.Builder

This builder for chaining.

setParameters(int index, Parameter value)

public LineItemInfo.Builder setParameters(int index, Parameter value)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Parameter
Returns
Type Description
LineItemInfo.Builder

setParameters(int index, Parameter.Builder builderForValue)

public LineItemInfo.Builder setParameters(int index, Parameter.Builder builderForValue)

Optional. User-provided parameters.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Parameter.Builder
Returns
Type Description
LineItemInfo.Builder

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

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

setSubscription(Subscription value)

public LineItemInfo.Builder setSubscription(Subscription value)

Output only. Information about the subscription created, if applicable.

.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Subscription
Returns
Type Description
LineItemInfo.Builder

setSubscription(Subscription.Builder builderForValue)

public LineItemInfo.Builder setSubscription(Subscription.Builder builderForValue)

Output only. Information about the subscription created, if applicable.

.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Subscription.Builder
Returns
Type Description
LineItemInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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