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
Protobuf typegoogle.cloud.compute.v1.PerInstanceConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PerInstanceConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PerInstanceConfigbuild()PerInstanceConfigbuildPartial()PerInstanceConfig.Builderclear()PerInstanceConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PerInstanceConfig.BuilderclearFingerprint()Fingerprint of this per-instance config.PerInstanceConfig.BuilderclearName()The name of a per-instance configuration and its corresponding instance.PerInstanceConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PerInstanceConfig.BuilderclearPreservedState()The intended preserved state for the given instance.PerInstanceConfig.BuilderclearStatus()The status of applying this per-instance configuration on the corresponding managed instance.PerInstanceConfig.Builderclone()PerInstanceConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFingerprint()Fingerprint of this per-instance config.com.google.protobuf.ByteStringgetFingerprintBytes()Fingerprint of this per-instance config.StringgetName()The name of a per-instance configuration and its corresponding instance.com.google.protobuf.ByteStringgetNameBytes()The name of a per-instance configuration and its corresponding instance.PreservedStategetPreservedState()The intended preserved state for the given instance.PreservedState.BuildergetPreservedStateBuilder()The intended preserved state for the given instance.PreservedStateOrBuildergetPreservedStateOrBuilder()The intended preserved state for the given instance.StringgetStatus()The status of applying this per-instance configuration on the corresponding managed instance.com.google.protobuf.ByteStringgetStatusBytes()The status of applying this per-instance configuration on the corresponding managed instance.booleanhasFingerprint()Fingerprint of this per-instance config.booleanhasName()The name of a per-instance configuration and its corresponding instance.booleanhasPreservedState()The intended preserved state for the given instance.booleanhasStatus()The status of applying this per-instance configuration on the corresponding managed instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PerInstanceConfig.BuildermergeFrom(PerInstanceConfig other)PerInstanceConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PerInstanceConfig.BuildermergeFrom(com.google.protobuf.Message other)PerInstanceConfig.BuildermergePreservedState(PreservedState value)The intended preserved state for the given instance.PerInstanceConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PerInstanceConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PerInstanceConfig.BuildersetFingerprint(String value)Fingerprint of this per-instance config.PerInstanceConfig.BuildersetFingerprintBytes(com.google.protobuf.ByteString value)Fingerprint of this per-instance config.PerInstanceConfig.BuildersetName(String value)The name of a per-instance configuration and its corresponding instance.PerInstanceConfig.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of a per-instance configuration and its corresponding instance.PerInstanceConfig.BuildersetPreservedState(PreservedState value)The intended preserved state for the given instance.PerInstanceConfig.BuildersetPreservedState(PreservedState.Builder builderForValue)The intended preserved state for the given instance.PerInstanceConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PerInstanceConfig.BuildersetStatus(String value)The status of applying this per-instance configuration on the corresponding managed instance.PerInstanceConfig.BuildersetStatusBytes(com.google.protobuf.ByteString value)The status of applying this per-instance configuration on the corresponding managed instance.PerInstanceConfig.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
clear
public PerInstanceConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
getDefaultInstanceForType
public PerInstanceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PerInstanceConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PerInstanceConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PerInstanceConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
setField
public PerInstanceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
clearField
public PerInstanceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
clearOneof
public PerInstanceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
setRepeatedField
public PerInstanceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
addRepeatedField
public PerInstanceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
mergeFrom
public PerInstanceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PerInstanceConfig.Builder>
-
mergeFrom
public PerInstanceConfig.Builder mergeFrom(PerInstanceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasFingerprintin 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:
getFingerprintin 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:
getFingerprintBytesin 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:
hasNamein 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:
getNamein 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:
getNameBytesin 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:
hasPreservedStatein 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:
getPreservedStatein 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:
getPreservedStateOrBuilderin 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:
hasStatusin 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:
getStatusin 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:
getStatusBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
mergeUnknownFields
public final PerInstanceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PerInstanceConfig.Builder>
-
-