
io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/extensions/common/tap/v3/common.proto
// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.extensions.common.tap.v3;
/**
*
* Common configuration for all tap extensions.
*
*
* Protobuf type {@code envoy.extensions.common.tap.v3.CommonExtensionConfig}
*/
public final class CommonExtensionConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.extensions.common.tap.v3.CommonExtensionConfig)
CommonExtensionConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommonExtensionConfig.newBuilder() to construct.
private CommonExtensionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommonExtensionConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CommonExtensionConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.extensions.common.tap.v3.CommonProto.internal_static_envoy_extensions_common_tap_v3_CommonExtensionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.extensions.common.tap.v3.CommonProto.internal_static_envoy_extensions_common_tap_v3_CommonExtensionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig.class, io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig.Builder.class);
}
private int configTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object configType_;
public enum ConfigTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ADMIN_CONFIG(1),
STATIC_CONFIG(2),
CONFIGTYPE_NOT_SET(0);
private final int value;
private ConfigTypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfigTypeCase valueOf(int value) {
return forNumber(value);
}
public static ConfigTypeCase forNumber(int value) {
switch (value) {
case 1: return ADMIN_CONFIG;
case 2: return STATIC_CONFIG;
case 0: return CONFIGTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ConfigTypeCase
getConfigTypeCase() {
return ConfigTypeCase.forNumber(
configTypeCase_);
}
public static final int ADMIN_CONFIG_FIELD_NUMBER = 1;
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
* @return Whether the adminConfig field is set.
*/
@java.lang.Override
public boolean hasAdminConfig() {
return configTypeCase_ == 1;
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
* @return The adminConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig getAdminConfig() {
if (configTypeCase_ == 1) {
return (io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_;
}
return io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.getDefaultInstance();
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfigOrBuilder getAdminConfigOrBuilder() {
if (configTypeCase_ == 1) {
return (io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_;
}
return io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.getDefaultInstance();
}
public static final int STATIC_CONFIG_FIELD_NUMBER = 2;
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
* @return Whether the staticConfig field is set.
*/
@java.lang.Override
public boolean hasStaticConfig() {
return configTypeCase_ == 2;
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
* @return The staticConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.TapConfig getStaticConfig() {
if (configTypeCase_ == 2) {
return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;
}
return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder getStaticConfigOrBuilder() {
if (configTypeCase_ == 2) {
return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;
}
return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();
}
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 (configTypeCase_ == 1) {
output.writeMessage(1, (io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_);
}
if (configTypeCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (configTypeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_);
}
if (configTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_);
}
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.extensions.common.tap.v3.CommonExtensionConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig other = (io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig) obj;
if (!getConfigTypeCase().equals(other.getConfigTypeCase())) return false;
switch (configTypeCase_) {
case 1:
if (!getAdminConfig()
.equals(other.getAdminConfig())) return false;
break;
case 2:
if (!getStaticConfig()
.equals(other.getStaticConfig())) return false;
break;
case 0:
default:
}
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();
switch (configTypeCase_) {
case 1:
hash = (37 * hash) + ADMIN_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getAdminConfig().hashCode();
break;
case 2:
hash = (37 * hash) + STATIC_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getStaticConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig 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.extensions.common.tap.v3.CommonExtensionConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig 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.extensions.common.tap.v3.CommonExtensionConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig 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.extensions.common.tap.v3.CommonExtensionConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig 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.extensions.common.tap.v3.CommonExtensionConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig 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.extensions.common.tap.v3.CommonExtensionConfig 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;
}
/**
*
* Common configuration for all tap extensions.
*
*
* Protobuf type {@code envoy.extensions.common.tap.v3.CommonExtensionConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.extensions.common.tap.v3.CommonExtensionConfig)
io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.extensions.common.tap.v3.CommonProto.internal_static_envoy_extensions_common_tap_v3_CommonExtensionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.extensions.common.tap.v3.CommonProto.internal_static_envoy_extensions_common_tap_v3_CommonExtensionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig.class, io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (adminConfigBuilder_ != null) {
adminConfigBuilder_.clear();
}
if (staticConfigBuilder_ != null) {
staticConfigBuilder_.clear();
}
configTypeCase_ = 0;
configType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.extensions.common.tap.v3.CommonProto.internal_static_envoy_extensions_common_tap_v3_CommonExtensionConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig build() {
io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig buildPartial() {
io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig result = new io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig result) {
result.configTypeCase_ = configTypeCase_;
result.configType_ = this.configType_;
if (configTypeCase_ == 1 &&
adminConfigBuilder_ != null) {
result.configType_ = adminConfigBuilder_.build();
}
if (configTypeCase_ == 2 &&
staticConfigBuilder_ != null) {
result.configType_ = staticConfigBuilder_.build();
}
}
@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.extensions.common.tap.v3.CommonExtensionConfig) {
return mergeFrom((io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig other) {
if (other == io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig.getDefaultInstance()) return this;
switch (other.getConfigTypeCase()) {
case ADMIN_CONFIG: {
mergeAdminConfig(other.getAdminConfig());
break;
}
case STATIC_CONFIG: {
mergeStaticConfig(other.getStaticConfig());
break;
}
case CONFIGTYPE_NOT_SET: {
break;
}
}
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(
getAdminConfigFieldBuilder().getBuilder(),
extensionRegistry);
configTypeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getStaticConfigFieldBuilder().getBuilder(),
extensionRegistry);
configTypeCase_ = 2;
break;
} // case 18
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 configTypeCase_ = 0;
private java.lang.Object configType_;
public ConfigTypeCase
getConfigTypeCase() {
return ConfigTypeCase.forNumber(
configTypeCase_);
}
public Builder clearConfigType() {
configTypeCase_ = 0;
configType_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig, io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.Builder, io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfigOrBuilder> adminConfigBuilder_;
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
* @return Whether the adminConfig field is set.
*/
@java.lang.Override
public boolean hasAdminConfig() {
return configTypeCase_ == 1;
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
* @return The adminConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig getAdminConfig() {
if (adminConfigBuilder_ == null) {
if (configTypeCase_ == 1) {
return (io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_;
}
return io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.getDefaultInstance();
} else {
if (configTypeCase_ == 1) {
return adminConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.getDefaultInstance();
}
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
*/
public Builder setAdminConfig(io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig value) {
if (adminConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
configType_ = value;
onChanged();
} else {
adminConfigBuilder_.setMessage(value);
}
configTypeCase_ = 1;
return this;
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
*/
public Builder setAdminConfig(
io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.Builder builderForValue) {
if (adminConfigBuilder_ == null) {
configType_ = builderForValue.build();
onChanged();
} else {
adminConfigBuilder_.setMessage(builderForValue.build());
}
configTypeCase_ = 1;
return this;
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
*/
public Builder mergeAdminConfig(io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig value) {
if (adminConfigBuilder_ == null) {
if (configTypeCase_ == 1 &&
configType_ != io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.getDefaultInstance()) {
configType_ = io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.newBuilder((io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_)
.mergeFrom(value).buildPartial();
} else {
configType_ = value;
}
onChanged();
} else {
if (configTypeCase_ == 1) {
adminConfigBuilder_.mergeFrom(value);
} else {
adminConfigBuilder_.setMessage(value);
}
}
configTypeCase_ = 1;
return this;
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
*/
public Builder clearAdminConfig() {
if (adminConfigBuilder_ == null) {
if (configTypeCase_ == 1) {
configTypeCase_ = 0;
configType_ = null;
onChanged();
}
} else {
if (configTypeCase_ == 1) {
configTypeCase_ = 0;
configType_ = null;
}
adminConfigBuilder_.clear();
}
return this;
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
*/
public io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.Builder getAdminConfigBuilder() {
return getAdminConfigFieldBuilder().getBuilder();
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfigOrBuilder getAdminConfigOrBuilder() {
if ((configTypeCase_ == 1) && (adminConfigBuilder_ != null)) {
return adminConfigBuilder_.getMessageOrBuilder();
} else {
if (configTypeCase_ == 1) {
return (io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_;
}
return io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.getDefaultInstance();
}
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.extensions.common.tap.v3.AdminConfig admin_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig, io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.Builder, io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfigOrBuilder>
getAdminConfigFieldBuilder() {
if (adminConfigBuilder_ == null) {
if (!(configTypeCase_ == 1)) {
configType_ = io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.getDefaultInstance();
}
adminConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig, io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.Builder, io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfigOrBuilder>(
(io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_,
getParentForChildren(),
isClean());
configType_ = null;
}
configTypeCase_ = 1;
onChanged();
return adminConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder> staticConfigBuilder_;
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
* @return Whether the staticConfig field is set.
*/
@java.lang.Override
public boolean hasStaticConfig() {
return configTypeCase_ == 2;
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
* @return The staticConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.TapConfig getStaticConfig() {
if (staticConfigBuilder_ == null) {
if (configTypeCase_ == 2) {
return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;
}
return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();
} else {
if (configTypeCase_ == 2) {
return staticConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();
}
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
*/
public Builder setStaticConfig(io.envoyproxy.envoy.config.tap.v3.TapConfig value) {
if (staticConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
configType_ = value;
onChanged();
} else {
staticConfigBuilder_.setMessage(value);
}
configTypeCase_ = 2;
return this;
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
*/
public Builder setStaticConfig(
io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder builderForValue) {
if (staticConfigBuilder_ == null) {
configType_ = builderForValue.build();
onChanged();
} else {
staticConfigBuilder_.setMessage(builderForValue.build());
}
configTypeCase_ = 2;
return this;
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
*/
public Builder mergeStaticConfig(io.envoyproxy.envoy.config.tap.v3.TapConfig value) {
if (staticConfigBuilder_ == null) {
if (configTypeCase_ == 2 &&
configType_ != io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance()) {
configType_ = io.envoyproxy.envoy.config.tap.v3.TapConfig.newBuilder((io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_)
.mergeFrom(value).buildPartial();
} else {
configType_ = value;
}
onChanged();
} else {
if (configTypeCase_ == 2) {
staticConfigBuilder_.mergeFrom(value);
} else {
staticConfigBuilder_.setMessage(value);
}
}
configTypeCase_ = 2;
return this;
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
*/
public Builder clearStaticConfig() {
if (staticConfigBuilder_ == null) {
if (configTypeCase_ == 2) {
configTypeCase_ = 0;
configType_ = null;
onChanged();
}
} else {
if (configTypeCase_ == 2) {
configTypeCase_ = 0;
configType_ = null;
}
staticConfigBuilder_.clear();
}
return this;
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
*/
public io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder getStaticConfigBuilder() {
return getStaticConfigFieldBuilder().getBuilder();
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder getStaticConfigOrBuilder() {
if ((configTypeCase_ == 2) && (staticConfigBuilder_ != null)) {
return staticConfigBuilder_.getMessageOrBuilder();
} else {
if (configTypeCase_ == 2) {
return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;
}
return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();
}
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.config.tap.v3.TapConfig static_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder>
getStaticConfigFieldBuilder() {
if (staticConfigBuilder_ == null) {
if (!(configTypeCase_ == 2)) {
configType_ = io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();
}
staticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder>(
(io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_,
getParentForChildren(),
isClean());
configType_ = null;
}
configTypeCase_ = 2;
onChanged();
return staticConfigBuilder_;
}
@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.extensions.common.tap.v3.CommonExtensionConfig)
}
// @@protoc_insertion_point(class_scope:envoy.extensions.common.tap.v3.CommonExtensionConfig)
private static final io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig();
}
public static io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommonExtensionConfig 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.extensions.common.tap.v3.CommonExtensionConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy