Class PerInstanceConfig.Builder (1.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PerInstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PerInstanceConfig.Builder
Overrides

build()

public PerInstanceConfig build()
Returns
TypeDescription
PerInstanceConfig

buildPartial()

public PerInstanceConfig buildPartial()
Returns
TypeDescription
PerInstanceConfig

clear()

public PerInstanceConfig.Builder clear()
Returns
TypeDescription
PerInstanceConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PerInstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PerInstanceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PerInstanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PerInstanceConfig.Builder

This builder for chaining.

clone()

public PerInstanceConfig.Builder clone()
Returns
TypeDescription
PerInstanceConfig.Builder
Overrides

getDefaultInstanceForType()

public PerInstanceConfig getDefaultInstanceForType()
Returns
TypeDescription
PerInstanceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PerInstanceConfig other)

public PerInstanceConfig.Builder mergeFrom(PerInstanceConfig other)
Parameter
NameDescription
otherPerInstanceConfig
Returns
TypeDescription
PerInstanceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PerInstanceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PerInstanceConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PerInstanceConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePreservedState
Returns
TypeDescription
PerInstanceConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PerInstanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PerInstanceConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PerInstanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valuePreservedState
Returns
TypeDescription
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
NameDescription
builderForValuePreservedState.Builder
Returns
TypeDescription
PerInstanceConfig.Builder

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

public PerInstanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The status to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for status to set.

Returns
TypeDescription
PerInstanceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PerInstanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PerInstanceConfig.Builder
Overrides