Package com.google.cloud.compute.v1
Class PerInstanceConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
- com.google.cloud.compute.v1.PerInstanceConfig.Builder
-
- All Implemented Interfaces:
PerInstanceConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PerInstanceConfig
public static final class PerInstanceConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder> implements PerInstanceConfigOrBuilder
google.cloud.compute.v1.PerInstanceConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PerInstanceConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PerInstanceConfig
build()
PerInstanceConfig
buildPartial()
PerInstanceConfig.Builder
clear()
PerInstanceConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PerInstanceConfig.Builder
clearFingerprint()
Fingerprint of this per-instance config.PerInstanceConfig.Builder
clearName()
The name of a per-instance configuration and its corresponding instance.PerInstanceConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PerInstanceConfig.Builder
clearPreservedState()
The intended preserved state for the given instance.PerInstanceConfig.Builder
clearStatus()
The status of applying this per-instance configuration on the corresponding managed instance.PerInstanceConfig.Builder
clone()
PerInstanceConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFingerprint()
Fingerprint of this per-instance config.com.google.protobuf.ByteString
getFingerprintBytes()
Fingerprint of this per-instance config.String
getName()
The name of a per-instance configuration and its corresponding instance.com.google.protobuf.ByteString
getNameBytes()
The name of a per-instance configuration and its corresponding instance.PreservedState
getPreservedState()
The intended preserved state for the given instance.PreservedState.Builder
getPreservedStateBuilder()
The intended preserved state for the given instance.PreservedStateOrBuilder
getPreservedStateOrBuilder()
The intended preserved state for the given instance.String
getStatus()
The status of applying this per-instance configuration on the corresponding managed instance.com.google.protobuf.ByteString
getStatusBytes()
The status of applying this per-instance configuration on the corresponding managed instance.boolean
hasFingerprint()
Fingerprint of this per-instance config.boolean
hasName()
The name of a per-instance configuration and its corresponding instance.boolean
hasPreservedState()
The intended preserved state for the given instance.boolean
hasStatus()
The status of applying this per-instance configuration on the corresponding managed instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PerInstanceConfig.Builder
mergeFrom(PerInstanceConfig other)
PerInstanceConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PerInstanceConfig.Builder
mergeFrom(com.google.protobuf.Message other)
PerInstanceConfig.Builder
mergePreservedState(PreservedState value)
The intended preserved state for the given instance.PerInstanceConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PerInstanceConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PerInstanceConfig.Builder
setFingerprint(String value)
Fingerprint of this per-instance config.PerInstanceConfig.Builder
setFingerprintBytes(com.google.protobuf.ByteString value)
Fingerprint of this per-instance config.PerInstanceConfig.Builder
setName(String value)
The name of a per-instance configuration and its corresponding instance.PerInstanceConfig.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of a per-instance configuration and its corresponding instance.PerInstanceConfig.Builder
setPreservedState(PreservedState value)
The intended preserved state for the given instance.PerInstanceConfig.Builder
setPreservedState(PreservedState.Builder builderForValue)
The intended preserved state for the given instance.PerInstanceConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PerInstanceConfig.Builder
setStatus(String value)
The status of applying this per-instance configuration on the corresponding managed instance.PerInstanceConfig.Builder
setStatusBytes(com.google.protobuf.ByteString value)
The status of applying this per-instance configuration on the corresponding managed instance.PerInstanceConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
clear
public PerInstanceConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
getDefaultInstanceForType
public PerInstanceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PerInstanceConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PerInstanceConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PerInstanceConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
setField
public PerInstanceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
clearField
public PerInstanceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
clearOneof
public PerInstanceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
setRepeatedField
public PerInstanceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
addRepeatedField
public PerInstanceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
mergeFrom
public PerInstanceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PerInstanceConfig.Builder>
-
mergeFrom
public PerInstanceConfig.Builder mergeFrom(PerInstanceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
mergeFrom
public PerInstanceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PerInstanceConfig.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasFingerprint
in interfacePerInstanceConfigOrBuilder
- Returns:
- Whether the fingerprint field is set.
-
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;
- Specified by:
getFingerprint
in interfacePerInstanceConfigOrBuilder
- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.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;
- Specified by:
getFingerprintBytes
in interfacePerInstanceConfigOrBuilder
- Returns:
- The bytes for fingerprint.
-
setFingerprint
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;
- Parameters:
value
- The fingerprint to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setFingerprintBytes
public PerInstanceConfig.Builder setFingerprintBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasName
in interfacePerInstanceConfigOrBuilder
- Returns:
- Whether the name field is set.
-
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;
- Specified by:
getName
in interfacePerInstanceConfigOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;
- Specified by:
getNameBytes
in interfacePerInstanceConfigOrBuilder
- Returns:
- The bytes for name.
-
setName
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;
- Parameters:
value
- The name to set.- Returns:
- 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:
- This builder for chaining.
-
setNameBytes
public PerInstanceConfig.Builder setNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasPreservedState
in interfacePerInstanceConfigOrBuilder
- Returns:
- Whether the preservedState field is set.
-
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;
- Specified by:
getPreservedState
in interfacePerInstanceConfigOrBuilder
- Returns:
- The preservedState.
-
setPreservedState
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;
-
setPreservedState
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;
-
mergePreservedState
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;
-
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;
-
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;
-
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;
- Specified by:
getPreservedStateOrBuilder
in interfacePerInstanceConfigOrBuilder
-
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;
- Specified by:
hasStatus
in interfacePerInstanceConfigOrBuilder
- Returns:
- Whether the status field is set.
-
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;
- Specified by:
getStatus
in interfacePerInstanceConfigOrBuilder
- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.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;
- Specified by:
getStatusBytes
in interfacePerInstanceConfigOrBuilder
- Returns:
- The bytes for status.
-
setStatus
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;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setStatusBytes
public PerInstanceConfig.Builder setStatusBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for status to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PerInstanceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
mergeUnknownFields
public final PerInstanceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
-