public static final class NewReservedInstancesConfig.Builder extends GeneratedMessage.Builder<NewReservedInstancesConfig.Builder> implements NewReservedInstancesConfigOrBuilderWhen set in a ComputeResourceConfig, indicates that VM instances should be created from a reservation.
Protobuf type google.cloud.hypercomputecluster.v1beta.NewReservedInstancesConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NewReservedInstancesConfig.BuilderImplements
NewReservedInstancesConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllNetworkTags(Iterable<String> values)
public NewReservedInstancesConfig.Builder addAllNetworkTags(Iterable<String> values)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 |
values |
Iterable<String>The networkTags to add. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
addNetworkTags(String value)
public NewReservedInstancesConfig.Builder addNetworkTags(String value)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 |
value |
StringThe networkTags to add. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
addNetworkTagsBytes(ByteString value)
public NewReservedInstancesConfig.Builder addNetworkTagsBytes(ByteString value)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 |
value |
ByteStringThe bytes of the networkTags to add. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
build()
public NewReservedInstancesConfig build()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
buildPartial()
public NewReservedInstancesConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
clear()
public NewReservedInstancesConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
clearNetworkTags()
public NewReservedInstancesConfig.Builder clearNetworkTags()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 |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
clearReservation()
public NewReservedInstancesConfig.Builder clearReservation() 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 |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
clearReservationBlock()
public NewReservedInstancesConfig.Builder clearReservationBlock() 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 |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
clearReservationSubBlock()
public NewReservedInstancesConfig.Builder clearReservationSubBlock() 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 |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
clearSource()
public NewReservedInstancesConfig.Builder clearSource()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
getDefaultInstanceForType()
public NewReservedInstancesConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNetworkTags(int index)
public 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 |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The networkTags at the given index. |
getNetworkTagsBytes(int index)
public 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 |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the networkTags at the given index. |
getNetworkTagsCount()
public 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 ProtocolStringList 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 |
ProtocolStringList |
A list containing the networkTags. |
getReservation()
public 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 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 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 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 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 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 NewReservedInstancesConfig.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.SourceCase |
|
hasReservation()
public 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(NewReservedInstancesConfig other)
public NewReservedInstancesConfig.Builder mergeFrom(NewReservedInstancesConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
NewReservedInstancesConfig |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NewReservedInstancesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NewReservedInstancesConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
setNetworkTags(int index, String value)
public NewReservedInstancesConfig.Builder setNetworkTags(int index, String value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe networkTags to set. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
setReservation(String value)
public NewReservedInstancesConfig.Builder setReservation(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe reservation to set. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
setReservationBlock(String value)
public NewReservedInstancesConfig.Builder setReservationBlock(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe reservationBlock to set. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
setReservationBlockBytes(ByteString value)
public NewReservedInstancesConfig.Builder setReservationBlockBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for reservationBlock to set. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
setReservationBytes(ByteString value)
public NewReservedInstancesConfig.Builder setReservationBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for reservation to set. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
setReservationSubBlock(String value)
public NewReservedInstancesConfig.Builder setReservationSubBlock(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe reservationSubBlock to set. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |
setReservationSubBlockBytes(ByteString value)
public NewReservedInstancesConfig.Builder setReservationSubBlockBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for reservationSubBlock to set. |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
This builder for chaining. |