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 |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
License |
build() |
License |
buildPartial() |
License.Builder |
clear() |
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 |
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 |
clearName()
Name of the resource.
|
License.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
License.Builder |
clearResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
|
License.Builder |
clearSelfLink()
[Output Only] Server-defined URL for the resource.
|
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 |
clone() |
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 |
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.
|
String |
getName()
Name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the resource.
|
LicenseResourceRequirements |
getResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
|
LicenseResourceRequirements.Builder |
getResourceRequirementsBuilder()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
|
LicenseResourceRequirementsOrBuilder |
getResourceRequirementsOrBuilder()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
|
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.
|
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 |
hasName()
Name of the resource.
|
boolean |
hasResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
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.
|
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 |
mergeResourceRequirements(LicenseResourceRequirements value)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
|
License.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 |
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 |
setName(String value)
Name of the resource.
|
License.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.
|
License.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
License.Builder |
setResourceRequirements(LicenseResourceRequirements.Builder builderForValue)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
|
License.Builder |
setResourceRequirements(LicenseResourceRequirements value)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
|
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 |
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic 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 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 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 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 hasResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
hasResourceRequirements in interface LicenseOrBuilderpublic LicenseResourceRequirements getResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
getResourceRequirements in interface LicenseOrBuilderpublic License.Builder setResourceRequirements(LicenseResourceRequirements value)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public License.Builder setResourceRequirements(LicenseResourceRequirements.Builder builderForValue)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public License.Builder mergeResourceRequirements(LicenseResourceRequirements value)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public License.Builder clearResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public LicenseResourceRequirements.Builder getResourceRequirementsBuilder()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
public LicenseResourceRequirementsOrBuilder getResourceRequirementsOrBuilder()
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 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 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 © 2023 Google LLC. All rights reserved.