Class ServerConfig.Builder (2.46.0)

public static final class ServerConfig.Builder extends GeneratedMessageV3.Builder<ServerConfig.Builder> implements ServerConfigOrBuilder

Kubernetes Engine service configuration.

Protobuf type google.container.v1.ServerConfig

Static Methods

getDescriptor()

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

Methods

addAllChannels(Iterable<? extends ServerConfig.ReleaseChannelConfig> values)

public ServerConfig.Builder addAllChannels(Iterable<? extends ServerConfig.ReleaseChannelConfig> values)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameter
Name Description
values Iterable<? extends com.google.container.v1.ServerConfig.ReleaseChannelConfig>
Returns
Type Description
ServerConfig.Builder

addAllValidImageTypes(Iterable<String> values)

public ServerConfig.Builder addAllValidImageTypes(Iterable<String> values)

List of valid image types.

repeated string valid_image_types = 5;

Parameter
Name Description
values Iterable<String>

The validImageTypes to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

addAllValidMasterVersions(Iterable<String> values)

public ServerConfig.Builder addAllValidMasterVersions(Iterable<String> values)

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Parameter
Name Description
values Iterable<String>

The validMasterVersions to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

addAllValidNodeVersions(Iterable<String> values)

public ServerConfig.Builder addAllValidNodeVersions(Iterable<String> values)

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Parameter
Name Description
values Iterable<String>

The validNodeVersions to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

addChannels(ServerConfig.ReleaseChannelConfig value)

public ServerConfig.Builder addChannels(ServerConfig.ReleaseChannelConfig value)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameter
Name Description
value ServerConfig.ReleaseChannelConfig
Returns
Type Description
ServerConfig.Builder

addChannels(ServerConfig.ReleaseChannelConfig.Builder builderForValue)

public ServerConfig.Builder addChannels(ServerConfig.ReleaseChannelConfig.Builder builderForValue)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameter
Name Description
builderForValue ServerConfig.ReleaseChannelConfig.Builder
Returns
Type Description
ServerConfig.Builder

addChannels(int index, ServerConfig.ReleaseChannelConfig value)

public ServerConfig.Builder addChannels(int index, ServerConfig.ReleaseChannelConfig value)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameters
Name Description
index int
value ServerConfig.ReleaseChannelConfig
Returns
Type Description
ServerConfig.Builder

addChannels(int index, ServerConfig.ReleaseChannelConfig.Builder builderForValue)

public ServerConfig.Builder addChannels(int index, ServerConfig.ReleaseChannelConfig.Builder builderForValue)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameters
Name Description
index int
builderForValue ServerConfig.ReleaseChannelConfig.Builder
Returns
Type Description
ServerConfig.Builder

addChannelsBuilder()

public ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder()

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder

addChannelsBuilder(int index)

public ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder(int index)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameter
Name Description
index int
Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValidImageTypes(String value)

public ServerConfig.Builder addValidImageTypes(String value)

List of valid image types.

repeated string valid_image_types = 5;

Parameter
Name Description
value String

The validImageTypes to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

addValidImageTypesBytes(ByteString value)

public ServerConfig.Builder addValidImageTypesBytes(ByteString value)

List of valid image types.

repeated string valid_image_types = 5;

Parameter
Name Description
value ByteString

The bytes of the validImageTypes to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

addValidMasterVersions(String value)

public ServerConfig.Builder addValidMasterVersions(String value)

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Parameter
Name Description
value String

The validMasterVersions to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

addValidMasterVersionsBytes(ByteString value)

public ServerConfig.Builder addValidMasterVersionsBytes(ByteString value)

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Parameter
Name Description
value ByteString

The bytes of the validMasterVersions to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

addValidNodeVersions(String value)

public ServerConfig.Builder addValidNodeVersions(String value)

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Parameter
Name Description
value String

The validNodeVersions to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

addValidNodeVersionsBytes(ByteString value)

public ServerConfig.Builder addValidNodeVersionsBytes(ByteString value)

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Parameter
Name Description
value ByteString

The bytes of the validNodeVersions to add.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

build()

public ServerConfig build()
Returns
Type Description
ServerConfig

buildPartial()

public ServerConfig buildPartial()
Returns
Type Description
ServerConfig

clear()

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

clearChannels()

public ServerConfig.Builder clearChannels()

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Returns
Type Description
ServerConfig.Builder

clearDefaultClusterVersion()

public ServerConfig.Builder clearDefaultClusterVersion()

Version of Kubernetes the service deploys by default.

string default_cluster_version = 1;

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

clearDefaultImageType()

public ServerConfig.Builder clearDefaultImageType()

Default image type.

string default_image_type = 4;

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValidImageTypes()

public ServerConfig.Builder clearValidImageTypes()

List of valid image types.

repeated string valid_image_types = 5;

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

clearValidMasterVersions()

public ServerConfig.Builder clearValidMasterVersions()

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

clearValidNodeVersions()

public ServerConfig.Builder clearValidNodeVersions()

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

clone()

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

getChannels(int index)

public ServerConfig.ReleaseChannelConfig getChannels(int index)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameter
Name Description
index int
Returns
Type Description
ServerConfig.ReleaseChannelConfig

getChannelsBuilder(int index)

public ServerConfig.ReleaseChannelConfig.Builder getChannelsBuilder(int index)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameter
Name Description
index int
Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder

getChannelsBuilderList()

public List<ServerConfig.ReleaseChannelConfig.Builder> getChannelsBuilderList()

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Returns
Type Description
List<Builder>

getChannelsCount()

public int getChannelsCount()

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Returns
Type Description
int

getChannelsList()

public List<ServerConfig.ReleaseChannelConfig> getChannelsList()

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Returns
Type Description
List<ReleaseChannelConfig>

getChannelsOrBuilder(int index)

public ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder(int index)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameter
Name Description
index int
Returns
Type Description
ServerConfig.ReleaseChannelConfigOrBuilder

getChannelsOrBuilderList()

public List<? extends ServerConfig.ReleaseChannelConfigOrBuilder> getChannelsOrBuilderList()

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Returns
Type Description
List<? extends com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder>

getDefaultClusterVersion()

public String getDefaultClusterVersion()

Version of Kubernetes the service deploys by default.

string default_cluster_version = 1;

Returns
Type Description
String

The defaultClusterVersion.

getDefaultClusterVersionBytes()

public ByteString getDefaultClusterVersionBytes()

Version of Kubernetes the service deploys by default.

string default_cluster_version = 1;

Returns
Type Description
ByteString

The bytes for defaultClusterVersion.

getDefaultImageType()

public String getDefaultImageType()

Default image type.

string default_image_type = 4;

Returns
Type Description
String

The defaultImageType.

getDefaultImageTypeBytes()

public ByteString getDefaultImageTypeBytes()

Default image type.

string default_image_type = 4;

Returns
Type Description
ByteString

The bytes for defaultImageType.

getDefaultInstanceForType()

public ServerConfig getDefaultInstanceForType()
Returns
Type Description
ServerConfig

getDescriptorForType()

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

getValidImageTypes(int index)

public String getValidImageTypes(int index)

List of valid image types.

repeated string valid_image_types = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The validImageTypes at the given index.

getValidImageTypesBytes(int index)

public ByteString getValidImageTypesBytes(int index)

List of valid image types.

repeated string valid_image_types = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the validImageTypes at the given index.

getValidImageTypesCount()

public int getValidImageTypesCount()

List of valid image types.

repeated string valid_image_types = 5;

Returns
Type Description
int

The count of validImageTypes.

getValidImageTypesList()

public ProtocolStringList getValidImageTypesList()

List of valid image types.

repeated string valid_image_types = 5;

Returns
Type Description
ProtocolStringList

A list containing the validImageTypes.

getValidMasterVersions(int index)

public String getValidMasterVersions(int index)

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The validMasterVersions at the given index.

getValidMasterVersionsBytes(int index)

public ByteString getValidMasterVersionsBytes(int index)

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the validMasterVersions at the given index.

getValidMasterVersionsCount()

public int getValidMasterVersionsCount()

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Returns
Type Description
int

The count of validMasterVersions.

getValidMasterVersionsList()

public ProtocolStringList getValidMasterVersionsList()

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Returns
Type Description
ProtocolStringList

A list containing the validMasterVersions.

getValidNodeVersions(int index)

public String getValidNodeVersions(int index)

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The validNodeVersions at the given index.

getValidNodeVersionsBytes(int index)

public ByteString getValidNodeVersionsBytes(int index)

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the validNodeVersions at the given index.

getValidNodeVersionsCount()

public int getValidNodeVersionsCount()

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Returns
Type Description
int

The count of validNodeVersions.

getValidNodeVersionsList()

public ProtocolStringList getValidNodeVersionsList()

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Returns
Type Description
ProtocolStringList

A list containing the validNodeVersions.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServerConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeChannels(int index)

public ServerConfig.Builder removeChannels(int index)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameter
Name Description
index int
Returns
Type Description
ServerConfig.Builder

setChannels(int index, ServerConfig.ReleaseChannelConfig value)

public ServerConfig.Builder setChannels(int index, ServerConfig.ReleaseChannelConfig value)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameters
Name Description
index int
value ServerConfig.ReleaseChannelConfig
Returns
Type Description
ServerConfig.Builder

setChannels(int index, ServerConfig.ReleaseChannelConfig.Builder builderForValue)

public ServerConfig.Builder setChannels(int index, ServerConfig.ReleaseChannelConfig.Builder builderForValue)

List of release channel configurations.

repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9;

Parameters
Name Description
index int
builderForValue ServerConfig.ReleaseChannelConfig.Builder
Returns
Type Description
ServerConfig.Builder

setDefaultClusterVersion(String value)

public ServerConfig.Builder setDefaultClusterVersion(String value)

Version of Kubernetes the service deploys by default.

string default_cluster_version = 1;

Parameter
Name Description
value String

The defaultClusterVersion to set.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

setDefaultClusterVersionBytes(ByteString value)

public ServerConfig.Builder setDefaultClusterVersionBytes(ByteString value)

Version of Kubernetes the service deploys by default.

string default_cluster_version = 1;

Parameter
Name Description
value ByteString

The bytes for defaultClusterVersion to set.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

setDefaultImageType(String value)

public ServerConfig.Builder setDefaultImageType(String value)

Default image type.

string default_image_type = 4;

Parameter
Name Description
value String

The defaultImageType to set.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

setDefaultImageTypeBytes(ByteString value)

public ServerConfig.Builder setDefaultImageTypeBytes(ByteString value)

Default image type.

string default_image_type = 4;

Parameter
Name Description
value ByteString

The bytes for defaultImageType to set.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidImageTypes(int index, String value)

public ServerConfig.Builder setValidImageTypes(int index, String value)

List of valid image types.

repeated string valid_image_types = 5;

Parameters
Name Description
index int

The index to set the value at.

value String

The validImageTypes to set.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

setValidMasterVersions(int index, String value)

public ServerConfig.Builder setValidMasterVersions(int index, String value)

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

Parameters
Name Description
index int

The index to set the value at.

value String

The validMasterVersions to set.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

setValidNodeVersions(int index, String value)

public ServerConfig.Builder setValidNodeVersions(int index, String value)

List of valid node upgrade target versions, in descending order.

repeated string valid_node_versions = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The validNodeVersions to set.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.