Package com.google.cloud.compute.v1
Class License.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<License.Builder>
com.google.cloud.compute.v1.License.Builder
- All Implemented Interfaces:
LicenseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- License
public static final class License.Builder
extends com.google.protobuf.GeneratedMessage.Builder<License.Builder>
implements LicenseOrBuilder
Represents a License resource. A License represents billing and aggregate usage data forpublic andmarketplace images. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.Protobuf type
google.cloud.compute.v1.License-
Method Summary
Modifier and TypeMethodDescriptionSpecifies licenseCodes of licenses that can replace this license.addAllIncompatibleLicenses(Iterable<String> values) Specifies licenseCodes of licenses that are incompatible with this license.Specifies licenseCodes of licenses that can replace this license.addAllowedReplacementLicensesBytes(com.google.protobuf.ByteString value) Specifies licenseCodes of licenses that can replace this license.Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.addIncompatibleLicenses(String value) Specifies licenseCodes of licenses that are incompatible with this license.addIncompatibleLicensesBytes(com.google.protobuf.ByteString value) Specifies licenseCodes of licenses that are incompatible with this license.Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.addRequiredCoattachedLicensesBytes(com.google.protobuf.ByteString value) Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.build()clear()Specifies licenseCodes of licenses that can replace this license.If true, this license can be appended to an existing disk's set of licenses.[Output Only] Deprecated.Output only.An optional textual description of the resource; provided by the client when the resource is created.clearId()[Output Only] The unique identifier for the resource.Specifies licenseCodes of licenses that are incompatible with this license.Output only.[Output Only] The unique code used to attach this license to images, snapshots, and disks.If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.If true, this license can only be used on VMs on multi tenant nodes.Name of the resource.If true, indicates this is an OS license.Input only.If true, this license can be removed from a disk's set of licenses, with no replacement license needed.Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.[Input Only] Deprecated.Output only.Output only.If true, this license can only be used on VMs on sole tenant nodes.If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.Output only.getAllowedReplacementLicenses(int index) Specifies licenseCodes of licenses that can replace this license.com.google.protobuf.ByteStringgetAllowedReplacementLicensesBytes(int index) Specifies licenseCodes of licenses that can replace this license.intSpecifies licenseCodes of licenses that can replace this license.com.google.protobuf.ProtocolStringListSpecifies licenseCodes of licenses that can replace this license.booleanIf true, this license can be appended to an existing disk's set of licenses.boolean[Output Only] Deprecated.Output only.com.google.protobuf.ByteStringOutput only.An optional textual description of the resource; provided by the client when the resource is created.com.google.protobuf.ByteStringAn optional textual description of the resource; provided by the client when the resource is created.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()[Output Only] The unique identifier for the resource.getIncompatibleLicenses(int index) Specifies licenseCodes of licenses that are incompatible with this license.com.google.protobuf.ByteStringgetIncompatibleLicensesBytes(int index) Specifies licenseCodes of licenses that are incompatible with this license.intSpecifies licenseCodes of licenses that are incompatible with this license.com.google.protobuf.ProtocolStringListSpecifies licenseCodes of licenses that are incompatible with this license.getKind()Output only.com.google.protobuf.ByteStringOutput only.long[Output Only] The unique code used to attach this license to images, snapshots, and disks.If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.booleanIf true, this license can only be used on VMs on multi tenant nodes.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.booleanIf true, indicates this is an OS license.Input only.Input only.Input only.booleanIf true, this license can be removed from a disk's set of licenses, with no replacement license needed.getRequiredCoattachedLicenses(int index) Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.com.google.protobuf.ByteStringgetRequiredCoattachedLicensesBytes(int index) Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.intSpecifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.com.google.protobuf.ProtocolStringListSpecifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.[Input Only] Deprecated.[Input Only] Deprecated.[Input Only] Deprecated.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanIf true, this license can only be used on VMs on sole tenant nodes.booleanIf false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.Output only.com.google.protobuf.ByteStringOutput only.booleanIf true, this license can be appended to an existing disk's set of licenses.boolean[Output Only] Deprecated.booleanOutput only.booleanAn optional textual description of the resource; provided by the client when the resource is created.booleanhasId()[Output Only] The unique identifier for the resource.booleanhasKind()Output only.boolean[Output Only] The unique code used to attach this license to images, snapshots, and disks.booleanIf set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.booleanIf true, this license can only be used on VMs on multi tenant nodes.booleanhasName()Name of the resource.booleanIf true, indicates this is an OS license.booleanInput only.booleanIf true, this license can be removed from a disk's set of licenses, with no replacement license needed.boolean[Input Only] Deprecated.booleanOutput only.booleanOutput only.booleanIf true, this license can only be used on VMs on sole tenant nodes.booleanIf false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMinimumRetention(Duration value) If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.mergeParams(LicenseParams value) Input only.[Input Only] Deprecated.setAllowedReplacementLicenses(int index, String value) Specifies licenseCodes of licenses that can replace this license.setAppendableToDisk(boolean value) If true, this license can be appended to an existing disk's set of licenses.setChargesUseFee(boolean value) [Output Only] Deprecated.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional textual description of the resource; provided by the client when the resource is created.setDescriptionBytes(com.google.protobuf.ByteString value) An optional textual description of the resource; provided by the client when the resource is created.setId(long value) [Output Only] The unique identifier for the resource.setIncompatibleLicenses(int index, String value) Specifies licenseCodes of licenses that are incompatible with this license.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLicenseCode(long value) [Output Only] The unique code used to attach this license to images, snapshots, and disks.setMinimumRetention(Duration value) If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.setMinimumRetention(Duration.Builder builderForValue) If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.setMultiTenantOnly(boolean value) If true, this license can only be used on VMs on multi tenant nodes.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.setOsLicense(boolean value) If true, indicates this is an OS license.setParams(LicenseParams value) Input only.setParams(LicenseParams.Builder builderForValue) Input only.setRemovableFromDisk(boolean value) If true, this license can be removed from a disk's set of licenses, with no replacement license needed.setRequiredCoattachedLicenses(int index, String value) Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.[Input Only] Deprecated.setResourceRequirements(LicenseResourceRequirements.Builder builderForValue) [Input Only] Deprecated.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setSelfLinkWithId(String value) Output only.setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) Output only.setSoleTenantOnly(boolean value) If true, this license can only be used on VMs on sole tenant nodes.setTransferable(boolean value) If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.setUpdateTimestamp(String value) Output only.setUpdateTimestampBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<License.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<License.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<License.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<License.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<License.Builder>
-
mergeFrom
public License.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<License.Builder>- Throws:
IOException
-
getAllowedReplacementLicensesList
public com.google.protobuf.ProtocolStringList getAllowedReplacementLicensesList()Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Specified by:
getAllowedReplacementLicensesListin interfaceLicenseOrBuilder- Returns:
- A list containing the allowedReplacementLicenses.
-
getAllowedReplacementLicensesCount
public int getAllowedReplacementLicensesCount()Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Specified by:
getAllowedReplacementLicensesCountin interfaceLicenseOrBuilder- Returns:
- The count of allowedReplacementLicenses.
-
getAllowedReplacementLicenses
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Specified by:
getAllowedReplacementLicensesin interfaceLicenseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedReplacementLicenses at the given index.
-
getAllowedReplacementLicensesBytes
public com.google.protobuf.ByteString getAllowedReplacementLicensesBytes(int index) Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Specified by:
getAllowedReplacementLicensesBytesin interfaceLicenseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedReplacementLicenses at the given index.
-
setAllowedReplacementLicenses
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Parameters:
index- The index to set the value at.value- The allowedReplacementLicenses to set.- Returns:
- This builder for chaining.
-
addAllowedReplacementLicenses
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Parameters:
value- The allowedReplacementLicenses to add.- Returns:
- This builder for chaining.
-
addAllAllowedReplacementLicenses
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Parameters:
values- The allowedReplacementLicenses to add.- Returns:
- This builder for chaining.
-
clearAllowedReplacementLicenses
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Returns:
- This builder for chaining.
-
addAllowedReplacementLicensesBytes
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
repeated string allowed_replacement_licenses = 195677718;- Parameters:
value- The bytes of the allowedReplacementLicenses to add.- Returns:
- This builder for chaining.
-
hasAppendableToDisk
public boolean hasAppendableToDisk()If true, this license can be appended to an existing disk's set of licenses.
optional bool appendable_to_disk = 16959254;- Specified by:
hasAppendableToDiskin interfaceLicenseOrBuilder- Returns:
- Whether the appendableToDisk field is set.
-
getAppendableToDisk
public boolean getAppendableToDisk()If true, this license can be appended to an existing disk's set of licenses.
optional bool appendable_to_disk = 16959254;- Specified by:
getAppendableToDiskin interfaceLicenseOrBuilder- Returns:
- The appendableToDisk.
-
setAppendableToDisk
If true, this license can be appended to an existing disk's set of licenses.
optional bool appendable_to_disk = 16959254;- Parameters:
value- The appendableToDisk to set.- Returns:
- This builder for chaining.
-
clearAppendableToDisk
If true, this license can be appended to an existing disk's set of licenses.
optional bool appendable_to_disk = 16959254;- Returns:
- This builder for chaining.
-
hasChargesUseFee
public boolean hasChargesUseFee()[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
optional bool charges_use_fee = 372412622;- Specified by:
hasChargesUseFeein interfaceLicenseOrBuilder- Returns:
- Whether the chargesUseFee field is set.
-
getChargesUseFee
public boolean getChargesUseFee()[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
optional bool charges_use_fee = 372412622;- Specified by:
getChargesUseFeein interfaceLicenseOrBuilder- Returns:
- The chargesUseFee.
-
setChargesUseFee
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
optional bool charges_use_fee = 372412622;- Parameters:
value- The chargesUseFee to set.- Returns:
- This builder for chaining.
-
clearChargesUseFee
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
optional bool charges_use_fee = 372412622;- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceLicenseOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceLicenseOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceLicenseOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp inRFC3339 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 textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceLicenseOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceLicenseOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceLicenseOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional textual description of the resource; provided by the client when the resource is created.
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:
hasIdin interfaceLicenseOrBuilder- 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:
getIdin interfaceLicenseOrBuilder- Returns:
- The id.
-
setId
[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
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
getIncompatibleLicensesList
public com.google.protobuf.ProtocolStringList getIncompatibleLicensesList()Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Specified by:
getIncompatibleLicensesListin interfaceLicenseOrBuilder- Returns:
- A list containing the incompatibleLicenses.
-
getIncompatibleLicensesCount
public int getIncompatibleLicensesCount()Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Specified by:
getIncompatibleLicensesCountin interfaceLicenseOrBuilder- Returns:
- The count of incompatibleLicenses.
-
getIncompatibleLicenses
Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Specified by:
getIncompatibleLicensesin interfaceLicenseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The incompatibleLicenses at the given index.
-
getIncompatibleLicensesBytes
public com.google.protobuf.ByteString getIncompatibleLicensesBytes(int index) Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Specified by:
getIncompatibleLicensesBytesin interfaceLicenseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the incompatibleLicenses at the given index.
-
setIncompatibleLicenses
Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Parameters:
index- The index to set the value at.value- The incompatibleLicenses to set.- Returns:
- This builder for chaining.
-
addIncompatibleLicenses
Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Parameters:
value- The incompatibleLicenses to add.- Returns:
- This builder for chaining.
-
addAllIncompatibleLicenses
Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Parameters:
values- The incompatibleLicenses to add.- Returns:
- This builder for chaining.
-
clearIncompatibleLicenses
Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Returns:
- This builder for chaining.
-
addIncompatibleLicensesBytes
Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
repeated string incompatible_licenses = 334239768;- Parameters:
value- The bytes of the incompatibleLicenses to add.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;- Specified by:
hasKindin interfaceLicenseOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;- Specified by:
getKindin interfaceLicenseOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceLicenseOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasLicenseCode
public boolean hasLicenseCode()[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;- Specified by:
hasLicenseCodein interfaceLicenseOrBuilder- Returns:
- Whether the licenseCode field is set.
-
getLicenseCode
public long getLicenseCode()[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;- Specified by:
getLicenseCodein interfaceLicenseOrBuilder- Returns:
- The licenseCode.
-
setLicenseCode
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;- Parameters:
value- The licenseCode to set.- Returns:
- This builder for chaining.
-
clearLicenseCode
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;- Returns:
- This builder for chaining.
-
hasMinimumRetention
public boolean hasMinimumRetention()If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189;- Specified by:
hasMinimumRetentionin interfaceLicenseOrBuilder- Returns:
- Whether the minimumRetention field is set.
-
getMinimumRetention
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189;- Specified by:
getMinimumRetentionin interfaceLicenseOrBuilder- Returns:
- The minimumRetention.
-
setMinimumRetention
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189; -
setMinimumRetention
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189; -
mergeMinimumRetention
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189; -
clearMinimumRetention
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189; -
getMinimumRetentionBuilder
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189; -
getMinimumRetentionOrBuilder
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189;- Specified by:
getMinimumRetentionOrBuilderin interfaceLicenseOrBuilder
-
hasMultiTenantOnly
public boolean hasMultiTenantOnly()If true, this license can only be used on VMs on multi tenant nodes.
optional bool multi_tenant_only = 274395163;- Specified by:
hasMultiTenantOnlyin interfaceLicenseOrBuilder- Returns:
- Whether the multiTenantOnly field is set.
-
getMultiTenantOnly
public boolean getMultiTenantOnly()If true, this license can only be used on VMs on multi tenant nodes.
optional bool multi_tenant_only = 274395163;- Specified by:
getMultiTenantOnlyin interfaceLicenseOrBuilder- Returns:
- The multiTenantOnly.
-
setMultiTenantOnly
If true, this license can only be used on VMs on multi tenant nodes.
optional bool multi_tenant_only = 274395163;- Parameters:
value- The multiTenantOnly to set.- Returns:
- This builder for chaining.
-
clearMultiTenantOnly
If true, this license can only be used on VMs on multi tenant nodes.
optional bool multi_tenant_only = 274395163;- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Name of the resource. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Specified by:
hasNamein interfaceLicenseOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the resource. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Specified by:
getNamein interfaceLicenseOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the resource. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceLicenseOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasOsLicense
public boolean hasOsLicense()If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.
optional bool os_license = 487986406;- Specified by:
hasOsLicensein interfaceLicenseOrBuilder- Returns:
- Whether the osLicense field is set.
-
getOsLicense
public boolean getOsLicense()If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.
optional bool os_license = 487986406;- Specified by:
getOsLicensein interfaceLicenseOrBuilder- Returns:
- The osLicense.
-
setOsLicense
If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.
optional bool os_license = 487986406;- Parameters:
value- The osLicense to set.- Returns:
- This builder for chaining.
-
clearOsLicense
If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.
optional bool os_license = 487986406;- Returns:
- This builder for chaining.
-
hasParams
public boolean hasParams()Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.LicenseParams params = 78313862;- Specified by:
hasParamsin interfaceLicenseOrBuilder- Returns:
- Whether the params field is set.
-
getParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.LicenseParams params = 78313862;- Specified by:
getParamsin interfaceLicenseOrBuilder- Returns:
- The params.
-
setParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.LicenseParams params = 78313862; -
setParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.LicenseParams params = 78313862; -
mergeParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.LicenseParams params = 78313862; -
clearParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.LicenseParams params = 78313862; -
getParamsBuilder
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.LicenseParams params = 78313862; -
getParamsOrBuilder
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.LicenseParams params = 78313862;- Specified by:
getParamsOrBuilderin interfaceLicenseOrBuilder
-
hasRemovableFromDisk
public boolean hasRemovableFromDisk()If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
optional bool removable_from_disk = 25854638;- Specified by:
hasRemovableFromDiskin interfaceLicenseOrBuilder- Returns:
- Whether the removableFromDisk field is set.
-
getRemovableFromDisk
public boolean getRemovableFromDisk()If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
optional bool removable_from_disk = 25854638;- Specified by:
getRemovableFromDiskin interfaceLicenseOrBuilder- Returns:
- The removableFromDisk.
-
setRemovableFromDisk
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
optional bool removable_from_disk = 25854638;- Parameters:
value- The removableFromDisk to set.- Returns:
- This builder for chaining.
-
clearRemovableFromDisk
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
optional bool removable_from_disk = 25854638;- Returns:
- This builder for chaining.
-
getRequiredCoattachedLicensesList
public com.google.protobuf.ProtocolStringList getRequiredCoattachedLicensesList()Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Specified by:
getRequiredCoattachedLicensesListin interfaceLicenseOrBuilder- Returns:
- A list containing the requiredCoattachedLicenses.
-
getRequiredCoattachedLicensesCount
public int getRequiredCoattachedLicensesCount()Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Specified by:
getRequiredCoattachedLicensesCountin interfaceLicenseOrBuilder- Returns:
- The count of requiredCoattachedLicenses.
-
getRequiredCoattachedLicenses
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Specified by:
getRequiredCoattachedLicensesin interfaceLicenseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The requiredCoattachedLicenses at the given index.
-
getRequiredCoattachedLicensesBytes
public com.google.protobuf.ByteString getRequiredCoattachedLicensesBytes(int index) Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Specified by:
getRequiredCoattachedLicensesBytesin interfaceLicenseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the requiredCoattachedLicenses at the given index.
-
setRequiredCoattachedLicenses
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Parameters:
index- The index to set the value at.value- The requiredCoattachedLicenses to set.- Returns:
- This builder for chaining.
-
addRequiredCoattachedLicenses
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Parameters:
value- The requiredCoattachedLicenses to add.- Returns:
- This builder for chaining.
-
addAllRequiredCoattachedLicenses
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Parameters:
values- The requiredCoattachedLicenses to add.- Returns:
- This builder for chaining.
-
clearRequiredCoattachedLicenses
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Returns:
- This builder for chaining.
-
addRequiredCoattachedLicensesBytes
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
repeated string required_coattached_licenses = 129195265;- Parameters:
value- The bytes of the requiredCoattachedLicenses to add.- Returns:
- This builder for chaining.
-
hasResourceRequirements
public boolean hasResourceRequirements()[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;- Specified by:
hasResourceRequirementsin interfaceLicenseOrBuilder- Returns:
- Whether the resourceRequirements field is set.
-
getResourceRequirements
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;- Specified by:
getResourceRequirementsin interfaceLicenseOrBuilder- Returns:
- The resourceRequirements.
-
setResourceRequirements
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; -
setResourceRequirements
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; -
mergeResourceRequirements
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; -
clearResourceRequirements
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; -
getResourceRequirementsBuilder
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; -
getResourceRequirementsOrBuilder
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;- Specified by:
getResourceRequirementsOrBuilderin interfaceLicenseOrBuilder
-
hasSelfLink
public boolean hasSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceLicenseOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceLicenseOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceLicenseOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSelfLinkWithId
public boolean hasSelfLinkWithId()Output only. [Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;- Specified by:
hasSelfLinkWithIdin interfaceLicenseOrBuilder- Returns:
- Whether the selfLinkWithId field is set.
-
getSelfLinkWithId
Output only. [Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;- Specified by:
getSelfLinkWithIdin interfaceLicenseOrBuilder- Returns:
- The selfLinkWithId.
-
getSelfLinkWithIdBytes
public com.google.protobuf.ByteString getSelfLinkWithIdBytes()Output only. [Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;- Specified by:
getSelfLinkWithIdBytesin interfaceLicenseOrBuilder- Returns:
- The bytes for selfLinkWithId.
-
setSelfLinkWithId
Output only. [Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;- Parameters:
value- The selfLinkWithId to set.- Returns:
- This builder for chaining.
-
clearSelfLinkWithId
Output only. [Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;- Returns:
- This builder for chaining.
-
setSelfLinkWithIdBytes
Output only. [Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;- Parameters:
value- The bytes for selfLinkWithId to set.- Returns:
- This builder for chaining.
-
hasSoleTenantOnly
public boolean hasSoleTenantOnly()If true, this license can only be used on VMs on sole tenant nodes.
optional bool sole_tenant_only = 427525559;- Specified by:
hasSoleTenantOnlyin interfaceLicenseOrBuilder- Returns:
- Whether the soleTenantOnly field is set.
-
getSoleTenantOnly
public boolean getSoleTenantOnly()If true, this license can only be used on VMs on sole tenant nodes.
optional bool sole_tenant_only = 427525559;- Specified by:
getSoleTenantOnlyin interfaceLicenseOrBuilder- Returns:
- The soleTenantOnly.
-
setSoleTenantOnly
If true, this license can only be used on VMs on sole tenant nodes.
optional bool sole_tenant_only = 427525559;- Parameters:
value- The soleTenantOnly to set.- Returns:
- This builder for chaining.
-
clearSoleTenantOnly
If true, this license can only be used on VMs on sole tenant nodes.
optional bool sole_tenant_only = 427525559;- Returns:
- This builder for chaining.
-
hasTransferable
public boolean hasTransferable()If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
optional bool transferable = 4349893;- Specified by:
hasTransferablein interfaceLicenseOrBuilder- Returns:
- Whether the transferable field is set.
-
getTransferable
public boolean getTransferable()If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
optional bool transferable = 4349893;- Specified by:
getTransferablein interfaceLicenseOrBuilder- Returns:
- The transferable.
-
setTransferable
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
optional bool transferable = 4349893;- Parameters:
value- The transferable to set.- Returns:
- This builder for chaining.
-
clearTransferable
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
optional bool transferable = 4349893;- Returns:
- This builder for chaining.
-
hasUpdateTimestamp
public boolean hasUpdateTimestamp()Output only. [Output Only] Last update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Specified by:
hasUpdateTimestampin interfaceLicenseOrBuilder- Returns:
- Whether the updateTimestamp field is set.
-
getUpdateTimestamp
Output only. [Output Only] Last update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Specified by:
getUpdateTimestampin interfaceLicenseOrBuilder- Returns:
- The updateTimestamp.
-
getUpdateTimestampBytes
public com.google.protobuf.ByteString getUpdateTimestampBytes()Output only. [Output Only] Last update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Specified by:
getUpdateTimestampBytesin interfaceLicenseOrBuilder- Returns:
- The bytes for updateTimestamp.
-
setUpdateTimestamp
Output only. [Output Only] Last update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Parameters:
value- The updateTimestamp to set.- Returns:
- This builder for chaining.
-
clearUpdateTimestamp
Output only. [Output Only] Last update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Returns:
- This builder for chaining.
-
setUpdateTimestampBytes
Output only. [Output Only] Last update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Parameters:
value- The bytes for updateTimestamp to set.- Returns:
- This builder for chaining.
-