Class NetworkAddressReservation.Builder (0.3.8)

public static final class NetworkAddressReservation.Builder extends GeneratedMessageV3.Builder<NetworkAddressReservation.Builder> implements NetworkAddressReservationOrBuilder

A reservation of one or more addresses in a network.

Protobuf type google.cloud.baremetalsolution.v2.NetworkAddressReservation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkAddressReservation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

build()

public NetworkAddressReservation build()
Returns
TypeDescription
NetworkAddressReservation

buildPartial()

public NetworkAddressReservation buildPartial()
Returns
TypeDescription
NetworkAddressReservation

clear()

public NetworkAddressReservation.Builder clear()
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

clearEndAddress()

public NetworkAddressReservation.Builder clearEndAddress()

The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string end_address = 2;

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkAddressReservation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

clearNote()

public NetworkAddressReservation.Builder clearNote()

A note about this reservation, intended for human consumption.

string note = 3;

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkAddressReservation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

clearStartAddress()

public NetworkAddressReservation.Builder clearStartAddress()

The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string start_address = 1;

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

clone()

public NetworkAddressReservation.Builder clone()
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

getDefaultInstanceForType()

public NetworkAddressReservation getDefaultInstanceForType()
Returns
TypeDescription
NetworkAddressReservation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndAddress()

public String getEndAddress()

The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string end_address = 2;

Returns
TypeDescription
String

The endAddress.

getEndAddressBytes()

public ByteString getEndAddressBytes()

The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string end_address = 2;

Returns
TypeDescription
ByteString

The bytes for endAddress.

getNote()

public String getNote()

A note about this reservation, intended for human consumption.

string note = 3;

Returns
TypeDescription
String

The note.

getNoteBytes()

public ByteString getNoteBytes()

A note about this reservation, intended for human consumption.

string note = 3;

Returns
TypeDescription
ByteString

The bytes for note.

getStartAddress()

public String getStartAddress()

The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string start_address = 1;

Returns
TypeDescription
String

The startAddress.

getStartAddressBytes()

public ByteString getStartAddressBytes()

The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string start_address = 1;

Returns
TypeDescription
ByteString

The bytes for startAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkAddressReservation other)

public NetworkAddressReservation.Builder mergeFrom(NetworkAddressReservation other)
Parameter
NameDescription
otherNetworkAddressReservation
Returns
TypeDescription
NetworkAddressReservation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkAddressReservation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkAddressReservation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkAddressReservation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

setEndAddress(String value)

public NetworkAddressReservation.Builder setEndAddress(String value)

The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string end_address = 2;

Parameter
NameDescription
valueString

The endAddress to set.

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

setEndAddressBytes(ByteString value)

public NetworkAddressReservation.Builder setEndAddressBytes(ByteString value)

The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string end_address = 2;

Parameter
NameDescription
valueByteString

The bytes for endAddress to set.

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkAddressReservation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

setNote(String value)

public NetworkAddressReservation.Builder setNote(String value)

A note about this reservation, intended for human consumption.

string note = 3;

Parameter
NameDescription
valueString

The note to set.

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

setNoteBytes(ByteString value)

public NetworkAddressReservation.Builder setNoteBytes(ByteString value)

A note about this reservation, intended for human consumption.

string note = 3;

Parameter
NameDescription
valueByteString

The bytes for note to set.

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

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

public NetworkAddressReservation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

setStartAddress(String value)

public NetworkAddressReservation.Builder setStartAddress(String value)

The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string start_address = 1;

Parameter
NameDescription
valueString

The startAddress to set.

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

setStartAddressBytes(ByteString value)

public NetworkAddressReservation.Builder setStartAddressBytes(ByteString value)

The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.

string start_address = 1;

Parameter
NameDescription
valueByteString

The bytes for startAddress to set.

Returns
TypeDescription
NetworkAddressReservation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkAddressReservation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides