public static final class MongoProxy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder> implements MongoProxyOrBuilder
[#next-free-field: 6]Protobuf type
envoy.extensions.filters.network.mongo_proxy.v3.MongoProxy| Modifier and Type | Method and Description |
|---|---|
MongoProxy.Builder |
addAllCommands(Iterable<String> values)
List of commands to emit metrics for.
|
MongoProxy.Builder |
addCommands(String value)
List of commands to emit metrics for.
|
MongoProxy.Builder |
addCommandsBytes(com.google.protobuf.ByteString value)
List of commands to emit metrics for.
|
MongoProxy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MongoProxy |
build() |
MongoProxy |
buildPartial() |
MongoProxy.Builder |
clear() |
MongoProxy.Builder |
clearAccessLog()
The optional path to use for writing Mongo access logs.
|
MongoProxy.Builder |
clearCommands()
List of commands to emit metrics for.
|
MongoProxy.Builder |
clearDelay()
Inject a fixed delay before proxying a Mongo operation.
|
MongoProxy.Builder |
clearEmitDynamicMetadata()
Flag to specify whether :ref:`dynamic metadata
<config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted.
|
MongoProxy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MongoProxy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MongoProxy.Builder |
clearStatPrefix()
The human readable prefix to use when emitting :ref:`statistics
<config_network_filters_mongo_proxy_stats>`.
|
MongoProxy.Builder |
clone() |
String |
getAccessLog()
The optional path to use for writing Mongo access logs.
|
com.google.protobuf.ByteString |
getAccessLogBytes()
The optional path to use for writing Mongo access logs.
|
String |
getCommands(int index)
List of commands to emit metrics for.
|
com.google.protobuf.ByteString |
getCommandsBytes(int index)
List of commands to emit metrics for.
|
int |
getCommandsCount()
List of commands to emit metrics for.
|
com.google.protobuf.ProtocolStringList |
getCommandsList()
List of commands to emit metrics for.
|
MongoProxy |
getDefaultInstanceForType() |
FaultDelay |
getDelay()
Inject a fixed delay before proxying a Mongo operation.
|
FaultDelay.Builder |
getDelayBuilder()
Inject a fixed delay before proxying a Mongo operation.
|
FaultDelayOrBuilder |
getDelayOrBuilder()
Inject a fixed delay before proxying a Mongo operation.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEmitDynamicMetadata()
Flag to specify whether :ref:`dynamic metadata
<config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted.
|
String |
getStatPrefix()
The human readable prefix to use when emitting :ref:`statistics
<config_network_filters_mongo_proxy_stats>`.
|
com.google.protobuf.ByteString |
getStatPrefixBytes()
The human readable prefix to use when emitting :ref:`statistics
<config_network_filters_mongo_proxy_stats>`.
|
boolean |
hasDelay()
Inject a fixed delay before proxying a Mongo operation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MongoProxy.Builder |
mergeDelay(FaultDelay value)
Inject a fixed delay before proxying a Mongo operation.
|
MongoProxy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MongoProxy.Builder |
mergeFrom(com.google.protobuf.Message other) |
MongoProxy.Builder |
mergeFrom(MongoProxy other) |
MongoProxy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MongoProxy.Builder |
setAccessLog(String value)
The optional path to use for writing Mongo access logs.
|
MongoProxy.Builder |
setAccessLogBytes(com.google.protobuf.ByteString value)
The optional path to use for writing Mongo access logs.
|
MongoProxy.Builder |
setCommands(int index,
String value)
List of commands to emit metrics for.
|
MongoProxy.Builder |
setDelay(FaultDelay.Builder builderForValue)
Inject a fixed delay before proxying a Mongo operation.
|
MongoProxy.Builder |
setDelay(FaultDelay value)
Inject a fixed delay before proxying a Mongo operation.
|
MongoProxy.Builder |
setEmitDynamicMetadata(boolean value)
Flag to specify whether :ref:`dynamic metadata
<config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted.
|
MongoProxy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MongoProxy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MongoProxy.Builder |
setStatPrefix(String value)
The human readable prefix to use when emitting :ref:`statistics
<config_network_filters_mongo_proxy_stats>`.
|
MongoProxy.Builder |
setStatPrefixBytes(com.google.protobuf.ByteString value)
The human readable prefix to use when emitting :ref:`statistics
<config_network_filters_mongo_proxy_stats>`.
|
MongoProxy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MongoProxy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MongoProxy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MongoProxy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MongoProxy.Builder>public MongoProxy.Builder mergeFrom(MongoProxy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public MongoProxy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MongoProxy.Builder>IOExceptionpublic String getStatPrefix()
The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }getStatPrefix in interface MongoProxyOrBuilderpublic com.google.protobuf.ByteString getStatPrefixBytes()
The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }getStatPrefixBytes in interface MongoProxyOrBuilderpublic MongoProxy.Builder setStatPrefix(String value)
The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }public MongoProxy.Builder clearStatPrefix()
The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }public MongoProxy.Builder setStatPrefixBytes(com.google.protobuf.ByteString value)
The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }public String getAccessLog()
The optional path to use for writing Mongo access logs. If not access log path is specified no access logs will be written. Note that access log is also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
string access_log = 2;getAccessLog in interface MongoProxyOrBuilderpublic com.google.protobuf.ByteString getAccessLogBytes()
The optional path to use for writing Mongo access logs. If not access log path is specified no access logs will be written. Note that access log is also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
string access_log = 2;getAccessLogBytes in interface MongoProxyOrBuilderpublic MongoProxy.Builder setAccessLog(String value)
The optional path to use for writing Mongo access logs. If not access log path is specified no access logs will be written. Note that access log is also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
string access_log = 2;public MongoProxy.Builder clearAccessLog()
The optional path to use for writing Mongo access logs. If not access log path is specified no access logs will be written. Note that access log is also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
string access_log = 2;public MongoProxy.Builder setAccessLogBytes(com.google.protobuf.ByteString value)
The optional path to use for writing Mongo access logs. If not access log path is specified no access logs will be written. Note that access log is also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
string access_log = 2;public boolean hasDelay()
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;hasDelay in interface MongoProxyOrBuilderpublic FaultDelay getDelay()
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;getDelay in interface MongoProxyOrBuilderpublic MongoProxy.Builder setDelay(FaultDelay value)
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;public MongoProxy.Builder setDelay(FaultDelay.Builder builderForValue)
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;public MongoProxy.Builder mergeDelay(FaultDelay value)
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;public MongoProxy.Builder clearDelay()
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;public FaultDelay.Builder getDelayBuilder()
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;public FaultDelayOrBuilder getDelayOrBuilder()
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;getDelayOrBuilder in interface MongoProxyOrBuilderpublic boolean getEmitDynamicMetadata()
Flag to specify whether :ref:`dynamic metadata <config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted. Defaults to false.
bool emit_dynamic_metadata = 4;getEmitDynamicMetadata in interface MongoProxyOrBuilderpublic MongoProxy.Builder setEmitDynamicMetadata(boolean value)
Flag to specify whether :ref:`dynamic metadata <config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted. Defaults to false.
bool emit_dynamic_metadata = 4;public MongoProxy.Builder clearEmitDynamicMetadata()
Flag to specify whether :ref:`dynamic metadata <config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted. Defaults to false.
bool emit_dynamic_metadata = 4;public com.google.protobuf.ProtocolStringList getCommandsList()
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;getCommandsList in interface MongoProxyOrBuilderpublic int getCommandsCount()
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;getCommandsCount in interface MongoProxyOrBuilderpublic String getCommands(int index)
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;getCommands in interface MongoProxyOrBuilderpublic com.google.protobuf.ByteString getCommandsBytes(int index)
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;getCommandsBytes in interface MongoProxyOrBuilderpublic MongoProxy.Builder setCommands(int index, String value)
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;public MongoProxy.Builder addCommands(String value)
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;public MongoProxy.Builder addAllCommands(Iterable<String> values)
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;public MongoProxy.Builder clearCommands()
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;public MongoProxy.Builder addCommandsBytes(com.google.protobuf.ByteString value)
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;public final MongoProxy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>public final MongoProxy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MongoProxy.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.