Class ManagedInstancePropertiesFromFlexibilityPolicy.Builder (1.64.0)

public static final class ManagedInstancePropertiesFromFlexibilityPolicy.Builder extends GeneratedMessageV3.Builder<ManagedInstancePropertiesFromFlexibilityPolicy.Builder> implements ManagedInstancePropertiesFromFlexibilityPolicyOrBuilder

Protobuf type google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ManagedInstancePropertiesFromFlexibilityPolicy.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ManagedInstancePropertiesFromFlexibilityPolicy build()
Returns
Type Description
ManagedInstancePropertiesFromFlexibilityPolicy

buildPartial()

public ManagedInstancePropertiesFromFlexibilityPolicy buildPartial()
Returns
Type Description
ManagedInstancePropertiesFromFlexibilityPolicy

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMachineType()

public ManagedInstancePropertiesFromFlexibilityPolicy.Builder clearMachineType()

The machine type to be used for this instance.

optional string machine_type = 227711026;

Returns
Type Description
ManagedInstancePropertiesFromFlexibilityPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ManagedInstancePropertiesFromFlexibilityPolicy getDefaultInstanceForType()
Returns
Type Description
ManagedInstancePropertiesFromFlexibilityPolicy

getDescriptorForType()

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

getMachineType()

public String getMachineType()

The machine type to be used for this instance.

optional string machine_type = 227711026;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The machine type to be used for this instance.

optional string machine_type = 227711026;

Returns
Type Description
ByteString

The bytes for machineType.

hasMachineType()

public boolean hasMachineType()

The machine type to be used for this instance.

optional string machine_type = 227711026;

Returns
Type Description
boolean

Whether the machineType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ManagedInstancePropertiesFromFlexibilityPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineType(String value)

public ManagedInstancePropertiesFromFlexibilityPolicy.Builder setMachineType(String value)

The machine type to be used for this instance.

optional string machine_type = 227711026;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
ManagedInstancePropertiesFromFlexibilityPolicy.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public ManagedInstancePropertiesFromFlexibilityPolicy.Builder setMachineTypeBytes(ByteString value)

The machine type to be used for this instance.

optional string machine_type = 227711026;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
ManagedInstancePropertiesFromFlexibilityPolicy.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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