Class ServerConfig.Builder (2.6.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.container.v1.ServerConfig.ReleaseChannelConfig>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The validImageTypes to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The validMasterVersions to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The validNodeVersions to add.

Returns
TypeDescription
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
NameDescription
valueServerConfig.ReleaseChannelConfig
Returns
TypeDescription
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
NameDescription
builderForValueServerConfig.ReleaseChannelConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueServerConfig.ReleaseChannelConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServerConfig.ReleaseChannelConfig.Builder
Returns
TypeDescription
ServerConfig.Builder

addChannelsBuilder()

public ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder()

List of release channel configurations.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValidImageTypes(String value)

public ServerConfig.Builder addValidImageTypes(String value)

List of valid image types.

repeated string valid_image_types = 5;

Parameter
NameDescription
valueString

The validImageTypes to add.

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

The bytes of the validImageTypes to add.

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

The validMasterVersions to add.

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

The bytes of the validMasterVersions to add.

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

The validNodeVersions to add.

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

The bytes of the validNodeVersions to add.

Returns
TypeDescription
ServerConfig.Builder

This builder for chaining.

build()

public ServerConfig build()
Returns
TypeDescription
ServerConfig

buildPartial()

public ServerConfig buildPartial()
Returns
TypeDescription
ServerConfig

clear()

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

clearChannels()

public ServerConfig.Builder clearChannels()

List of release channel configurations.

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

Returns
TypeDescription
ServerConfig.Builder

clearDefaultClusterVersion()

public ServerConfig.Builder clearDefaultClusterVersion()

Version of Kubernetes the service deploys by default.

string default_cluster_version = 1;

Returns
TypeDescription
ServerConfig.Builder

This builder for chaining.

clearDefaultImageType()

public ServerConfig.Builder clearDefaultImageType()

Default image type.

string default_image_type = 4;

Returns
TypeDescription
ServerConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValidImageTypes()

public ServerConfig.Builder clearValidImageTypes()

List of valid image types.

repeated string valid_image_types = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ServerConfig.Builder

This builder for chaining.

clone()

public ServerConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

getChannelsBuilderList()

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

List of release channel configurations.

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

Returns
TypeDescription
List<Builder>

getChannelsCount()

public int getChannelsCount()

List of release channel configurations.

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

Returns
TypeDescription
int

getChannelsList()

public List<ServerConfig.ReleaseChannelConfig> getChannelsList()

List of release channel configurations.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServerConfig.ReleaseChannelConfigOrBuilder

getChannelsOrBuilderList()

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

List of release channel configurations.

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

Returns
TypeDescription
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
TypeDescription
String

The defaultClusterVersion.

getDefaultClusterVersionBytes()

public ByteString getDefaultClusterVersionBytes()

Version of Kubernetes the service deploys by default.

string default_cluster_version = 1;

Returns
TypeDescription
ByteString

The bytes for defaultClusterVersion.

getDefaultImageType()

public String getDefaultImageType()

Default image type.

string default_image_type = 4;

Returns
TypeDescription
String

The defaultImageType.

getDefaultImageTypeBytes()

public ByteString getDefaultImageTypeBytes()

Default image type.

string default_image_type = 4;

Returns
TypeDescription
ByteString

The bytes for defaultImageType.

getDefaultInstanceForType()

public ServerConfig getDefaultInstanceForType()
Returns
TypeDescription
ServerConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValidImageTypes(int index)

public String getValidImageTypes(int index)

List of valid image types.

repeated string valid_image_types = 5;

Parameter
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of validImageTypes.

getValidImageTypesList()

public ProtocolStringList getValidImageTypesList()

List of valid image types.

repeated string valid_image_types = 5;

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of validMasterVersions.

getValidMasterVersionsList()

public ProtocolStringList getValidMasterVersionsList()

List of valid master versions, in descending order.

repeated string valid_master_versions = 6;

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the validNodeVersions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServerConfig other)

public ServerConfig.Builder mergeFrom(ServerConfig other)
Parameter
NameDescription
otherServerConfig
Returns
TypeDescription
ServerConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServerConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueServerConfig.ReleaseChannelConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServerConfig.ReleaseChannelConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The defaultClusterVersion to set.

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

The bytes for defaultClusterVersion to set.

Returns
TypeDescription
ServerConfig.Builder

This builder for chaining.

setDefaultImageType(String value)

public ServerConfig.Builder setDefaultImageType(String value)

Default image type.

string default_image_type = 4;

Parameter
NameDescription
valueString

The defaultImageType to set.

Returns
TypeDescription
ServerConfig.Builder

This builder for chaining.

setDefaultImageTypeBytes(ByteString value)

public ServerConfig.Builder setDefaultImageTypeBytes(ByteString value)

Default image type.

string default_image_type = 4;

Parameter
NameDescription
valueByteString

The bytes for defaultImageType to set.

Returns
TypeDescription
ServerConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ServerConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServerConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The validImageTypes to set.

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

The index to set the value at.

valueString

The validMasterVersions to set.

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

The index to set the value at.

valueString

The validNodeVersions to set.

Returns
TypeDescription
ServerConfig.Builder

This builder for chaining.