Class QuicProtocolOptions.ConnectionMigrationSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
io.envoyproxy.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,QuicProtocolOptions.ConnectionMigrationSettingsOrBuilder,Cloneable
- Enclosing class:
- QuicProtocolOptions.ConnectionMigrationSettings
public static final class QuicProtocolOptions.ConnectionMigrationSettings.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
implements QuicProtocolOptions.ConnectionMigrationSettingsOrBuilder
Config for QUIC connection migration across network interfaces, i.e. cellular to WIFI, upon network change events from the platform, i.e. the current network gets disconnected, or upon the QUIC detecting a bad connection. After migration, the connection may be on a different network other than the default network picked by the platform. Both iOS and Android will use a default network to interact with the internet, usually prefer unmetered network (WIFI) over metered ones (cellular). And users can specify which network to be used as the default. A connection on non-default network is only allowed to serve new requests for a certain period of time before being drained, and meanwhile, QUIC will try to migrate to the default network if possible.Protobuf type
envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then.Config whether and how to migrate idle connections.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationAfter migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then.com.google.protobuf.Duration.BuilderAfter migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then.com.google.protobuf.DurationOrBuilderAfter migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then.Config whether and how to migrate idle connections.Config whether and how to migrate idle connections.Config whether and how to migrate idle connections.booleanAfter migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then.booleanConfig whether and how to migrate idle connections.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxTimeOnNonDefaultNetwork(com.google.protobuf.Duration value) After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then.mergeMigrateIdleConnections(QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings value) Config whether and how to migrate idle connections.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMaxTimeOnNonDefaultNetwork(com.google.protobuf.Duration value) After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then.setMaxTimeOnNonDefaultNetwork(com.google.protobuf.Duration.Builder builderForValue) After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then.setMigrateIdleConnections(QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings value) Config whether and how to migrate idle connections.setMigrateIdleConnections(QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings.Builder builderForValue) Config whether and how to migrate idle connections.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
setField
public QuicProtocolOptions.ConnectionMigrationSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
clearField
public QuicProtocolOptions.ConnectionMigrationSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
clearOneof
public QuicProtocolOptions.ConnectionMigrationSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
setRepeatedField
public QuicProtocolOptions.ConnectionMigrationSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
addRepeatedField
public QuicProtocolOptions.ConnectionMigrationSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
mergeFrom
public QuicProtocolOptions.ConnectionMigrationSettings.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
mergeFrom
public QuicProtocolOptions.ConnectionMigrationSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>- Throws:
IOException
-
hasMigrateIdleConnections
public boolean hasMigrateIdleConnections()Config whether and how to migrate idle connections. If absent, idle connections will not be migrated but be closed upon migration signals.
.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings migrate_idle_connections = 1;- Specified by:
hasMigrateIdleConnectionsin interfaceQuicProtocolOptions.ConnectionMigrationSettingsOrBuilder- Returns:
- Whether the migrateIdleConnections field is set.
-
getMigrateIdleConnections
public QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings getMigrateIdleConnections()Config whether and how to migrate idle connections. If absent, idle connections will not be migrated but be closed upon migration signals.
.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings migrate_idle_connections = 1;- Specified by:
getMigrateIdleConnectionsin interfaceQuicProtocolOptions.ConnectionMigrationSettingsOrBuilder- Returns:
- The migrateIdleConnections.
-
setMigrateIdleConnections
public QuicProtocolOptions.ConnectionMigrationSettings.Builder setMigrateIdleConnections(QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings value) Config whether and how to migrate idle connections. If absent, idle connections will not be migrated but be closed upon migration signals.
.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings migrate_idle_connections = 1; -
setMigrateIdleConnections
public QuicProtocolOptions.ConnectionMigrationSettings.Builder setMigrateIdleConnections(QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings.Builder builderForValue) Config whether and how to migrate idle connections. If absent, idle connections will not be migrated but be closed upon migration signals.
.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings migrate_idle_connections = 1; -
mergeMigrateIdleConnections
public QuicProtocolOptions.ConnectionMigrationSettings.Builder mergeMigrateIdleConnections(QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings value) Config whether and how to migrate idle connections. If absent, idle connections will not be migrated but be closed upon migration signals.
.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings migrate_idle_connections = 1; -
clearMigrateIdleConnections
Config whether and how to migrate idle connections. If absent, idle connections will not be migrated but be closed upon migration signals.
.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings migrate_idle_connections = 1; -
getMigrateIdleConnectionsBuilder
public QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings.Builder getMigrateIdleConnectionsBuilder()Config whether and how to migrate idle connections. If absent, idle connections will not be migrated but be closed upon migration signals.
.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings migrate_idle_connections = 1; -
getMigrateIdleConnectionsOrBuilder
public QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettingsOrBuilder getMigrateIdleConnectionsOrBuilder()Config whether and how to migrate idle connections. If absent, idle connections will not be migrated but be closed upon migration signals.
.envoy.config.core.v3.QuicProtocolOptions.ConnectionMigrationSettings.MigrateIdleConnectionSettings migrate_idle_connections = 1;- Specified by:
getMigrateIdleConnectionsOrBuilderin interfaceQuicProtocolOptions.ConnectionMigrationSettingsOrBuilder
-
hasMaxTimeOnNonDefaultNetwork
public boolean hasMaxTimeOnNonDefaultNetwork()After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then. Default to 128s.
.google.protobuf.Duration max_time_on_non_default_network = 2 [(.validate.rules) = { ... }- Specified by:
hasMaxTimeOnNonDefaultNetworkin interfaceQuicProtocolOptions.ConnectionMigrationSettingsOrBuilder- Returns:
- Whether the maxTimeOnNonDefaultNetwork field is set.
-
getMaxTimeOnNonDefaultNetwork
public com.google.protobuf.Duration getMaxTimeOnNonDefaultNetwork()After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then. Default to 128s.
.google.protobuf.Duration max_time_on_non_default_network = 2 [(.validate.rules) = { ... }- Specified by:
getMaxTimeOnNonDefaultNetworkin interfaceQuicProtocolOptions.ConnectionMigrationSettingsOrBuilder- Returns:
- The maxTimeOnNonDefaultNetwork.
-
setMaxTimeOnNonDefaultNetwork
public QuicProtocolOptions.ConnectionMigrationSettings.Builder setMaxTimeOnNonDefaultNetwork(com.google.protobuf.Duration value) After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then. Default to 128s.
.google.protobuf.Duration max_time_on_non_default_network = 2 [(.validate.rules) = { ... } -
setMaxTimeOnNonDefaultNetwork
public QuicProtocolOptions.ConnectionMigrationSettings.Builder setMaxTimeOnNonDefaultNetwork(com.google.protobuf.Duration.Builder builderForValue) After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then. Default to 128s.
.google.protobuf.Duration max_time_on_non_default_network = 2 [(.validate.rules) = { ... } -
mergeMaxTimeOnNonDefaultNetwork
public QuicProtocolOptions.ConnectionMigrationSettings.Builder mergeMaxTimeOnNonDefaultNetwork(com.google.protobuf.Duration value) After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then. Default to 128s.
.google.protobuf.Duration max_time_on_non_default_network = 2 [(.validate.rules) = { ... } -
clearMaxTimeOnNonDefaultNetwork
After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then. Default to 128s.
.google.protobuf.Duration max_time_on_non_default_network = 2 [(.validate.rules) = { ... } -
getMaxTimeOnNonDefaultNetworkBuilder
public com.google.protobuf.Duration.Builder getMaxTimeOnNonDefaultNetworkBuilder()After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then. Default to 128s.
.google.protobuf.Duration max_time_on_non_default_network = 2 [(.validate.rules) = { ... } -
getMaxTimeOnNonDefaultNetworkOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxTimeOnNonDefaultNetworkOrBuilder()After migrating to a non-default network interface, the connection will only be allowed to stay on that network for up to this period of time before being drained unless it migrates to the default network or that network gets picked as the default by the device by then. Default to 128s.
.google.protobuf.Duration max_time_on_non_default_network = 2 [(.validate.rules) = { ... }- Specified by:
getMaxTimeOnNonDefaultNetworkOrBuilderin interfaceQuicProtocolOptions.ConnectionMigrationSettingsOrBuilder
-
setUnknownFields
public final QuicProtocolOptions.ConnectionMigrationSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-
mergeUnknownFields
public final QuicProtocolOptions.ConnectionMigrationSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QuicProtocolOptions.ConnectionMigrationSettings.Builder>
-