Package com.google.cloud.compute.v1
Class Reservation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
- com.google.cloud.compute.v1.Reservation.Builder
-
- All Implemented Interfaces:
ReservationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Reservation
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 typegoogle.cloud.compute.v1.Reservation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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)
Resource policies to be added to this reservation.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()
Resource policies to be added to this reservation.Map<String,String>
getResourcePoliciesMap()
Resource policies to be added to this reservation.String
getResourcePoliciesOrDefault(String key, String defaultValue)
Resource policies to be added to this reservation.String
getResourcePoliciesOrThrow(String key)
Resource policies to be added to this reservation.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(Reservation other)
Reservation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Reservation.Builder
mergeFrom(com.google.protobuf.Message 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)
Resource policies to be added to this reservation.Reservation.Builder
putResourcePolicies(String key, String value)
Resource policies to be added to this reservation.Reservation.Builder
removeResourcePolicies(String key)
Resource policies to be added to this reservation.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 value)
[Output Only] Status information for Reservation resource.Reservation.Builder
setResourceStatus(AllocationResourceStatus.Builder builderForValue)
[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 value)
Specify share-settings to create a shared reservation.Reservation.Builder
setShareSettings(ShareSettings.Builder builderForValue)
Specify share-settings to create a shared reservation.Reservation.Builder
setSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.Reservation.Builder
setSpecificReservation(AllocationSpecificSKUReservation.Builder builderForValue)
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.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
clear
public Reservation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
getDefaultInstanceForType
public Reservation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Reservation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Reservation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Reservation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
setField
public Reservation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
clearField
public Reservation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
clearOneof
public Reservation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
setRepeatedField
public Reservation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
addRepeatedField
public Reservation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
mergeFrom
public Reservation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Reservation.Builder>
-
mergeFrom
public Reservation.Builder mergeFrom(Reservation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
mergeFrom
public Reservation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Reservation.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasCommitment
in interfaceReservationOrBuilder
- Returns:
- Whether the commitment field is set.
-
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;
- Specified by:
getCommitment
in interfaceReservationOrBuilder
- Returns:
- The commitment.
-
getCommitmentBytes
public 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;
- Specified by:
getCommitmentBytes
in interfaceReservationOrBuilder
- Returns:
- The bytes for commitment.
-
setCommitment
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;
- Parameters:
value
- The commitment to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setCommitmentBytes
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;
- Parameters:
value
- The bytes for commitment to set.- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceReservationOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceReservationOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceReservationOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public Reservation.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Reservation.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public Reservation.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceReservationOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceReservationOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceReservationOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Reservation.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
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;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceReservationOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceReservationOrBuilder
- Returns:
- The id.
-
setId
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;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Reservation.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceReservationOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceReservationOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceReservationOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public Reservation.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Reservation.Builder clearKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public Reservation.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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]([-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;
- Specified by:
hasName
in interfaceReservationOrBuilder
- Returns:
- Whether the name field is set.
-
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]([-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;
- Specified by:
getName
in interfaceReservationOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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;
- Specified by:
getNameBytes
in interfaceReservationOrBuilder
- Returns:
- The bytes for name.
-
setName
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]([-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;
- Parameters:
value
- The name to set.- Returns:
- 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]([-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;
- Returns:
- This builder for chaining.
-
setNameBytes
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getResourcePoliciesCount
public int getResourcePoliciesCount()
Description copied from interface:ReservationOrBuilder
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;
- Specified by:
getResourcePoliciesCount
in interfaceReservationOrBuilder
-
containsResourcePolicies
public boolean containsResourcePolicies(String key)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;
- Specified by:
containsResourcePolicies
in interfaceReservationOrBuilder
-
getResourcePolicies
@Deprecated public Map<String,String> getResourcePolicies()
Deprecated.UsegetResourcePoliciesMap()
instead.- Specified by:
getResourcePolicies
in interfaceReservationOrBuilder
-
getResourcePoliciesMap
public Map<String,String> getResourcePoliciesMap()
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;
- Specified by:
getResourcePoliciesMap
in interfaceReservationOrBuilder
-
getResourcePoliciesOrDefault
public String getResourcePoliciesOrDefault(String key, String defaultValue)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;
- Specified by:
getResourcePoliciesOrDefault
in interfaceReservationOrBuilder
-
getResourcePoliciesOrThrow
public String getResourcePoliciesOrThrow(String key)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;
- Specified by:
getResourcePoliciesOrThrow
in interfaceReservationOrBuilder
-
clearResourcePolicies
public Reservation.Builder clearResourcePolicies()
-
removeResourcePolicies
public Reservation.Builder removeResourcePolicies(String key)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;
-
getMutableResourcePolicies
@Deprecated public Map<String,String> getMutableResourcePolicies()
Deprecated.Use alternate mutation accessors instead.
-
putResourcePolicies
public Reservation.Builder putResourcePolicies(String key, String value)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;
-
putAllResourcePolicies
public Reservation.Builder putAllResourcePolicies(Map<String,String> values)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;
-
hasResourceStatus
public boolean hasResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
- Specified by:
hasResourceStatus
in interfaceReservationOrBuilder
- Returns:
- Whether the resourceStatus field is set.
-
getResourceStatus
public AllocationResourceStatus getResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
- Specified by:
getResourceStatus
in interfaceReservationOrBuilder
- Returns:
- The resourceStatus.
-
setResourceStatus
public Reservation.Builder setResourceStatus(AllocationResourceStatus value)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
-
setResourceStatus
public Reservation.Builder setResourceStatus(AllocationResourceStatus.Builder builderForValue)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
-
mergeResourceStatus
public Reservation.Builder mergeResourceStatus(AllocationResourceStatus value)
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
-
clearResourceStatus
public Reservation.Builder clearResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
-
getResourceStatusBuilder
public AllocationResourceStatus.Builder getResourceStatusBuilder()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
-
getResourceStatusOrBuilder
public AllocationResourceStatusOrBuilder getResourceStatusOrBuilder()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
- Specified by:
getResourceStatusOrBuilder
in interfaceReservationOrBuilder
-
hasSatisfiesPzs
public boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
- Specified by:
hasSatisfiesPzs
in interfaceReservationOrBuilder
- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
- Specified by:
getSatisfiesPzs
in interfaceReservationOrBuilder
- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
public Reservation.Builder setSatisfiesPzs(boolean value)
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
- Parameters:
value
- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzs
public Reservation.Builder clearSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceReservationOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceReservationOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceReservationOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public Reservation.Builder setSelfLink(String value)
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public Reservation.Builder clearSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public Reservation.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasShareSettings
in interfaceReservationOrBuilder
- Returns:
- Whether the shareSettings field is set.
-
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;
- Specified by:
getShareSettings
in interfaceReservationOrBuilder
- Returns:
- The shareSettings.
-
setShareSettings
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;
-
setShareSettings
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;
-
mergeShareSettings
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;
-
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;
-
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;
-
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;
- Specified by:
getShareSettingsOrBuilder
in interfaceReservationOrBuilder
-
hasSpecificReservation
public boolean hasSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
- Specified by:
hasSpecificReservation
in interfaceReservationOrBuilder
- Returns:
- Whether the specificReservation field is set.
-
getSpecificReservation
public AllocationSpecificSKUReservation getSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
- Specified by:
getSpecificReservation
in interfaceReservationOrBuilder
- Returns:
- The specificReservation.
-
setSpecificReservation
public Reservation.Builder setSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
-
setSpecificReservation
public Reservation.Builder setSpecificReservation(AllocationSpecificSKUReservation.Builder builderForValue)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
-
mergeSpecificReservation
public Reservation.Builder mergeSpecificReservation(AllocationSpecificSKUReservation value)
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
-
clearSpecificReservation
public Reservation.Builder clearSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
-
getSpecificReservationBuilder
public AllocationSpecificSKUReservation.Builder getSpecificReservationBuilder()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
-
getSpecificReservationOrBuilder
public AllocationSpecificSKUReservationOrBuilder getSpecificReservationOrBuilder()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
- Specified by:
getSpecificReservationOrBuilder
in interfaceReservationOrBuilder
-
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;
- Specified by:
hasSpecificReservationRequired
in interfaceReservationOrBuilder
- Returns:
- Whether the specificReservationRequired field is set.
-
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;
- Specified by:
getSpecificReservationRequired
in interfaceReservationOrBuilder
- Returns:
- The specificReservationRequired.
-
setSpecificReservationRequired
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;
- Parameters:
value
- The specificReservationRequired to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasStatus
in interfaceReservationOrBuilder
- Returns:
- Whether the status field is set.
-
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;
- Specified by:
getStatus
in interfaceReservationOrBuilder
- Returns:
- The status.
-
getStatusBytes
public 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;
- Specified by:
getStatusBytes
in interfaceReservationOrBuilder
- Returns:
- The bytes for status.
-
setStatus
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;
- Parameters:
value
- The status to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
setStatusBytes
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;
- Parameters:
value
- The bytes for status to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasZone
in interfaceReservationOrBuilder
- Returns:
- Whether the zone field is set.
-
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;
- Specified by:
getZone
in interfaceReservationOrBuilder
- Returns:
- The zone.
-
getZoneBytes
public 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;
- Specified by:
getZoneBytes
in interfaceReservationOrBuilder
- Returns:
- The bytes for zone.
-
setZone
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;
- Parameters:
value
- The zone to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
setZoneBytes
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;
- Parameters:
value
- The bytes for zone to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Reservation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
mergeUnknownFields
public final Reservation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Reservation.Builder>
-
-