Class Router.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
io.envoyproxy.envoy.extensions.filters.network.generic_proxy.router.v3.Router.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RouterOrBuilder,Cloneable
- Enclosing class:
- Router
public static final class Router.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
implements RouterOrBuilder
Protobuf type
envoy.extensions.filters.network.generic_proxy.router.v3.Router-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Set to true if the upstream connection should be bound to the downstream connection, false otherwise.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()booleanSet to true if the upstream connection should be bound to the downstream connection, false otherwise.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Router.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBindUpstreamConnection(boolean value) Set to true if the upstream connection should be bound to the downstream connection, false otherwise.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Router.BuildersetUnknownFields(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<Router.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<Router.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<Router.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<Router.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
setRepeatedField
public Router.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<Router.Builder>
-
addRepeatedField
public Router.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<Router.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Router.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
mergeFrom
public Router.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<Router.Builder>- Throws:
IOException
-
getBindUpstreamConnection
public boolean getBindUpstreamConnection()Set to true if the upstream connection should be bound to the downstream connection, false otherwise. By default, one random upstream connection will be selected from the upstream connection pool and used for every request. And after the request is finished, the upstream connection will be released back to the upstream connection pool. If this option is true, the upstream connection will be bound to the downstream connection and have same lifetime as the downstream connection. The same upstream connection will be used for all requests from the same downstream connection. And if this options is true, one of the following requirements must be met: 1. The request must be handled one by one. That is, the next request can not be sent to the upstream until the previous request is finished. 2. Unique request id must be provided for each request and response. The request id must be unique for each request and response pair in same connection pair. And the request id must be the same for the corresponding request and response. This could be useful for some protocols that require the same upstream connection to be used for all requests from the same downstream connection. For example, the protocol using stateful connection.bool bind_upstream_connection = 1;- Specified by:
getBindUpstreamConnectionin interfaceRouterOrBuilder- Returns:
- The bindUpstreamConnection.
-
setBindUpstreamConnection
Set to true if the upstream connection should be bound to the downstream connection, false otherwise. By default, one random upstream connection will be selected from the upstream connection pool and used for every request. And after the request is finished, the upstream connection will be released back to the upstream connection pool. If this option is true, the upstream connection will be bound to the downstream connection and have same lifetime as the downstream connection. The same upstream connection will be used for all requests from the same downstream connection. And if this options is true, one of the following requirements must be met: 1. The request must be handled one by one. That is, the next request can not be sent to the upstream until the previous request is finished. 2. Unique request id must be provided for each request and response. The request id must be unique for each request and response pair in same connection pair. And the request id must be the same for the corresponding request and response. This could be useful for some protocols that require the same upstream connection to be used for all requests from the same downstream connection. For example, the protocol using stateful connection.bool bind_upstream_connection = 1;- Parameters:
value- The bindUpstreamConnection to set.- Returns:
- This builder for chaining.
-
clearBindUpstreamConnection
Set to true if the upstream connection should be bound to the downstream connection, false otherwise. By default, one random upstream connection will be selected from the upstream connection pool and used for every request. And after the request is finished, the upstream connection will be released back to the upstream connection pool. If this option is true, the upstream connection will be bound to the downstream connection and have same lifetime as the downstream connection. The same upstream connection will be used for all requests from the same downstream connection. And if this options is true, one of the following requirements must be met: 1. The request must be handled one by one. That is, the next request can not be sent to the upstream until the previous request is finished. 2. Unique request id must be provided for each request and response. The request id must be unique for each request and response pair in same connection pair. And the request id must be the same for the corresponding request and response. This could be useful for some protocols that require the same upstream connection to be used for all requests from the same downstream connection. For example, the protocol using stateful connection.bool bind_upstream_connection = 1;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-