Class PerInstanceConfig.Builder (1.61.0)

public static final class PerInstanceConfig.Builder extends GeneratedMessageV3.Builder<PerInstanceConfig.Builder> implements PerInstanceConfigOrBuilder

Protobuf type google.cloud.compute.v1.PerInstanceConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PerInstanceConfig build()
Returns
Type Description
PerInstanceConfig

buildPartial()

public PerInstanceConfig buildPartial()
Returns
Type Description
PerInstanceConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public PerInstanceConfig.Builder clearFingerprint()

Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.

optional string fingerprint = 234678500;

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

clearName()

public PerInstanceConfig.Builder clearName()

The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.

optional string name = 3373707;

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreservedState()

public PerInstanceConfig.Builder clearPreservedState()

The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.

optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;

Returns
Type Description
PerInstanceConfig.Builder

clearStatus()

public PerInstanceConfig.Builder clearStatus()

The status of applying this per-instance configuration on the corresponding managed instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PerInstanceConfig getDefaultInstanceForType()
Returns
Type Description
PerInstanceConfig

getDescriptorForType()

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

getFingerprint()

public String getFingerprint()

Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.

optional string fingerprint = 234678500;

Returns
Type Description
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.

optional string fingerprint = 234678500;

Returns
Type Description
ByteString

The bytes for fingerprint.

getName()

public String getName()

The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getPreservedState()

public PreservedState getPreservedState()

The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.

optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;

Returns
Type Description
PreservedState

The preservedState.

getPreservedStateBuilder()

public PreservedState.Builder getPreservedStateBuilder()

The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.

optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;

Returns
Type Description
PreservedState.Builder

getPreservedStateOrBuilder()

public PreservedStateOrBuilder getPreservedStateOrBuilder()

The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.

optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;

Returns
Type Description
PreservedStateOrBuilder

getStatus()

public String getStatus()

The status of applying this per-instance configuration on the corresponding managed instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

The status of applying this per-instance configuration on the corresponding managed instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
ByteString

The bytes for status.

hasFingerprint()

public boolean hasFingerprint()

Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.

optional string fingerprint = 234678500;

Returns
Type Description
boolean

Whether the fingerprint field is set.

hasName()

public boolean hasName()

The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasPreservedState()

public boolean hasPreservedState()

The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.

optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;

Returns
Type Description
boolean

Whether the preservedState field is set.

hasStatus()

public boolean hasStatus()

The status of applying this per-instance configuration on the corresponding managed instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PerInstanceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePreservedState(PreservedState value)

public PerInstanceConfig.Builder mergePreservedState(PreservedState value)

The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.

optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;

Parameter
Name Description
value PreservedState
Returns
Type Description
PerInstanceConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(String value)

public PerInstanceConfig.Builder setFingerprint(String value)

Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.

optional string fingerprint = 234678500;

Parameter
Name Description
value String

The fingerprint to set.

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public PerInstanceConfig.Builder setFingerprintBytes(ByteString value)

Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.

optional string fingerprint = 234678500;

Parameter
Name Description
value ByteString

The bytes for fingerprint to set.

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

setName(String value)

public PerInstanceConfig.Builder setName(String value)

The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PerInstanceConfig.Builder setNameBytes(ByteString value)

The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

setPreservedState(PreservedState value)

public PerInstanceConfig.Builder setPreservedState(PreservedState value)

The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.

optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;

Parameter
Name Description
value PreservedState
Returns
Type Description
PerInstanceConfig.Builder

setPreservedState(PreservedState.Builder builderForValue)

public PerInstanceConfig.Builder setPreservedState(PreservedState.Builder builderForValue)

The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.

optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;

Parameter
Name Description
builderForValue PreservedState.Builder
Returns
Type Description
PerInstanceConfig.Builder

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

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

setStatus(String value)

public PerInstanceConfig.Builder setStatus(String value)

The status of applying this per-instance configuration on the corresponding managed instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
Name Description
value String

The status to set.

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public PerInstanceConfig.Builder setStatusBytes(ByteString value)

The status of applying this per-instance configuration on the corresponding managed instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
Name Description
value ByteString

The bytes for status to set.

Returns
Type Description
PerInstanceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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