Send feedback
Class NewReservedInstancesConfig.Builder (0.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class NewReservedInstancesConfig . Builder extends GeneratedMessage . Builder<NewReservedInstancesConfig . Builder > implements NewReservedInstancesConfigOrBuilder
When set in a
ComputeResourceConfig ,
indicates that VM instances should be created from a
reservation .
Protobuf type google.cloud.hypercomputecluster.v1beta.NewReservedInstancesConfig
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public NewReservedInstancesConfig build ()
buildPartial()
public NewReservedInstancesConfig buildPartial ()
clear()
public NewReservedInstancesConfig . Builder clear ()
Overrides
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) = { ... }
clearSource()
public NewReservedInstancesConfig . Builder clearSource ()
getDefaultInstanceForType()
public NewReservedInstancesConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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.
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.
getSourceCase()
public NewReservedInstancesConfig . SourceCase getSourceCase ()
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.
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(NewReservedInstancesConfig other)
public NewReservedInstancesConfig . Builder mergeFrom ( NewReservedInstancesConfig other )
public NewReservedInstancesConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public NewReservedInstancesConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
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
String The reservation to set.
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
ByteString The bytes for reservation to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-09 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-09 UTC."],[],[]]