Class NetworkAddressReservation (0.21.0)

public final class NetworkAddressReservation extends GeneratedMessageV3 implements NetworkAddressReservationOrBuilder

A reservation of one or more addresses in a network.

Protobuf type google.cloud.baremetalsolution.v2.NetworkAddressReservation

Static Fields

END_ADDRESS_FIELD_NUMBER

public static final int END_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

NOTE_FIELD_NUMBER

public static final int NOTE_FIELD_NUMBER
Field Value
TypeDescription
int

START_ADDRESS_FIELD_NUMBER

public static final int START_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkAddressReservation getDefaultInstance()
Returns
TypeDescription
NetworkAddressReservation

getDescriptor()

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

newBuilder()

public static NetworkAddressReservation.Builder newBuilder()
Returns
TypeDescription
NetworkAddressReservation.Builder

newBuilder(NetworkAddressReservation prototype)

public static NetworkAddressReservation.Builder newBuilder(NetworkAddressReservation prototype)
Parameter
NameDescription
prototypeNetworkAddressReservation
Returns
TypeDescription
NetworkAddressReservation.Builder

parseDelimitedFrom(InputStream input)

public static NetworkAddressReservation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAddressReservation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NetworkAddressReservation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkAddressReservation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkAddressReservation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkAddressReservation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkAddressReservation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAddressReservation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NetworkAddressReservation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAddressReservation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NetworkAddressReservation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkAddressReservation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddressReservation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NetworkAddressReservation> parser()
Returns
TypeDescription
Parser<NetworkAddressReservation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public NetworkAddressReservation getDefaultInstanceForType()
Returns
TypeDescription
NetworkAddressReservation

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.

getParserForType()

public Parser<NetworkAddressReservation> getParserForType()
Returns
TypeDescription
Parser<NetworkAddressReservation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NetworkAddressReservation.Builder newBuilderForType()
Returns
TypeDescription
NetworkAddressReservation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkAddressReservation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NetworkAddressReservation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NetworkAddressReservation.Builder toBuilder()
Returns
TypeDescription
NetworkAddressReservation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException