Class ServerConfig.Builder (0.39.0)

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

Server configuration for supported versions and release channels.

Protobuf type google.cloud.edgecontainer.v1.ServerConfig

Static Methods

getDescriptor()

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

Methods

addAllVersions(Iterable<? extends Version> values)

public ServerConfig.Builder addAllVersions(Iterable<? extends Version> values)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.edgecontainer.v1.Version>
Returns
Type Description
ServerConfig.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

addVersions(Version value)

public ServerConfig.Builder addVersions(Version value)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Version
Returns
Type Description
ServerConfig.Builder

addVersions(Version.Builder builderForValue)

public ServerConfig.Builder addVersions(Version.Builder builderForValue)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addVersions(int index, Version value)

public ServerConfig.Builder addVersions(int index, Version value)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addVersions(int index, Version.Builder builderForValue)

public ServerConfig.Builder addVersions(int index, Version.Builder builderForValue)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addVersionsBuilder()

public Version.Builder addVersionsBuilder()

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.Builder

addVersionsBuilder(int index)

public Version.Builder addVersionsBuilder(int index)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Version.Builder

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

clearDefaultVersion()

public ServerConfig.Builder clearDefaultVersion()

Output only. Default version, e.g.: "1.4.0".

string default_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

clearVersions()

public ServerConfig.Builder clearVersions()

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServerConfig.Builder

clone()

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

containsChannels(String key)

public boolean containsChannels(String key)

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getChannels() (deprecated)

public Map<String,ChannelConfig> getChannels()

Use #getChannelsMap() instead.

Returns
Type Description
Map<String,ChannelConfig>

getChannelsCount()

public int getChannelsCount()

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getChannelsMap()

public Map<String,ChannelConfig> getChannelsMap()

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,ChannelConfig>

getChannelsOrDefault(String key, ChannelConfig defaultValue)

public ChannelConfig getChannelsOrDefault(String key, ChannelConfig defaultValue)

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue ChannelConfig
Returns
Type Description
ChannelConfig

getChannelsOrThrow(String key)

public ChannelConfig getChannelsOrThrow(String key)

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ChannelConfig

getDefaultInstanceForType()

public ServerConfig getDefaultInstanceForType()
Returns
Type Description
ServerConfig

getDefaultVersion()

public String getDefaultVersion()

Output only. Default version, e.g.: "1.4.0".

string default_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The defaultVersion.

getDefaultVersionBytes()

public ByteString getDefaultVersionBytes()

Output only. Default version, e.g.: "1.4.0".

string default_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for defaultVersion.

getDescriptorForType()

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

getMutableChannels() (deprecated)

public Map<String,ChannelConfig> getMutableChannels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ChannelConfig>

getVersions(int index)

public Version getVersions(int index)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Version

getVersionsBuilder(int index)

public Version.Builder getVersionsBuilder(int index)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Version.Builder

getVersionsBuilderList()

public List<Version.Builder> getVersionsBuilderList()

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getVersionsCount()

public int getVersionsCount()

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getVersionsList()

public List<Version> getVersionsList()

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Version>

getVersionsOrBuilder(int index)

public VersionOrBuilder getVersionsOrBuilder(int index)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
VersionOrBuilder

getVersionsOrBuilderList()

public List<? extends VersionOrBuilder> getVersionsOrBuilderList()

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.edgecontainer.v1.VersionOrBuilder>

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

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

putAllChannels(Map<String,ChannelConfig> values)

public ServerConfig.Builder putAllChannels(Map<String,ChannelConfig> values)

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,ChannelConfig>
Returns
Type Description
ServerConfig.Builder

putChannels(String key, ChannelConfig value)

public ServerConfig.Builder putChannels(String key, ChannelConfig value)

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value ChannelConfig
Returns
Type Description
ServerConfig.Builder

putChannelsBuilderIfAbsent(String key)

public ChannelConfig.Builder putChannelsBuilderIfAbsent(String key)

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ChannelConfig.Builder

removeChannels(String key)

public ServerConfig.Builder removeChannels(String key)

Output only. Mapping from release channel to channel config.

map<string, .google.cloud.edgecontainer.v1.ChannelConfig> channels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ServerConfig.Builder

removeVersions(int index)

public ServerConfig.Builder removeVersions(int index)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ServerConfig.Builder

setDefaultVersion(String value)

public ServerConfig.Builder setDefaultVersion(String value)

Output only. Default version, e.g.: "1.4.0".

string default_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The defaultVersion to set.

Returns
Type Description
ServerConfig.Builder

This builder for chaining.

setDefaultVersionBytes(ByteString value)

public ServerConfig.Builder setDefaultVersionBytes(ByteString value)

Output only. Default version, e.g.: "1.4.0".

string default_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for defaultVersion 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

setVersions(int index, Version value)

public ServerConfig.Builder setVersions(int index, Version value)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setVersions(int index, Version.Builder builderForValue)

public ServerConfig.Builder setVersions(int index, Version.Builder builderForValue)

Output only. Supported versions, e.g.: ["1.4.0", "1.5.0"].

repeated .google.cloud.edgecontainer.v1.Version versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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