Class ServerConfig (0.36.0)

public final class ServerConfig extends GeneratedMessageV3 implements ServerConfigOrBuilder

Server configuration for supported versions and release channels.

Protobuf type google.cloud.edgecontainer.v1.ServerConfig

Static Fields

CHANNELS_FIELD_NUMBER

public static final int CHANNELS_FIELD_NUMBER
Field Value
TypeDescription
int

DEFAULT_VERSION_FIELD_NUMBER

public static final int DEFAULT_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

VERSIONS_FIELD_NUMBER

public static final int VERSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ServerConfig getDefaultInstance()
Returns
TypeDescription
ServerConfig

getDescriptor()

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

newBuilder()

public static ServerConfig.Builder newBuilder()
Returns
TypeDescription
ServerConfig.Builder

newBuilder(ServerConfig prototype)

public static ServerConfig.Builder newBuilder(ServerConfig prototype)
Parameter
NameDescription
prototypeServerConfig
Returns
TypeDescription
ServerConfig.Builder

parseDelimitedFrom(InputStream input)

public static ServerConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServerConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ServerConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ServerConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ServerConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ServerConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ServerConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ServerConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ServerConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServerConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ServerConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServerConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServerConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ServerConfig> parser()
Returns
TypeDescription
Parser<ServerConfig>

Methods

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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getChannels() (deprecated)

public Map<String,ChannelConfig> getChannels()

Use #getChannelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueChannelConfig
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
ChannelConfig

getDefaultInstanceForType()

public ServerConfig getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultVersion.

getParserForType()

public Parser<ServerConfig> getParserForType()
Returns
TypeDescription
Parser<ServerConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.edgecontainer.v1.VersionOrBuilder>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ServerConfig.Builder newBuilderForType()
Returns
TypeDescription
ServerConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ServerConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ServerConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ServerConfig.Builder toBuilder()
Returns
TypeDescription
ServerConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException