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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<License.Builder>
    • clear

      public License.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<License.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<License.Builder>
    • getDefaultInstanceForType

      public License getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public License build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public License buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public License.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<License.Builder>
    • mergeFrom

      public License.Builder mergeFrom(License other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getAllowedReplacementLicensesList in interface LicenseOrBuilder
      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:
      getAllowedReplacementLicensesCount in interface LicenseOrBuilder
      Returns:
      The count of allowedReplacementLicenses.
    • getAllowedReplacementLicenses

      public 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;
      Specified by:
      getAllowedReplacementLicenses in interface LicenseOrBuilder
      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:
      getAllowedReplacementLicensesBytes in interface LicenseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedReplacementLicenses at the given index.
    • setAllowedReplacementLicenses

      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;
      Parameters:
      index - The index to set the value at.
      value - The allowedReplacementLicenses to set.
      Returns:
      This builder for chaining.
    • addAllowedReplacementLicenses

      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;
      Parameters:
      value - The allowedReplacementLicenses to add.
      Returns:
      This builder for chaining.
    • addAllAllowedReplacementLicenses

      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;
      Parameters:
      values - The allowedReplacementLicenses to add.
      Returns:
      This builder for chaining.
    • clearAllowedReplacementLicenses

      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;
      Returns:
      This builder for chaining.
    • addAllowedReplacementLicensesBytes

      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;
      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:
      hasAppendableToDisk in interface LicenseOrBuilder
      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:
      getAppendableToDisk in interface LicenseOrBuilder
      Returns:
      The appendableToDisk.
    • setAppendableToDisk

      public 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;
      Parameters:
      value - The appendableToDisk to set.
      Returns:
      This builder for chaining.
    • clearAppendableToDisk

      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;
      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:
      hasChargesUseFee in interface LicenseOrBuilder
      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:
      getChargesUseFee in interface LicenseOrBuilder
      Returns:
      The chargesUseFee.
    • setChargesUseFee

      public 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;
      Parameters:
      value - The chargesUseFee to set.
      Returns:
      This builder for chaining.
    • clearChargesUseFee

      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;
      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:
      hasCreationTimestamp in interface LicenseOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface LicenseOrBuilder
      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:
      getCreationTimestampBytes in interface LicenseOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public License.Builder setCreationTimestamp(String value)
       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

      public License.Builder clearCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public License.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       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:
      hasDescription in interface LicenseOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional textual description of the resource; provided by the client
       when the resource is created.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface LicenseOrBuilder
      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:
      getDescriptionBytes in interface LicenseOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public 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;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public License.Builder 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

      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;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface LicenseOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface LicenseOrBuilder
      Returns:
      The id.
    • setId

      public License.Builder setId(long value)
       [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public License.Builder clearId()
       [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Returns:
      This builder for chaining.
    • 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:
      getIncompatibleLicensesList in interface LicenseOrBuilder
      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:
      getIncompatibleLicensesCount in interface LicenseOrBuilder
      Returns:
      The count of incompatibleLicenses.
    • getIncompatibleLicenses

      public 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;
      Specified by:
      getIncompatibleLicenses in interface LicenseOrBuilder
      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:
      getIncompatibleLicensesBytes in interface LicenseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the incompatibleLicenses at the given index.
    • setIncompatibleLicenses

      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;
      Parameters:
      index - The index to set the value at.
      value - The incompatibleLicenses to set.
      Returns:
      This builder for chaining.
    • addIncompatibleLicenses

      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;
      Parameters:
      value - The incompatibleLicenses to add.
      Returns:
      This builder for chaining.
    • addAllIncompatibleLicenses

      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;
      Parameters:
      values - The incompatibleLicenses to add.
      Returns:
      This builder for chaining.
    • clearIncompatibleLicenses

      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;
      Returns:
      This builder for chaining.
    • addIncompatibleLicensesBytes

      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;
      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:
      hasKind in interface LicenseOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of resource. Always compute#license for
       licenses.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface LicenseOrBuilder
      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:
      getKindBytes in interface LicenseOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public License.Builder setKind(String value)
       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

      public License.Builder clearKind()
       Output only. [Output Only] Type of resource. Always compute#license for
       licenses.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public License.Builder setKindBytes(com.google.protobuf.ByteString value)
       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:
      hasLicenseCode in interface LicenseOrBuilder
      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:
      getLicenseCode in interface LicenseOrBuilder
      Returns:
      The licenseCode.
    • setLicenseCode

      public 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;
      Parameters:
      value - The licenseCode to set.
      Returns:
      This builder for chaining.
    • clearLicenseCode

      public License.Builder 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:
      hasMinimumRetention in interface LicenseOrBuilder
      Returns:
      Whether the minimumRetention field is set.
    • getMinimumRetention

      public 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;
      Specified by:
      getMinimumRetention in interface LicenseOrBuilder
      Returns:
      The minimumRetention.
    • setMinimumRetention

      public 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;
    • setMinimumRetention

      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;
    • mergeMinimumRetention

      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;
    • clearMinimumRetention

      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;
    • getMinimumRetentionBuilder

      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;
    • getMinimumRetentionOrBuilder

      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;
      Specified by:
      getMinimumRetentionOrBuilder in interface LicenseOrBuilder
    • 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:
      hasMultiTenantOnly in interface LicenseOrBuilder
      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:
      getMultiTenantOnly in interface LicenseOrBuilder
      Returns:
      The multiTenantOnly.
    • setMultiTenantOnly

      public 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;
      Parameters:
      value - The multiTenantOnly to set.
      Returns:
      This builder for chaining.
    • clearMultiTenantOnly

      public License.Builder 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:
      hasName in interface LicenseOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the resource. The name must be 1-63 characters long and
       comply withRFC1035.
       
      optional string name = 3373707;
      Specified by:
      getName in interface LicenseOrBuilder
      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:
      getNameBytes in interface LicenseOrBuilder
      Returns:
      The bytes for name.
    • setName

      public License.Builder setName(String value)
       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

      public License.Builder 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

      public License.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasOsLicense in interface LicenseOrBuilder
      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:
      getOsLicense in interface LicenseOrBuilder
      Returns:
      The osLicense.
    • setOsLicense

      public 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;
      Parameters:
      value - The osLicense to set.
      Returns:
      This builder for chaining.
    • clearOsLicense

      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;
      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:
      hasParams in interface LicenseOrBuilder
      Returns:
      Whether the params field is set.
    • getParams

      public LicenseParams 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:
      getParams in interface LicenseOrBuilder
      Returns:
      The params.
    • setParams

      public License.Builder setParams(LicenseParams value)
       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

      public License.Builder setParams(LicenseParams.Builder builderForValue)
       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

      public License.Builder mergeParams(LicenseParams value)
       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

      public License.Builder 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

      public LicenseParams.Builder 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

      public LicenseParamsOrBuilder 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:
      getParamsOrBuilder in interface LicenseOrBuilder
    • 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:
      hasRemovableFromDisk in interface LicenseOrBuilder
      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:
      getRemovableFromDisk in interface LicenseOrBuilder
      Returns:
      The removableFromDisk.
    • setRemovableFromDisk

      public 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;
      Parameters:
      value - The removableFromDisk to set.
      Returns:
      This builder for chaining.
    • clearRemovableFromDisk

      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;
      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:
      getRequiredCoattachedLicensesList in interface LicenseOrBuilder
      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:
      getRequiredCoattachedLicensesCount in interface LicenseOrBuilder
      Returns:
      The count of requiredCoattachedLicenses.
    • getRequiredCoattachedLicenses

      public 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;
      Specified by:
      getRequiredCoattachedLicenses in interface LicenseOrBuilder
      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:
      getRequiredCoattachedLicensesBytes in interface LicenseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the requiredCoattachedLicenses at the given index.
    • setRequiredCoattachedLicenses

      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;
      Parameters:
      index - The index to set the value at.
      value - The requiredCoattachedLicenses to set.
      Returns:
      This builder for chaining.
    • addRequiredCoattachedLicenses

      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;
      Parameters:
      value - The requiredCoattachedLicenses to add.
      Returns:
      This builder for chaining.
    • addAllRequiredCoattachedLicenses

      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;
      Parameters:
      values - The requiredCoattachedLicenses to add.
      Returns:
      This builder for chaining.
    • clearRequiredCoattachedLicenses

      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;
      Returns:
      This builder for chaining.
    • addRequiredCoattachedLicensesBytes

      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;
      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:
      hasResourceRequirements in interface LicenseOrBuilder
      Returns:
      Whether the resourceRequirements field is set.
    • getResourceRequirements

      public LicenseResourceRequirements getResourceRequirements()
       [Input Only] Deprecated.
       
      optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
      Specified by:
      getResourceRequirements in interface LicenseOrBuilder
      Returns:
      The resourceRequirements.
    • setResourceRequirements

      public License.Builder setResourceRequirements(LicenseResourceRequirements value)
       [Input Only] Deprecated.
       
      optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
    • setResourceRequirements

      public License.Builder setResourceRequirements(LicenseResourceRequirements.Builder builderForValue)
       [Input Only] Deprecated.
       
      optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
    • mergeResourceRequirements

      public License.Builder mergeResourceRequirements(LicenseResourceRequirements value)
       [Input Only] Deprecated.
       
      optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
    • clearResourceRequirements

      public License.Builder clearResourceRequirements()
       [Input Only] Deprecated.
       
      optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
    • getResourceRequirementsBuilder

      public LicenseResourceRequirements.Builder getResourceRequirementsBuilder()
       [Input Only] Deprecated.
       
      optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
    • getResourceRequirementsOrBuilder

      public LicenseResourceRequirementsOrBuilder getResourceRequirementsOrBuilder()
       [Input Only] Deprecated.
       
      optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
      Specified by:
      getResourceRequirementsOrBuilder in interface LicenseOrBuilder
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface LicenseOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface LicenseOrBuilder
      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:
      getSelfLinkBytes in interface LicenseOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public License.Builder setSelfLink(String value)
       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

      public License.Builder clearSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public License.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       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:
      hasSelfLinkWithId in interface LicenseOrBuilder
      Returns:
      Whether the selfLinkWithId field is set.
    • getSelfLinkWithId

      public String getSelfLinkWithId()
       Output only. [Output Only] Server-defined URL for this resource with the resource id.
       
      optional string self_link_with_id = 44520962;
      Specified by:
      getSelfLinkWithId in interface LicenseOrBuilder
      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:
      getSelfLinkWithIdBytes in interface LicenseOrBuilder
      Returns:
      The bytes for selfLinkWithId.
    • setSelfLinkWithId

      public License.Builder setSelfLinkWithId(String value)
       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

      public License.Builder 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

      public License.Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value)
       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:
      hasSoleTenantOnly in interface LicenseOrBuilder
      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:
      getSoleTenantOnly in interface LicenseOrBuilder
      Returns:
      The soleTenantOnly.
    • setSoleTenantOnly

      public 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;
      Parameters:
      value - The soleTenantOnly to set.
      Returns:
      This builder for chaining.
    • clearSoleTenantOnly

      public License.Builder 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:
      hasTransferable in interface LicenseOrBuilder
      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:
      getTransferable in interface LicenseOrBuilder
      Returns:
      The transferable.
    • setTransferable

      public 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;
      Parameters:
      value - The transferable to set.
      Returns:
      This builder for chaining.
    • clearTransferable

      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;
      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:
      hasUpdateTimestamp in interface LicenseOrBuilder
      Returns:
      Whether the updateTimestamp field is set.
    • getUpdateTimestamp

      public String getUpdateTimestamp()
       Output only. [Output Only] Last update timestamp inRFC3339
       text format.
       
      optional string update_timestamp = 120894752;
      Specified by:
      getUpdateTimestamp in interface LicenseOrBuilder
      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:
      getUpdateTimestampBytes in interface LicenseOrBuilder
      Returns:
      The bytes for updateTimestamp.
    • setUpdateTimestamp

      public License.Builder setUpdateTimestamp(String value)
       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

      public License.Builder clearUpdateTimestamp()
       Output only. [Output Only] Last update timestamp inRFC3339
       text format.
       
      optional string update_timestamp = 120894752;
      Returns:
      This builder for chaining.
    • setUpdateTimestampBytes

      public License.Builder setUpdateTimestampBytes(com.google.protobuf.ByteString value)
       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.