- 1.64.0 (latest)
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class License.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > License.BuilderImplements
LicenseOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public License.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
License.Builder |
build()
public License build()
Type | Description |
License |
buildPartial()
public License buildPartial()
Type | Description |
License |
clear()
public License.Builder clear()
Type | Description |
License.Builder |
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;
Type | Description |
License.Builder | This builder for chaining. |
clearCreationTimestamp()
public License.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
License.Builder | 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;
Type | Description |
License.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public License.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
License.Builder |
clearId()
public License.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
License.Builder | This builder for chaining. |
clearKind()
public License.Builder clearKind()
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;
Type | Description |
License.Builder | 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;
Type | Description |
License.Builder | This builder for chaining. |
clearName()
public License.Builder clearName()
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;
Type | Description |
License.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public License.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
License.Builder |
clearResourceRequirements()
public License.Builder clearResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Type | Description |
License.Builder |
clearSelfLink()
public License.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
License.Builder | 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;
Type | Description |
License.Builder | This builder for chaining. |
clone()
public License.Builder clone()
Type | Description |
License.Builder |
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;
Type | Description |
boolean | The chargesUseFee. |
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
String | The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
ByteString | The bytes for creationTimestamp. |
getDefaultInstanceForType()
public License getDefaultInstanceForType()
Type | Description |
License |
getDescription()
public String getDescription()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getId()
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
long | The id. |
getKind()
public String getKind()
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;
Type | Description |
String | The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;
Type | Description |
ByteString | The bytes for kind. |
getLicenseCode()
public long getLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;
Type | Description |
long | The licenseCode. |
getName()
public String getName()
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;
Type | Description |
ByteString | The bytes for name. |
getResourceRequirements()
public LicenseResourceRequirements getResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Type | Description |
LicenseResourceRequirements | The resourceRequirements. |
getResourceRequirementsBuilder()
public LicenseResourceRequirements.Builder getResourceRequirementsBuilder()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Type | Description |
LicenseResourceRequirements.Builder |
getResourceRequirementsOrBuilder()
public LicenseResourceRequirementsOrBuilder getResourceRequirementsOrBuilder()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Type | Description |
LicenseResourceRequirementsOrBuilder |
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
String | The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
ByteString | The bytes for selfLink. |
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;
Type | Description |
boolean | The transferable. |
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;
Type | Description |
boolean | Whether the chargesUseFee field is set. |
hasCreationTimestamp()
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
boolean | Whether the creationTimestamp field is set. |
hasDescription()
public boolean hasDescription()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;
Type | Description |
boolean | Whether the description field is set. |
hasId()
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
boolean | Whether the id field is set. |
hasKind()
public boolean hasKind()
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;
Type | Description |
boolean | Whether the kind field is set. |
hasLicenseCode()
public boolean hasLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
optional uint64 license_code = 1467179;
Type | Description |
boolean | Whether the licenseCode field is set. |
hasName()
public boolean hasName()
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;
Type | Description |
boolean | Whether the name field is set. |
hasResourceRequirements()
public boolean hasResourceRequirements()
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Type | Description |
boolean | Whether the resourceRequirements field is set. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
boolean | Whether the selfLink field is set. |
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;
Type | Description |
boolean | Whether the transferable field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(License other)
public License.Builder mergeFrom(License other)
Name | Description |
other | License |
Type | Description |
License.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public License.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
License.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public License.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
License.Builder |
mergeResourceRequirements(LicenseResourceRequirements value)
public License.Builder mergeResourceRequirements(LicenseResourceRequirements value)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Name | Description |
value | LicenseResourceRequirements |
Type | Description |
License.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final License.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
License.Builder |
setChargesUseFee(boolean value)
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;
Name | Description |
value | boolean The chargesUseFee to set. |
Type | Description |
License.Builder | This builder for chaining. |
setCreationTimestamp(String value)
public License.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Name | Description |
value | String The creationTimestamp to set. |
Type | Description |
License.Builder | This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public License.Builder setCreationTimestampBytes(ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Name | Description |
value | ByteString The bytes for creationTimestamp to set. |
Type | Description |
License.Builder | This builder for chaining. |
setDescription(String value)
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;
Name | Description |
value | String The description to set. |
Type | Description |
License.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public License.Builder setDescriptionBytes(ByteString value)
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
License.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public License.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
License.Builder |
setId(long value)
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;
Name | Description |
value | long The id to set. |
Type | Description |
License.Builder | This builder for chaining. |
setKind(String value)
public License.Builder setKind(String value)
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;
Name | Description |
value | String The kind to set. |
Type | Description |
License.Builder | This builder for chaining. |
setKindBytes(ByteString value)
public License.Builder setKindBytes(ByteString value)
[Output Only] Type of resource. Always compute#license for licenses.
optional string kind = 3292052;
Name | Description |
value | ByteString The bytes for kind to set. |
Type | Description |
License.Builder | This builder for chaining. |
setLicenseCode(long value)
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;
Name | Description |
value | long The licenseCode to set. |
Type | Description |
License.Builder | This builder for chaining. |
setName(String value)
public 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;
Name | Description |
value | String The name to set. |
Type | Description |
License.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public License.Builder setNameBytes(ByteString value)
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
License.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public License.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
License.Builder |
setResourceRequirements(LicenseResourceRequirements value)
public License.Builder setResourceRequirements(LicenseResourceRequirements value)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Name | Description |
value | LicenseResourceRequirements |
Type | Description |
License.Builder |
setResourceRequirements(LicenseResourceRequirements.Builder builderForValue)
public License.Builder setResourceRequirements(LicenseResourceRequirements.Builder builderForValue)
optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Name | Description |
builderForValue | LicenseResourceRequirements.Builder |
Type | Description |
License.Builder |
setSelfLink(String value)
public License.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Name | Description |
value | String The selfLink to set. |
Type | Description |
License.Builder | This builder for chaining. |
setSelfLinkBytes(ByteString value)
public License.Builder setSelfLinkBytes(ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Name | Description |
value | ByteString The bytes for selfLink to set. |
Type | Description |
License.Builder | This builder for chaining. |
setTransferable(boolean value)
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;
Name | Description |
value | boolean The transferable to set. |
Type | Description |
License.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final License.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
License.Builder |