Class ServerConfig.ReleaseChannelConfig.Builder (2.26.0)

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

ReleaseChannelConfig exposes configuration for a release channel.

Protobuf type google.container.v1beta1.ServerConfig.ReleaseChannelConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAvailableVersions(Iterable<? extends ServerConfig.ReleaseChannelConfig.AvailableVersion> values)

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

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion>
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

addAllValidVersions(Iterable<String> values)

public ServerConfig.ReleaseChannelConfig.Builder addAllValidVersions(Iterable<String> values)

List of valid versions for the channel.

repeated string valid_versions = 4;

Parameter
NameDescription
valuesIterable<String>

The validVersions to add.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

addAvailableVersions(ServerConfig.ReleaseChannelConfig.AvailableVersion value)

public ServerConfig.ReleaseChannelConfig.Builder addAvailableVersions(ServerConfig.ReleaseChannelConfig.AvailableVersion value)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameter
NameDescription
valueServerConfig.ReleaseChannelConfig.AvailableVersion
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

addAvailableVersions(ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder builderForValue)

public ServerConfig.ReleaseChannelConfig.Builder addAvailableVersions(ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder builderForValue)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameter
NameDescription
builderForValueServerConfig.ReleaseChannelConfig.AvailableVersion.Builder
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

addAvailableVersions(int index, ServerConfig.ReleaseChannelConfig.AvailableVersion value)

public ServerConfig.ReleaseChannelConfig.Builder addAvailableVersions(int index, ServerConfig.ReleaseChannelConfig.AvailableVersion value)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameters
NameDescription
indexint
valueServerConfig.ReleaseChannelConfig.AvailableVersion
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

addAvailableVersions(int index, ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder builderForValue)

public ServerConfig.ReleaseChannelConfig.Builder addAvailableVersions(int index, ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder builderForValue)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameters
NameDescription
indexint
builderForValueServerConfig.ReleaseChannelConfig.AvailableVersion.Builder
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

addAvailableVersionsBuilder()

public ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder addAvailableVersionsBuilder()

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder

addAvailableVersionsBuilder(int index)

public ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder addAvailableVersionsBuilder(int index)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValidVersions(String value)

public ServerConfig.ReleaseChannelConfig.Builder addValidVersions(String value)

List of valid versions for the channel.

repeated string valid_versions = 4;

Parameter
NameDescription
valueString

The validVersions to add.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

addValidVersionsBytes(ByteString value)

public ServerConfig.ReleaseChannelConfig.Builder addValidVersionsBytes(ByteString value)

List of valid versions for the channel.

repeated string valid_versions = 4;

Parameter
NameDescription
valueByteString

The bytes of the validVersions to add.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

build()

public ServerConfig.ReleaseChannelConfig build()
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig

buildPartial()

public ServerConfig.ReleaseChannelConfig buildPartial()
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig

clear()

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

clearAvailableVersions()

public ServerConfig.ReleaseChannelConfig.Builder clearAvailableVersions()

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

clearChannel()

public ServerConfig.ReleaseChannelConfig.Builder clearChannel()

The release channel this configuration applies to.

.google.container.v1beta1.ReleaseChannel.Channel channel = 1;

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

clearDefaultVersion()

public ServerConfig.ReleaseChannelConfig.Builder clearDefaultVersion()

The default version for newly created clusters on the channel.

string default_version = 2;

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValidVersions()

public ServerConfig.ReleaseChannelConfig.Builder clearValidVersions()

List of valid versions for the channel.

repeated string valid_versions = 4;

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

clone()

public ServerConfig.ReleaseChannelConfig.Builder clone()
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder
Overrides

getAvailableVersions(int index)

public ServerConfig.ReleaseChannelConfig.AvailableVersion getAvailableVersions(int index)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.AvailableVersion

getAvailableVersionsBuilder(int index)

public ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder getAvailableVersionsBuilder(int index)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder

getAvailableVersionsBuilderList()

public List<ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder> getAvailableVersionsBuilderList()

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Returns
TypeDescription
List<Builder>

getAvailableVersionsCount()

public int getAvailableVersionsCount()

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Returns
TypeDescription
int

getAvailableVersionsList()

public List<ServerConfig.ReleaseChannelConfig.AvailableVersion> getAvailableVersionsList()

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Returns
TypeDescription
List<AvailableVersion>

getAvailableVersionsOrBuilder(int index)

public ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder getAvailableVersionsOrBuilder(int index)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder

getAvailableVersionsOrBuilderList()

public List<? extends ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder> getAvailableVersionsOrBuilderList()

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Returns
TypeDescription
List<? extends com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder>

getChannel()

public ReleaseChannel.Channel getChannel()

The release channel this configuration applies to.

.google.container.v1beta1.ReleaseChannel.Channel channel = 1;

Returns
TypeDescription
ReleaseChannel.Channel

The channel.

getChannelValue()

public int getChannelValue()

The release channel this configuration applies to.

.google.container.v1beta1.ReleaseChannel.Channel channel = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for channel.

getDefaultInstanceForType()

public ServerConfig.ReleaseChannelConfig getDefaultInstanceForType()
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig

getDefaultVersion()

public String getDefaultVersion()

The default version for newly created clusters on the channel.

string default_version = 2;

Returns
TypeDescription
String

The defaultVersion.

getDefaultVersionBytes()

public ByteString getDefaultVersionBytes()

The default version for newly created clusters on the channel.

string default_version = 2;

Returns
TypeDescription
ByteString

The bytes for defaultVersion.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValidVersions(int index)

public String getValidVersions(int index)

List of valid versions for the channel.

repeated string valid_versions = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The validVersions at the given index.

getValidVersionsBytes(int index)

public ByteString getValidVersionsBytes(int index)

List of valid versions for the channel.

repeated string valid_versions = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the validVersions at the given index.

getValidVersionsCount()

public int getValidVersionsCount()

List of valid versions for the channel.

repeated string valid_versions = 4;

Returns
TypeDescription
int

The count of validVersions.

getValidVersionsList()

public ProtocolStringList getValidVersionsList()

List of valid versions for the channel.

repeated string valid_versions = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the validVersions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServerConfig.ReleaseChannelConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServerConfig.ReleaseChannelConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder
Overrides

removeAvailableVersions(int index)

public ServerConfig.ReleaseChannelConfig.Builder removeAvailableVersions(int index)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

setAvailableVersions(int index, ServerConfig.ReleaseChannelConfig.AvailableVersion value)

public ServerConfig.ReleaseChannelConfig.Builder setAvailableVersions(int index, ServerConfig.ReleaseChannelConfig.AvailableVersion value)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameters
NameDescription
indexint
valueServerConfig.ReleaseChannelConfig.AvailableVersion
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

setAvailableVersions(int index, ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder builderForValue)

public ServerConfig.ReleaseChannelConfig.Builder setAvailableVersions(int index, ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder builderForValue)

Deprecated. This field has been deprecated and replaced with the valid_versions field.

repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true];

Parameters
NameDescription
indexint
builderForValueServerConfig.ReleaseChannelConfig.AvailableVersion.Builder
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

setChannel(ReleaseChannel.Channel value)

public ServerConfig.ReleaseChannelConfig.Builder setChannel(ReleaseChannel.Channel value)

The release channel this configuration applies to.

.google.container.v1beta1.ReleaseChannel.Channel channel = 1;

Parameter
NameDescription
valueReleaseChannel.Channel

The channel to set.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

setChannelValue(int value)

public ServerConfig.ReleaseChannelConfig.Builder setChannelValue(int value)

The release channel this configuration applies to.

.google.container.v1beta1.ReleaseChannel.Channel channel = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for channel to set.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

setDefaultVersion(String value)

public ServerConfig.ReleaseChannelConfig.Builder setDefaultVersion(String value)

The default version for newly created clusters on the channel.

string default_version = 2;

Parameter
NameDescription
valueString

The defaultVersion to set.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

setDefaultVersionBytes(ByteString value)

public ServerConfig.ReleaseChannelConfig.Builder setDefaultVersionBytes(ByteString value)

The default version for newly created clusters on the channel.

string default_version = 2;

Parameter
NameDescription
valueByteString

The bytes for defaultVersion to set.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ServerConfig.ReleaseChannelConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder
Overrides

setValidVersions(int index, String value)

public ServerConfig.ReleaseChannelConfig.Builder setValidVersions(int index, String value)

List of valid versions for the channel.

repeated string valid_versions = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The validVersions to set.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.