Class AttachedServerConfig.Builder (0.43.0)

public static final class AttachedServerConfig.Builder extends GeneratedMessageV3.Builder<AttachedServerConfig.Builder> implements AttachedServerConfigOrBuilder

AttachedServerConfig provides information about supported Kubernetes versions

Protobuf type google.cloud.gkemulticloud.v1.AttachedServerConfig

Static Methods

getDescriptor()

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

Methods

addAllValidVersions(Iterable<? extends AttachedPlatformVersionInfo> values)

public AttachedServerConfig.Builder addAllValidVersions(Iterable<? extends AttachedPlatformVersionInfo> values)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo>
Returns
Type Description
AttachedServerConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValidVersions(AttachedPlatformVersionInfo value)

public AttachedServerConfig.Builder addValidVersions(AttachedPlatformVersionInfo value)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameter
Name Description
value AttachedPlatformVersionInfo
Returns
Type Description
AttachedServerConfig.Builder

addValidVersions(AttachedPlatformVersionInfo.Builder builderForValue)

public AttachedServerConfig.Builder addValidVersions(AttachedPlatformVersionInfo.Builder builderForValue)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameter
Name Description
builderForValue AttachedPlatformVersionInfo.Builder
Returns
Type Description
AttachedServerConfig.Builder

addValidVersions(int index, AttachedPlatformVersionInfo value)

public AttachedServerConfig.Builder addValidVersions(int index, AttachedPlatformVersionInfo value)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameters
Name Description
index int
value AttachedPlatformVersionInfo
Returns
Type Description
AttachedServerConfig.Builder

addValidVersions(int index, AttachedPlatformVersionInfo.Builder builderForValue)

public AttachedServerConfig.Builder addValidVersions(int index, AttachedPlatformVersionInfo.Builder builderForValue)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameters
Name Description
index int
builderForValue AttachedPlatformVersionInfo.Builder
Returns
Type Description
AttachedServerConfig.Builder

addValidVersionsBuilder()

public AttachedPlatformVersionInfo.Builder addValidVersionsBuilder()

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Returns
Type Description
AttachedPlatformVersionInfo.Builder

addValidVersionsBuilder(int index)

public AttachedPlatformVersionInfo.Builder addValidVersionsBuilder(int index)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
AttachedPlatformVersionInfo.Builder

build()

public AttachedServerConfig build()
Returns
Type Description
AttachedServerConfig

buildPartial()

public AttachedServerConfig buildPartial()
Returns
Type Description
AttachedServerConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AttachedServerConfig.Builder clearName()

The resource name of the config.

string name = 1;

Returns
Type Description
AttachedServerConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValidVersions()

public AttachedServerConfig.Builder clearValidVersions()

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Returns
Type Description
AttachedServerConfig.Builder

clone()

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

getDefaultInstanceForType()

public AttachedServerConfig getDefaultInstanceForType()
Returns
Type Description
AttachedServerConfig

getDescriptorForType()

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

getName()

public String getName()

The resource name of the config.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the config.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getValidVersions(int index)

public AttachedPlatformVersionInfo getValidVersions(int index)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
AttachedPlatformVersionInfo

getValidVersionsBuilder(int index)

public AttachedPlatformVersionInfo.Builder getValidVersionsBuilder(int index)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
AttachedPlatformVersionInfo.Builder

getValidVersionsBuilderList()

public List<AttachedPlatformVersionInfo.Builder> getValidVersionsBuilderList()

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Returns
Type Description
List<Builder>

getValidVersionsCount()

public int getValidVersionsCount()

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Returns
Type Description
int

getValidVersionsList()

public List<AttachedPlatformVersionInfo> getValidVersionsList()

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Returns
Type Description
List<AttachedPlatformVersionInfo>

getValidVersionsOrBuilder(int index)

public AttachedPlatformVersionInfoOrBuilder getValidVersionsOrBuilder(int index)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
AttachedPlatformVersionInfoOrBuilder

getValidVersionsOrBuilderList()

public List<? extends AttachedPlatformVersionInfoOrBuilder> getValidVersionsOrBuilderList()

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Returns
Type Description
List<? extends com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttachedServerConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeValidVersions(int index)

public AttachedServerConfig.Builder removeValidVersions(int index)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
AttachedServerConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AttachedServerConfig.Builder setName(String value)

The resource name of the config.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AttachedServerConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AttachedServerConfig.Builder setNameBytes(ByteString value)

The resource name of the config.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AttachedServerConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidVersions(int index, AttachedPlatformVersionInfo value)

public AttachedServerConfig.Builder setValidVersions(int index, AttachedPlatformVersionInfo value)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameters
Name Description
index int
value AttachedPlatformVersionInfo
Returns
Type Description
AttachedServerConfig.Builder

setValidVersions(int index, AttachedPlatformVersionInfo.Builder builderForValue)

public AttachedServerConfig.Builder setValidVersions(int index, AttachedPlatformVersionInfo.Builder builderForValue)

List of valid platform versions.

repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2;

Parameters
Name Description
index int
builderForValue AttachedPlatformVersionInfo.Builder
Returns
Type Description
AttachedServerConfig.Builder