Class Order.Builder (0.8.0)

public static final class Order.Builder extends GeneratedMessageV3.Builder<Order.Builder> implements OrderOrBuilder

An order for GDC hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Order

Implements

OrderOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllExistingHardware(Iterable<? extends HardwareLocation> values)

public Order.Builder addAllExistingHardware(Iterable<? extends HardwareLocation> values)

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
values Iterable<? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation>
Returns
Type Description
Order.Builder

addAllTargetWorkloads(Iterable<String> values)

public Order.Builder addAllTargetWorkloads(Iterable<String> values)

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
values Iterable<String>

The targetWorkloads to add.

Returns
Type Description
Order.Builder

This builder for chaining.

addExistingHardware(HardwareLocation value)

public Order.Builder addExistingHardware(HardwareLocation value)

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
value HardwareLocation
Returns
Type Description
Order.Builder

addExistingHardware(HardwareLocation.Builder builderForValue)

public Order.Builder addExistingHardware(HardwareLocation.Builder builderForValue)

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
builderForValue HardwareLocation.Builder
Returns
Type Description
Order.Builder

addExistingHardware(int index, HardwareLocation value)

public Order.Builder addExistingHardware(int index, HardwareLocation value)

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];

Parameters
Name Description
index int
value HardwareLocation
Returns
Type Description
Order.Builder

addExistingHardware(int index, HardwareLocation.Builder builderForValue)

public Order.Builder addExistingHardware(int index, HardwareLocation.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue HardwareLocation.Builder
Returns
Type Description
Order.Builder

addExistingHardwareBuilder()

public HardwareLocation.Builder addExistingHardwareBuilder()

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
HardwareLocation.Builder

addExistingHardwareBuilder(int index)

public HardwareLocation.Builder addExistingHardwareBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Order.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Order.Builder
Overrides

addTargetWorkloads(String value)

public Order.Builder addTargetWorkloads(String value)

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
value String

The targetWorkloads to add.

Returns
Type Description
Order.Builder

This builder for chaining.

addTargetWorkloadsBytes(ByteString value)

public Order.Builder addTargetWorkloadsBytes(ByteString value)

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
value ByteString

The bytes of the targetWorkloads to add.

Returns
Type Description
Order.Builder

This builder for chaining.

build()

public Order build()
Returns
Type Description
Order

buildPartial()

public Order buildPartial()
Returns
Type Description
Order

clear()

public Order.Builder clear()
Returns
Type Description
Order.Builder
Overrides

clearBillingId()

public Order.Builder clearBillingId()

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

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

Returns
Type Description
Order.Builder

This builder for chaining.

clearCreateTime()

public Order.Builder clearCreateTime()

Output only. Time when this order was created.

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

Returns
Type Description
Order.Builder

clearCustomerMotivation()

public Order.Builder clearCustomerMotivation()

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
Order.Builder

This builder for chaining.

clearDisplayName()

public Order.Builder clearDisplayName()

Optional. Display name of this order.

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

Returns
Type Description
Order.Builder

This builder for chaining.

clearExistingHardware()

public Order.Builder clearExistingHardware()

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
Order.Builder

clearField(Descriptors.FieldDescriptor field)

public Order.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Order.Builder
Overrides

clearFulfillmentTime()

public Order.Builder clearFulfillmentTime()

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
Order.Builder

clearLabels()

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

clearName()

public Order.Builder clearName()

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

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

Returns
Type Description
Order.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Order.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Order.Builder
Overrides

clearOrderFormUri()

public Order.Builder clearOrderFormUri()

Output only. Link to the order form.

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

Returns
Type Description
Order.Builder

This builder for chaining.

clearOrganizationContact()

public Order.Builder clearOrganizationContact()

Required. Customer contact information.

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

Returns
Type Description
Order.Builder

clearRegionCode()

public Order.Builder clearRegionCode()

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
Order.Builder

This builder for chaining.

clearState()

public Order.Builder clearState()

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.Builder

This builder for chaining.

clearSubmitTime()

public Order.Builder clearSubmitTime()

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
Order.Builder

clearTargetWorkloads()

public Order.Builder clearTargetWorkloads()

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
Order.Builder

This builder for chaining.

clearType()

public Order.Builder clearType()

Output only. Type of this Order.

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

Returns
Type Description
Order.Builder

This builder for chaining.

clearUpdateTime()

public Order.Builder clearUpdateTime()

Output only. Time when this order was last updated.

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

Returns
Type Description
Order.Builder

clone()

public Order.Builder clone()
Returns
Type Description
Order.Builder
Overrides

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

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when this order was created.

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

Returns
Type Description
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getExistingHardwareBuilder(int index)

public HardwareLocation.Builder getExistingHardwareBuilder(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.Builder

getExistingHardwareBuilderList()

public List<HardwareLocation.Builder> getExistingHardwareBuilderList()

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<Builder>

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.

getFulfillmentTimeBuilder()

public Timestamp.Builder getFulfillmentTimeBuilder()

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
Builder

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

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,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.

getOrganizationContactBuilder()

public OrganizationContact.Builder getOrganizationContactBuilder()

Required. Customer contact information.

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

Returns
Type Description
OrganizationContact.Builder

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

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.

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.

getSubmitTimeBuilder()

public Timestamp.Builder getSubmitTimeBuilder()

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
Builder

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when this order was last updated.

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

Returns
Type Description
Builder

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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Order.Builder mergeCreateTime(Timestamp value)

Output only. Time when this order was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Order.Builder

mergeFrom(Order other)

public Order.Builder mergeFrom(Order other)
Parameter
Name Description
other Order
Returns
Type Description
Order.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Order.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Order.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Order.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Order.Builder
Overrides

mergeFulfillmentTime(Timestamp value)

public Order.Builder mergeFulfillmentTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Order.Builder

mergeOrganizationContact(OrganizationContact value)

public Order.Builder mergeOrganizationContact(OrganizationContact value)

Required. Customer contact information.

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

Parameter
Name Description
value OrganizationContact
Returns
Type Description
Order.Builder

mergeSubmitTime(Timestamp value)

public Order.Builder mergeSubmitTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Order.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Order.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Order.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Order.Builder mergeUpdateTime(Timestamp value)

Output only. Time when this order was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Order.Builder

putAllLabels(Map<String,String> values)

public Order.Builder putAllLabels(Map<String,String> values)

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
values Map<String,String>
Returns
Type Description
Order.Builder

putLabels(String key, String value)

public Order.Builder putLabels(String key, String value)

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
value String
Returns
Type Description
Order.Builder

removeExistingHardware(int index)

public Order.Builder removeExistingHardware(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
Order.Builder

removeLabels(String key)

public Order.Builder removeLabels(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
Order.Builder

setBillingId(String value)

public Order.Builder setBillingId(String value)

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

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

Parameter
Name Description
value String

The billingId to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setBillingIdBytes(ByteString value)

public Order.Builder setBillingIdBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for billingId to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Order.Builder setCreateTime(Timestamp value)

Output only. Time when this order was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Order.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Order.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when this order was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Order.Builder

setCustomerMotivation(String value)

public Order.Builder setCustomerMotivation(String value)

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];

Parameter
Name Description
value String

The customerMotivation to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setCustomerMotivationBytes(ByteString value)

public Order.Builder setCustomerMotivationBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for customerMotivation to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setDisplayName(String value)

public Order.Builder setDisplayName(String value)

Optional. Display name of this order.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Order.Builder setDisplayNameBytes(ByteString value)

Optional. Display name of this order.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setExistingHardware(int index, HardwareLocation value)

public Order.Builder setExistingHardware(int index, HardwareLocation value)

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];

Parameters
Name Description
index int
value HardwareLocation
Returns
Type Description
Order.Builder

setExistingHardware(int index, HardwareLocation.Builder builderForValue)

public Order.Builder setExistingHardware(int index, HardwareLocation.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue HardwareLocation.Builder
Returns
Type Description
Order.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Order.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Order.Builder
Overrides

setFulfillmentTime(Timestamp value)

public Order.Builder setFulfillmentTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Order.Builder

setFulfillmentTime(Timestamp.Builder builderForValue)

public Order.Builder setFulfillmentTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Order.Builder

setName(String value)

public Order.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Order.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setOrderFormUri(String value)

public Order.Builder setOrderFormUri(String value)

Output only. Link to the order form.

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

Parameter
Name Description
value String

The orderFormUri to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setOrderFormUriBytes(ByteString value)

public Order.Builder setOrderFormUriBytes(ByteString value)

Output only. Link to the order form.

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

Parameter
Name Description
value ByteString

The bytes for orderFormUri to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setOrganizationContact(OrganizationContact value)

public Order.Builder setOrganizationContact(OrganizationContact value)

Required. Customer contact information.

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

Parameter
Name Description
value OrganizationContact
Returns
Type Description
Order.Builder

setOrganizationContact(OrganizationContact.Builder builderForValue)

public Order.Builder setOrganizationContact(OrganizationContact.Builder builderForValue)

Required. Customer contact information.

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

Parameter
Name Description
builderForValue OrganizationContact.Builder
Returns
Type Description
Order.Builder

setRegionCode(String value)

public Order.Builder setRegionCode(String value)

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];

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public Order.Builder setRegionCodeBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Order.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Order.Builder
Overrides

setState(Order.State value)

public Order.Builder setState(Order.State value)

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];

Parameter
Name Description
value Order.State

The state to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setStateValue(int value)

public Order.Builder setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setSubmitTime(Timestamp value)

public Order.Builder setSubmitTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Order.Builder

setSubmitTime(Timestamp.Builder builderForValue)

public Order.Builder setSubmitTime(Timestamp.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Order.Builder

setTargetWorkloads(int index, String value)

public Order.Builder setTargetWorkloads(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The targetWorkloads to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setType(Order.Type value)

public Order.Builder setType(Order.Type value)

Output only. Type of this Order.

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

Parameter
Name Description
value Order.Type

The type to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setTypeValue(int value)

public Order.Builder setTypeValue(int value)

Output only. Type of this Order.

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

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Order.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Order.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Order.Builder
Overrides

setUpdateTime(Timestamp value)

public Order.Builder setUpdateTime(Timestamp value)

Output only. Time when this order was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Order.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Order.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when this order was last updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Order.Builder