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
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()
Returns
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LineItemInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LineItemInfo build()
Returns
buildPartial()
public LineItemInfo buildPartial()
Returns
clear()
public LineItemInfo.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LineItemInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public LineItemInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public LineItemInfo.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LineItemInfo getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Returns
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
Returns
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
getParametersCount()
public int getParametersCount()
Optional. User-provided parameters.
repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns
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
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
Returns
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LineItemInfo other)
public LineItemInfo.Builder mergeFrom(LineItemInfo other)
Parameter
Returns
public LineItemInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LineItemInfo.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LineItemInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public LineItemInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LineItemInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final LineItemInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides