Class Hardware.MacAddress.Builder (0.9.0)

public static final class Hardware.MacAddress.Builder extends GeneratedMessageV3.Builder<Hardware.MacAddress.Builder> implements Hardware.MacAddressOrBuilder

Message to describe the MAC address of a machine.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Hardware.MacAddress build()
Returns
Type Description
Hardware.MacAddress

buildPartial()

public Hardware.MacAddress buildPartial()
Returns
Type Description
Hardware.MacAddress

clear()

public Hardware.MacAddress.Builder clear()
Returns
Type Description
Hardware.MacAddress.Builder
Overrides

clearAddress()

public Hardware.MacAddress.Builder clearAddress()

Output only. Address string.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.MacAddress.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIpv4Address()

public Hardware.MacAddress.Builder clearIpv4Address()

Output only. Static IP address (if used) that is associated with the MAC address. Only applicable for VIRTUAL MAC address type.

string ipv4_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
Hardware.MacAddress.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public Hardware.MacAddress.Builder clearType()

Output only. Address type for this MAC address.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.MacAddress.Builder

This builder for chaining.

clone()

public Hardware.MacAddress.Builder clone()
Returns
Type Description
Hardware.MacAddress.Builder
Overrides

getAddress()

public String getAddress()

Output only. Address string.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The address.

getAddressBytes()

public ByteString getAddressBytes()

Output only. Address string.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for address.

getDefaultInstanceForType()

public Hardware.MacAddress getDefaultInstanceForType()
Returns
Type Description
Hardware.MacAddress

getDescriptorForType()

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

getIpv4Address()

public String getIpv4Address()

Output only. Static IP address (if used) that is associated with the MAC address. Only applicable for VIRTUAL MAC address type.

string ipv4_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The ipv4Address.

getIpv4AddressBytes()

public ByteString getIpv4AddressBytes()

Output only. Static IP address (if used) that is associated with the MAC address. Only applicable for VIRTUAL MAC address type.

string ipv4_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ipv4Address.

getType()

public Hardware.MacAddress.AddressType getType()

Output only. Address type for this MAC address.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.MacAddress.AddressType

The type.

getTypeValue()

public int getTypeValue()

Output only. Address type for this MAC address.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Hardware.MacAddress other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAddress(String value)

public Hardware.MacAddress.Builder setAddress(String value)

Output only. Address string.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The address to set.

Returns
Type Description
Hardware.MacAddress.Builder

This builder for chaining.

setAddressBytes(ByteString value)

public Hardware.MacAddress.Builder setAddressBytes(ByteString value)

Output only. Address string.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for address to set.

Returns
Type Description
Hardware.MacAddress.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpv4Address(String value)

public Hardware.MacAddress.Builder setIpv4Address(String value)

Output only. Static IP address (if used) that is associated with the MAC address. Only applicable for VIRTUAL MAC address type.

string ipv4_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The ipv4Address to set.

Returns
Type Description
Hardware.MacAddress.Builder

This builder for chaining.

setIpv4AddressBytes(ByteString value)

public Hardware.MacAddress.Builder setIpv4AddressBytes(ByteString value)

Output only. Static IP address (if used) that is associated with the MAC address. Only applicable for VIRTUAL MAC address type.

string ipv4_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for ipv4Address to set.

Returns
Type Description
Hardware.MacAddress.Builder

This builder for chaining.

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

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

setType(Hardware.MacAddress.AddressType value)

public Hardware.MacAddress.Builder setType(Hardware.MacAddress.AddressType value)

Output only. Address type for this MAC address.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Hardware.MacAddress.AddressType

The type to set.

Returns
Type Description
Hardware.MacAddress.Builder

This builder for chaining.

setTypeValue(int value)

public Hardware.MacAddress.Builder setTypeValue(int value)

Output only. Address type for this MAC address.

.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.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
Hardware.MacAddress.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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