
io.envoyproxy.envoy.config.tap.v3.TapConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/tap/v3/common.proto
// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.config.tap.v3;
/**
*
* Tap configuration.
*
*
* Protobuf type {@code envoy.config.tap.v3.TapConfig}
*/
public final class TapConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.tap.v3.TapConfig)
TapConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use TapConfig.newBuilder() to construct.
private TapConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TapConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TapConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_TapConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_TapConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.tap.v3.TapConfig.class, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder.class);
}
private int bitField0_;
public static final int MATCH_CONFIG_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.tap.v3.MatchPredicate matchConfig_;
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.tap.v3.TapConfig.match_config is deprecated.
* See envoy/config/tap/v3/common.proto;l=38
* @return Whether the matchConfig field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasMatchConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.tap.v3.TapConfig.match_config is deprecated.
* See envoy/config/tap/v3/common.proto;l=38
* @return The matchConfig.
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.tap.v3.MatchPredicate getMatchConfig() {
return matchConfig_ == null ? io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance() : matchConfig_;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder getMatchConfigOrBuilder() {
return matchConfig_ == null ? io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance() : matchConfig_;
}
public static final int MATCH_FIELD_NUMBER = 4;
private io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate match_;
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
* @return Whether the match field is set.
*/
@java.lang.Override
public boolean hasMatch() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
* @return The match.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate getMatch() {
return match_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.getDefaultInstance() : match_;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicateOrBuilder getMatchOrBuilder() {
return match_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.getDefaultInstance() : match_;
}
public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.config.tap.v3.OutputConfig outputConfig_;
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
* @return Whether the outputConfig field is set.
*/
@java.lang.Override
public boolean hasOutputConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
* @return The outputConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.OutputConfig getOutputConfig() {
return outputConfig_ == null ? io.envoyproxy.envoy.config.tap.v3.OutputConfig.getDefaultInstance() : outputConfig_;
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() {
return outputConfig_ == null ? io.envoyproxy.envoy.config.tap.v3.OutputConfig.getDefaultInstance() : outputConfig_;
}
public static final int TAP_ENABLED_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent tapEnabled_;
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
* @return Whether the tapEnabled field is set.
*/
@java.lang.Override
public boolean hasTapEnabled() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
* @return The tapEnabled.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent getTapEnabled() {
return tapEnabled_ == null ? io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.getDefaultInstance() : tapEnabled_;
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercentOrBuilder getTapEnabledOrBuilder() {
return tapEnabled_ == null ? io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.getDefaultInstance() : tapEnabled_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMatchConfig());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(2, getOutputConfig());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(3, getTapEnabled());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getMatch());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMatchConfig());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOutputConfig());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTapEnabled());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMatch());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.tap.v3.TapConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.tap.v3.TapConfig other = (io.envoyproxy.envoy.config.tap.v3.TapConfig) obj;
if (hasMatchConfig() != other.hasMatchConfig()) return false;
if (hasMatchConfig()) {
if (!getMatchConfig()
.equals(other.getMatchConfig())) return false;
}
if (hasMatch() != other.hasMatch()) return false;
if (hasMatch()) {
if (!getMatch()
.equals(other.getMatch())) return false;
}
if (hasOutputConfig() != other.hasOutputConfig()) return false;
if (hasOutputConfig()) {
if (!getOutputConfig()
.equals(other.getOutputConfig())) return false;
}
if (hasTapEnabled() != other.hasTapEnabled()) return false;
if (hasTapEnabled()) {
if (!getTapEnabled()
.equals(other.getTapEnabled())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMatchConfig()) {
hash = (37 * hash) + MATCH_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getMatchConfig().hashCode();
}
if (hasMatch()) {
hash = (37 * hash) + MATCH_FIELD_NUMBER;
hash = (53 * hash) + getMatch().hashCode();
}
if (hasOutputConfig()) {
hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getOutputConfig().hashCode();
}
if (hasTapEnabled()) {
hash = (37 * hash) + TAP_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + getTapEnabled().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.config.tap.v3.TapConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Tap configuration.
*
*
* Protobuf type {@code envoy.config.tap.v3.TapConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.tap.v3.TapConfig)
io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_TapConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_TapConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.tap.v3.TapConfig.class, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.tap.v3.TapConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMatchConfigFieldBuilder();
getMatchFieldBuilder();
getOutputConfigFieldBuilder();
getTapEnabledFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
matchConfig_ = null;
if (matchConfigBuilder_ != null) {
matchConfigBuilder_.dispose();
matchConfigBuilder_ = null;
}
match_ = null;
if (matchBuilder_ != null) {
matchBuilder_.dispose();
matchBuilder_ = null;
}
outputConfig_ = null;
if (outputConfigBuilder_ != null) {
outputConfigBuilder_.dispose();
outputConfigBuilder_ = null;
}
tapEnabled_ = null;
if (tapEnabledBuilder_ != null) {
tapEnabledBuilder_.dispose();
tapEnabledBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_TapConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.TapConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.TapConfig build() {
io.envoyproxy.envoy.config.tap.v3.TapConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.TapConfig buildPartial() {
io.envoyproxy.envoy.config.tap.v3.TapConfig result = new io.envoyproxy.envoy.config.tap.v3.TapConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.tap.v3.TapConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.matchConfig_ = matchConfigBuilder_ == null
? matchConfig_
: matchConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.match_ = matchBuilder_ == null
? match_
: matchBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.outputConfig_ = outputConfigBuilder_ == null
? outputConfig_
: outputConfigBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.tapEnabled_ = tapEnabledBuilder_ == null
? tapEnabled_
: tapEnabledBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.tap.v3.TapConfig) {
return mergeFrom((io.envoyproxy.envoy.config.tap.v3.TapConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.tap.v3.TapConfig other) {
if (other == io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance()) return this;
if (other.hasMatchConfig()) {
mergeMatchConfig(other.getMatchConfig());
}
if (other.hasMatch()) {
mergeMatch(other.getMatch());
}
if (other.hasOutputConfig()) {
mergeOutputConfig(other.getOutputConfig());
}
if (other.hasTapEnabled()) {
mergeTapEnabled(other.getTapEnabled());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getMatchConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getOutputConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 18
case 26: {
input.readMessage(
getTapEnabledFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 26
case 34: {
input.readMessage(
getMatchFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.config.tap.v3.MatchPredicate matchConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder> matchConfigBuilder_;
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.tap.v3.TapConfig.match_config is deprecated.
* See envoy/config/tap/v3/common.proto;l=38
* @return Whether the matchConfig field is set.
*/
@java.lang.Deprecated public boolean hasMatchConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.tap.v3.TapConfig.match_config is deprecated.
* See envoy/config/tap/v3/common.proto;l=38
* @return The matchConfig.
*/
@java.lang.Deprecated public io.envoyproxy.envoy.config.tap.v3.MatchPredicate getMatchConfig() {
if (matchConfigBuilder_ == null) {
return matchConfig_ == null ? io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance() : matchConfig_;
} else {
return matchConfigBuilder_.getMessage();
}
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder setMatchConfig(io.envoyproxy.envoy.config.tap.v3.MatchPredicate value) {
if (matchConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
matchConfig_ = value;
} else {
matchConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder setMatchConfig(
io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder builderForValue) {
if (matchConfigBuilder_ == null) {
matchConfig_ = builderForValue.build();
} else {
matchConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder mergeMatchConfig(io.envoyproxy.envoy.config.tap.v3.MatchPredicate value) {
if (matchConfigBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
matchConfig_ != null &&
matchConfig_ != io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance()) {
getMatchConfigBuilder().mergeFrom(value);
} else {
matchConfig_ = value;
}
} else {
matchConfigBuilder_.mergeFrom(value);
}
if (matchConfig_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder clearMatchConfig() {
bitField0_ = (bitField0_ & ~0x00000001);
matchConfig_ = null;
if (matchConfigBuilder_ != null) {
matchConfigBuilder_.dispose();
matchConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder getMatchConfigBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMatchConfigFieldBuilder().getBuilder();
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder getMatchConfigOrBuilder() {
if (matchConfigBuilder_ != null) {
return matchConfigBuilder_.getMessageOrBuilder();
} else {
return matchConfig_ == null ?
io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance() : matchConfig_;
}
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.tap.v3.MatchPredicate match_config = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder>
getMatchConfigFieldBuilder() {
if (matchConfigBuilder_ == null) {
matchConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder>(
getMatchConfig(),
getParentForChildren(),
isClean());
matchConfig_ = null;
}
return matchConfigBuilder_;
}
private io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate match_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate, io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicateOrBuilder> matchBuilder_;
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
* @return Whether the match field is set.
*/
public boolean hasMatch() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
* @return The match.
*/
public io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate getMatch() {
if (matchBuilder_ == null) {
return match_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.getDefaultInstance() : match_;
} else {
return matchBuilder_.getMessage();
}
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
*/
public Builder setMatch(io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate value) {
if (matchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
match_ = value;
} else {
matchBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
*/
public Builder setMatch(
io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.Builder builderForValue) {
if (matchBuilder_ == null) {
match_ = builderForValue.build();
} else {
matchBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
*/
public Builder mergeMatch(io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate value) {
if (matchBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
match_ != null &&
match_ != io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.getDefaultInstance()) {
getMatchBuilder().mergeFrom(value);
} else {
match_ = value;
}
} else {
matchBuilder_.mergeFrom(value);
}
if (match_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
*/
public Builder clearMatch() {
bitField0_ = (bitField0_ & ~0x00000002);
match_ = null;
if (matchBuilder_ != null) {
matchBuilder_.dispose();
matchBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
*/
public io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.Builder getMatchBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMatchFieldBuilder().getBuilder();
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
*/
public io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicateOrBuilder getMatchOrBuilder() {
if (matchBuilder_ != null) {
return matchBuilder_.getMessageOrBuilder();
} else {
return match_ == null ?
io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.getDefaultInstance() : match_;
}
}
/**
*
* The match configuration. If the configuration matches the data source being tapped, a tap will
* occur, with the result written to the configured output.
* Exactly one of :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` and
* :ref:`match_config <envoy_v3_api_field_config.tap.v3.TapConfig.match_config>` must be set. If both
* are set, the :ref:`match <envoy_v3_api_field_config.tap.v3.TapConfig.match>` will be used.
*
*
* .envoy.config.common.matcher.v3.MatchPredicate match = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate, io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicateOrBuilder>
getMatchFieldBuilder() {
if (matchBuilder_ == null) {
matchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate, io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.MatchPredicateOrBuilder>(
getMatch(),
getParentForChildren(),
isClean());
match_ = null;
}
return matchBuilder_;
}
private io.envoyproxy.envoy.config.tap.v3.OutputConfig outputConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.OutputConfig, io.envoyproxy.envoy.config.tap.v3.OutputConfig.Builder, io.envoyproxy.envoy.config.tap.v3.OutputConfigOrBuilder> outputConfigBuilder_;
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
* @return Whether the outputConfig field is set.
*/
public boolean hasOutputConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
* @return The outputConfig.
*/
public io.envoyproxy.envoy.config.tap.v3.OutputConfig getOutputConfig() {
if (outputConfigBuilder_ == null) {
return outputConfig_ == null ? io.envoyproxy.envoy.config.tap.v3.OutputConfig.getDefaultInstance() : outputConfig_;
} else {
return outputConfigBuilder_.getMessage();
}
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
*/
public Builder setOutputConfig(io.envoyproxy.envoy.config.tap.v3.OutputConfig value) {
if (outputConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputConfig_ = value;
} else {
outputConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
*/
public Builder setOutputConfig(
io.envoyproxy.envoy.config.tap.v3.OutputConfig.Builder builderForValue) {
if (outputConfigBuilder_ == null) {
outputConfig_ = builderForValue.build();
} else {
outputConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
*/
public Builder mergeOutputConfig(io.envoyproxy.envoy.config.tap.v3.OutputConfig value) {
if (outputConfigBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
outputConfig_ != null &&
outputConfig_ != io.envoyproxy.envoy.config.tap.v3.OutputConfig.getDefaultInstance()) {
getOutputConfigBuilder().mergeFrom(value);
} else {
outputConfig_ = value;
}
} else {
outputConfigBuilder_.mergeFrom(value);
}
if (outputConfig_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
*/
public Builder clearOutputConfig() {
bitField0_ = (bitField0_ & ~0x00000004);
outputConfig_ = null;
if (outputConfigBuilder_ != null) {
outputConfigBuilder_.dispose();
outputConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.tap.v3.OutputConfig.Builder getOutputConfigBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getOutputConfigFieldBuilder().getBuilder();
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.tap.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() {
if (outputConfigBuilder_ != null) {
return outputConfigBuilder_.getMessageOrBuilder();
} else {
return outputConfig_ == null ?
io.envoyproxy.envoy.config.tap.v3.OutputConfig.getDefaultInstance() : outputConfig_;
}
}
/**
*
* The tap output configuration. If a match configuration matches a data source being tapped,
* a tap will occur and the data will be written to the configured output.
*
*
* .envoy.config.tap.v3.OutputConfig output_config = 2 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.OutputConfig, io.envoyproxy.envoy.config.tap.v3.OutputConfig.Builder, io.envoyproxy.envoy.config.tap.v3.OutputConfigOrBuilder>
getOutputConfigFieldBuilder() {
if (outputConfigBuilder_ == null) {
outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.OutputConfig, io.envoyproxy.envoy.config.tap.v3.OutputConfig.Builder, io.envoyproxy.envoy.config.tap.v3.OutputConfigOrBuilder>(
getOutputConfig(),
getParentForChildren(),
isClean());
outputConfig_ = null;
}
return outputConfigBuilder_;
}
private io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent tapEnabled_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent, io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.Builder, io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercentOrBuilder> tapEnabledBuilder_;
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
* @return Whether the tapEnabled field is set.
*/
public boolean hasTapEnabled() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
* @return The tapEnabled.
*/
public io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent getTapEnabled() {
if (tapEnabledBuilder_ == null) {
return tapEnabled_ == null ? io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.getDefaultInstance() : tapEnabled_;
} else {
return tapEnabledBuilder_.getMessage();
}
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
*/
public Builder setTapEnabled(io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent value) {
if (tapEnabledBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tapEnabled_ = value;
} else {
tapEnabledBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
*/
public Builder setTapEnabled(
io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.Builder builderForValue) {
if (tapEnabledBuilder_ == null) {
tapEnabled_ = builderForValue.build();
} else {
tapEnabledBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
*/
public Builder mergeTapEnabled(io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent value) {
if (tapEnabledBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
tapEnabled_ != null &&
tapEnabled_ != io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.getDefaultInstance()) {
getTapEnabledBuilder().mergeFrom(value);
} else {
tapEnabled_ = value;
}
} else {
tapEnabledBuilder_.mergeFrom(value);
}
if (tapEnabled_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
*/
public Builder clearTapEnabled() {
bitField0_ = (bitField0_ & ~0x00000008);
tapEnabled_ = null;
if (tapEnabledBuilder_ != null) {
tapEnabledBuilder_.dispose();
tapEnabledBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
*/
public io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.Builder getTapEnabledBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getTapEnabledFieldBuilder().getBuilder();
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
*/
public io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercentOrBuilder getTapEnabledOrBuilder() {
if (tapEnabledBuilder_ != null) {
return tapEnabledBuilder_.getMessageOrBuilder();
} else {
return tapEnabled_ == null ?
io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.getDefaultInstance() : tapEnabled_;
}
}
/**
*
* [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
* which the tap matching is enabled. When not enabled, the request\connection will not be
* recorded.
*
* .. note::
*
* This field defaults to 100/:ref:`HUNDRED
* <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
*
*
* .envoy.config.core.v3.RuntimeFractionalPercent tap_enabled = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent, io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.Builder, io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercentOrBuilder>
getTapEnabledFieldBuilder() {
if (tapEnabledBuilder_ == null) {
tapEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent, io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.Builder, io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercentOrBuilder>(
getTapEnabled(),
getParentForChildren(),
isClean());
tapEnabled_ = null;
}
return tapEnabledBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.config.tap.v3.TapConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.tap.v3.TapConfig)
private static final io.envoyproxy.envoy.config.tap.v3.TapConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.tap.v3.TapConfig();
}
public static io.envoyproxy.envoy.config.tap.v3.TapConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TapConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.TapConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy