public static final class SpotConfig.Builder extends GeneratedMessageV3.Builder<SpotConfig.Builder> implements SpotConfigOrBuilder
SpotConfig has configuration info for Spot node.
Protobuf type google.cloud.gkemulticloud.v1.SpotConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllInstanceTypes(Iterable<String> values)
public SpotConfig.Builder addAllInstanceTypes(Iterable<String> values)
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
values | Iterable<String>
The instanceTypes to add.
|
addInstanceTypes(String value)
public SpotConfig.Builder addInstanceTypes(String value)
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The instanceTypes to add.
|
addInstanceTypesBytes(ByteString value)
public SpotConfig.Builder addInstanceTypesBytes(ByteString value)
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes of the instanceTypes to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpotConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SpotConfig build()
buildPartial()
public SpotConfig buildPartial()
clear()
public SpotConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SpotConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInstanceTypes()
public SpotConfig.Builder clearInstanceTypes()
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public SpotConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SpotConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public SpotConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInstanceTypes(int index)
public String getInstanceTypes(int index)
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The instanceTypes at the given index.
|
getInstanceTypesBytes(int index)
public ByteString getInstanceTypesBytes(int index)
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the instanceTypes at the given index.
|
getInstanceTypesCount()
public int getInstanceTypesCount()
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
int | The count of instanceTypes.
|
getInstanceTypesList()
public ProtocolStringList getInstanceTypesList()
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SpotConfig other)
public SpotConfig.Builder mergeFrom(SpotConfig other)
public SpotConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SpotConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpotConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SpotConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInstanceTypes(int index, String value)
public SpotConfig.Builder setInstanceTypes(int index, String value)
Required. A list of instance types for creating spot node pool.
repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters |
---|
Name | Description |
index | int
The index to set the value at.
|
value | String
The instanceTypes to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpotConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SpotConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides