Class Instance.Builder (0.1.0)

public static final class Instance.Builder extends GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder

Message describing Instance object

Protobuf type google.cloud.licensemanager.v1.Instance

Implements

InstanceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.Builder
Overrides

build()

public Instance build()
Returns
Type Description
Instance

buildPartial()

public Instance buildPartial()
Returns
Type Description
Instance

clear()

public Instance.Builder clear()
Returns
Type Description
Instance.Builder
Overrides

clearComputeInstance()

public Instance.Builder clearComputeInstance()

Required. Compute Instance resource name, i.e. projects/{project}/zones/{zone}/instances/{instance}

string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Instance.Builder

This builder for chaining.

clearCreateTime()

public Instance.Builder clearCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

clearField(Descriptors.FieldDescriptor field)

public Instance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Instance.Builder
Overrides

clearLabels()

public Instance.Builder clearLabels()
Returns
Type Description
Instance.Builder

clearLicenseVersionId()

public Instance.Builder clearLicenseVersionId()

Output only. license version id.

string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearName()

public Instance.Builder clearName()

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Instance.Builder
Overrides

clearProductActivation()

public Instance.Builder clearProductActivation()
Returns
Type Description
Instance.Builder

clearRegion()

public Instance.Builder clearRegion()

Output only. The location of the VM.

string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearState()

public Instance.Builder clearState()

Output only. The state of the VM.

.google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearUpdateTime()

public Instance.Builder clearUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

clone()

public Instance.Builder clone()
Returns
Type Description
Instance.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsProductActivation(String key)

public boolean containsProductActivation(String key)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getComputeInstance()

public String getComputeInstance()

Required. Compute Instance resource name, i.e. projects/{project}/zones/{zone}/instances/{instance}

string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The computeInstance.

getComputeInstanceBytes()

public ByteString getComputeInstanceBytes()

Required. Compute Instance resource name, i.e. projects/{project}/zones/{zone}/instances/{instance}

string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for computeInstance.

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Instance getDefaultInstanceForType()
Returns
Type Description
Instance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getLicenseVersionId()

public String getLicenseVersionId()

Output only. license version id.

string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The licenseVersionId.

getLicenseVersionIdBytes()

public ByteString getLicenseVersionIdBytes()

Output only. license version id.

string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for licenseVersionId.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableProductActivation() (deprecated)

public Map<String,ActivationState> getMutableProductActivation()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ActivationState>

getMutableProductActivationValue() (deprecated)

public Map<String,Integer> getMutableProductActivationValue()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,java.lang.Integer>

getName()

public String getName()

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getProductActivation() (deprecated)

public Map<String,ActivationState> getProductActivation()
Returns
Type Description
Map<String,ActivationState>

getProductActivationCount()

public int getProductActivationCount()

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getProductActivationMap()

public Map<String,ActivationState> getProductActivationMap()

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,ActivationState>

getProductActivationOrDefault(String key, ActivationState defaultValue)

public ActivationState getProductActivationOrDefault(String key, ActivationState defaultValue)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue ActivationState
Returns
Type Description
ActivationState

getProductActivationOrThrow(String key)

public ActivationState getProductActivationOrThrow(String key)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ActivationState

getProductActivationValue() (deprecated)

public Map<String,Integer> getProductActivationValue()
Returns
Type Description
Map<String,java.lang.Integer>

getProductActivationValueMap()

public Map<String,Integer> getProductActivationValueMap()

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,java.lang.Integer>

getProductActivationValueOrDefault(String key, int defaultValue)

public int getProductActivationValueOrDefault(String key, int defaultValue)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue int
Returns
Type Description
int

getProductActivationValueOrThrow(String key)

public int getProductActivationValueOrThrow(String key)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
int

getRegion()

public String getRegion()

Output only. The location of the VM.

string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Output only. The location of the VM.

string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for region.

getState()

public Instance.State getState()

Output only. The state of the VM.

.google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the VM.

.google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Instance.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

mergeFrom(Instance other)

public Instance.Builder mergeFrom(Instance other)
Parameter
Name Description
other Instance
Returns
Type Description
Instance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Instance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Instance.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Instance.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Instance.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

putAllLabels(Map<String,String> values)

public Instance.Builder putAllLabels(Map<String,String> values)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Instance.Builder

putAllProductActivation(Map<String,ActivationState> values)

public Instance.Builder putAllProductActivation(Map<String,ActivationState> values)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,ActivationState>
Returns
Type Description
Instance.Builder

putAllProductActivationValue(Map<String,Integer> values)

public Instance.Builder putAllProductActivationValue(Map<String,Integer> values)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,java.lang.Integer>
Returns
Type Description
Instance.Builder

putLabels(String key, String value)

public Instance.Builder putLabels(String key, String value)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Instance.Builder

putProductActivation(String key, ActivationState value)

public Instance.Builder putProductActivation(String key, ActivationState value)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value ActivationState
Returns
Type Description
Instance.Builder

putProductActivationValue(String key, int value)

public Instance.Builder putProductActivationValue(String key, int value)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value int
Returns
Type Description
Instance.Builder

removeLabels(String key)

public Instance.Builder removeLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Instance.Builder

removeProductActivation(String key)

public Instance.Builder removeProductActivation(String key)

Output only. Map with Product_Name and Activation State of the VM.

map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Instance.Builder

setComputeInstance(String value)

public Instance.Builder setComputeInstance(String value)

Required. Compute Instance resource name, i.e. projects/{project}/zones/{zone}/instances/{instance}

string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The computeInstance to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setComputeInstanceBytes(ByteString value)

public Instance.Builder setComputeInstanceBytes(ByteString value)

Required. Compute Instance resource name, i.e. projects/{project}/zones/{zone}/instances/{instance}

string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for computeInstance to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Instance.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Instance.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Instance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.Builder
Overrides

setLicenseVersionId(String value)

public Instance.Builder setLicenseVersionId(String value)

Output only. license version id.

string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The licenseVersionId to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setLicenseVersionIdBytes(ByteString value)

public Instance.Builder setLicenseVersionIdBytes(ByteString value)

Output only. license version id.

string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for licenseVersionId to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setName(String value)

public Instance.Builder setName(String value)

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Instance.Builder setNameBytes(ByteString value)

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setRegion(String value)

public Instance.Builder setRegion(String value)

Output only. The location of the VM.

string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public Instance.Builder setRegionBytes(ByteString value)

Output only. The location of the VM.

string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Instance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Instance.Builder
Overrides

setState(Instance.State value)

public Instance.Builder setState(Instance.State value)

Output only. The state of the VM.

.google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Instance.State

The state to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setStateValue(int value)

public Instance.Builder setStateValue(int value)

Output only. The state of the VM.

.google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.Builder
Overrides

setUpdateTime(Timestamp value)

public Instance.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Instance.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Instance.Builder