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/config/common/tap/v2alpha/common.proto
package io.envoyproxy.envoy.config.common.tap.v2alpha;
/**
*
* Common configuration for all tap extensions.
*
*
* Protobuf type {@code envoy.config.common.tap.v2alpha.CommonExtensionConfig}
*/
public final class CommonExtensionConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.AdminConfig.Builder subBuilder = null;
if (configTypeCase_ == 1) {
subBuilder = ((io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig) configType_).toBuilder();
}
configType_ =
input.readMessage(io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig) configType_);
configType_ = subBuilder.buildPartial();
}
configTypeCase_ = 1;
break;
}
case 18: {
io.envoyproxy.envoy.service.tap.v2alpha.TapConfig.Builder subBuilder = null;
if (configTypeCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.TapConfig) configType_).toBuilder();
}
configType_ =
input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.TapConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.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.config.common.tap.v2alpha.CommonProto.internal_static_envoy_config_common_tap_v2alpha_CommonExtensionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.common.tap.v2alpha.CommonProto.internal_static_envoy_config_common_tap_v2alpha_CommonExtensionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig.class, io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.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.config.common.tap.v2alpha.AdminConfig admin_config = 1;
* @return The adminConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig getAdminConfig() {
if (configTypeCase_ == 1) {
return (io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig) configType_;
}
return io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig.getDefaultInstance();
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.config.common.tap.v2alpha.AdminConfig admin_config = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfigOrBuilder getAdminConfigOrBuilder() {
if (configTypeCase_ == 1) {
return (io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig) configType_;
}
return io.envoyproxy.envoy.config.common.tap.v2alpha.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.service.tap.v2alpha.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.service.tap.v2alpha.TapConfig static_config = 2;
* @return The staticConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.TapConfig getStaticConfig() {
if (configTypeCase_ == 2) {
return (io.envoyproxy.envoy.service.tap.v2alpha.TapConfig) configType_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.TapConfig.getDefaultInstance();
}
/**
*
* If specified, the tap filter will be configured via a static configuration that cannot be
* changed.
*
*
* .envoy.service.tap.v2alpha.TapConfig static_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.TapConfigOrBuilder getStaticConfigOrBuilder() {
if (configTypeCase_ == 2) {
return (io.envoyproxy.envoy.service.tap.v2alpha.TapConfig) configType_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.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.config.common.tap.v2alpha.AdminConfig) configType_);
}
if (configTypeCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.service.tap.v2alpha.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.config.common.tap.v2alpha.AdminConfig) configType_);
}
if (configTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.service.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig other = (io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.common.tap.v2alpha.CommonExtensionConfig)
io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.common.tap.v2alpha.CommonProto.internal_static_envoy_config_common_tap_v2alpha_CommonExtensionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.common.tap.v2alpha.CommonProto.internal_static_envoy_config_common_tap_v2alpha_CommonExtensionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig.class, io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonProto.internal_static_envoy_config_common_tap_v2alpha_CommonExtensionConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig build() {
io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig buildPartial() {
io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig result = new io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig) {
return mergeFrom((io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.common.tap.v2alpha.CommonExtensionConfig other) {
if (other == io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.CommonExtensionConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.AdminConfig, io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig.Builder, io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfigOrBuilder> adminConfigBuilder_;
/**
*
* If specified, the tap filter will be configured via an admin handler.
*
*
* .envoy.config.common.tap.v2alpha.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.config.common.tap.v2alpha.AdminConfig admin_config = 1;
* @return The adminConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig getAdminConfig() {
if (adminConfigBuilder_ == null) {
if (configTypeCase_ == 1) {
return (io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig) configType_;
}
return io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig.getDefaultInstance();
} else {
if (configTypeCase_ == 1) {
return adminConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.common.tap.v2alpha.AdminConfig.getDefaultInstance();
}
}
/**
*
* If specified, the tap filter will be configured via an admin handler.
*