Class Order (0.45.0)

public final class Order extends GeneratedMessageV3 implements OrderOrBuilder

Represents a purchase made by a customer on Cloud Marketplace. Creating an order makes sure that both the Google backend systems as well as external service provider's systems (if needed) allow use of purchased products and ensures the appropriate billing events occur.

An Order can be made against one Product with multiple add-ons (optional) or one Quote which might reference multiple products.

Customers typically choose a price plan for each Product purchased when they create an order and can change their plan later, if the product allows.

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

Implements

OrderOrBuilder

Static Fields

CANCELLED_LINE_ITEMS_FIELD_NUMBER

public static final int CANCELLED_LINE_ITEMS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
Type Description
int

LINE_ITEMS_FIELD_NUMBER

public static final int LINE_ITEMS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Order getDefaultInstance()
Returns
Type Description
Order

getDescriptor()

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

newBuilder()

public static Order.Builder newBuilder()
Returns
Type Description
Order.Builder

newBuilder(Order prototype)

public static Order.Builder newBuilder(Order prototype)
Parameter
Name Description
prototype Order
Returns
Type Description
Order.Builder

parseDelimitedFrom(InputStream input)

public static Order parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Order
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Order parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Order
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Order parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Order
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Order parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Order
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Order parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Order
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Order parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Order
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Order parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Order
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Order parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Order
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Order parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Order
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Order parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Order
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Order parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Order
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Order parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Order
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Order> parser()
Returns
Type Description
Parser<Order>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCancelledLineItems(int index)

public LineItem getCancelledLineItems(int index)

Output only. Line items that were cancelled.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LineItem

getCancelledLineItemsCount()

public int getCancelledLineItemsCount()

Output only. Line items that were cancelled.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getCancelledLineItemsList()

public List<LineItem> getCancelledLineItemsList()

Output only. Line items that were cancelled.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<LineItem>

getCancelledLineItemsOrBuilder(int index)

public LineItemOrBuilder getCancelledLineItemsOrBuilder(int index)

Output only. Line items that were cancelled.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LineItemOrBuilder

getCancelledLineItemsOrBuilderList()

public List<? extends LineItemOrBuilder> getCancelledLineItemsOrBuilderList()

Output only. Line items that were cancelled.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Order getDefaultInstanceForType()
Returns
Type Description
Order

getDisplayName()

public String getDisplayName()

Required. The user-specified name of the order.

string display_name = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The user-specified name of the order.

string display_name = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

The weak etag of the order.

string etag = 11;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

The weak etag of the order.

string etag = 11;

Returns
Type Description
ByteString

The bytes for etag.

getLineItems(int index)

public LineItem getLineItems(int index)

Output only. The items being purchased.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LineItem

getLineItemsCount()

public int getLineItemsCount()

Output only. The items being purchased.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getLineItemsList()

public List<LineItem> getLineItemsList()

Output only. The items being purchased.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<LineItem>

getLineItemsOrBuilder(int index)

public LineItemOrBuilder getLineItemsOrBuilder(int index)

Output only. The items being purchased.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LineItemOrBuilder

getLineItemsOrBuilderList()

public List<? extends LineItemOrBuilder> getLineItemsOrBuilderList()

Output only. The items being purchased.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getName()

public String getName()

Output only. The resource name of the order. Has the form billingAccounts/{billing_account}/orders/{order}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the order. Has the form billingAccounts/{billing_account}/orders/{order}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Order> getParserForType()
Returns
Type Description
Parser<Order>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update timestamp.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Order.Builder newBuilderForType()
Returns
Type Description
Order.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Order.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Order.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Order.Builder toBuilder()
Returns
Type Description
Order.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException