Class HttpConnectionManager.UpgradeConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HttpConnectionManager.UpgradeConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.UpgradeConfig.Builder>
io.envoyproxy.envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.UpgradeConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HttpConnectionManager.UpgradeConfigOrBuilder,Cloneable
- Enclosing class:
HttpConnectionManager.UpgradeConfig
public static final class HttpConnectionManager.UpgradeConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.UpgradeConfig.Builder>
implements HttpConnectionManager.UpgradeConfigOrBuilder
The configuration for HTTP upgrades. For each upgrade type desired, an UpgradeConfig must be added. .. warning:: The current implementation of upgrade headers does not handle multi-valued upgrade headers. Support for multi-valued headers may be added in the future if needed. .. warning:: The current implementation of upgrade headers does not work with HTTP/2 upstreams.Protobuf type
envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.UpgradeConfig-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate com.google.protobuf.BoolValueprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> private List<HttpFilter> private com.google.protobuf.RepeatedFieldBuilder<HttpFilter, HttpFilter.Builder, HttpFilterOrBuilder> private Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllFilters(Iterable<? extends HttpFilter> values) If present, this represents the filter chain which will be created for this type of upgrade.addFilters(int index, HttpFilter value) If present, this represents the filter chain which will be created for this type of upgrade.addFilters(int index, HttpFilter.Builder builderForValue) If present, this represents the filter chain which will be created for this type of upgrade.addFilters(HttpFilter value) If present, this represents the filter chain which will be created for this type of upgrade.addFilters(HttpFilter.Builder builderForValue) If present, this represents the filter chain which will be created for this type of upgrade.If present, this represents the filter chain which will be created for this type of upgrade.addFiltersBuilder(int index) If present, this represents the filter chain which will be created for this type of upgrade.build()private voidprivate voidclear()Determines if upgrades are enabled or disabled by default.If present, this represents the filter chain which will be created for this type of upgrade.The case-insensitive name of this upgrade, e.g.private voidstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.BoolValueDetermines if upgrades are enabled or disabled by default.com.google.protobuf.BoolValue.BuilderDetermines if upgrades are enabled or disabled by default.com.google.protobuf.BoolValueOrBuilderDetermines if upgrades are enabled or disabled by default.getFilters(int index) If present, this represents the filter chain which will be created for this type of upgrade.getFiltersBuilder(int index) If present, this represents the filter chain which will be created for this type of upgrade.If present, this represents the filter chain which will be created for this type of upgrade.intIf present, this represents the filter chain which will be created for this type of upgrade.If present, this represents the filter chain which will be created for this type of upgrade.getFiltersOrBuilder(int index) If present, this represents the filter chain which will be created for this type of upgrade.List<? extends HttpFilterOrBuilder> If present, this represents the filter chain which will be created for this type of upgrade.The case-insensitive name of this upgrade, e.g.com.google.protobuf.ByteStringThe case-insensitive name of this upgrade, e.g.booleanDetermines if upgrades are enabled or disabled by default.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> Determines if upgrades are enabled or disabled by default.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.RepeatedFieldBuilder<HttpFilter, HttpFilter.Builder, HttpFilterOrBuilder> final booleanprivate voidmergeEnabled(com.google.protobuf.BoolValue value) Determines if upgrades are enabled or disabled by default.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeFilters(int index) If present, this represents the filter chain which will be created for this type of upgrade.setEnabled(com.google.protobuf.BoolValue value) Determines if upgrades are enabled or disabled by default.setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) Determines if upgrades are enabled or disabled by default.setFilters(int index, HttpFilter value) If present, this represents the filter chain which will be created for this type of upgrade.setFilters(int index, HttpFilter.Builder builderForValue) If present, this represents the filter chain which will be created for this type of upgrade.setUpgradeType(String value) The case-insensitive name of this upgrade, e.g.setUpgradeTypeBytes(com.google.protobuf.ByteString value) The case-insensitive name of this upgrade, e.g.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
Field Details
-
bitField0_
private int bitField0_ -
upgradeType_
-
filters_
-
filtersBuilder_
private com.google.protobuf.RepeatedFieldBuilder<HttpFilter,HttpFilter.Builder, filtersBuilder_HttpFilterOrBuilder> -
enabled_
private com.google.protobuf.BoolValue enabled_ -
enabledBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, enabledBuilder_com.google.protobuf.BoolValueOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.UpgradeConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.UpgradeConfig.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.GeneratedMessage.Builder<HttpConnectionManager.UpgradeConfig.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
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpConnectionManager.UpgradeConfig.Builder>
-
mergeFrom
public HttpConnectionManager.UpgradeConfig.Builder mergeFrom(HttpConnectionManager.UpgradeConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.UpgradeConfig.Builder>
-
mergeFrom
public HttpConnectionManager.UpgradeConfig.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<HttpConnectionManager.UpgradeConfig.Builder>- Throws:
IOException
-
getUpgradeType
The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;- Specified by:
getUpgradeTypein interfaceHttpConnectionManager.UpgradeConfigOrBuilder- Returns:
- The upgradeType.
-
getUpgradeTypeBytes
public com.google.protobuf.ByteString getUpgradeTypeBytes()The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;- Specified by:
getUpgradeTypeBytesin interfaceHttpConnectionManager.UpgradeConfigOrBuilder- Returns:
- The bytes for upgradeType.
-
setUpgradeType
The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;- Parameters:
value- The upgradeType to set.- Returns:
- This builder for chaining.
-
clearUpgradeType
The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;- Returns:
- This builder for chaining.
-
setUpgradeTypeBytes
public HttpConnectionManager.UpgradeConfig.Builder setUpgradeTypeBytes(com.google.protobuf.ByteString value) The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;- Parameters:
value- The bytes for upgradeType to set.- Returns:
- This builder for chaining.
-
ensureFiltersIsMutable
private void ensureFiltersIsMutable() -
getFiltersList
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersListin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
getFiltersCount
public int getFiltersCount()If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersCountin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
getFilters
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
setFilters
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
setFilters
public HttpConnectionManager.UpgradeConfig.Builder setFilters(int index, HttpFilter.Builder builderForValue) If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
addFilters
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
addFilters
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
addFilters
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
addFilters
public HttpConnectionManager.UpgradeConfig.Builder addFilters(int index, HttpFilter.Builder builderForValue) If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
addAllFilters
public HttpConnectionManager.UpgradeConfig.Builder addAllFilters(Iterable<? extends HttpFilter> values) If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
clearFilters
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
removeFilters
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
getFiltersBuilder
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
getFiltersOrBuilder
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersOrBuilderin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
getFiltersOrBuilderList
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersOrBuilderListin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
addFiltersBuilder
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
addFiltersBuilder
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
getFiltersBuilderList
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2; -
internalGetFiltersFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<HttpFilter,HttpFilter.Builder, internalGetFiltersFieldBuilder()HttpFilterOrBuilder> -
hasEnabled
public boolean hasEnabled()Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;- Specified by:
hasEnabledin interfaceHttpConnectionManager.UpgradeConfigOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public com.google.protobuf.BoolValue getEnabled()Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;- Specified by:
getEnabledin interfaceHttpConnectionManager.UpgradeConfigOrBuilder- Returns:
- The enabled.
-
setEnabled
Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3; -
setEnabled
public HttpConnectionManager.UpgradeConfig.Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3; -
mergeEnabled
public HttpConnectionManager.UpgradeConfig.Builder mergeEnabled(com.google.protobuf.BoolValue value) Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3; -
clearEnabled
Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3; -
getEnabledBuilder
public com.google.protobuf.BoolValue.Builder getEnabledBuilder()Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3; -
getEnabledOrBuilder
public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;- Specified by:
getEnabledOrBuilderin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
internalGetEnabledFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, internalGetEnabledFieldBuilder()com.google.protobuf.BoolValueOrBuilder> Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;
-