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

io.envoyproxy.envoy.config.common.tap.v3alpha.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/config/common/tap/v3alpha/common.proto

package io.envoyproxy.envoy.config.common.tap.v3alpha;

/**
 * 
 * Common configuration for all tap extensions.
 * 
* * Protobuf type {@code envoy.config.common.tap.v3alpha.CommonExtensionConfig} */ public final class CommonExtensionConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.tap.v3alpha.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.v3alpha.AdminConfig.Builder subBuilder = null; if (configTypeCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig) configType_).toBuilder(); } configType_ = input.readMessage(io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig) configType_); configType_ = subBuilder.buildPartial(); } configTypeCase_ = 1; break; } case 18: { io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.Builder subBuilder = null; if (configTypeCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_).toBuilder(); } configType_ = input.readMessage(io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_); configType_ = subBuilder.buildPartial(); } configTypeCase_ = 2; break; } case 26: { io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.Builder subBuilder = null; if (configTypeCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) configType_).toBuilder(); } configType_ = input.readMessage(io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) configType_); configType_ = subBuilder.buildPartial(); } configTypeCase_ = 3; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.class, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.Builder.class); } public interface TapDSConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Configuration for the source of TapDS updates for this Cluster.
     * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ boolean hasConfigSource(); /** *
     * Configuration for the source of TapDS updates for this Cluster.
     * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.api.v3alpha.core.ConfigSource getConfigSource(); /** *
     * Configuration for the source of TapDS updates for this Cluster.
     * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.api.v3alpha.core.ConfigSourceOrBuilder getConfigSourceOrBuilder(); /** *
     * Tap config to request from XDS server.
     * 
* * string name = 2 [(.validate.rules) = { ... } */ java.lang.String getName(); /** *
     * Tap config to request from XDS server.
     * 
* * string name = 2 [(.validate.rules) = { ... } */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * [#not-implemented-hide:]
   * 
* * Protobuf type {@code envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig} */ public static final class TapDSConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) TapDSConfigOrBuilder { private static final long serialVersionUID = 0L; // Use TapDSConfig.newBuilder() to construct. private TapDSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TapDSConfig() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TapDSConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TapDSConfig( 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.api.v3alpha.core.ConfigSource.Builder subBuilder = null; if (configSource_ != null) { subBuilder = configSource_.toBuilder(); } configSource_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configSource_); configSource_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_TapDSConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_TapDSConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.class, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.Builder.class); } public static final int CONFIG_SOURCE_FIELD_NUMBER = 1; private io.envoyproxy.envoy.api.v3alpha.core.ConfigSource configSource_; /** *
     * Configuration for the source of TapDS updates for this Cluster.
     * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public boolean hasConfigSource() { return configSource_ != null; } /** *
     * Configuration for the source of TapDS updates for this Cluster.
     * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.ConfigSource getConfigSource() { return configSource_ == null ? io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.getDefaultInstance() : configSource_; } /** *
     * Configuration for the source of TapDS updates for this Cluster.
     * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.ConfigSourceOrBuilder getConfigSourceOrBuilder() { return getConfigSource(); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Tap config to request from XDS server.
     * 
* * string name = 2 [(.validate.rules) = { ... } */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Tap config to request from XDS server.
     * 
* * string name = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (configSource_ != null) { output.writeMessage(1, getConfigSource()); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (configSource_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConfigSource()); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } 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.v3alpha.CommonExtensionConfig.TapDSConfig)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig other = (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) obj; if (hasConfigSource() != other.hasConfigSource()) return false; if (hasConfigSource()) { if (!getConfigSource() .equals(other.getConfigSource())) return false; } if (!getName() .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConfigSource()) { hash = (37 * hash) + CONFIG_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getConfigSource().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig 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.v3alpha.CommonExtensionConfig.TapDSConfig 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; } /** *
     * [#not-implemented-hide:]
     * 
* * Protobuf type {@code envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_TapDSConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_TapDSConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.class, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (configSourceBuilder_ == null) { configSource_ = null; } else { configSource_ = null; configSourceBuilder_ = null; } name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_TapDSConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig build() { io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig buildPartial() { io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig result = new io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig(this); if (configSourceBuilder_ == null) { result.configSource_ = configSource_; } else { result.configSource_ = configSourceBuilder_.build(); } result.name_ = name_; 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.v3alpha.CommonExtensionConfig.TapDSConfig) { return mergeFrom((io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig other) { if (other == io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.getDefaultInstance()) return this; if (other.hasConfigSource()) { mergeConfigSource(other.getConfigSource()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } 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.v3alpha.CommonExtensionConfig.TapDSConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.api.v3alpha.core.ConfigSource configSource_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.ConfigSource, io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.Builder, io.envoyproxy.envoy.api.v3alpha.core.ConfigSourceOrBuilder> configSourceBuilder_; /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public boolean hasConfigSource() { return configSourceBuilder_ != null || configSource_ != null; } /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.ConfigSource getConfigSource() { if (configSourceBuilder_ == null) { return configSource_ == null ? io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.getDefaultInstance() : configSource_; } else { return configSourceBuilder_.getMessage(); } } /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public Builder setConfigSource(io.envoyproxy.envoy.api.v3alpha.core.ConfigSource value) { if (configSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configSource_ = value; onChanged(); } else { configSourceBuilder_.setMessage(value); } return this; } /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public Builder setConfigSource( io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.Builder builderForValue) { if (configSourceBuilder_ == null) { configSource_ = builderForValue.build(); onChanged(); } else { configSourceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public Builder mergeConfigSource(io.envoyproxy.envoy.api.v3alpha.core.ConfigSource value) { if (configSourceBuilder_ == null) { if (configSource_ != null) { configSource_ = io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.newBuilder(configSource_).mergeFrom(value).buildPartial(); } else { configSource_ = value; } onChanged(); } else { configSourceBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public Builder clearConfigSource() { if (configSourceBuilder_ == null) { configSource_ = null; onChanged(); } else { configSource_ = null; configSourceBuilder_ = null; } return this; } /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.Builder getConfigSourceBuilder() { onChanged(); return getConfigSourceFieldBuilder().getBuilder(); } /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.ConfigSourceOrBuilder getConfigSourceOrBuilder() { if (configSourceBuilder_ != null) { return configSourceBuilder_.getMessageOrBuilder(); } else { return configSource_ == null ? io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.getDefaultInstance() : configSource_; } } /** *
       * Configuration for the source of TapDS updates for this Cluster.
       * 
* * .envoy.api.v3alpha.core.ConfigSource config_source = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.ConfigSource, io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.Builder, io.envoyproxy.envoy.api.v3alpha.core.ConfigSourceOrBuilder> getConfigSourceFieldBuilder() { if (configSourceBuilder_ == null) { configSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.ConfigSource, io.envoyproxy.envoy.api.v3alpha.core.ConfigSource.Builder, io.envoyproxy.envoy.api.v3alpha.core.ConfigSourceOrBuilder>( getConfigSource(), getParentForChildren(), isClean()); configSource_ = null; } return configSourceBuilder_; } private java.lang.Object name_ = ""; /** *
       * Tap config to request from XDS server.
       * 
* * string name = 2 [(.validate.rules) = { ... } */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Tap config to request from XDS server.
       * 
* * string name = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Tap config to request from XDS server.
       * 
* * string name = 2 [(.validate.rules) = { ... } */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Tap config to request from XDS server.
       * 
* * string name = 2 [(.validate.rules) = { ... } */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Tap config to request from XDS server.
       * 
* * string name = 2 [(.validate.rules) = { ... } */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } @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.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) } // @@protoc_insertion_point(class_scope:envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) private static final io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig(); } public static io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TapDSConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TapDSConfig(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.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int configTypeCase_ = 0; private java.lang.Object configType_; public enum ConfigTypeCase implements com.google.protobuf.Internal.EnumLite { ADMIN_CONFIG(1), STATIC_CONFIG(2), TAPDS_CONFIG(3), CONFIGTYPE_NOT_SET(0); private final int value; private ConfigTypeCase(int value) { this.value = value; } /** * @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 3: return TAPDS_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.v3alpha.AdminConfig admin_config = 1; */ public boolean hasAdminConfig() { return configTypeCase_ == 1; } /** *
   * If specified, the tap filter will be configured via an admin handler.
   * 
* * .envoy.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig getAdminConfig() { if (configTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig) configType_; } return io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.getDefaultInstance(); } /** *
   * If specified, the tap filter will be configured via an admin handler.
   * 
* * .envoy.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfigOrBuilder getAdminConfigOrBuilder() { if (configTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig) configType_; } return io.envoyproxy.envoy.config.common.tap.v3alpha.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.v3alpha.TapConfig static_config = 2; */ 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.v3alpha.TapConfig static_config = 2; */ public io.envoyproxy.envoy.service.tap.v3alpha.TapConfig getStaticConfig() { if (configTypeCase_ == 2) { return (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_; } return io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance(); } /** *
   * If specified, the tap filter will be configured via a static configuration that cannot be
   * changed.
   * 
* * .envoy.service.tap.v3alpha.TapConfig static_config = 2; */ public io.envoyproxy.envoy.service.tap.v3alpha.TapConfigOrBuilder getStaticConfigOrBuilder() { if (configTypeCase_ == 2) { return (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_; } return io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance(); } public static final int TAPDS_CONFIG_FIELD_NUMBER = 3; /** *
   * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
   * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public boolean hasTapdsConfig() { return configTypeCase_ == 3; } /** *
   * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
   * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig getTapdsConfig() { if (configTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) configType_; } return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.getDefaultInstance(); } /** *
   * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
   * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfigOrBuilder getTapdsConfigOrBuilder() { if (configTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) configType_; } return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.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.v3alpha.AdminConfig) configType_); } if (configTypeCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_); } if (configTypeCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) 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.v3alpha.AdminConfig) configType_); } if (configTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_); } if (configTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) 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.v3alpha.CommonExtensionConfig)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig other = (io.envoyproxy.envoy.config.common.tap.v3alpha.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 3: if (!getTapdsConfig() .equals(other.getTapdsConfig())) 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 3: hash = (37 * hash) + TAPDS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getTapdsConfig().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.tap.v3alpha.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.v3alpha.CommonExtensionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.tap.v3alpha.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.v3alpha.CommonExtensionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.tap.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.CommonExtensionConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.tap.v3alpha.CommonExtensionConfig) io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.class, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.tap.v3alpha.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.v3alpha.CommonProto.internal_static_envoy_config_common_tap_v3alpha_CommonExtensionConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig build() { io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig buildPartial() { io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig result = new io.envoyproxy.envoy.config.common.tap.v3alpha.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(); } } if (configTypeCase_ == 3) { if (tapdsConfigBuilder_ == null) { result.configType_ = configType_; } else { result.configType_ = tapdsConfigBuilder_.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.v3alpha.CommonExtensionConfig) { return mergeFrom((io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig other) { if (other == io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.getDefaultInstance()) return this; switch (other.getConfigTypeCase()) { case ADMIN_CONFIG: { mergeAdminConfig(other.getAdminConfig()); break; } case STATIC_CONFIG: { mergeStaticConfig(other.getStaticConfig()); break; } case TAPDS_CONFIG: { mergeTapdsConfig(other.getTapdsConfig()); 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.v3alpha.CommonExtensionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.tap.v3alpha.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.v3alpha.AdminConfig, io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.Builder, io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfigOrBuilder> adminConfigBuilder_; /** *
     * If specified, the tap filter will be configured via an admin handler.
     * 
* * .envoy.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public boolean hasAdminConfig() { return configTypeCase_ == 1; } /** *
     * If specified, the tap filter will be configured via an admin handler.
     * 
* * .envoy.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig getAdminConfig() { if (adminConfigBuilder_ == null) { if (configTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig) configType_; } return io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.getDefaultInstance(); } else { if (configTypeCase_ == 1) { return adminConfigBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.getDefaultInstance(); } } /** *
     * If specified, the tap filter will be configured via an admin handler.
     * 
* * .envoy.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public Builder setAdminConfig(io.envoyproxy.envoy.config.common.tap.v3alpha.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.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public Builder setAdminConfig( io.envoyproxy.envoy.config.common.tap.v3alpha.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.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public Builder mergeAdminConfig(io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig value) { if (adminConfigBuilder_ == null) { if (configTypeCase_ == 1 && configType_ != io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.getDefaultInstance()) { configType_ = io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.newBuilder((io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig) configType_) .mergeFrom(value).buildPartial(); } else { configType_ = value; } onChanged(); } else { if (configTypeCase_ == 1) { adminConfigBuilder_.mergeFrom(value); } adminConfigBuilder_.setMessage(value); } configTypeCase_ = 1; return this; } /** *
     * If specified, the tap filter will be configured via an admin handler.
     * 
* * .envoy.config.common.tap.v3alpha.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.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.Builder getAdminConfigBuilder() { return getAdminConfigFieldBuilder().getBuilder(); } /** *
     * If specified, the tap filter will be configured via an admin handler.
     * 
* * .envoy.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfigOrBuilder getAdminConfigOrBuilder() { if ((configTypeCase_ == 1) && (adminConfigBuilder_ != null)) { return adminConfigBuilder_.getMessageOrBuilder(); } else { if (configTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig) configType_; } return io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.getDefaultInstance(); } } /** *
     * If specified, the tap filter will be configured via an admin handler.
     * 
* * .envoy.config.common.tap.v3alpha.AdminConfig admin_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig, io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.Builder, io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfigOrBuilder> getAdminConfigFieldBuilder() { if (adminConfigBuilder_ == null) { if (!(configTypeCase_ == 1)) { configType_ = io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.getDefaultInstance(); } adminConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig, io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig.Builder, io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfigOrBuilder>( (io.envoyproxy.envoy.config.common.tap.v3alpha.AdminConfig) configType_, getParentForChildren(), isClean()); configType_ = null; } configTypeCase_ = 1; onChanged();; return adminConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.TapConfig, io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.Builder, io.envoyproxy.envoy.service.tap.v3alpha.TapConfigOrBuilder> staticConfigBuilder_; /** *
     * If specified, the tap filter will be configured via a static configuration that cannot be
     * changed.
     * 
* * .envoy.service.tap.v3alpha.TapConfig static_config = 2; */ 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.v3alpha.TapConfig static_config = 2; */ public io.envoyproxy.envoy.service.tap.v3alpha.TapConfig getStaticConfig() { if (staticConfigBuilder_ == null) { if (configTypeCase_ == 2) { return (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_; } return io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance(); } else { if (configTypeCase_ == 2) { return staticConfigBuilder_.getMessage(); } return io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance(); } } /** *
     * If specified, the tap filter will be configured via a static configuration that cannot be
     * changed.
     * 
* * .envoy.service.tap.v3alpha.TapConfig static_config = 2; */ public Builder setStaticConfig(io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.TapConfig static_config = 2; */ public Builder setStaticConfig( io.envoyproxy.envoy.service.tap.v3alpha.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.service.tap.v3alpha.TapConfig static_config = 2; */ public Builder mergeStaticConfig(io.envoyproxy.envoy.service.tap.v3alpha.TapConfig value) { if (staticConfigBuilder_ == null) { if (configTypeCase_ == 2 && configType_ != io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance()) { configType_ = io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.newBuilder((io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_) .mergeFrom(value).buildPartial(); } else { configType_ = value; } onChanged(); } else { if (configTypeCase_ == 2) { staticConfigBuilder_.mergeFrom(value); } staticConfigBuilder_.setMessage(value); } configTypeCase_ = 2; return this; } /** *
     * If specified, the tap filter will be configured via a static configuration that cannot be
     * changed.
     * 
* * .envoy.service.tap.v3alpha.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.service.tap.v3alpha.TapConfig static_config = 2; */ public io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.Builder getStaticConfigBuilder() { return getStaticConfigFieldBuilder().getBuilder(); } /** *
     * If specified, the tap filter will be configured via a static configuration that cannot be
     * changed.
     * 
* * .envoy.service.tap.v3alpha.TapConfig static_config = 2; */ public io.envoyproxy.envoy.service.tap.v3alpha.TapConfigOrBuilder getStaticConfigOrBuilder() { if ((configTypeCase_ == 2) && (staticConfigBuilder_ != null)) { return staticConfigBuilder_.getMessageOrBuilder(); } else { if (configTypeCase_ == 2) { return (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_; } return io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance(); } } /** *
     * If specified, the tap filter will be configured via a static configuration that cannot be
     * changed.
     * 
* * .envoy.service.tap.v3alpha.TapConfig static_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.TapConfig, io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.Builder, io.envoyproxy.envoy.service.tap.v3alpha.TapConfigOrBuilder> getStaticConfigFieldBuilder() { if (staticConfigBuilder_ == null) { if (!(configTypeCase_ == 2)) { configType_ = io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.getDefaultInstance(); } staticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v3alpha.TapConfig, io.envoyproxy.envoy.service.tap.v3alpha.TapConfig.Builder, io.envoyproxy.envoy.service.tap.v3alpha.TapConfigOrBuilder>( (io.envoyproxy.envoy.service.tap.v3alpha.TapConfig) configType_, getParentForChildren(), isClean()); configType_ = null; } configTypeCase_ = 2; onChanged();; return staticConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.Builder, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfigOrBuilder> tapdsConfigBuilder_; /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public boolean hasTapdsConfig() { return configTypeCase_ == 3; } /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig getTapdsConfig() { if (tapdsConfigBuilder_ == null) { if (configTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) configType_; } return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.getDefaultInstance(); } else { if (configTypeCase_ == 3) { return tapdsConfigBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.getDefaultInstance(); } } /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public Builder setTapdsConfig(io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig value) { if (tapdsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configType_ = value; onChanged(); } else { tapdsConfigBuilder_.setMessage(value); } configTypeCase_ = 3; return this; } /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public Builder setTapdsConfig( io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.Builder builderForValue) { if (tapdsConfigBuilder_ == null) { configType_ = builderForValue.build(); onChanged(); } else { tapdsConfigBuilder_.setMessage(builderForValue.build()); } configTypeCase_ = 3; return this; } /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public Builder mergeTapdsConfig(io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig value) { if (tapdsConfigBuilder_ == null) { if (configTypeCase_ == 3 && configType_ != io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.getDefaultInstance()) { configType_ = io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.newBuilder((io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) configType_) .mergeFrom(value).buildPartial(); } else { configType_ = value; } onChanged(); } else { if (configTypeCase_ == 3) { tapdsConfigBuilder_.mergeFrom(value); } tapdsConfigBuilder_.setMessage(value); } configTypeCase_ = 3; return this; } /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public Builder clearTapdsConfig() { if (tapdsConfigBuilder_ == null) { if (configTypeCase_ == 3) { configTypeCase_ = 0; configType_ = null; onChanged(); } } else { if (configTypeCase_ == 3) { configTypeCase_ = 0; configType_ = null; } tapdsConfigBuilder_.clear(); } return this; } /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.Builder getTapdsConfigBuilder() { return getTapdsConfigFieldBuilder().getBuilder(); } /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ public io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfigOrBuilder getTapdsConfigOrBuilder() { if ((configTypeCase_ == 3) && (tapdsConfigBuilder_ != null)) { return tapdsConfigBuilder_.getMessageOrBuilder(); } else { if (configTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) configType_; } return io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.getDefaultInstance(); } } /** *
     * [#not-implemented-hide:] Configuration to use for TapDS updates for the filter.
     * 
* * .envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig tapds_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.Builder, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfigOrBuilder> getTapdsConfigFieldBuilder() { if (tapdsConfigBuilder_ == null) { if (!(configTypeCase_ == 3)) { configType_ = io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.getDefaultInstance(); } tapdsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig.Builder, io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfigOrBuilder>( (io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig.TapDSConfig) configType_, getParentForChildren(), isClean()); configType_ = null; } configTypeCase_ = 3; onChanged();; return tapdsConfigBuilder_; } @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.config.common.tap.v3alpha.CommonExtensionConfig) } // @@protoc_insertion_point(class_scope:envoy.config.common.tap.v3alpha.CommonExtensionConfig) private static final io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.tap.v3alpha.CommonExtensionConfig(); } public static io.envoyproxy.envoy.config.common.tap.v3alpha.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.config.common.tap.v3alpha.CommonExtensionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy