All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.service.tap.v3alpha.TapConfig Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/tap/v3alpha/common.proto

package io.envoyproxy.envoy.service.tap.v3alpha;

/**
 * 
 * Tap configuration.
 * 
* * Protobuf type {@code envoy.service.tap.v3alpha.TapConfig} */ public final class TapConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.tap.v3alpha.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TapConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate.Builder subBuilder = null; if (matchConfig_ != null) { subBuilder = matchConfig_.toBuilder(); } matchConfig_ = input.readMessage(io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(matchConfig_); matchConfig_ = subBuilder.buildPartial(); } break; } case 18: { io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig.Builder subBuilder = null; if (outputConfig_ != null) { subBuilder = outputConfig_.toBuilder(); } outputConfig_ = input.readMessage(io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(outputConfig_); outputConfig_ = subBuilder.buildPartial(); } break; } case 26: { io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent.Builder subBuilder = null; if (tapEnabled_ != null) { subBuilder = tapEnabled_.toBuilder(); } tapEnabled_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tapEnabled_); tapEnabled_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.tap.v3alpha.CommonProto.internal_static_envoy_service_tap_v3alpha_TapConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.tap.v3alpha.CommonProto.internal_static_envoy_service_tap_v3alpha_TapConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.class, io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.Builder.class); } public static final int MATCH_CONFIG_FIELD_NUMBER = 1; private io.envoyproxy.envoy.service.tap.v3alpha.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.
   * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public boolean hasMatchConfig() { return matchConfig_ != null; } /** *
   * The match configuration. If the configuration matches the data source being tapped, a tap will
   * occur, with the result written to the configured output.
   * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate getMatchConfig() { return matchConfig_ == null ? io.envoyproxy.envoy.service.tap.v3alpha.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.
   * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicateOrBuilder getMatchConfigOrBuilder() { return getMatchConfig(); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public boolean hasOutputConfig() { return outputConfig_ != null; } /** *
   * 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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig getOutputConfig() { return outputConfig_ == null ? io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.OutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int TAP_ENABLED_FIELD_NUMBER = 3; private io.envoyproxy.envoy.api.v3alpha.core.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_api_enum_type.FractionalPercent.DenominatorType>`.
   * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public boolean hasTapEnabled() { return tapEnabled_ != null; } /** *
   * [#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_api_enum_type.FractionalPercent.DenominatorType>`.
   * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent getTapEnabled() { return tapEnabled_ == null ? io.envoyproxy.envoy.api.v3alpha.core.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_api_enum_type.FractionalPercent.DenominatorType>`.
   * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercentOrBuilder getTapEnabledOrBuilder() { return getTapEnabled(); } 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 (matchConfig_ != null) { output.writeMessage(1, getMatchConfig()); } if (outputConfig_ != null) { output.writeMessage(2, getOutputConfig()); } if (tapEnabled_ != null) { output.writeMessage(3, getTapEnabled()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (matchConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMatchConfig()); } if (outputConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOutputConfig()); } if (tapEnabled_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTapEnabled()); } size += unknownFields.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.service.tap.v3alpha.TapConfig)) { return super.equals(obj); } io.envoyproxy.envoy.service.tap.v3alpha.TapConfig other = (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) obj; if (hasMatchConfig() != other.hasMatchConfig()) return false; if (hasMatchConfig()) { if (!getMatchConfig() .equals(other.getMatchConfig())) 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 (!unknownFields.equals(other.unknownFields)) 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 (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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.tap.v3alpha.TapConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.TapConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.TapConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v3alpha.TapConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.tap.v3alpha.TapConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.TapConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.TapConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.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.service.tap.v3alpha.TapConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.tap.v3alpha.TapConfig) io.envoyproxy.envoy.service.tap.v3alpha.TapConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.tap.v3alpha.CommonProto.internal_static_envoy_service_tap_v3alpha_TapConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.tap.v3alpha.CommonProto.internal_static_envoy_service_tap_v3alpha_TapConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.class, io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.Builder.class); } // Construct using io.envoyproxy.envoy.service.tap.v3alpha.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) { } } @java.lang.Override public Builder clear() { super.clear(); if (matchConfigBuilder_ == null) { matchConfig_ = null; } else { matchConfig_ = null; matchConfigBuilder_ = null; } if (outputConfigBuilder_ == null) { outputConfig_ = null; } else { outputConfig_ = null; outputConfigBuilder_ = null; } if (tapEnabledBuilder_ == null) { tapEnabled_ = null; } else { tapEnabled_ = null; tapEnabledBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.tap.v3alpha.CommonProto.internal_static_envoy_service_tap_v3alpha_TapConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.tap.v3alpha.TapConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.tap.v3alpha.TapConfig build() { io.envoyproxy.envoy.service.tap.v3alpha.TapConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.tap.v3alpha.TapConfig buildPartial() { io.envoyproxy.envoy.service.tap.v3alpha.TapConfig result = new io.envoyproxy.envoy.service.tap.v3alpha.TapConfig(this); if (matchConfigBuilder_ == null) { result.matchConfig_ = matchConfig_; } else { result.matchConfig_ = matchConfigBuilder_.build(); } if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { result.outputConfig_ = outputConfigBuilder_.build(); } if (tapEnabledBuilder_ == null) { result.tapEnabled_ = tapEnabled_; } else { result.tapEnabled_ = tapEnabledBuilder_.build(); } onBuilt(); return result; } @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.service.tap.v3alpha.TapConfig) { return mergeFrom((io.envoyproxy.envoy.service.tap.v3alpha.TapConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.tap.v3alpha.TapConfig other) { if (other == io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance()) return this; if (other.hasMatchConfig()) { mergeMatchConfig(other.getMatchConfig()); } if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } if (other.hasTapEnabled()) { mergeTapEnabled(other.getTapEnabled()); } this.mergeUnknownFields(other.unknownFields); 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 { io.envoyproxy.envoy.service.tap.v3alpha.TapConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate matchConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate, io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate.Builder, io.envoyproxy.envoy.service.tap.v3alpha.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.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public boolean hasMatchConfig() { return matchConfigBuilder_ != null || matchConfig_ != null; } /** *
     * The match configuration. If the configuration matches the data source being tapped, a tap will
     * occur, with the result written to the configured output.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate getMatchConfig() { if (matchConfigBuilder_ == null) { return matchConfig_ == null ? io.envoyproxy.envoy.service.tap.v3alpha.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.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public Builder setMatchConfig(io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate value) { if (matchConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matchConfig_ = value; onChanged(); } else { matchConfigBuilder_.setMessage(value); } 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.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public Builder setMatchConfig( io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate.Builder builderForValue) { if (matchConfigBuilder_ == null) { matchConfig_ = builderForValue.build(); onChanged(); } else { matchConfigBuilder_.setMessage(builderForValue.build()); } 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.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public Builder mergeMatchConfig(io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate value) { if (matchConfigBuilder_ == null) { if (matchConfig_ != null) { matchConfig_ = io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate.newBuilder(matchConfig_).mergeFrom(value).buildPartial(); } else { matchConfig_ = value; } onChanged(); } else { matchConfigBuilder_.mergeFrom(value); } 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.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public Builder clearMatchConfig() { if (matchConfigBuilder_ == null) { matchConfig_ = null; onChanged(); } else { matchConfig_ = null; matchConfigBuilder_ = null; } 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.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate.Builder getMatchConfigBuilder() { 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.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicateOrBuilder getMatchConfigOrBuilder() { if (matchConfigBuilder_ != null) { return matchConfigBuilder_.getMessageOrBuilder(); } else { return matchConfig_ == null ? io.envoyproxy.envoy.service.tap.v3alpha.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.
     * 
* * .envoy.service.tap.v3alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate, io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate.Builder, io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicateOrBuilder> getMatchConfigFieldBuilder() { if (matchConfigBuilder_ == null) { matchConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate, io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicate.Builder, io.envoyproxy.envoy.service.tap.v3alpha.MatchPredicateOrBuilder>( getMatchConfig(), getParentForChildren(), isClean()); matchConfig_ = null; } return matchConfigBuilder_; } private io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig, io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig.Builder, io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** *
     * 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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { return outputConfig_ == null ? io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public Builder setOutputConfig(io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } outputConfig_ = value; onChanged(); } else { outputConfigBuilder_.setMessage(value); } 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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public Builder setOutputConfig( io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); } else { outputConfigBuilder_.setMessage(builderForValue.build()); } 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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public Builder mergeOutputConfig(io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } onChanged(); } else { outputConfigBuilder_.mergeFrom(value); } 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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { outputConfig_ = null; onChanged(); } else { outputConfig_ = null; outputConfigBuilder_ = null; } 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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig.Builder getOutputConfigBuilder() { 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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v3alpha.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { return outputConfig_ == null ? io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig, io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig.Builder, io.envoyproxy.envoy.service.tap.v3alpha.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig, io.envoyproxy.envoy.service.tap.v3alpha.OutputConfig.Builder, io.envoyproxy.envoy.service.tap.v3alpha.OutputConfigOrBuilder>( getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent tapEnabled_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent, io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent.Builder, io.envoyproxy.envoy.api.v3alpha.core.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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public boolean hasTapEnabled() { return tapEnabledBuilder_ != null || tapEnabled_ != null; } /** *
     * [#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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent getTapEnabled() { if (tapEnabledBuilder_ == null) { return tapEnabled_ == null ? io.envoyproxy.envoy.api.v3alpha.core.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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public Builder setTapEnabled(io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent value) { if (tapEnabledBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tapEnabled_ = value; onChanged(); } else { tapEnabledBuilder_.setMessage(value); } 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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public Builder setTapEnabled( io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent.Builder builderForValue) { if (tapEnabledBuilder_ == null) { tapEnabled_ = builderForValue.build(); onChanged(); } else { tapEnabledBuilder_.setMessage(builderForValue.build()); } 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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public Builder mergeTapEnabled(io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent value) { if (tapEnabledBuilder_ == null) { if (tapEnabled_ != null) { tapEnabled_ = io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent.newBuilder(tapEnabled_).mergeFrom(value).buildPartial(); } else { tapEnabled_ = value; } onChanged(); } else { tapEnabledBuilder_.mergeFrom(value); } 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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public Builder clearTapEnabled() { if (tapEnabledBuilder_ == null) { tapEnabled_ = null; onChanged(); } else { tapEnabled_ = null; tapEnabledBuilder_ = null; } 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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent.Builder getTapEnabledBuilder() { 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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ public io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercentOrBuilder getTapEnabledOrBuilder() { if (tapEnabledBuilder_ != null) { return tapEnabledBuilder_.getMessageOrBuilder(); } else { return tapEnabled_ == null ? io.envoyproxy.envoy.api.v3alpha.core.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_api_enum_type.FractionalPercent.DenominatorType>`.
     * 
* * .envoy.api.v3alpha.core.RuntimeFractionalPercent tap_enabled = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent, io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent.Builder, io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercentOrBuilder> getTapEnabledFieldBuilder() { if (tapEnabledBuilder_ == null) { tapEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent, io.envoyproxy.envoy.api.v3alpha.core.RuntimeFractionalPercent.Builder, io.envoyproxy.envoy.api.v3alpha.core.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.service.tap.v3alpha.TapConfig) } // @@protoc_insertion_point(class_scope:envoy.service.tap.v3alpha.TapConfig) private static final io.envoyproxy.envoy.service.tap.v3alpha.TapConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.tap.v3alpha.TapConfig(); } public static io.envoyproxy.envoy.service.tap.v3alpha.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 { return new TapConfig(input, extensionRegistry); } }; 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.service.tap.v3alpha.TapConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy