Class LineItemInfo.Builder (0.1.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter>
Returns
TypeDescription
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
NameDescription
valueParameter
Returns
TypeDescription
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
NameDescription
builderForValueParameter.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueParameter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueParameter.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Parameter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LineItemInfo build()
Returns
TypeDescription
LineItemInfo

buildPartial()

public LineItemInfo buildPartial()
Returns
TypeDescription
LineItemInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LineItemInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LineItemInfo.Builder

clone()

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

getDefaultInstanceForType()

public LineItemInfo getDefaultInstanceForType()
Returns
TypeDescription
LineItemInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the subscription field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LineItemInfo other)

public LineItemInfo.Builder mergeFrom(LineItemInfo other)
Parameter
NameDescription
otherLineItemInfo
Returns
TypeDescription
LineItemInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public LineItemInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSubscription
Returns
TypeDescription
LineItemInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The offer to set.

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

The bytes for offer to set.

Returns
TypeDescription
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
NameDescription
indexint
valueParameter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueParameter.Builder
Returns
TypeDescription
LineItemInfo.Builder

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

public LineItemInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSubscription
Returns
TypeDescription
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
NameDescription
builderForValueSubscription.Builder
Returns
TypeDescription
LineItemInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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