Class AttachedServerConfig.Builder (0.10.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo>
Returns
TypeDescription
AttachedServerConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttachedServerConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueAttachedPlatformVersionInfo
Returns
TypeDescription
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
NameDescription
builderForValueAttachedPlatformVersionInfo.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAttachedPlatformVersionInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAttachedPlatformVersionInfo.Builder
Returns
TypeDescription
AttachedServerConfig.Builder

addValidVersionsBuilder()

public AttachedPlatformVersionInfo.Builder addValidVersionsBuilder()

List of valid platform versions.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AttachedPlatformVersionInfo.Builder

build()

public AttachedServerConfig build()
Returns
TypeDescription
AttachedServerConfig

buildPartial()

public AttachedServerConfig buildPartial()
Returns
TypeDescription
AttachedServerConfig

clear()

public AttachedServerConfig.Builder clear()
Returns
TypeDescription
AttachedServerConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AttachedServerConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AttachedServerConfig.Builder
Overrides

clearName()

public AttachedServerConfig.Builder clearName()

The resource name of the config.

string name = 1;

Returns
TypeDescription
AttachedServerConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AttachedServerConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AttachedServerConfig.Builder
Overrides

clearValidVersions()

public AttachedServerConfig.Builder clearValidVersions()

List of valid platform versions.

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

Returns
TypeDescription
AttachedServerConfig.Builder

clone()

public AttachedServerConfig.Builder clone()
Returns
TypeDescription
AttachedServerConfig.Builder
Overrides

getDefaultInstanceForType()

public AttachedServerConfig getDefaultInstanceForType()
Returns
TypeDescription
AttachedServerConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The resource name of the config.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the config.

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AttachedPlatformVersionInfo.Builder

getValidVersionsBuilderList()

public List<AttachedPlatformVersionInfo.Builder> getValidVersionsBuilderList()

List of valid platform versions.

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

Returns
TypeDescription
List<Builder>

getValidVersionsCount()

public int getValidVersionsCount()

List of valid platform versions.

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

Returns
TypeDescription
int

getValidVersionsList()

public List<AttachedPlatformVersionInfo> getValidVersionsList()

List of valid platform versions.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AttachedPlatformVersionInfoOrBuilder

getValidVersionsOrBuilderList()

public List<? extends AttachedPlatformVersionInfoOrBuilder> getValidVersionsOrBuilderList()

List of valid platform versions.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttachedServerConfig other)

public AttachedServerConfig.Builder mergeFrom(AttachedServerConfig other)
Parameter
NameDescription
otherAttachedServerConfig
Returns
TypeDescription
AttachedServerConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttachedServerConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedServerConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AttachedServerConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AttachedServerConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttachedServerConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AttachedServerConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AttachedServerConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttachedServerConfig.Builder
Overrides

setName(String value)

public AttachedServerConfig.Builder setName(String value)

The resource name of the config.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AttachedServerConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AttachedServerConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueAttachedPlatformVersionInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAttachedPlatformVersionInfo.Builder
Returns
TypeDescription
AttachedServerConfig.Builder