public static final class CreateHardwareGroupRequest.Builder extends GeneratedMessageV3.Builder<CreateHardwareGroupRequest.Builder> implements CreateHardwareGroupRequestOrBuilder
A request to create a hardware group.
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateHardwareGroupRequest.BuilderImplements
CreateHardwareGroupRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateHardwareGroupRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
build()
public CreateHardwareGroupRequest build()
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest |
buildPartial()
public CreateHardwareGroupRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest |
clear()
public CreateHardwareGroupRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreateHardwareGroupRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
clearHardwareGroup()
public CreateHardwareGroupRequest.Builder clearHardwareGroup()
Required. The hardware group to create.
.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
clearHardwareGroupId()
public CreateHardwareGroupRequest.Builder clearHardwareGroupId()
Optional. ID used to uniquely identify the HardwareGroup 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 hardware_group.name field in the request will be ignored.
string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateHardwareGroupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
clearParent()
public CreateHardwareGroupRequest.Builder clearParent()
Required. The order to create the hardware group in.
Format: projects/{project}/locations/{location}/orders/{order}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
clearRequestId()
public CreateHardwareGroupRequest.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 |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
clone()
public CreateHardwareGroupRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
getDefaultInstanceForType()
public CreateHardwareGroupRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getHardwareGroup()
public HardwareGroup getHardwareGroup()
Required. The hardware group to create.
.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
HardwareGroup |
The hardwareGroup. |
getHardwareGroupBuilder()
public HardwareGroup.Builder getHardwareGroupBuilder()
Required. The hardware group to create.
.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
HardwareGroup.Builder |
getHardwareGroupId()
public String getHardwareGroupId()
Optional. ID used to uniquely identify the HardwareGroup 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 hardware_group.name field in the request will be ignored.
string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The hardwareGroupId. |
getHardwareGroupIdBytes()
public ByteString getHardwareGroupIdBytes()
Optional. ID used to uniquely identify the HardwareGroup 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 hardware_group.name field in the request will be ignored.
string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for hardwareGroupId. |
getHardwareGroupOrBuilder()
public HardwareGroupOrBuilder getHardwareGroupOrBuilder()
Required. The hardware group to create.
.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
HardwareGroupOrBuilder |
getParent()
public String getParent()
Required. The order to create the hardware group in.
Format: projects/{project}/locations/{location}/orders/{order}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The order to create the hardware group in.
Format: projects/{project}/locations/{location}/orders/{order}
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. |
hasHardwareGroup()
public boolean hasHardwareGroup()
Required. The hardware group to create.
.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the hardwareGroup field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CreateHardwareGroupRequest other)
public CreateHardwareGroupRequest.Builder mergeFrom(CreateHardwareGroupRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateHardwareGroupRequest |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateHardwareGroupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateHardwareGroupRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
mergeHardwareGroup(HardwareGroup value)
public CreateHardwareGroupRequest.Builder mergeHardwareGroup(HardwareGroup value)
Required. The hardware group to create.
.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
HardwareGroup |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateHardwareGroupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateHardwareGroupRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
setHardwareGroup(HardwareGroup value)
public CreateHardwareGroupRequest.Builder setHardwareGroup(HardwareGroup value)
Required. The hardware group to create.
.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
HardwareGroup |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
setHardwareGroup(HardwareGroup.Builder builderForValue)
public CreateHardwareGroupRequest.Builder setHardwareGroup(HardwareGroup.Builder builderForValue)
Required. The hardware group to create.
.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
HardwareGroup.Builder |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
setHardwareGroupId(String value)
public CreateHardwareGroupRequest.Builder setHardwareGroupId(String value)
Optional. ID used to uniquely identify the HardwareGroup 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 hardware_group.name field in the request will be ignored.
string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The hardwareGroupId to set. |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
setHardwareGroupIdBytes(ByteString value)
public CreateHardwareGroupRequest.Builder setHardwareGroupIdBytes(ByteString value)
Optional. ID used to uniquely identify the HardwareGroup 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 hardware_group.name field in the request will be ignored.
string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for hardwareGroupId to set. |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateHardwareGroupRequest.Builder setParent(String value)
Required. The order to create the hardware group in.
Format: projects/{project}/locations/{location}/orders/{order}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateHardwareGroupRequest.Builder setParentBytes(ByteString value)
Required. The order to create the hardware group in.
Format: projects/{project}/locations/{location}/orders/{order}
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 |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateHardwareGroupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |
setRequestId(String value)
public CreateHardwareGroupRequest.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 |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
setRequestIdBytes(ByteString value)
public CreateHardwareGroupRequest.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 |
CreateHardwareGroupRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateHardwareGroupRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateHardwareGroupRequest.Builder |