Package com.google.cloud.compute.v1
Class License
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.License
- All Implemented Interfaces:
LicenseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class License
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a License resource.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAllowedReplacementLicenses(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.static LicenseAn 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.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.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.com.google.protobuf.Parser<License>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.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.intbooleanIf 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.inthashCode()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 booleanstatic License.Builderstatic License.BuildernewBuilder(License prototype) protected License.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static LicenseparseDelimitedFrom(InputStream input) static LicenseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LicenseparseFrom(byte[] data) static LicenseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LicenseparseFrom(com.google.protobuf.ByteString data) static LicenseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LicenseparseFrom(com.google.protobuf.CodedInputStream input) static LicenseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LicenseparseFrom(InputStream input) static LicenseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LicenseparseFrom(ByteBuffer data) static LicenseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<License>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ALLOWED_REPLACEMENT_LICENSES_FIELD_NUMBER
public static final int ALLOWED_REPLACEMENT_LICENSES_FIELD_NUMBER- See Also:
-
APPENDABLE_TO_DISK_FIELD_NUMBER
public static final int APPENDABLE_TO_DISK_FIELD_NUMBER- See Also:
-
CHARGES_USE_FEE_FIELD_NUMBER
public static final int CHARGES_USE_FEE_FIELD_NUMBER- See Also:
-
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
INCOMPATIBLE_LICENSES_FIELD_NUMBER
public static final int INCOMPATIBLE_LICENSES_FIELD_NUMBER- See Also:
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER- See Also:
-
LICENSE_CODE_FIELD_NUMBER
public static final int LICENSE_CODE_FIELD_NUMBER- See Also:
-
MINIMUM_RETENTION_FIELD_NUMBER
public static final int MINIMUM_RETENTION_FIELD_NUMBER- See Also:
-
MULTI_TENANT_ONLY_FIELD_NUMBER
public static final int MULTI_TENANT_ONLY_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
OS_LICENSE_FIELD_NUMBER
public static final int OS_LICENSE_FIELD_NUMBER- See Also:
-
PARAMS_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER- See Also:
-
REMOVABLE_FROM_DISK_FIELD_NUMBER
public static final int REMOVABLE_FROM_DISK_FIELD_NUMBER- See Also:
-
REQUIRED_COATTACHED_LICENSES_FIELD_NUMBER
public static final int REQUIRED_COATTACHED_LICENSES_FIELD_NUMBER- See Also:
-
RESOURCE_REQUIREMENTS_FIELD_NUMBER
public static final int RESOURCE_REQUIREMENTS_FIELD_NUMBER- See Also:
-
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER- See Also:
-
SELF_LINK_WITH_ID_FIELD_NUMBER
public static final int SELF_LINK_WITH_ID_FIELD_NUMBER- See Also:
-
SOLE_TENANT_ONLY_FIELD_NUMBER
public static final int SOLE_TENANT_ONLY_FIELD_NUMBER- See Also:
-
TRANSFERABLE_FIELD_NUMBER
public static final int TRANSFERABLE_FIELD_NUMBER- See Also:
-
UPDATE_TIMESTAMP_FIELD_NUMBER
public static final int UPDATE_TIMESTAMP_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static License parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static License parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static License parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static License parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static License parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static License parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static License parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static License parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static License parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected License.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-