Class ServerConfig.ReleaseChannelConfig.Builder (2.49.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.v1.ServerConfig.ReleaseChannelConfig

Static Methods

getDescriptor()

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

Methods

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
Name Description
values Iterable<String>

The validVersions to add.

Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServerConfig.ReleaseChannelConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The validVersions to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the validVersions to add.

Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

build()

public ServerConfig.ReleaseChannelConfig build()
Returns
Type Description
ServerConfig.ReleaseChannelConfig

buildPartial()

public ServerConfig.ReleaseChannelConfig buildPartial()
Returns
Type Description
ServerConfig.ReleaseChannelConfig

clear()

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

clearChannel()

public ServerConfig.ReleaseChannelConfig.Builder clearChannel()

The release channel this configuration applies to.

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

Returns
Type Description
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
Type Description
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValidVersions()

public ServerConfig.ReleaseChannelConfig.Builder clearValidVersions()

List of valid versions for the channel.

repeated string valid_versions = 4;

Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

clone()

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

getChannel()

public ReleaseChannel.Channel getChannel()

The release channel this configuration applies to.

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

Returns
Type Description
ReleaseChannel.Channel

The channel.

getChannelValue()

public int getChannelValue()

The release channel this configuration applies to.

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

Returns
Type Description
int

The enum numeric value on the wire for channel.

getDefaultInstanceForType()

public ServerConfig.ReleaseChannelConfig getDefaultInstanceForType()
Returns
Type Description
ServerConfig.ReleaseChannelConfig

getDefaultVersion()

public String getDefaultVersion()

The default version for newly created clusters on the channel.

string default_version = 2;

Returns
Type Description
String

The defaultVersion.

getDefaultVersionBytes()

public ByteString getDefaultVersionBytes()

The default version for newly created clusters on the channel.

string default_version = 2;

Returns
Type Description
ByteString

The bytes for defaultVersion.

getDescriptorForType()

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

getValidVersions(int index)

public String getValidVersions(int index)

List of valid versions for the channel.

repeated string valid_versions = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of validVersions.

getValidVersionsList()

public ProtocolStringList getValidVersionsList()

List of valid versions for the channel.

repeated string valid_versions = 4;

Returns
Type Description
ProtocolStringList

A list containing the validVersions.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServerConfig.ReleaseChannelConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setChannel(ReleaseChannel.Channel value)

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

The release channel this configuration applies to.

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

Parameter
Name Description
value ReleaseChannel.Channel

The channel to set.

Returns
Type Description
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.v1.ReleaseChannel.Channel channel = 1;

Parameter
Name Description
value int

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

Returns
Type Description
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
Name Description
value String

The defaultVersion to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for defaultVersion to set.

Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServerConfig.ReleaseChannelConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ServerConfig.ReleaseChannelConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The validVersions to set.

Returns
Type Description
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.