- 1.63.0 (latest)
- 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 LicenseCode.Builder extends GeneratedMessageV3.Builder<LicenseCode.Builder> implements LicenseCodeOrBuilder
Represents a License Code resource. A License Code is a unique identifier used to represent a license resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Protobuf type google.cloud.compute.v1.LicenseCode
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LicenseCode.BuilderImplements
LicenseCodeOrBuilderMethods
addAllLicenseAlias(Iterable<? extends LicenseCodeLicenseAlias> values)
public LicenseCode.Builder addAllLicenseAlias(Iterable<? extends LicenseCodeLicenseAlias> values)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.LicenseCodeLicenseAlias> |
Type | Description |
LicenseCode.Builder |
addLicenseAlias(LicenseCodeLicenseAlias value)
public LicenseCode.Builder addLicenseAlias(LicenseCodeLicenseAlias value)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
value | LicenseCodeLicenseAlias |
Type | Description |
LicenseCode.Builder |
addLicenseAlias(LicenseCodeLicenseAlias.Builder builderForValue)
public LicenseCode.Builder addLicenseAlias(LicenseCodeLicenseAlias.Builder builderForValue)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
builderForValue | LicenseCodeLicenseAlias.Builder |
Type | Description |
LicenseCode.Builder |
addLicenseAlias(int index, LicenseCodeLicenseAlias value)
public LicenseCode.Builder addLicenseAlias(int index, LicenseCodeLicenseAlias value)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
value | LicenseCodeLicenseAlias |
Type | Description |
LicenseCode.Builder |
addLicenseAlias(int index, LicenseCodeLicenseAlias.Builder builderForValue)
public LicenseCode.Builder addLicenseAlias(int index, LicenseCodeLicenseAlias.Builder builderForValue)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
builderForValue | LicenseCodeLicenseAlias.Builder |
Type | Description |
LicenseCode.Builder |
addLicenseAliasBuilder()
public LicenseCodeLicenseAlias.Builder addLicenseAliasBuilder()
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Type | Description |
LicenseCodeLicenseAlias.Builder |
addLicenseAliasBuilder(int index)
public LicenseCodeLicenseAlias.Builder addLicenseAliasBuilder(int index)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
Type | Description |
LicenseCodeLicenseAlias.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LicenseCode.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LicenseCode.Builder |
build()
public LicenseCode build()
Type | Description |
LicenseCode |
buildPartial()
public LicenseCode buildPartial()
Type | Description |
LicenseCode |
clear()
public LicenseCode.Builder clear()
Type | Description |
LicenseCode.Builder |
clearCreationTimestamp()
public LicenseCode.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
LicenseCode.Builder | This builder for chaining. |
clearDescription()
public LicenseCode.Builder clearDescription()
[Output Only] Description of this License Code.
optional string description = 422937596;
Type | Description |
LicenseCode.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public LicenseCode.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
LicenseCode.Builder |
clearId()
public LicenseCode.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
LicenseCode.Builder | This builder for chaining. |
clearKind()
public LicenseCode.Builder clearKind()
[Output Only] Type of resource. Always compute#licenseCode for licenses.
optional string kind = 3292052;
Type | Description |
LicenseCode.Builder | This builder for chaining. |
clearLicenseAlias()
public LicenseCode.Builder clearLicenseAlias()
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Type | Description |
LicenseCode.Builder |
clearName()
public LicenseCode.Builder clearName()
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
optional string name = 3373707;
Type | Description |
LicenseCode.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LicenseCode.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
LicenseCode.Builder |
clearSelfLink()
public LicenseCode.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
LicenseCode.Builder | This builder for chaining. |
clearState()
public LicenseCode.Builder clearState()
[Output Only] Current state of this License Code. Check the State enum for the list of possible values.
optional string state = 109757585;
Type | Description |
LicenseCode.Builder | This builder for chaining. |
clearTransferable()
public LicenseCode.Builder clearTransferable()
[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
optional bool transferable = 4349893;
Type | Description |
LicenseCode.Builder | This builder for chaining. |
clone()
public LicenseCode.Builder clone()
Type | Description |
LicenseCode.Builder |
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 LicenseCode getDefaultInstanceForType()
Type | Description |
LicenseCode |
getDescription()
public String getDescription()
[Output Only] Description of this License Code.
optional string description = 422937596;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
[Output Only] Description of this License Code.
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#licenseCode for licenses.
optional string kind = 3292052;
Type | Description |
String | The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of resource. Always compute#licenseCode for licenses.
optional string kind = 3292052;
Type | Description |
ByteString | The bytes for kind. |
getLicenseAlias(int index)
public LicenseCodeLicenseAlias getLicenseAlias(int index)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
Type | Description |
LicenseCodeLicenseAlias |
getLicenseAliasBuilder(int index)
public LicenseCodeLicenseAlias.Builder getLicenseAliasBuilder(int index)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
Type | Description |
LicenseCodeLicenseAlias.Builder |
getLicenseAliasBuilderList()
public List<LicenseCodeLicenseAlias.Builder> getLicenseAliasBuilderList()
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Type | Description |
List<Builder> |
getLicenseAliasCount()
public int getLicenseAliasCount()
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Type | Description |
int |
getLicenseAliasList()
public List<LicenseCodeLicenseAlias> getLicenseAliasList()
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Type | Description |
List<LicenseCodeLicenseAlias> |
getLicenseAliasOrBuilder(int index)
public LicenseCodeLicenseAliasOrBuilder getLicenseAliasOrBuilder(int index)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
Type | Description |
LicenseCodeLicenseAliasOrBuilder |
getLicenseAliasOrBuilderList()
public List<? extends LicenseCodeLicenseAliasOrBuilder> getLicenseAliasOrBuilderList()
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Type | Description |
List<? extends com.google.cloud.compute.v1.LicenseCodeLicenseAliasOrBuilder> |
getName()
public String getName()
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
optional string name = 3373707;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
optional string name = 3373707;
Type | Description |
ByteString | The bytes for name. |
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. |
getState()
public String getState()
[Output Only] Current state of this License Code. Check the State enum for the list of possible values.
optional string state = 109757585;
Type | Description |
String | The state. |
getStateBytes()
public ByteString getStateBytes()
[Output Only] Current state of this License Code. Check the State enum for the list of possible values.
optional string state = 109757585;
Type | Description |
ByteString | The bytes for state. |
getTransferable()
public boolean getTransferable()
[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
optional bool transferable = 4349893;
Type | Description |
boolean | The transferable. |
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()
[Output Only] Description of this License Code.
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#licenseCode for licenses.
optional string kind = 3292052;
Type | Description |
boolean | Whether the kind field is set. |
hasName()
public boolean hasName()
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
optional string name = 3373707;
Type | Description |
boolean | Whether the name 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. |
hasState()
public boolean hasState()
[Output Only] Current state of this License Code. Check the State enum for the list of possible values.
optional string state = 109757585;
Type | Description |
boolean | Whether the state field is set. |
hasTransferable()
public boolean hasTransferable()
[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
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(LicenseCode other)
public LicenseCode.Builder mergeFrom(LicenseCode other)
Name | Description |
other | LicenseCode |
Type | Description |
LicenseCode.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LicenseCode.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LicenseCode.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public LicenseCode.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
LicenseCode.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LicenseCode.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LicenseCode.Builder |
removeLicenseAlias(int index)
public LicenseCode.Builder removeLicenseAlias(int index)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
Type | Description |
LicenseCode.Builder |
setCreationTimestamp(String value)
public LicenseCode.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 |
LicenseCode.Builder | This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public LicenseCode.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 |
LicenseCode.Builder | This builder for chaining. |
setDescription(String value)
public LicenseCode.Builder setDescription(String value)
[Output Only] Description of this License Code.
optional string description = 422937596;
Name | Description |
value | String The description to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public LicenseCode.Builder setDescriptionBytes(ByteString value)
[Output Only] Description of this License Code.
optional string description = 422937596;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public LicenseCode.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LicenseCode.Builder |
setId(long value)
public LicenseCode.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 |
LicenseCode.Builder | This builder for chaining. |
setKind(String value)
public LicenseCode.Builder setKind(String value)
[Output Only] Type of resource. Always compute#licenseCode for licenses.
optional string kind = 3292052;
Name | Description |
value | String The kind to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setKindBytes(ByteString value)
public LicenseCode.Builder setKindBytes(ByteString value)
[Output Only] Type of resource. Always compute#licenseCode for licenses.
optional string kind = 3292052;
Name | Description |
value | ByteString The bytes for kind to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setLicenseAlias(int index, LicenseCodeLicenseAlias value)
public LicenseCode.Builder setLicenseAlias(int index, LicenseCodeLicenseAlias value)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
value | LicenseCodeLicenseAlias |
Type | Description |
LicenseCode.Builder |
setLicenseAlias(int index, LicenseCodeLicenseAlias.Builder builderForValue)
public LicenseCode.Builder setLicenseAlias(int index, LicenseCodeLicenseAlias.Builder builderForValue)
[Output Only] URL and description aliases of Licenses with the same License Code.
repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Name | Description |
index | int |
builderForValue | LicenseCodeLicenseAlias.Builder |
Type | Description |
LicenseCode.Builder |
setName(String value)
public LicenseCode.Builder setName(String value)
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
optional string name = 3373707;
Name | Description |
value | String The name to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public LicenseCode.Builder setNameBytes(ByteString value)
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
optional string name = 3373707;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LicenseCode.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
LicenseCode.Builder |
setSelfLink(String value)
public LicenseCode.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 |
LicenseCode.Builder | This builder for chaining. |
setSelfLinkBytes(ByteString value)
public LicenseCode.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 |
LicenseCode.Builder | This builder for chaining. |
setState(String value)
public LicenseCode.Builder setState(String value)
[Output Only] Current state of this License Code. Check the State enum for the list of possible values.
optional string state = 109757585;
Name | Description |
value | String The state to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setStateBytes(ByteString value)
public LicenseCode.Builder setStateBytes(ByteString value)
[Output Only] Current state of this License Code. Check the State enum for the list of possible values.
optional string state = 109757585;
Name | Description |
value | ByteString The bytes for state to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setTransferable(boolean value)
public LicenseCode.Builder setTransferable(boolean value)
[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
optional bool transferable = 4349893;
Name | Description |
value | boolean The transferable to set. |
Type | Description |
LicenseCode.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final LicenseCode.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LicenseCode.Builder |