
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/tap/v2alpha/common.proto
package io.envoyproxy.envoy.service.tap.v2alpha;
/**
*
* Tap output configuration.
*
*
* Protobuf type {@code envoy.service.tap.v2alpha.OutputConfig}
*/
public final class OutputConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.tap.v2alpha.OutputConfig)
OutputConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use OutputConfig.newBuilder() to construct.
private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OutputConfig() {
sinks_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OutputConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
sinks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
sinks_.add(
input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
sinks_ = java.util.Collections.unmodifiableList(sinks_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputConfig_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.class, io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.Builder.class);
}
public static final int SINKS_FIELD_NUMBER = 1;
private java.util.List sinks_;
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public java.util.List getSinksList() {
return sinks_;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder>
getSinksOrBuilderList() {
return sinks_;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public int getSinksCount() {
return sinks_.size();
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSink getSinks(int index) {
return sinks_.get(index);
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder getSinksOrBuilder(
int index) {
return sinks_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < sinks_.size(); i++) {
output.writeMessage(1, sinks_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < sinks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, sinks_.get(i));
}
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.service.tap.v2alpha.OutputConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig other = (io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig) obj;
boolean result = true;
result = result && getSinksList()
.equals(other.getSinksList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSinksCount() > 0) {
hash = (37 * hash) + SINKS_FIELD_NUMBER;
hash = (53 * hash) + getSinksList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig 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.service.tap.v2alpha.OutputConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig 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.service.tap.v2alpha.OutputConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig 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.service.tap.v2alpha.OutputConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig 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.service.tap.v2alpha.OutputConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* Tap output configuration.
*
*
* Protobuf type {@code envoy.service.tap.v2alpha.OutputConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.tap.v2alpha.OutputConfig)
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputConfig_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.class, io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSinksFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (sinksBuilder_ == null) {
sinks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
sinksBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputConfig_descriptor;
}
public io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.getDefaultInstance();
}
public io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig build() {
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig buildPartial() {
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig result = new io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig(this);
int from_bitField0_ = bitField0_;
if (sinksBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
sinks_ = java.util.Collections.unmodifiableList(sinks_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sinks_ = sinks_;
} else {
result.sinks_ = sinksBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig) {
return mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig other) {
if (other == io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.getDefaultInstance()) return this;
if (sinksBuilder_ == null) {
if (!other.sinks_.isEmpty()) {
if (sinks_.isEmpty()) {
sinks_ = other.sinks_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSinksIsMutable();
sinks_.addAll(other.sinks_);
}
onChanged();
}
} else {
if (!other.sinks_.isEmpty()) {
if (sinksBuilder_.isEmpty()) {
sinksBuilder_.dispose();
sinksBuilder_ = null;
sinks_ = other.sinks_;
bitField0_ = (bitField0_ & ~0x00000001);
sinksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSinksFieldBuilder() : null;
} else {
sinksBuilder_.addAllMessages(other.sinks_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List sinks_ =
java.util.Collections.emptyList();
private void ensureSinksIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
sinks_ = new java.util.ArrayList(sinks_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder, io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder> sinksBuilder_;
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public java.util.List getSinksList() {
if (sinksBuilder_ == null) {
return java.util.Collections.unmodifiableList(sinks_);
} else {
return sinksBuilder_.getMessageList();
}
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public int getSinksCount() {
if (sinksBuilder_ == null) {
return sinks_.size();
} else {
return sinksBuilder_.getCount();
}
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSink getSinks(int index) {
if (sinksBuilder_ == null) {
return sinks_.get(index);
} else {
return sinksBuilder_.getMessage(index);
}
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder setSinks(
int index, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink value) {
if (sinksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSinksIsMutable();
sinks_.set(index, value);
onChanged();
} else {
sinksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder setSinks(
int index, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder builderForValue) {
if (sinksBuilder_ == null) {
ensureSinksIsMutable();
sinks_.set(index, builderForValue.build());
onChanged();
} else {
sinksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder addSinks(io.envoyproxy.envoy.service.tap.v2alpha.OutputSink value) {
if (sinksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSinksIsMutable();
sinks_.add(value);
onChanged();
} else {
sinksBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder addSinks(
int index, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink value) {
if (sinksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSinksIsMutable();
sinks_.add(index, value);
onChanged();
} else {
sinksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder addSinks(
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder builderForValue) {
if (sinksBuilder_ == null) {
ensureSinksIsMutable();
sinks_.add(builderForValue.build());
onChanged();
} else {
sinksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder addSinks(
int index, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder builderForValue) {
if (sinksBuilder_ == null) {
ensureSinksIsMutable();
sinks_.add(index, builderForValue.build());
onChanged();
} else {
sinksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder addAllSinks(
java.lang.Iterable extends io.envoyproxy.envoy.service.tap.v2alpha.OutputSink> values) {
if (sinksBuilder_ == null) {
ensureSinksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sinks_);
onChanged();
} else {
sinksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder clearSinks() {
if (sinksBuilder_ == null) {
sinks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
sinksBuilder_.clear();
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder removeSinks(int index) {
if (sinksBuilder_ == null) {
ensureSinksIsMutable();
sinks_.remove(index);
onChanged();
} else {
sinksBuilder_.remove(index);
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder getSinksBuilder(
int index) {
return getSinksFieldBuilder().getBuilder(index);
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder getSinksOrBuilder(
int index) {
if (sinksBuilder_ == null) {
return sinks_.get(index); } else {
return sinksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder>
getSinksOrBuilderList() {
if (sinksBuilder_ != null) {
return sinksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sinks_);
}
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder addSinksBuilder() {
return getSinksFieldBuilder().addBuilder(
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.getDefaultInstance());
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder addSinksBuilder(
int index) {
return getSinksFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.getDefaultInstance());
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public java.util.List
getSinksBuilderList() {
return getSinksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder, io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder>
getSinksFieldBuilder() {
if (sinksBuilder_ == null) {
sinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder, io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder>(
sinks_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
sinks_ = null;
}
return sinksBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.service.tap.v2alpha.OutputConfig)
}
// @@protoc_insertion_point(class_scope:envoy.service.tap.v2alpha.OutputConfig)
private static final io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig();
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public OutputConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OutputConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy