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

io.envoyproxy.envoy.extensions.common.tap.v3.CommonExtensionConfig 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/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.
     * 
* * .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 { return new CommonExtensionConfig(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.extensions.common.tap.v3.CommonExtensionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy