Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/extensions/common/tap/v3/common.proto
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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommonExtensionConfig(
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.extensions.common.tap.v3.AdminConfig.Builder subBuilder = null;
if (configTypeCase_ == 1) {
subBuilder = ((io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_).toBuilder();
}
configType_ =
input.readMessage(io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.extensions.common.tap.v3.AdminConfig) configType_);
configType_ = subBuilder.buildPartial();
}
configTypeCase_ = 1;
break;
}
case 18: {
io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder subBuilder = null;
if (configTypeCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_).toBuilder();
}
configType_ =
input.readMessage(io.envoyproxy.envoy.config.tap.v3.TapConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_);
configType_ = subBuilder.buildPartial();
}
configTypeCase_ = 2;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.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;
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_);
}
unknownFields.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 += 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.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 (!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();
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) + unknownFields.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() {
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();
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 (configTypeCase_ == 1) {
if (adminConfigBuilder_ == null) {
result.configType_ = configType_;
} else {
result.configType_ = adminConfigBuilder_.build();
}
}
if (configTypeCase_ == 2) {
if (staticConfigBuilder_ == null) {
result.configType_ = configType_;
} else {
result.configType_ = staticConfigBuilder_.build();
}
}
result.configTypeCase_ = configTypeCase_;
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.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.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.extensions.common.tap.v3.CommonExtensionConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 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.
*