- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class Reservation.Builder extends GeneratedMessageV3.Builder<Reservation.Builder> implements ReservationOrBuilder
Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources.
Protobuf type google.cloud.compute.v1.Reservation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Reservation.BuilderImplements
ReservationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Reservation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Reservation.Builder |
build()
public Reservation build()
Type | Description |
Reservation |
buildPartial()
public Reservation buildPartial()
Type | Description |
Reservation |
clear()
public Reservation.Builder clear()
Type | Description |
Reservation.Builder |
clearCommitment()
public Reservation.Builder clearCommitment()
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearCreationTimestamp()
public Reservation.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearDescription()
public Reservation.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Reservation.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Reservation.Builder |
clearId()
public Reservation.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearKind()
public Reservation.Builder clearKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearName()
public Reservation.Builder clearName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Reservation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Reservation.Builder |
clearResourcePolicies()
public Reservation.Builder clearResourcePolicies()
Type | Description |
Reservation.Builder |
clearResourceStatus()
public Reservation.Builder clearResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
Type | Description |
Reservation.Builder |
clearSatisfiesPzs()
public Reservation.Builder clearSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearSelfLink()
public Reservation.Builder clearSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearShareSettings()
public Reservation.Builder clearShareSettings()
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
Type | Description |
Reservation.Builder |
clearSpecificReservation()
public Reservation.Builder clearSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
Type | Description |
Reservation.Builder |
clearSpecificReservationRequired()
public Reservation.Builder clearSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
optional bool specific_reservation_required = 226550687;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearStatus()
public Reservation.Builder clearStatus()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;
Type | Description |
Reservation.Builder | This builder for chaining. |
clearZone()
public Reservation.Builder clearZone()
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;
Type | Description |
Reservation.Builder | This builder for chaining. |
clone()
public Reservation.Builder clone()
Type | Description |
Reservation.Builder |
containsResourcePolicies(String key)
public boolean containsResourcePolicies(String key)
map<string, string> resource_policies = 22220385;
Name | Description |
key | String |
Type | Description |
boolean |
getCommitment()
public String getCommitment()
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;
Type | Description |
String | The commitment. |
getCommitmentBytes()
public ByteString getCommitmentBytes()
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;
Type | Description |
ByteString | The bytes for commitment. |
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
String | The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
ByteString | The bytes for creationTimestamp. |
getDefaultInstanceForType()
public Reservation getDefaultInstanceForType()
Type | Description |
Reservation |
getDescription()
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getId()
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
long | The id. |
getKind()
public String getKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
Type | Description |
String | The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
Type | Description |
ByteString | The bytes for kind. |
getMutableResourcePolicies()
public Map<String,String> getMutableResourcePolicies()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getName()
public String getName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Type | Description |
ByteString | The bytes for name. |
getResourcePolicies()
public Map<String,String> getResourcePolicies()
Use #getResourcePoliciesMap() instead.
Type | Description |
Map<String,String> |
getResourcePoliciesCount()
public int getResourcePoliciesCount()
map<string, string> resource_policies = 22220385;
Type | Description |
int |
getResourcePoliciesMap()
public Map<String,String> getResourcePoliciesMap()
map<string, string> resource_policies = 22220385;
Type | Description |
Map<String,String> |
getResourcePoliciesOrDefault(String key, String defaultValue)
public String getResourcePoliciesOrDefault(String key, String defaultValue)
map<string, string> resource_policies = 22220385;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getResourcePoliciesOrThrow(String key)
public String getResourcePoliciesOrThrow(String key)
map<string, string> resource_policies = 22220385;
Name | Description |
key | String |
Type | Description |
String |
getResourceStatus()
public AllocationResourceStatus getResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
Type | Description |
AllocationResourceStatus | The resourceStatus. |
getResourceStatusBuilder()
public AllocationResourceStatus.Builder getResourceStatusBuilder()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
Type | Description |
AllocationResourceStatus.Builder |
getResourceStatusOrBuilder()
public AllocationResourceStatusOrBuilder getResourceStatusOrBuilder()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
Type | Description |
AllocationResourceStatusOrBuilder |
getSatisfiesPzs()
public boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Type | Description |
boolean | The satisfiesPzs. |
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
Type | Description |
String | The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
Type | Description |
ByteString | The bytes for selfLink. |
getShareSettings()
public ShareSettings getShareSettings()
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
Type | Description |
ShareSettings | The shareSettings. |
getShareSettingsBuilder()
public ShareSettings.Builder getShareSettingsBuilder()
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
Type | Description |
ShareSettings.Builder |
getShareSettingsOrBuilder()
public ShareSettingsOrBuilder getShareSettingsOrBuilder()
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
Type | Description |
ShareSettingsOrBuilder |
getSpecificReservation()
public AllocationSpecificSKUReservation getSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
Type | Description |
AllocationSpecificSKUReservation | The specificReservation. |
getSpecificReservationBuilder()
public AllocationSpecificSKUReservation.Builder getSpecificReservationBuilder()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
Type | Description |
AllocationSpecificSKUReservation.Builder |
getSpecificReservationOrBuilder()
public AllocationSpecificSKUReservationOrBuilder getSpecificReservationOrBuilder()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
Type | Description |
AllocationSpecificSKUReservationOrBuilder |
getSpecificReservationRequired()
public boolean getSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
optional bool specific_reservation_required = 226550687;
Type | Description |
boolean | The specificReservationRequired. |
getStatus()
public String getStatus()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;
Type | Description |
String | The status. |
getStatusBytes()
public ByteString getStatusBytes()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;
Type | Description |
ByteString | The bytes for status. |
getZone()
public String getZone()
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;
Type | Description |
String | The zone. |
getZoneBytes()
public ByteString getZoneBytes()
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;
Type | Description |
ByteString | The bytes for zone. |
hasCommitment()
public boolean hasCommitment()
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;
Type | Description |
boolean | Whether the commitment field is set. |
hasCreationTimestamp()
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
boolean | Whether the creationTimestamp field is set. |
hasDescription()
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Type | Description |
boolean | Whether the description field is set. |
hasId()
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
boolean | Whether the id field is set. |
hasKind()
public boolean hasKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
Type | Description |
boolean | Whether the kind field is set. |
hasName()
public boolean hasName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Type | Description |
boolean | Whether the name field is set. |
hasResourceStatus()
public boolean hasResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
Type | Description |
boolean | Whether the resourceStatus field is set. |
hasSatisfiesPzs()
public boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Type | Description |
boolean | Whether the satisfiesPzs field is set. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
Type | Description |
boolean | Whether the selfLink field is set. |
hasShareSettings()
public boolean hasShareSettings()
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
Type | Description |
boolean | Whether the shareSettings field is set. |
hasSpecificReservation()
public boolean hasSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
Type | Description |
boolean | Whether the specificReservation field is set. |
hasSpecificReservationRequired()
public boolean hasSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
optional bool specific_reservation_required = 226550687;
Type | Description |
boolean | Whether the specificReservationRequired field is set. |
hasStatus()
public boolean hasStatus()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;
Type | Description |
boolean | Whether the status field is set. |
hasZone()
public boolean hasZone()
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;
Type | Description |
boolean | Whether the zone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Reservation other)
public Reservation.Builder mergeFrom(Reservation other)
Name | Description |
other | Reservation |
Type | Description |
Reservation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Reservation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Reservation.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Reservation.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Reservation.Builder |
mergeResourceStatus(AllocationResourceStatus value)
public Reservation.Builder mergeResourceStatus(AllocationResourceStatus value)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
Name | Description |
value | AllocationResourceStatus |
Type | Description |
Reservation.Builder |
mergeShareSettings(ShareSettings value)
public Reservation.Builder mergeShareSettings(ShareSettings value)
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
Name | Description |
value | ShareSettings |
Type | Description |
Reservation.Builder |
mergeSpecificReservation(AllocationSpecificSKUReservation value)
public Reservation.Builder mergeSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
Name | Description |
value | AllocationSpecificSKUReservation |
Type | Description |
Reservation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Reservation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Reservation.Builder |
putAllResourcePolicies(Map<String,String> values)
public Reservation.Builder putAllResourcePolicies(Map<String,String> values)
map<string, string> resource_policies = 22220385;
Name | Description |
values | Map<String,String> |
Type | Description |
Reservation.Builder |
putResourcePolicies(String key, String value)
public Reservation.Builder putResourcePolicies(String key, String value)
map<string, string> resource_policies = 22220385;
Name | Description |
key | String |
value | String |
Type | Description |
Reservation.Builder |
removeResourcePolicies(String key)
public Reservation.Builder removeResourcePolicies(String key)
map<string, string> resource_policies = 22220385;
Name | Description |
key | String |
Type | Description |
Reservation.Builder |
setCommitment(String value)
public Reservation.Builder setCommitment(String value)
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;
Name | Description |
value | String The commitment to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setCommitmentBytes(ByteString value)
public Reservation.Builder setCommitmentBytes(ByteString value)
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;
Name | Description |
value | ByteString The bytes for commitment to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setCreationTimestamp(String value)
public Reservation.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Name | Description |
value | String The creationTimestamp to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public Reservation.Builder setCreationTimestampBytes(ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Name | Description |
value | ByteString The bytes for creationTimestamp to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setDescription(String value)
public Reservation.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Name | Description |
value | String The description to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Reservation.Builder setDescriptionBytes(ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Reservation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Reservation.Builder |
setId(long value)
public Reservation.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Name | Description |
value | long The id to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setKind(String value)
public Reservation.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
Name | Description |
value | String The kind to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setKindBytes(ByteString value)
public Reservation.Builder setKindBytes(ByteString value)
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
Name | Description |
value | ByteString The bytes for kind to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setName(String value)
public Reservation.Builder setName(String value)
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Name | Description |
value | String The name to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Reservation.Builder setNameBytes(ByteString value)
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Reservation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Reservation.Builder |
setResourceStatus(AllocationResourceStatus value)
public Reservation.Builder setResourceStatus(AllocationResourceStatus value)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
Name | Description |
value | AllocationResourceStatus |
Type | Description |
Reservation.Builder |
setResourceStatus(AllocationResourceStatus.Builder builderForValue)
public Reservation.Builder setResourceStatus(AllocationResourceStatus.Builder builderForValue)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
Name | Description |
builderForValue | AllocationResourceStatus.Builder |
Type | Description |
Reservation.Builder |
setSatisfiesPzs(boolean value)
public Reservation.Builder setSatisfiesPzs(boolean value)
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Name | Description |
value | boolean The satisfiesPzs to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setSelfLink(String value)
public Reservation.Builder setSelfLink(String value)
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
Name | Description |
value | String The selfLink to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setSelfLinkBytes(ByteString value)
public Reservation.Builder setSelfLinkBytes(ByteString value)
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
Name | Description |
value | ByteString The bytes for selfLink to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setShareSettings(ShareSettings value)
public Reservation.Builder setShareSettings(ShareSettings value)
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
Name | Description |
value | ShareSettings |
Type | Description |
Reservation.Builder |
setShareSettings(ShareSettings.Builder builderForValue)
public Reservation.Builder setShareSettings(ShareSettings.Builder builderForValue)
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
Name | Description |
builderForValue | ShareSettings.Builder |
Type | Description |
Reservation.Builder |
setSpecificReservation(AllocationSpecificSKUReservation value)
public Reservation.Builder setSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
Name | Description |
value | AllocationSpecificSKUReservation |
Type | Description |
Reservation.Builder |
setSpecificReservation(AllocationSpecificSKUReservation.Builder builderForValue)
public Reservation.Builder setSpecificReservation(AllocationSpecificSKUReservation.Builder builderForValue)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
Name | Description |
builderForValue | AllocationSpecificSKUReservation.Builder |
Type | Description |
Reservation.Builder |
setSpecificReservationRequired(boolean value)
public Reservation.Builder setSpecificReservationRequired(boolean value)
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
optional bool specific_reservation_required = 226550687;
Name | Description |
value | boolean The specificReservationRequired to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setStatus(String value)
public Reservation.Builder setStatus(String value)
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;
Name | Description |
value | String The status to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setStatusBytes(ByteString value)
public Reservation.Builder setStatusBytes(ByteString value)
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;
Name | Description |
value | ByteString The bytes for status to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Reservation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Reservation.Builder |
setZone(String value)
public Reservation.Builder setZone(String value)
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;
Name | Description |
value | String The zone to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |
setZoneBytes(ByteString value)
public Reservation.Builder setZoneBytes(ByteString value)
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;
Name | Description |
value | ByteString The bytes for zone to set. |
Type | Description |
Reservation.Builder | This builder for chaining. |