public static final class PerInstanceConfig.Builder extends GeneratedMessageV3.Builder<PerInstanceConfig.Builder> implements PerInstanceConfigOrBuilder Protobuf type google.cloud.compute.v1.PerInstanceConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PerInstanceConfig.BuilderImplements
PerInstanceConfigOrBuilderStatic 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 |
|
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 |
|
clearField(Descriptors.FieldDescriptor field)
public PerInstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
PerInstanceConfig.Builder |
|
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 |
|
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 |
|
getDefaultInstanceForType()
public PerInstanceConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PerInstanceConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PerInstanceConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PerInstanceConfig.Builder |
|
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 |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|