public static final class LineItemInfo.Builder extends GeneratedMessageV3.Builder<LineItemInfo.Builder> implements LineItemInfoOrBuilder
Line item information.
Protobuf type google.cloud.commerce.consumer.procurement.v1.LineItemInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllParameters(Iterable<? extends Parameter> values)
public LineItemInfo.Builder addAllParameters(Iterable<? extends Parameter> values)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1.Parameter>
|
addParameters(Parameter value)
public LineItemInfo.Builder addParameters(Parameter value)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
addParameters(Parameter.Builder builderForValue)
public LineItemInfo.Builder addParameters(Parameter.Builder builderForValue)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
addParameters(int index, Parameter value)
public LineItemInfo.Builder addParameters(int index, Parameter value)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
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.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
addParametersBuilder()
public Parameter.Builder addParametersBuilder()
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
addParametersBuilder(int index)
public Parameter.Builder addParametersBuilder(int index)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LineItemInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LineItemInfo build()
buildPartial()
public LineItemInfo buildPartial()
clear()
public LineItemInfo.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public LineItemInfo.Builder clearField(Descriptors.FieldDescriptor field)
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public LineItemInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParameters()
public LineItemInfo.Builder clearParameters()
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
clearSubscription()
public LineItemInfo.Builder clearSubscription()
Output only. Information about the subscription created, if applicable.
.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
public LineItemInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public LineItemInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
getParametersBuilder(int index)
public Parameter.Builder getParametersBuilder(int index)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
getParametersBuilderList()
public List<Parameter.Builder> getParametersBuilderList()
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
getParametersCount()
public int getParametersCount()
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.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.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
getParametersOrBuilder(int index)
public ParameterOrBuilder getParametersOrBuilder(int index)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
getParametersOrBuilderList()
public List<? extends ParameterOrBuilder> getParametersOrBuilderList()
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
List<? extends com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> | |
getSubscription()
public Subscription getSubscription()
Output only. Information about the subscription created, if applicable.
.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubscriptionBuilder()
public Subscription.Builder getSubscriptionBuilder()
Output only. Information about the subscription created, if applicable.
.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubscriptionOrBuilder()
public SubscriptionOrBuilder getSubscriptionOrBuilder()
Output only. Information about the subscription created, if applicable.
.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasSubscription()
public boolean hasSubscription()
Output only. Information about the subscription created, if applicable.
.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
boolean | Whether the subscription field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LineItemInfo other)
public LineItemInfo.Builder mergeFrom(LineItemInfo other)
public LineItemInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LineItemInfo.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeSubscription(Subscription value)
public LineItemInfo.Builder mergeSubscription(Subscription value)
Output only. Information about the subscription created, if applicable.
.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LineItemInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeParameters(int index)
public LineItemInfo.Builder removeParameters(int index)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public LineItemInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setParameters(int index, Parameter value)
public LineItemInfo.Builder setParameters(int index, Parameter value)
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
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.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LineItemInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSubscription(Subscription value)
public LineItemInfo.Builder setSubscription(Subscription value)
Output only. Information about the subscription created, if applicable.
.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
setUnknownFields(UnknownFieldSet unknownFields)
public final LineItemInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides