Class CreateOrderRequest.Builder (0.2.0)

public static final class CreateOrderRequest.Builder extends GeneratedMessageV3.Builder<CreateOrderRequest.Builder> implements CreateOrderRequestOrBuilder

A request to create an order.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateOrderRequest build()
Returns
Type Description
CreateOrderRequest

buildPartial()

public CreateOrderRequest buildPartial()
Returns
Type Description
CreateOrderRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrder()

public CreateOrderRequest.Builder clearOrder()

Required. The order to create.

.google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateOrderRequest.Builder

clearOrderId()

public CreateOrderRequest.Builder clearOrderId()

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

clearParent()

public CreateOrderRequest.Builder clearParent()

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

clearRequestId()

public CreateOrderRequest.Builder clearRequestId()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateOrderRequest getDefaultInstanceForType()
Returns
Type Description
CreateOrderRequest

getDescriptorForType()

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

getOrder()

public Order getOrder()

Required. The order to create.

.google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Order

The order.

getOrderBuilder()

public Order.Builder getOrderBuilder()

Required. The order to create.

.google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Order.Builder

getOrderId()

public String getOrderId()

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The orderId.

getOrderIdBytes()

public ByteString getOrderIdBytes()

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for orderId.

getOrderOrBuilder()

public OrderOrBuilder getOrderOrBuilder()

Required. The order to create.

.google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrderOrBuilder

getParent()

public String getParent()

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestId.

hasOrder()

public boolean hasOrder()

Required. The order to create.

.google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the order field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateOrderRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOrder(Order value)

public CreateOrderRequest.Builder mergeOrder(Order value)

Required. The order to create.

.google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Order
Returns
Type Description
CreateOrderRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOrder(Order value)

public CreateOrderRequest.Builder setOrder(Order value)

Required. The order to create.

.google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Order
Returns
Type Description
CreateOrderRequest.Builder

setOrder(Order.Builder builderForValue)

public CreateOrderRequest.Builder setOrder(Order.Builder builderForValue)

Required. The order to create.

.google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];

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

setOrderId(String value)

public CreateOrderRequest.Builder setOrderId(String value)

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The orderId to set.

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

setOrderIdBytes(ByteString value)

public CreateOrderRequest.Builder setOrderIdBytes(ByteString value)

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for orderId to set.

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

setParent(String value)

public CreateOrderRequest.Builder setParent(String value)

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateOrderRequest.Builder setParentBytes(ByteString value)

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateOrderRequest.Builder setRequestId(String value)

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateOrderRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateOrderRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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