Interface NewReservedInstancesConfigOrBuilder (0.23.0)

public interface NewReservedInstancesConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getNetworkTags(int index)

public abstract String getNetworkTags(int index)

Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.

repeated string network_tags = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The networkTags at the given index.

getNetworkTagsBytes(int index)

public abstract ByteString getNetworkTagsBytes(int index)

Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.

repeated string network_tags = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the networkTags at the given index.

getNetworkTagsCount()

public abstract int getNetworkTagsCount()

Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.

repeated string network_tags = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The count of networkTags.

getNetworkTagsList()

public abstract List<String> getNetworkTagsList()

Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.

repeated string network_tags = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<String>

A list containing the networkTags.

getReservation()

public abstract String getReservation()

Optional. Immutable. Name of the reservation from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The reservation.

getReservationBlock()

public abstract String getReservationBlock()

Optional. Immutable. Name of the reservation block from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}.

string reservation_block = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The reservationBlock.

getReservationBlockBytes()

public abstract ByteString getReservationBlockBytes()

Optional. Immutable. Name of the reservation block from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}.

string reservation_block = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for reservationBlock.

getReservationBytes()

public abstract ByteString getReservationBytes()

Optional. Immutable. Name of the reservation from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for reservation.

getReservationSubBlock()

public abstract String getReservationSubBlock()

Optional. Immutable. Name of the reservation sub block from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}/reservationSubBlocks/{reservation_sub_block}.

string reservation_sub_block = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The reservationSubBlock.

getReservationSubBlockBytes()

public abstract ByteString getReservationSubBlockBytes()

Optional. Immutable. Name of the reservation sub block from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}/reservationSubBlocks/{reservation_sub_block}.

string reservation_sub_block = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for reservationSubBlock.

getSourceCase()

public abstract NewReservedInstancesConfig.SourceCase getSourceCase()
Returns
Type Description
NewReservedInstancesConfig.SourceCase

hasReservation()

public abstract boolean hasReservation()

Optional. Immutable. Name of the reservation from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the reservation field is set.

hasReservationBlock()

public abstract boolean hasReservationBlock()

Optional. Immutable. Name of the reservation block from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}.

string reservation_block = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the reservationBlock field is set.

hasReservationSubBlock()

public abstract boolean hasReservationSubBlock()

Optional. Immutable. Name of the reservation sub block from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}/reservationSubBlocks/{reservation_sub_block}.

string reservation_sub_block = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the reservationSubBlock field is set.