public static final class License.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<License.Builder> implements LicenseOrBuilder
Represents a License resource. A License represents billing and aggregate usage data for public and marketplace images. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.Protobuf type
google.cloud.compute.v1.License| Modifier and Type | Method and Description |
|---|---|
License.Builder |
addAllAllowedReplacementLicenses(Iterable<String> values)
Specifies licenseCodes of licenses that can replace this license.
|
License.Builder |
addAllIncompatibleLicenses(Iterable<String> values)
Specifies licenseCodes of licenses that are incompatible with this license.
|
License.Builder |
addAllowedReplacementLicenses(String value)
Specifies licenseCodes of licenses that can replace this license.
|
License.Builder |
addAllowedReplacementLicensesBytes(com.google.protobuf.ByteString value)
Specifies licenseCodes of licenses that can replace this license.
|
License.Builder |
addAllRequiredCoattachedLicenses(Iterable<String> values)
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
License.Builder |
addIncompatibleLicenses(String value)
Specifies licenseCodes of licenses that are incompatible with this license.
|
License.Builder |
addIncompatibleLicensesBytes(com.google.protobuf.ByteString value)
Specifies licenseCodes of licenses that are incompatible with this license.
|
License.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
License.Builder |
addRequiredCoattachedLicenses(String value)
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
License.Builder |
addRequiredCoattachedLicensesBytes(com.google.protobuf.ByteString value)
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
License |
build() |
License |
buildPartial() |
License.Builder |
clear() |
License.Builder |
clearAllowedReplacementLicenses()
Specifies licenseCodes of licenses that can replace this license.
|
License.Builder |
clearAppendableToDisk()
If true, this license can be appended to an existing disk's set of licenses.
|
License.Builder |
clearChargesUseFee()
[Output Only] Deprecated.
|
License.Builder |
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
License.Builder |
clearDescription()
An optional textual description of the resource; provided by the client when the resource is created.
|
License.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
License.Builder |
clearId()
[Output Only] The unique identifier for the resource.
|
License.Builder |
clearIncompatibleLicenses()
Specifies licenseCodes of licenses that are incompatible with this license.
|
License.Builder |
clearKind()
[Output Only] Type of resource.
|
License.Builder |
clearLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
|
License.Builder |
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.
|
License.Builder |
clearMultiTenantOnly()
If true, this license can only be used on VMs on multi tenant nodes.
|
License.Builder |
clearName()
Name of the resource.
|
License.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
License.Builder |
clearOsLicense()
If true, indicates this is an OS license.
|
License.Builder |
clearRemovableFromDisk()
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
|
License.Builder |
clearRequiredCoattachedLicenses()
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
License.Builder |
clearResourceRequirements()
[Input Only] Deprecated.
|
License.Builder |
clearSelfLink()
[Output Only] Server-defined URL for the resource.
|
License.Builder |
clearSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
|
License.Builder |
clearSoleTenantOnly()
If true, this license can only be used on VMs on sole tenant nodes.
|
License.Builder |
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.
|
License.Builder |
clearUpdateTimestamp()
[Output Only] Last update timestamp in RFC3339 text format.
|
License.Builder |
clone() |
String |
getAllowedReplacementLicenses(int index)
Specifies licenseCodes of licenses that can replace this license.
|
com.google.protobuf.ByteString |
getAllowedReplacementLicensesBytes(int index)
Specifies licenseCodes of licenses that can replace this license.
|
int |
getAllowedReplacementLicensesCount()
Specifies licenseCodes of licenses that can replace this license.
|
com.google.protobuf.ProtocolStringList |
getAllowedReplacementLicensesList()
Specifies licenseCodes of licenses that can replace this license.
|
boolean |
getAppendableToDisk()
If true, this license can be appended to an existing disk's set of licenses.
|
boolean |
getChargesUseFee()
[Output Only] Deprecated.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
License |
getDefaultInstanceForType() |
String |
getDescription()
An optional textual description of the resource; provided by the client when the resource is created.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional textual description of the resource; provided by the client when the resource is created.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getIncompatibleLicenses(int index)
Specifies licenseCodes of licenses that are incompatible with this license.
|
com.google.protobuf.ByteString |
getIncompatibleLicensesBytes(int index)
Specifies licenseCodes of licenses that are incompatible with this license.
|
int |
getIncompatibleLicensesCount()
Specifies licenseCodes of licenses that are incompatible with this license.
|
com.google.protobuf.ProtocolStringList |
getIncompatibleLicensesList()
Specifies licenseCodes of licenses that are incompatible with this license.
|
String |
getKind()
[Output Only] Type of resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of resource.
|
long |
getLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
|
Duration |
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.
|
Duration.Builder |
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.
|
DurationOrBuilder |
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.
|
boolean |
getMultiTenantOnly()
If true, this license can only be used on VMs on multi tenant nodes.
|
String |
getName()
Name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the resource.
|
boolean |
getOsLicense()
If true, indicates this is an OS license.
|
boolean |
getRemovableFromDisk()
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
|
String |
getRequiredCoattachedLicenses(int index)
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
com.google.protobuf.ByteString |
getRequiredCoattachedLicensesBytes(int index)
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
int |
getRequiredCoattachedLicensesCount()
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
com.google.protobuf.ProtocolStringList |
getRequiredCoattachedLicensesList()
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
LicenseResourceRequirements |
getResourceRequirements()
[Input Only] Deprecated.
|
LicenseResourceRequirements.Builder |
getResourceRequirementsBuilder()
[Input Only] Deprecated.
|
LicenseResourceRequirementsOrBuilder |
getResourceRequirementsOrBuilder()
[Input Only] Deprecated.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
|
String |
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
|
com.google.protobuf.ByteString |
getSelfLinkWithIdBytes()
[Output Only] Server-defined URL for this resource with the resource id.
|
boolean |
getSoleTenantOnly()
If true, this license can only be used on VMs on sole tenant nodes.
|
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.
|
String |
getUpdateTimestamp()
[Output Only] Last update timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getUpdateTimestampBytes()
[Output Only] Last update timestamp in RFC3339 text format.
|
boolean |
hasAppendableToDisk()
If true, this license can be appended to an existing disk's set of licenses.
|
boolean |
hasChargesUseFee()
[Output Only] Deprecated.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDescription()
An optional textual description of the resource; provided by the client when the resource is created.
|
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasKind()
[Output Only] Type of resource.
|
boolean |
hasLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
|
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.
|
boolean |
hasMultiTenantOnly()
If true, this license can only be used on VMs on multi tenant nodes.
|
boolean |
hasName()
Name of the resource.
|
boolean |
hasOsLicense()
If true, indicates this is an OS license.
|
boolean |
hasRemovableFromDisk()
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
|
boolean |
hasResourceRequirements()
[Input Only] Deprecated.
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
boolean |
hasSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
|
boolean |
hasSoleTenantOnly()
If true, this license can only be used on VMs on sole tenant nodes.
|
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.
|
boolean |
hasUpdateTimestamp()
[Output Only] Last update timestamp in RFC3339 text format.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
License.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
License.Builder |
mergeFrom(License other) |
License.Builder |
mergeFrom(com.google.protobuf.Message other) |
License.Builder |
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.
|
License.Builder |
mergeResourceRequirements(LicenseResourceRequirements value)
[Input Only] Deprecated.
|
License.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
License.Builder |
setAllowedReplacementLicenses(int index,
String value)
Specifies licenseCodes of licenses that can replace this license.
|
License.Builder |
setAppendableToDisk(boolean value)
If true, this license can be appended to an existing disk's set of licenses.
|
License.Builder |
setChargesUseFee(boolean value)
[Output Only] Deprecated.
|
License.Builder |
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
|
License.Builder |
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
|
License.Builder |
setDescription(String value)
An optional textual description of the resource; provided by the client when the resource is created.
|
License.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional textual description of the resource; provided by the client when the resource is created.
|
License.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
License.Builder |
setId(long value)
[Output Only] The unique identifier for the resource.
|
License.Builder |
setIncompatibleLicenses(int index,
String value)
Specifies licenseCodes of licenses that are incompatible with this license.
|
License.Builder |
setKind(String value)
[Output Only] Type of resource.
|
License.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of resource.
|
License.Builder |
setLicenseCode(long value)
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
|
License.Builder |
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.
|
License.Builder |
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.
|
License.Builder |
setMultiTenantOnly(boolean value)
If true, this license can only be used on VMs on multi tenant nodes.
|
License.Builder |
setName(String value)
Name of the resource.
|
License.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.
|
License.Builder |
setOsLicense(boolean value)
If true, indicates this is an OS license.
|
License.Builder |
setRemovableFromDisk(boolean value)
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
|
License.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
License.Builder |
setRequiredCoattachedLicenses(int index,
String value)
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
|
License.Builder |
setResourceRequirements(LicenseResourceRequirements.Builder builderForValue)
[Input Only] Deprecated.
|
License.Builder |
setResourceRequirements(LicenseResourceRequirements value)
[Input Only] Deprecated.
|
License.Builder |
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
|
License.Builder |
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
|
License.Builder |
setSelfLinkWithId(String value)
[Output Only] Server-defined URL for this resource with the resource id.
|
License.Builder |
setSelfLinkWithIdBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for this resource with the resource id.
|
License.Builder |
setSoleTenantOnly(boolean value)
If true, this license can only be used on VMs on sole tenant nodes.
|
License.Builder |
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.
|
License.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
License.Builder |
setUpdateTimestamp(String value)
[Output Only] Last update timestamp in RFC3339 text format.
|
License.Builder |
setUpdateTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Last update timestamp in RFC3339 text format.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic License build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic License buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic License.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<License.Builder>public License.Builder mergeFrom(License other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public License.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<License.Builder>IOExceptionpublic 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;getAllowedReplacementLicensesList in interface LicenseOrBuilderpublic 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;getAllowedReplacementLicensesCount in interface LicenseOrBuilderpublic String getAllowedReplacementLicenses(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;getAllowedReplacementLicenses in interface LicenseOrBuilderindex - The index of the element to return.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;getAllowedReplacementLicensesBytes in interface LicenseOrBuilderindex - The index of the value to return.public License.Builder setAllowedReplacementLicenses(int index, String value)
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;index - The index to set the value at.value - The allowedReplacementLicenses to set.public License.Builder addAllowedReplacementLicenses(String value)
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;value - The allowedReplacementLicenses to add.public License.Builder addAllAllowedReplacementLicenses(Iterable<String> values)
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;values - The allowedReplacementLicenses to add.public License.Builder 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;public License.Builder addAllowedReplacementLicensesBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the allowedReplacementLicenses to add.public boolean hasAppendableToDisk()
If true, this license can be appended to an existing disk's set of licenses.
optional bool appendable_to_disk = 16959254;hasAppendableToDisk in interface LicenseOrBuilderpublic boolean getAppendableToDisk()
If true, this license can be appended to an existing disk's set of licenses.
optional bool appendable_to_disk = 16959254;getAppendableToDisk in interface LicenseOrBuilderpublic License.Builder setAppendableToDisk(boolean value)
If true, this license can be appended to an existing disk's set of licenses.
optional bool appendable_to_disk = 16959254;value - The appendableToDisk to set.public License.Builder clearAppendableToDisk()
If true, this license can be appended to an existing disk's set of licenses.
optional bool appendable_to_disk = 16959254;public boolean hasChargesUseFee()
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
optional bool charges_use_fee = 372412622;hasChargesUseFee in interface LicenseOrBuilderpublic boolean getChargesUseFee()
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
optional bool charges_use_fee = 372412622;getChargesUseFee in interface LicenseOrBuilderpublic License.Builder setChargesUseFee(boolean value)
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
optional bool charges_use_fee = 372412622;value - The chargesUseFee to set.public License.Builder clearChargesUseFee()
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
optional bool charges_use_fee = 372412622;public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface LicenseOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface LicenseOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface LicenseOrBuilderpublic License.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The creationTimestamp to set.public License.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;public License.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The bytes for creationTimestamp to set.public boolean hasDescription()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;hasDescription in interface LicenseOrBuilderpublic String getDescription()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;getDescription in interface LicenseOrBuilderpublic 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;getDescriptionBytes in interface LicenseOrBuilderpublic License.Builder setDescription(String value)
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;value - The description to set.public License.Builder clearDescription()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;public License.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;value - The bytes for description to set.public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface LicenseOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface LicenseOrBuilderpublic License.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;value - The id to set.public License.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;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;getIncompatibleLicensesList in interface LicenseOrBuilderpublic 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;getIncompatibleLicensesCount in interface LicenseOrBuilderpublic String getIncompatibleLicenses(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;getIncompatibleLicenses in interface LicenseOrBuilderindex - The index of the element to return.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;getIncompatibleLicensesBytes in interface LicenseOrBuilderindex - The index of the value to return.public License.Builder setIncompatibleLicenses(int index, String value)
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;index - The index to set the value at.value - The incompatibleLicenses to set.public License.Builder addIncompatibleLicenses(String value)
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;value - The incompatibleLicenses to add.public License.Builder addAllIncompatibleLicenses(Iterable<String> values)
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;values - The incompatibleLicenses to add.public License.Builder 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;public License.Builder addIncompatibleLicensesBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the incompatibleLicenses to add.public boolean hasKind()
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;hasKind in interface LicenseOrBuilderpublic String getKind()
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;getKind in interface LicenseOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;getKindBytes in interface LicenseOrBuilderpublic License.Builder setKind(String value)
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;value - The kind to set.public License.Builder clearKind()
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;public License.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;value - The bytes for kind to set.public boolean hasLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;hasLicenseCode in interface LicenseOrBuilderpublic long getLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;getLicenseCode in interface LicenseOrBuilderpublic License.Builder setLicenseCode(long value)
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;value - The licenseCode to set.public License.Builder clearLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;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;hasMinimumRetention in interface LicenseOrBuilderpublic Duration 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;getMinimumRetention in interface LicenseOrBuilderpublic License.Builder 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.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189;public License.Builder 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.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189;public License.Builder 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.
optional .google.cloud.compute.v1.Duration minimum_retention = 155398189;public License.Builder 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;public Duration.Builder 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;public DurationOrBuilder 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;getMinimumRetentionOrBuilder in interface LicenseOrBuilderpublic boolean hasMultiTenantOnly()
If true, this license can only be used on VMs on multi tenant nodes.
optional bool multi_tenant_only = 274395163;hasMultiTenantOnly in interface LicenseOrBuilderpublic boolean getMultiTenantOnly()
If true, this license can only be used on VMs on multi tenant nodes.
optional bool multi_tenant_only = 274395163;getMultiTenantOnly in interface LicenseOrBuilderpublic License.Builder setMultiTenantOnly(boolean value)
If true, this license can only be used on VMs on multi tenant nodes.
optional bool multi_tenant_only = 274395163;value - The multiTenantOnly to set.public License.Builder clearMultiTenantOnly()
If true, this license can only be used on VMs on multi tenant nodes.
optional bool multi_tenant_only = 274395163;public boolean hasName()
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;hasName in interface LicenseOrBuilderpublic String getName()
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;getName in interface LicenseOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;getNameBytes in interface LicenseOrBuilderpublic License.Builder setName(String value)
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;value - The name to set.public License.Builder clearName()
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;public License.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;value - The bytes for name to set.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;hasOsLicense in interface LicenseOrBuilderpublic 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;getOsLicense in interface LicenseOrBuilderpublic License.Builder setOsLicense(boolean value)
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;value - The osLicense to set.public License.Builder 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;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;hasRemovableFromDisk in interface LicenseOrBuilderpublic 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;getRemovableFromDisk in interface LicenseOrBuilderpublic License.Builder setRemovableFromDisk(boolean value)
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;value - The removableFromDisk to set.public License.Builder 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;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;getRequiredCoattachedLicensesList in interface LicenseOrBuilderpublic 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;getRequiredCoattachedLicensesCount in interface LicenseOrBuilderpublic String getRequiredCoattachedLicenses(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;getRequiredCoattachedLicenses in interface LicenseOrBuilderindex - The index of the element to return.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;getRequiredCoattachedLicensesBytes in interface LicenseOrBuilderindex - The index of the value to return.public License.Builder setRequiredCoattachedLicenses(int index, String value)
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;index - The index to set the value at.value - The requiredCoattachedLicenses to set.public License.Builder addRequiredCoattachedLicenses(String value)
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;value - The requiredCoattachedLicenses to add.public License.Builder addAllRequiredCoattachedLicenses(Iterable<String> values)
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;values - The requiredCoattachedLicenses to add.public License.Builder 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;public License.Builder addRequiredCoattachedLicensesBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the requiredCoattachedLicenses to add.public boolean hasResourceRequirements()
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
hasResourceRequirements in interface LicenseOrBuilderpublic LicenseResourceRequirements getResourceRequirements()
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
getResourceRequirements in interface LicenseOrBuilderpublic License.Builder setResourceRequirements(LicenseResourceRequirements value)
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public License.Builder setResourceRequirements(LicenseResourceRequirements.Builder builderForValue)
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public License.Builder mergeResourceRequirements(LicenseResourceRequirements value)
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public License.Builder clearResourceRequirements()
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public LicenseResourceRequirements.Builder getResourceRequirementsBuilder()
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public LicenseResourceRequirementsOrBuilder getResourceRequirementsOrBuilder()
[Input Only] Deprecated.
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
getResourceRequirementsOrBuilder in interface LicenseOrBuilderpublic boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;hasSelfLink in interface LicenseOrBuilderpublic String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLink in interface LicenseOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLinkBytes in interface LicenseOrBuilderpublic License.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;value - The selfLink to set.public License.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;public License.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;value - The bytes for selfLink to set.public boolean hasSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;hasSelfLinkWithId in interface LicenseOrBuilderpublic String getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;getSelfLinkWithId in interface LicenseOrBuilderpublic com.google.protobuf.ByteString getSelfLinkWithIdBytes()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;getSelfLinkWithIdBytes in interface LicenseOrBuilderpublic License.Builder setSelfLinkWithId(String value)
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;value - The selfLinkWithId to set.public License.Builder clearSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;public License.Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;value - The bytes for selfLinkWithId to set.public boolean hasSoleTenantOnly()
If true, this license can only be used on VMs on sole tenant nodes.
optional bool sole_tenant_only = 427525559;hasSoleTenantOnly in interface LicenseOrBuilderpublic boolean getSoleTenantOnly()
If true, this license can only be used on VMs on sole tenant nodes.
optional bool sole_tenant_only = 427525559;getSoleTenantOnly in interface LicenseOrBuilderpublic License.Builder setSoleTenantOnly(boolean value)
If true, this license can only be used on VMs on sole tenant nodes.
optional bool sole_tenant_only = 427525559;value - The soleTenantOnly to set.public License.Builder clearSoleTenantOnly()
If true, this license can only be used on VMs on sole tenant nodes.
optional bool sole_tenant_only = 427525559;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;hasTransferable in interface LicenseOrBuilderpublic 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;getTransferable in interface LicenseOrBuilderpublic License.Builder 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.
optional bool transferable = 4349893;value - The transferable to set.public License.Builder 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;public boolean hasUpdateTimestamp()
[Output Only] Last update timestamp in RFC3339 text format.
optional string update_timestamp = 120894752;hasUpdateTimestamp in interface LicenseOrBuilderpublic String getUpdateTimestamp()
[Output Only] Last update timestamp in RFC3339 text format.
optional string update_timestamp = 120894752;getUpdateTimestamp in interface LicenseOrBuilderpublic com.google.protobuf.ByteString getUpdateTimestampBytes()
[Output Only] Last update timestamp in RFC3339 text format.
optional string update_timestamp = 120894752;getUpdateTimestampBytes in interface LicenseOrBuilderpublic License.Builder setUpdateTimestamp(String value)
[Output Only] Last update timestamp in RFC3339 text format.
optional string update_timestamp = 120894752;value - The updateTimestamp to set.public License.Builder clearUpdateTimestamp()
[Output Only] Last update timestamp in RFC3339 text format.
optional string update_timestamp = 120894752;public License.Builder setUpdateTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Last update timestamp in RFC3339 text format.
optional string update_timestamp = 120894752;value - The bytes for updateTimestamp to set.public final License.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>public final License.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<License.Builder>Copyright © 2025 Google LLC. All rights reserved.