Class HardwareGroup.Builder (0.3.0)

public static final class HardwareGroup.Builder extends GeneratedMessageV3.Builder<HardwareGroup.Builder> implements HardwareGroupOrBuilder

A group of hardware that is part of the same order, has the same SKU, and is delivered to the same site.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HardwareGroup build()
Returns
Type Description
HardwareGroup

buildPartial()

public HardwareGroup buildPartial()
Returns
Type Description
HardwareGroup

clear()

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

clearConfig()

public HardwareGroup.Builder clearConfig()

Required. Configuration for hardware in this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwareGroup.Builder

clearCreateTime()

public HardwareGroup.Builder clearCreateTime()

Output only. Time when this hardware group was created.

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

Returns
Type Description
HardwareGroup.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHardwareCount()

public HardwareGroup.Builder clearHardwareCount()

Required. Number of hardware in this HardwareGroup.

int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

clearLabels()

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

clearName()

public HardwareGroup.Builder clearName()

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

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

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestedInstallationDate()

public HardwareGroup.Builder clearRequestedInstallationDate()

Optional. Requested installation date for the hardware in this HardwareGroup. Filled in by the customer.

.google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HardwareGroup.Builder

clearSite()

public HardwareGroup.Builder clearSite()

Required. Name of the site where the hardware in this HardwareGroup will be delivered. Format: projects/{project}/locations/{location}/sites/{site}

string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

clearState()

public HardwareGroup.Builder clearState()

Output only. Current state of this HardwareGroup.

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

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

clearUpdateTime()

public HardwareGroup.Builder clearUpdateTime()

Output only. Time when this hardware group was last updated.

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

Returns
Type Description
HardwareGroup.Builder

clearZone()

public HardwareGroup.Builder clearZone()

Optional. Name of the zone that the hardware in this HardwareGroup belongs to. Format: projects/{project}/locations/{location}/zones/{zone}

string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels associated with this hardware group 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

getConfig()

public HardwareConfig getConfig()

Required. Configuration for hardware in this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwareConfig

The config.

getConfigBuilder()

public HardwareConfig.Builder getConfigBuilder()

Required. Configuration for hardware in this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwareConfig.Builder

getConfigOrBuilder()

public HardwareConfigOrBuilder getConfigOrBuilder()

Required. Configuration for hardware in this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwareConfigOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this hardware group 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 hardware group 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 hardware group was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public HardwareGroup getDefaultInstanceForType()
Returns
Type Description
HardwareGroup

getDescriptorForType()

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

getHardwareCount()

public int getHardwareCount()

Required. Number of hardware in this HardwareGroup.

int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The hardwareCount.

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 hardware group 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 hardware group 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 hardware group 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 hardware group 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 hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

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

Returns
Type Description
ByteString

The bytes for name.

getRequestedInstallationDate()

public Date getRequestedInstallationDate()

Optional. Requested installation date for the hardware in this HardwareGroup. Filled in by the customer.

.google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date

The requestedInstallationDate.

getRequestedInstallationDateBuilder()

public Date.Builder getRequestedInstallationDateBuilder()

Optional. Requested installation date for the hardware in this HardwareGroup. Filled in by the customer.

.google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date.Builder

getRequestedInstallationDateOrBuilder()

public DateOrBuilder getRequestedInstallationDateOrBuilder()

Optional. Requested installation date for the hardware in this HardwareGroup. Filled in by the customer.

.google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DateOrBuilder

getSite()

public String getSite()

Required. Name of the site where the hardware in this HardwareGroup will be delivered. Format: projects/{project}/locations/{location}/sites/{site}

string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The site.

getSiteBytes()

public ByteString getSiteBytes()

Required. Name of the site where the hardware in this HardwareGroup will be delivered. Format: projects/{project}/locations/{location}/sites/{site}

string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for site.

getState()

public HardwareGroup.State getState()

Output only. Current state of this HardwareGroup.

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

Returns
Type Description
HardwareGroup.State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of this HardwareGroup.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when this hardware group 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 hardware group 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 hardware group was last updated.

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

Returns
Type Description
TimestampOrBuilder

getZone()

public String getZone()

Optional. Name of the zone that the hardware in this HardwareGroup belongs to. Format: projects/{project}/locations/{location}/zones/{zone}

string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Optional. Name of the zone that the hardware in this HardwareGroup belongs to. Format: projects/{project}/locations/{location}/zones/{zone}

string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for zone.

hasConfig()

public boolean hasConfig()

Required. Configuration for hardware in this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the config field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when this hardware group was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasRequestedInstallationDate()

public boolean hasRequestedInstallationDate()

Optional. Requested installation date for the hardware in this HardwareGroup. Filled in by the customer.

.google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the requestedInstallationDate field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when this hardware group 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

mergeConfig(HardwareConfig value)

public HardwareGroup.Builder mergeConfig(HardwareConfig value)

Required. Configuration for hardware in this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HardwareConfig
Returns
Type Description
HardwareGroup.Builder

mergeCreateTime(Timestamp value)

public HardwareGroup.Builder mergeCreateTime(Timestamp value)

Output only. Time when this hardware group was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
HardwareGroup.Builder

mergeFrom(HardwareGroup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRequestedInstallationDate(Date value)

public HardwareGroup.Builder mergeRequestedInstallationDate(Date value)

Optional. Requested installation date for the hardware in this HardwareGroup. Filled in by the customer.

.google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
HardwareGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public HardwareGroup.Builder mergeUpdateTime(Timestamp value)

Output only. Time when this hardware group was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
HardwareGroup.Builder

putAllLabels(Map<String,String> values)

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

Optional. Labels associated with this hardware group 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
HardwareGroup.Builder

putLabels(String key, String value)

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

Optional. Labels associated with this hardware group 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
HardwareGroup.Builder

removeLabels(String key)

public HardwareGroup.Builder removeLabels(String key)

Optional. Labels associated with this hardware group 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
HardwareGroup.Builder

setConfig(HardwareConfig value)

public HardwareGroup.Builder setConfig(HardwareConfig value)

Required. Configuration for hardware in this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HardwareConfig
Returns
Type Description
HardwareGroup.Builder

setConfig(HardwareConfig.Builder builderForValue)

public HardwareGroup.Builder setConfig(HardwareConfig.Builder builderForValue)

Required. Configuration for hardware in this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue HardwareConfig.Builder
Returns
Type Description
HardwareGroup.Builder

setCreateTime(Timestamp value)

public HardwareGroup.Builder setCreateTime(Timestamp value)

Output only. Time when this hardware group was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
HardwareGroup.Builder

setCreateTime(Timestamp.Builder builderForValue)

public HardwareGroup.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when this hardware group was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
HardwareGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHardwareCount(int value)

public HardwareGroup.Builder setHardwareCount(int value)

Required. Number of hardware in this HardwareGroup.

int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The hardwareCount to set.

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

setName(String value)

public HardwareGroup.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public HardwareGroup.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

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

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

setRequestedInstallationDate(Date value)

public HardwareGroup.Builder setRequestedInstallationDate(Date value)

Optional. Requested installation date for the hardware in this HardwareGroup. Filled in by the customer.

.google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
HardwareGroup.Builder

setRequestedInstallationDate(Date.Builder builderForValue)

public HardwareGroup.Builder setRequestedInstallationDate(Date.Builder builderForValue)

Optional. Requested installation date for the hardware in this HardwareGroup. Filled in by the customer.

.google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
HardwareGroup.Builder

setSite(String value)

public HardwareGroup.Builder setSite(String value)

Required. Name of the site where the hardware in this HardwareGroup will be delivered. Format: projects/{project}/locations/{location}/sites/{site}

string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The site to set.

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

setSiteBytes(ByteString value)

public HardwareGroup.Builder setSiteBytes(ByteString value)

Required. Name of the site where the hardware in this HardwareGroup will be delivered. Format: projects/{project}/locations/{location}/sites/{site}

string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for site to set.

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

setState(HardwareGroup.State value)

public HardwareGroup.Builder setState(HardwareGroup.State value)

Output only. Current state of this HardwareGroup.

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

Parameter
Name Description
value HardwareGroup.State

The state to set.

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

setStateValue(int value)

public HardwareGroup.Builder setStateValue(int value)

Output only. Current state of this HardwareGroup.

.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.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
HardwareGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public HardwareGroup.Builder setUpdateTime(Timestamp value)

Output only. Time when this hardware group was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
HardwareGroup.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public HardwareGroup.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when this hardware group was last updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
HardwareGroup.Builder

setZone(String value)

public HardwareGroup.Builder setZone(String value)

Optional. Name of the zone that the hardware in this HardwareGroup belongs to. Format: projects/{project}/locations/{location}/zones/{zone}

string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public HardwareGroup.Builder setZoneBytes(ByteString value)

Optional. Name of the zone that the hardware in this HardwareGroup belongs to. Format: projects/{project}/locations/{location}/zones/{zone}

string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
HardwareGroup.Builder

This builder for chaining.