Class CreateHardwareRequest.Builder (0.2.0)

public static final class CreateHardwareRequest.Builder extends GeneratedMessageV3.Builder<CreateHardwareRequest.Builder> implements CreateHardwareRequestOrBuilder

A request to create hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateHardwareRequest build()
Returns
Type Description
CreateHardwareRequest

buildPartial()

public CreateHardwareRequest buildPartial()
Returns
Type Description
CreateHardwareRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHardware()

public CreateHardwareRequest.Builder clearHardware()

Required. The resource to create.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateHardwareRequest.Builder

clearHardwareId()

public CreateHardwareRequest.Builder clearHardwareId()

Optional. ID used to uniquely identify the Hardware 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.name field in the request will be ignored.

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

Returns
Type Description
CreateHardwareRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateHardwareRequest.Builder clearParent()

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

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

Returns
Type Description
CreateHardwareRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateHardwareRequest getDefaultInstanceForType()
Returns
Type Description
CreateHardwareRequest

getDescriptorForType()

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

getHardware()

public Hardware getHardware()

Required. The resource to create.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Hardware

The hardware.

getHardwareBuilder()

public Hardware.Builder getHardwareBuilder()

Required. The resource to create.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Hardware.Builder

getHardwareId()

public String getHardwareId()

Optional. ID used to uniquely identify the Hardware 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.name field in the request will be ignored.

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

Returns
Type Description
String

The hardwareId.

getHardwareIdBytes()

public ByteString getHardwareIdBytes()

Optional. ID used to uniquely identify the Hardware 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.name field in the request will be ignored.

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

Returns
Type Description
ByteString

The bytes for hardwareId.

getHardwareOrBuilder()

public HardwareOrBuilder getHardwareOrBuilder()

Required. The resource to create.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwareOrBuilder

getParent()

public String getParent()

Required. The project and location to create hardware 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 hardware 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.

hasHardware()

public boolean hasHardware()

Required. The resource to create.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the hardware field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateHardwareRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHardware(Hardware value)

public CreateHardwareRequest.Builder mergeHardware(Hardware value)

Required. The resource to create.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Hardware
Returns
Type Description
CreateHardwareRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHardware(Hardware value)

public CreateHardwareRequest.Builder setHardware(Hardware value)

Required. The resource to create.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Hardware
Returns
Type Description
CreateHardwareRequest.Builder

setHardware(Hardware.Builder builderForValue)

public CreateHardwareRequest.Builder setHardware(Hardware.Builder builderForValue)

Required. The resource to create.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Hardware.Builder
Returns
Type Description
CreateHardwareRequest.Builder

setHardwareId(String value)

public CreateHardwareRequest.Builder setHardwareId(String value)

Optional. ID used to uniquely identify the Hardware 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.name field in the request will be ignored.

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

Parameter
Name Description
value String

The hardwareId to set.

Returns
Type Description
CreateHardwareRequest.Builder

This builder for chaining.

setHardwareIdBytes(ByteString value)

public CreateHardwareRequest.Builder setHardwareIdBytes(ByteString value)

Optional. ID used to uniquely identify the Hardware 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.name field in the request will be ignored.

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

Parameter
Name Description
value ByteString

The bytes for hardwareId to set.

Returns
Type Description
CreateHardwareRequest.Builder

This builder for chaining.

setParent(String value)

public CreateHardwareRequest.Builder setParent(String value)

Required. The project and location to create hardware 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
CreateHardwareRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateHardwareRequest.Builder setParentBytes(ByteString value)

Required. The project and location to create hardware 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
CreateHardwareRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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