public final class License extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
License.Builder
Represents a License resource.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHARGES_USE_FEE_FIELD_NUMBER |
static int |
CREATION_TIMESTAMP_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
LICENSE_CODE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RESOURCE_REQUIREMENTS_FIELD_NUMBER |
static int |
SELF_LINK_FIELD_NUMBER |
static int |
TRANSFERABLE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static License |
getDefaultInstance() |
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() |
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.
|
com.google.protobuf.Parser<License> |
getParserForType() |
LicenseResourceRequirements |
getResourceRequirements()
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.
|
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
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() |
static License.Builder |
newBuilder() |
static License.Builder |
newBuilder(License prototype) |
License.Builder |
newBuilderForType() |
protected License.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static License |
parseDelimitedFrom(InputStream input) |
static License |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static License |
parseFrom(byte[] data) |
static License |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static License |
parseFrom(ByteBuffer data) |
static License |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static License |
parseFrom(com.google.protobuf.ByteString data) |
static License |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static License |
parseFrom(com.google.protobuf.CodedInputStream input) |
static License |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static License |
parseFrom(InputStream input) |
static License |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<License> |
parser() |
License.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CHARGES_USE_FEE_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int LICENSE_CODE_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int RESOURCE_REQUIREMENTS_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int TRANSFERABLE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static License parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static License parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static License parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static License parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static License parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static License parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static License parseFrom(InputStream input) throws IOException
IOExceptionpublic static License parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static License parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static License parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static License parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static License parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic License.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static License.Builder newBuilder()
public static License.Builder newBuilder(License prototype)
public License.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected License.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static License getDefaultInstance()
public static com.google.protobuf.Parser<License> parser()
public com.google.protobuf.Parser<License> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public License getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.