Class ServerConfig.ReleaseChannelConfig.Builder (2.4.1)

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

The validVersions to add.

Returns
TypeDescription
ServerConfig.ReleaseChannelConfig.Builder

This builder for chaining.

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

clearChannel()

public ServerConfig.ReleaseChannelConfig.Builder clearChannel()

The release channel this configuration applies to.

.google.container.v1.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

getChannel()

public ReleaseChannel.Channel getChannel()

The release channel this configuration applies to.

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

Returns
TypeDescription
ReleaseChannel.Channel

The channel.

getChannelValue()

public int getChannelValue()

The release channel this configuration applies to.

.google.container.v1.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

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
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.v1.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.