Class LineItemInfo (0.21.0)

public final class LineItemInfo extends GeneratedMessageV3 implements LineItemInfoOrBuilder

Line item information.

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

Static Fields

OFFER_FIELD_NUMBER

public static final int OFFER_FIELD_NUMBER
Field Value
TypeDescription
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSCRIPTION_FIELD_NUMBER

public static final int SUBSCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LineItemInfo getDefaultInstance()
Returns
TypeDescription
LineItemInfo

getDescriptor()

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

newBuilder()

public static LineItemInfo.Builder newBuilder()
Returns
TypeDescription
LineItemInfo.Builder

newBuilder(LineItemInfo prototype)

public static LineItemInfo.Builder newBuilder(LineItemInfo prototype)
Parameter
NameDescription
prototypeLineItemInfo
Returns
TypeDescription
LineItemInfo.Builder

parseDelimitedFrom(InputStream input)

public static LineItemInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItemInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LineItemInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LineItemInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LineItemInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LineItemInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LineItemInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItemInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LineItemInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItemInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LineItemInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LineItemInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LineItemInfo> parser()
Returns
TypeDescription
Parser<LineItemInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LineItemInfo getDefaultInstanceForType()
Returns
TypeDescription
LineItemInfo

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

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>

getParserForType()

public Parser<LineItemInfo> getParserForType()
Returns
TypeDescription
Parser<LineItemInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LineItemInfo.Builder newBuilderForType()
Returns
TypeDescription
LineItemInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LineItemInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LineItemInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LineItemInfo.Builder toBuilder()
Returns
TypeDescription
LineItemInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException