public static final class Reservation.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
Reservation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Reservation |
build() |
Reservation |
buildPartial() |
Reservation.Builder |
clear() |
Reservation.Builder |
clearCommitment()
[Output Only] Full or partial URL to a parent commitment.
|
Reservation.Builder |
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
Reservation.Builder |
clearDescription()
An optional description of this resource.
|
Reservation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Reservation.Builder |
clearId()
[Output Only] The unique identifier for the resource.
|
Reservation.Builder |
clearKind()
[Output Only] Type of the resource.
|
Reservation.Builder |
clearName()
The name of the resource, provided by the client when initially creating the resource.
|
Reservation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Reservation.Builder |
clearResourcePolicies() |
Reservation.Builder |
clearResourceStatus()
[Output Only] Status information for Reservation resource.
|
Reservation.Builder |
clearSatisfiesPzs()
[Output Only] Reserved for future use.
|
Reservation.Builder |
clearSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
Reservation.Builder |
clearShareSettings()
Specify share-settings to create a shared reservation.
|
Reservation.Builder |
clearSpecificReservation()
Reservation for instances with specific machine shapes.
|
Reservation.Builder |
clearSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.
|
Reservation.Builder |
clearStatus()
[Output Only] The status of the reservation.
|
Reservation.Builder |
clearZone()
Zone in which the reservation resides.
|
Reservation.Builder |
clone() |
boolean |
containsResourcePolicies(String key)
map<string, string> resource_policies = 22220385; |
String |
getCommitment()
[Output Only] Full or partial URL to a parent commitment.
|
com.google.protobuf.ByteString |
getCommitmentBytes()
[Output Only] Full or partial URL to a parent commitment.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
Reservation |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
Map<String,String> |
getMutableResourcePolicies()
Deprecated.
|
String |
getName()
The name of the resource, provided by the client when initially creating the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the resource, provided by the client when initially creating the resource.
|
Map<String,String> |
getResourcePolicies()
Deprecated.
|
int |
getResourcePoliciesCount()
map<string, string> resource_policies = 22220385; |
Map<String,String> |
getResourcePoliciesMap()
map<string, string> resource_policies = 22220385; |
String |
getResourcePoliciesOrDefault(String key,
String defaultValue)
map<string, string> resource_policies = 22220385; |
String |
getResourcePoliciesOrThrow(String key)
map<string, string> resource_policies = 22220385; |
AllocationResourceStatus |
getResourceStatus()
[Output Only] Status information for Reservation resource.
|
AllocationResourceStatus.Builder |
getResourceStatusBuilder()
[Output Only] Status information for Reservation resource.
|
AllocationResourceStatusOrBuilder |
getResourceStatusOrBuilder()
[Output Only] Status information for Reservation resource.
|
boolean |
getSatisfiesPzs()
[Output Only] Reserved for future use.
|
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
|
ShareSettings |
getShareSettings()
Specify share-settings to create a shared reservation.
|
ShareSettings.Builder |
getShareSettingsBuilder()
Specify share-settings to create a shared reservation.
|
ShareSettingsOrBuilder |
getShareSettingsOrBuilder()
Specify share-settings to create a shared reservation.
|
AllocationSpecificSKUReservation |
getSpecificReservation()
Reservation for instances with specific machine shapes.
|
AllocationSpecificSKUReservation.Builder |
getSpecificReservationBuilder()
Reservation for instances with specific machine shapes.
|
AllocationSpecificSKUReservationOrBuilder |
getSpecificReservationOrBuilder()
Reservation for instances with specific machine shapes.
|
boolean |
getSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.
|
String |
getStatus()
[Output Only] The status of the reservation.
|
com.google.protobuf.ByteString |
getStatusBytes()
[Output Only] The status of the reservation.
|
String |
getZone()
Zone in which the reservation resides.
|
com.google.protobuf.ByteString |
getZoneBytes()
Zone in which the reservation resides.
|
boolean |
hasCommitment()
[Output Only] Full or partial URL to a parent commitment.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
boolean |
hasName()
The name of the resource, provided by the client when initially creating the resource.
|
boolean |
hasResourceStatus()
[Output Only] Status information for Reservation resource.
|
boolean |
hasSatisfiesPzs()
[Output Only] Reserved for future use.
|
boolean |
hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
boolean |
hasShareSettings()
Specify share-settings to create a shared reservation.
|
boolean |
hasSpecificReservation()
Reservation for instances with specific machine shapes.
|
boolean |
hasSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.
|
boolean |
hasStatus()
[Output Only] The status of the reservation.
|
boolean |
hasZone()
Zone in which the reservation resides.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Reservation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Reservation.Builder |
mergeFrom(com.google.protobuf.Message other) |
Reservation.Builder |
mergeFrom(Reservation other) |
Reservation.Builder |
mergeResourceStatus(AllocationResourceStatus value)
[Output Only] Status information for Reservation resource.
|
Reservation.Builder |
mergeShareSettings(ShareSettings value)
Specify share-settings to create a shared reservation.
|
Reservation.Builder |
mergeSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.
|
Reservation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Reservation.Builder |
putAllResourcePolicies(Map<String,String> values)
map<string, string> resource_policies = 22220385; |
Reservation.Builder |
putResourcePolicies(String key,
String value)
map<string, string> resource_policies = 22220385; |
Reservation.Builder |
removeResourcePolicies(String key)
map<string, string> resource_policies = 22220385; |
Reservation.Builder |
setCommitment(String value)
[Output Only] Full or partial URL to a parent commitment.
|
Reservation.Builder |
setCommitmentBytes(com.google.protobuf.ByteString value)
[Output Only] Full or partial URL to a parent commitment.
|
Reservation.Builder |
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
|
Reservation.Builder |
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
|
Reservation.Builder |
setDescription(String value)
An optional description of this resource.
|
Reservation.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.
|
Reservation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Reservation.Builder |
setId(long value)
[Output Only] The unique identifier for the resource.
|
Reservation.Builder |
setKind(String value)
[Output Only] Type of the resource.
|
Reservation.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.
|
Reservation.Builder |
setName(String value)
The name of the resource, provided by the client when initially creating the resource.
|
Reservation.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the resource, provided by the client when initially creating the resource.
|
Reservation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Reservation.Builder |
setResourceStatus(AllocationResourceStatus.Builder builderForValue)
[Output Only] Status information for Reservation resource.
|
Reservation.Builder |
setResourceStatus(AllocationResourceStatus value)
[Output Only] Status information for Reservation resource.
|
Reservation.Builder |
setSatisfiesPzs(boolean value)
[Output Only] Reserved for future use.
|
Reservation.Builder |
setSelfLink(String value)
[Output Only] Server-defined fully-qualified URL for this resource.
|
Reservation.Builder |
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined fully-qualified URL for this resource.
|
Reservation.Builder |
setShareSettings(ShareSettings.Builder builderForValue)
Specify share-settings to create a shared reservation.
|
Reservation.Builder |
setShareSettings(ShareSettings value)
Specify share-settings to create a shared reservation.
|
Reservation.Builder |
setSpecificReservation(AllocationSpecificSKUReservation.Builder builderForValue)
Reservation for instances with specific machine shapes.
|
Reservation.Builder |
setSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.
|
Reservation.Builder |
setSpecificReservationRequired(boolean value)
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.
|
Reservation.Builder |
setStatus(String value)
[Output Only] The status of the reservation.
|
Reservation.Builder |
setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the reservation.
|
Reservation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Reservation.Builder |
setZone(String value)
Zone in which the reservation resides.
|
Reservation.Builder |
setZoneBytes(com.google.protobuf.ByteString value)
Zone in which the reservation resides.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Reservation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Reservation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Reservation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Reservation.Builder>public Reservation.Builder mergeFrom(Reservation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public Reservation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Reservation.Builder>IOExceptionpublic 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;hasCommitment in interface ReservationOrBuilderpublic 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;getCommitment in interface ReservationOrBuilderpublic com.google.protobuf.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;getCommitmentBytes in interface ReservationOrBuilderpublic 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;value - The commitment to set.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;public Reservation.Builder setCommitmentBytes(com.google.protobuf.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;value - The bytes for commitment to set.public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface ReservationOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface ReservationOrBuilderpublic Reservation.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The creationTimestamp to set.public Reservation.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;public Reservation.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The bytes for creationTimestamp to set.public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface ReservationOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface ReservationOrBuilderpublic Reservation.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The description to set.public Reservation.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;public Reservation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The bytes for description to set.public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface ReservationOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface ReservationOrBuilderpublic Reservation.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;value - The id to set.public Reservation.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;public boolean hasKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;hasKind in interface ReservationOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;getKind in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;getKindBytes in interface ReservationOrBuilderpublic Reservation.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;value - The kind to set.public Reservation.Builder clearKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;public Reservation.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;value - The bytes for kind to set.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]([-a-z0-9]*[a-z0-9])?` 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;hasName in interface ReservationOrBuilderpublic 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]([-a-z0-9]*[a-z0-9])?` 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;getName in interface ReservationOrBuilderpublic com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;getNameBytes in interface ReservationOrBuilderpublic 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]([-a-z0-9]*[a-z0-9])?` 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;value - The name to set.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]([-a-z0-9]*[a-z0-9])?` 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;public Reservation.Builder setNameBytes(com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;value - The bytes for name to set.public int getResourcePoliciesCount()
ReservationOrBuildermap<string, string> resource_policies = 22220385;getResourcePoliciesCount in interface ReservationOrBuilderpublic boolean containsResourcePolicies(String key)
map<string, string> resource_policies = 22220385;containsResourcePolicies in interface ReservationOrBuilder@Deprecated public Map<String,String> getResourcePolicies()
getResourcePoliciesMap() instead.getResourcePolicies in interface ReservationOrBuilderpublic Map<String,String> getResourcePoliciesMap()
map<string, string> resource_policies = 22220385;getResourcePoliciesMap in interface ReservationOrBuilderpublic String getResourcePoliciesOrDefault(String key, String defaultValue)
map<string, string> resource_policies = 22220385;getResourcePoliciesOrDefault in interface ReservationOrBuilderpublic String getResourcePoliciesOrThrow(String key)
map<string, string> resource_policies = 22220385;getResourcePoliciesOrThrow in interface ReservationOrBuilderpublic Reservation.Builder clearResourcePolicies()
public Reservation.Builder removeResourcePolicies(String key)
map<string, string> resource_policies = 22220385;@Deprecated public Map<String,String> getMutableResourcePolicies()
public Reservation.Builder putResourcePolicies(String key, String value)
map<string, string> resource_policies = 22220385;public Reservation.Builder putAllResourcePolicies(Map<String,String> values)
map<string, string> resource_policies = 22220385;public boolean hasResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
hasResourceStatus in interface ReservationOrBuilderpublic AllocationResourceStatus getResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
getResourceStatus in interface ReservationOrBuilderpublic Reservation.Builder setResourceStatus(AllocationResourceStatus value)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
public Reservation.Builder setResourceStatus(AllocationResourceStatus.Builder builderForValue)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
public Reservation.Builder mergeResourceStatus(AllocationResourceStatus value)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
public Reservation.Builder clearResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
public AllocationResourceStatus.Builder getResourceStatusBuilder()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
public AllocationResourceStatusOrBuilder getResourceStatusOrBuilder()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
getResourceStatusOrBuilder in interface ReservationOrBuilderpublic boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;hasSatisfiesPzs in interface ReservationOrBuilderpublic boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;getSatisfiesPzs in interface ReservationOrBuilderpublic Reservation.Builder setSatisfiesPzs(boolean value)
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;value - The satisfiesPzs to set.public Reservation.Builder clearSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;public boolean hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;hasSelfLink in interface ReservationOrBuilderpublic String getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;getSelfLink in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;getSelfLinkBytes in interface ReservationOrBuilderpublic Reservation.Builder setSelfLink(String value)
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;value - The selfLink to set.public Reservation.Builder clearSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;public Reservation.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;value - The bytes for selfLink to set.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;hasShareSettings in interface ReservationOrBuilderpublic 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;getShareSettings in interface ReservationOrBuilderpublic 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;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;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;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;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;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;getShareSettingsOrBuilder in interface ReservationOrBuilderpublic boolean hasSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
hasSpecificReservation in interface ReservationOrBuilderpublic AllocationSpecificSKUReservation getSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
getSpecificReservation in interface ReservationOrBuilderpublic Reservation.Builder setSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
public Reservation.Builder setSpecificReservation(AllocationSpecificSKUReservation.Builder builderForValue)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
public Reservation.Builder mergeSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
public Reservation.Builder clearSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
public AllocationSpecificSKUReservation.Builder getSpecificReservationBuilder()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
public AllocationSpecificSKUReservationOrBuilder getSpecificReservationOrBuilder()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
getSpecificReservationOrBuilder in interface ReservationOrBuilderpublic 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;hasSpecificReservationRequired in interface ReservationOrBuilderpublic 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;getSpecificReservationRequired in interface ReservationOrBuilderpublic 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;value - The specificReservationRequired to set.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;public boolean hasStatus()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;hasStatus in interface ReservationOrBuilderpublic String getStatus()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatus in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatusBytes in interface ReservationOrBuilderpublic 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;value - The status to set.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;public Reservation.Builder setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;value - The bytes for status to set.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;hasZone in interface ReservationOrBuilderpublic 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;getZone in interface ReservationOrBuilderpublic com.google.protobuf.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;getZoneBytes in interface ReservationOrBuilderpublic 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;value - The zone to set.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;public Reservation.Builder setZoneBytes(com.google.protobuf.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;value - The bytes for zone to set.public final Reservation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>public final Reservation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>Copyright © 2023 Google LLC. All rights reserved.