Class Order (0.8.0)

public final class Order extends GeneratedMessageV3 implements OrderOrBuilder

An order for GDC hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Order

Implements

OrderOrBuilder

Static Fields

BILLING_ID_FIELD_NUMBER

public static final int BILLING_ID_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

CUSTOMER_MOTIVATION_FIELD_NUMBER

public static final int CUSTOMER_MOTIVATION_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

EXISTING_HARDWARE_FIELD_NUMBER

public static final int EXISTING_HARDWARE_FIELD_NUMBER
Field Value
Type Description
int

FULFILLMENT_TIME_FIELD_NUMBER

public static final int FULFILLMENT_TIME_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

ORDER_FORM_URI_FIELD_NUMBER

public static final int ORDER_FORM_URI_FIELD_NUMBER
Field Value
Type Description
int

ORGANIZATION_CONTACT_FIELD_NUMBER

public static final int ORGANIZATION_CONTACT_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

SUBMIT_TIME_FIELD_NUMBER

public static final int SUBMIT_TIME_FIELD_NUMBER
Field Value
Type Description
int

TARGET_WORKLOADS_FIELD_NUMBER

public static final int TARGET_WORKLOADS_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels associated with this order as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getBillingId()

public String getBillingId()

Required. The Google Cloud Billing ID to be charged for this order.

string billing_id = 15 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The billingId.

getBillingIdBytes()

public ByteString getBillingIdBytes()

Required. The Google Cloud Billing ID to be charged for this order.

string billing_id = 15 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for billingId.

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this order was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when this order was created.

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

Returns
Type Description
TimestampOrBuilder

getCustomerMotivation()

public String getCustomerMotivation()

Required. Information about the customer's motivation for this order. The length of this field must be <= 1000 characters.

string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The customerMotivation.

getCustomerMotivationBytes()

public ByteString getCustomerMotivationBytes()

Required. Information about the customer's motivation for this order. The length of this field must be <= 1000 characters.

string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for customerMotivation.

getDefaultInstanceForType()

public Order getDefaultInstanceForType()
Returns
Type Description
Order

getDisplayName()

public String getDisplayName()

Optional. Display name of this order.

string display_name = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Display name of this order.

string display_name = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getExistingHardware(int index)

public HardwareLocation getExistingHardware(int index)

Optional. Existing hardware to be removed as part of this order. Note: any hardware removed will be recycled unless otherwise agreed.

repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
HardwareLocation

getExistingHardwareCount()

public int getExistingHardwareCount()

Optional. Existing hardware to be removed as part of this order. Note: any hardware removed will be recycled unless otherwise agreed.

repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getExistingHardwareList()

public List<HardwareLocation> getExistingHardwareList()

Optional. Existing hardware to be removed as part of this order. Note: any hardware removed will be recycled unless otherwise agreed.

repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<HardwareLocation>

getExistingHardwareOrBuilder(int index)

public HardwareLocationOrBuilder getExistingHardwareOrBuilder(int index)

Optional. Existing hardware to be removed as part of this order. Note: any hardware removed will be recycled unless otherwise agreed.

repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
HardwareLocationOrBuilder

getExistingHardwareOrBuilderList()

public List<? extends HardwareLocationOrBuilder> getExistingHardwareOrBuilderList()

Optional. Existing hardware to be removed as part of this order. Note: any hardware removed will be recycled unless otherwise agreed.

repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder>

getFulfillmentTime()

public Timestamp getFulfillmentTime()

Required. Customer specified deadline by when this order should be fulfilled.

.google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The fulfillmentTime.

getFulfillmentTimeOrBuilder()

public TimestampOrBuilder getFulfillmentTimeOrBuilder()

Required. Customer specified deadline by when this order should be fulfilled.

.google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels associated with this order as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels associated with this order as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels associated with this order as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels associated with this order as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getName()

public String getName()

Identifier. Name of this order. Format: projects/{project}/locations/{location}/orders/{order}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of this order. Format: projects/{project}/locations/{location}/orders/{order}

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

Returns
Type Description
ByteString

The bytes for name.

getOrderFormUri()

public String getOrderFormUri()

Output only. Link to the order form.

string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The orderFormUri.

getOrderFormUriBytes()

public ByteString getOrderFormUriBytes()

Output only. Link to the order form.

string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for orderFormUri.

getOrganizationContact()

public OrganizationContact getOrganizationContact()

Required. Customer contact information.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrganizationContact

The organizationContact.

getOrganizationContactOrBuilder()

public OrganizationContactOrBuilder getOrganizationContactOrBuilder()

Required. Customer contact information.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrganizationContactOrBuilder

getParserForType()

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

getRegionCode()

public String getRegionCode()

Required. Unicode CLDR region code where this order will be deployed. For a list of valid CLDR region codes, see the Language Subtag Registry.

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

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Required. Unicode CLDR region code where this order will be deployed. For a list of valid CLDR region codes, see the Language Subtag Registry.

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

Returns
Type Description
ByteString

The bytes for regionCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public Order.State getState()

Output only. State of this order. On order creation, state will be set to DRAFT.

.google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Order.State

The state.

getStateValue()

public int getStateValue()

Output only. State of this order. On order creation, state will be set to DRAFT.

.google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSubmitTime()

public Timestamp getSubmitTime()

Output only. Time when the order was submitted. Is auto-populated to the current time when an order is submitted.

.google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The submitTime.

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

Output only. Time when the order was submitted. Is auto-populated to the current time when an order is submitted.

.google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getTargetWorkloads(int index)

public String getTargetWorkloads(int index)

Optional. Customer specified workloads of interest targeted by this order. This must contain <= 20 elements and the length of each element must be <= 50 characters.

repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetWorkloads at the given index.

getTargetWorkloadsBytes(int index)

public ByteString getTargetWorkloadsBytes(int index)

Optional. Customer specified workloads of interest targeted by this order. This must contain <= 20 elements and the length of each element must be <= 50 characters.

repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetWorkloads at the given index.

getTargetWorkloadsCount()

public int getTargetWorkloadsCount()

Optional. Customer specified workloads of interest targeted by this order. This must contain <= 20 elements and the length of each element must be <= 50 characters.

repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of targetWorkloads.

getTargetWorkloadsList()

public ProtocolStringList getTargetWorkloadsList()

Optional. Customer specified workloads of interest targeted by this order. This must contain <= 20 elements and the length of each element must be <= 50 characters.

repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the targetWorkloads.

getType()

public Order.Type getType()

Output only. Type of this Order.

.google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Order.Type

The type.

getTypeValue()

public int getTypeValue()

Output only. Type of this Order.

.google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when this order was last updated.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when this order was last updated.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when this order was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasFulfillmentTime()

public boolean hasFulfillmentTime()

Required. Customer specified deadline by when this order should be fulfilled.

.google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the fulfillmentTime field is set.

hasOrganizationContact()

public boolean hasOrganizationContact()

Required. Customer contact information.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the organizationContact field is set.

hasSubmitTime()

public boolean hasSubmitTime()

Output only. Time when the order was submitted. Is auto-populated to the current time when an order is submitted.

.google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the submitTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when this order was last updated.

.google.protobuf.Timestamp update_time = 3 [(.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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

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